| @@ -26,27 +26,31 @@ | ||
| 26 | 26 | $css_generator->add_class_styles( |
| 27 | 27 | '{{WRAPPER}} .ecm-shortcode--claim-badge', |
| 28 | 28 | $this->get_coutineu_button_wrapper_css( $attributes ), |
| 29 | 29 | $this->get_coutineu_button_wrapper_css( $attributes, 'Tablet' ), |
| 30 | - $this->get_coutineu_button_wrapper_css( $attributes, 'Mobile' ) | |
| 30 | + $this->get_coutineu_button_wrapper_css( $attributes, 'Mobile' ), | |
| 31 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_coutineu_button_wrapper_css( $attributes, $device ); } ) | |
| 31 | 32 | ); |
| 32 | 33 | $css_generator->add_class_styles( |
| 33 | 34 | '{{WRAPPER}} .ecm-shortcode--claim-badge__badge-text', |
| 34 | 35 | $this->get_coutineu_button_with_text( $attributes ), |
| 35 | 36 | $this->get_coutineu_button_with_text( $attributes, 'Tablet' ), |
| 36 | - $this->get_coutineu_button_with_text( $attributes, 'Mobile' ) | |
| 37 | + $this->get_coutineu_button_with_text( $attributes, 'Mobile' ), | |
| 38 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_coutineu_button_with_text( $attributes, $device ); } ) | |
| 37 | 39 | ); |
| 38 | 40 | $css_generator->add_class_styles( |
| 39 | 41 | '{{WRAPPER}} .ecm-shortcode--claim-badge svg', |
| 40 | 42 | $this->get_coutineu_button_css( $attributes ), |
| 41 | 43 | $this->get_coutineu_button_css( $attributes, 'Tablet' ), |
| 42 | - $this->get_coutineu_button_css( $attributes, 'Mobile' ) | |
| 44 | + $this->get_coutineu_button_css( $attributes, 'Mobile' ), | |
| 45 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_coutineu_button_css( $attributes, $device ); } ) | |
| 43 | 46 | ); |
| 44 | 47 | $css_generator->add_class_styles( |
| 45 | 48 | '{{WRAPPER}} .ecm-shortcode--claim-badge svg path', |
| 46 | 49 | $this->get_badge_fill_color_css( $attributes ), |
| 47 | 50 | $this->get_badge_fill_color_css($attributes, 'Tablet'), |
| 48 | - $this->get_badge_fill_color_css($attributes, 'Mobile') | |
| 51 | + $this->get_badge_fill_color_css($attributes, 'Mobile'), | |
| 52 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_badge_fill_color_css($attributes, $device); } ) | |
| 49 | 53 | ); |
| 50 | 54 | |
| 51 | 55 | $css_generator->add_class_styles( |
| 52 | 56 | '{{WRAPPER}} .ecm-shortcode--claim-badge:hover svg', |
| @@ -51,9 +55,10 @@ | ||
| 51 | 55 | $css_generator->add_class_styles( |
| 52 | 56 | '{{WRAPPER}} .ecm-shortcode--claim-badge:hover svg', |
| 53 | 57 | $this->get_coutineu_button_hover_css( $attributes ), |
| 54 | 58 | $this->get_coutineu_button_hover_css( $attributes, 'Tablet' ), |
| 55 | - $this->get_coutineu_button_hover_css( $attributes, 'Mobile' ) | |
| 59 | + $this->get_coutineu_button_hover_css( $attributes, 'Mobile' ), | |
| 60 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_coutineu_button_hover_css( $attributes, $device ); } ) | |
| 56 | 61 | ); |
| 57 | 62 | |
| 58 | 63 | return $css_generator->generate_css(); |
| 59 | 64 | } |