← All changes
|
includes/blocks/storeengine-product-description/block.php
+8
-4
2.9.0
→
2.14.0
View file →
| @@ -26,9 +26,10 @@ | ||
| 26 | 26 | $css_generator->add_class_styles( |
| 27 | 27 | '{{WRAPPER}} .storeengine-product-single__content-item h2', |
| 28 | 28 | $this->get_title_css( $attributes ), |
| 29 | 29 | $this->get_title_css( $attributes, 'Tablet' ), |
| 30 | - $this->get_title_css( $attributes, 'Mobile' ) | |
| 30 | + $this->get_title_css( $attributes, 'Mobile' ), | |
| 31 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_title_css( $attributes, $device ); } ) | |
| 31 | 32 | ); |
| 32 | 33 | |
| 33 | 34 | $css_generator->add_class_styles( |
| 34 | 35 | '{{WRAPPER}} .storeengine-product-single__content-item h2:hover', |
| @@ -33,9 +34,10 @@ | ||
| 33 | 34 | $css_generator->add_class_styles( |
| 34 | 35 | '{{WRAPPER}} .storeengine-product-single__content-item h2:hover', |
| 35 | 36 | $this->get_title_hover_css( $attributes ), |
| 36 | 37 | $this->get_title_hover_css( $attributes, 'Tablet' ), |
| 37 | - $this->get_title_hover_css( $attributes, 'Mobile' ) | |
| 38 | + $this->get_title_hover_css( $attributes, 'Mobile' ), | |
| 39 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_title_hover_css( $attributes, $device ); } ) | |
| 38 | 40 | ); |
| 39 | 41 | |
| 40 | 42 | $css_generator->add_class_styles( |
| 41 | 43 | '{{WRAPPER}} .storeengine-product-single__content-item p', |
| @@ -40,9 +42,10 @@ | ||
| 40 | 42 | $css_generator->add_class_styles( |
| 41 | 43 | '{{WRAPPER}} .storeengine-product-single__content-item p', |
| 42 | 44 | $this->get_description_css( $attributes ), |
| 43 | 45 | $this->get_description_css( $attributes, 'Tablet' ), |
| 44 | - $this->get_description_css( $attributes, 'Mobile' ) | |
| 46 | + $this->get_description_css( $attributes, 'Mobile' ), | |
| 47 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_description_css( $attributes, $device ); } ) | |
| 45 | 48 | ); |
| 46 | 49 | |
| 47 | 50 | $css_generator->add_class_styles( |
| 48 | 51 | '{{WRAPPER}} .storeengine-product-single__content-item p:hover', |
| @@ -47,9 +50,10 @@ | ||
| 47 | 50 | $css_generator->add_class_styles( |
| 48 | 51 | '{{WRAPPER}} .storeengine-product-single__content-item p:hover', |
| 49 | 52 | $this->get_description_hover_css( $attributes ), |
| 50 | 53 | $this->get_description_hover_css( $attributes, 'Tablet' ), |
| 51 | - $this->get_description_hover_css( $attributes, 'Mobile' ) | |
| 54 | + $this->get_description_hover_css( $attributes, 'Mobile' ), | |
| 55 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_description_hover_css( $attributes, $device ); } ) | |
| 52 | 56 | ); |
| 53 | 57 | |
| 54 | 58 | return $css_generator->generate_css(); |
| 55 | 59 | } |