| @@ -30,9 +30,10 @@ | ||
| 30 | 30 | $css_generator->add_class_styles( |
| 31 | 31 | '{{WRAPPER}} .ablocks-block-logout', |
| 32 | 32 | $this->get_log_out_css( $attributes ), |
| 33 | 33 | $this->get_log_out_css( $attributes, 'Tablet' ), |
| 34 | - $this->get_log_out_css( $attributes, 'Mobile' ) | |
| 34 | + $this->get_log_out_css( $attributes, 'Mobile' ), | |
| 35 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_log_out_css( $attributes, $device ); } ) | |
| 35 | 36 | ); |
| 36 | 37 | $css_generator->add_class_styles( |
| 37 | 38 | '{{WRAPPER}} .ablocks-block-logout__name', |
| 38 | 39 | $this->get_name_css( $attributes ) |
| @@ -41,15 +42,17 @@ | ||
| 41 | 42 | $css_generator->add_class_styles( |
| 42 | 43 | '{{WRAPPER}} .ablocks-block-logout__avatar', |
| 43 | 44 | $this->get_avatar_css( $attributes ), |
| 44 | 45 | $this->get_avatar_css( $attributes, 'Tablet' ), |
| 45 | - $this->get_avatar_css( $attributes, 'Mobile' ) | |
| 46 | + $this->get_avatar_css( $attributes, 'Mobile' ), | |
| 47 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_avatar_css( $attributes, $device ); } ) | |
| 46 | 48 | ); |
| 47 | 49 | $css_generator->add_class_styles( |
| 48 | 50 | '{{WRAPPER}} .ablocks-block-logout__avatar:hover', |
| 49 | 51 | $this->get_avatar_border_hover_css( $attributes ), |
| 50 | 52 | $this->get_avatar_border_hover_css( $attributes, 'Tablet' ), |
| 51 | - $this->get_avatar_border_hover_css( $attributes, 'Mobile' ) | |
| 53 | + $this->get_avatar_border_hover_css( $attributes, 'Mobile' ), | |
| 54 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_avatar_border_hover_css( $attributes, $device ); } ) | |
| 52 | 55 | ); |
| 53 | 56 | |
| 54 | 57 | return $css_generator->generate_css(); |
| 55 | 58 | } |