| @@ -28,21 +28,24 @@ | ||
| 28 | 28 | $css_generator->add_class_styles( |
| 29 | 29 | '{{WRAPPER}} .ecm-shortcode--upvote', |
| 30 | 30 | $this->get_coutineu_button_wrapper_css( $attributes ), |
| 31 | 31 | $this->get_coutineu_button_wrapper_css( $attributes, 'Tablet' ), |
| 32 | - $this->get_coutineu_button_wrapper_css( $attributes, 'Mobile' ) | |
| 32 | + $this->get_coutineu_button_wrapper_css( $attributes, 'Mobile' ), | |
| 33 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_coutineu_button_wrapper_css( $attributes, $device ); } ) | |
| 33 | 34 | ); |
| 34 | 35 | $css_generator->add_class_styles( |
| 35 | 36 | '{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn', |
| 36 | 37 | $this->get_coutineu_button_css( $attributes ), |
| 37 | 38 | $this->get_coutineu_button_css( $attributes, 'Tablet' ), |
| 38 | - $this->get_coutineu_button_css( $attributes, 'Mobile' ) | |
| 39 | + $this->get_coutineu_button_css( $attributes, 'Mobile' ), | |
| 40 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_coutineu_button_css( $attributes, $device ); } ) | |
| 39 | 41 | ); |
| 40 | 42 | $css_generator->add_class_styles( |
| 41 | 43 | '{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn:hover', |
| 42 | 44 | $this->get_coutineu_button_hover_css( $attributes ), |
| 43 | 45 | $this->get_coutineu_button_hover_css( $attributes, 'Tablet' ), |
| 44 | - $this->get_coutineu_button_hover_css( $attributes, 'Mobile' ) | |
| 46 | + $this->get_coutineu_button_hover_css( $attributes, 'Mobile' ), | |
| 47 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_coutineu_button_hover_css( $attributes, $device ); } ) | |
| 45 | 48 | ); |
| 46 | 49 | |
| 47 | 50 | $css_generator->add_class_styles( |
| 48 | 51 | '{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn svg', |
| @@ -47,9 +50,10 @@ | ||
| 47 | 50 | $css_generator->add_class_styles( |
| 48 | 51 | '{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn svg', |
| 49 | 52 | $this->get_coutineu_button_button_badge_css( $attributes ), |
| 50 | 53 | $this->get_coutineu_button_button_badge_css( $attributes, 'Tablet' ), |
| 51 | - $this->get_coutineu_button_button_badge_css( $attributes, 'Mobile' ) | |
| 54 | + $this->get_coutineu_button_button_badge_css( $attributes, 'Mobile' ), | |
| 55 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_coutineu_button_button_badge_css( $attributes, $device ); } ) | |
| 52 | 56 | ); |
| 53 | 57 | $css_generator->add_class_styles( |
| 54 | 58 | '{{WRAPPER}} .ecm-shortcode--upvote .content-manager-btn svg path', |
| 55 | 59 | $this->get_badge_fill_color_css( $attributes ), |