| @@ -40,9 +40,10 @@ | ||
| 40 | 40 | $css_generator->add_class_styles( |
| 41 | 41 | '{{WRAPPER}} .ablocks-icon-wrap', |
| 42 | 42 | Icon::get_wrapper_css( $attributes ), |
| 43 | 43 | Icon::get_wrapper_css( $attributes, 'Tablet' ), |
| 44 | - Icon::get_wrapper_css( $attributes, 'Mobile' ) | |
| 44 | + Icon::get_wrapper_css( $attributes, 'Mobile' ), | |
| 45 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_css( $attributes, $device ); } ) | |
| 45 | 46 | ); |
| 46 | 47 | |
| 47 | 48 | $css_generator->add_class_styles( |
| 48 | 49 | '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon', |
| @@ -88,8 +89,9 @@ | ||
| 88 | 89 | '{{WRAPPER}}:not(.ablocks-has-block-container), {{WRAPPER}}.ablocks-block--star-ratings > .ablocks-block-container', |
| 89 | 90 | $this->get_container_css( $attributes ), |
| 90 | 91 | $this->get_container_css( $attributes, 'Tablet' ), |
| 91 | 92 | $this->get_container_css( $attributes, 'Mobile' ), |
| 93 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_container_css( $attributes, $device ); } ) | |
| 92 | 94 | ); |
| 93 | 95 | // rating icon css |
| 94 | 96 | $css_generator->add_class_styles( |
| 95 | 97 | '{{WRAPPER}} .ablocks-rating', |
| @@ -95,8 +97,9 @@ | ||
| 95 | 97 | '{{WRAPPER}} .ablocks-rating', |
| 96 | 98 | $this->get_rating_css( $attributes ), |
| 97 | 99 | $this->get_rating_css( $attributes, 'Tablet' ), |
| 98 | 100 | $this->get_rating_css( $attributes, 'Mobile' ), |
| 101 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_rating_css( $attributes, $device ); } ) | |
| 99 | 102 | ); |
| 100 | 103 | |
| 101 | 104 | $css_generator->add_class_styles( |
| 102 | 105 | '{{WRAPPER}} .ablocks-icon-wrap', |
| @@ -101,9 +104,10 @@ | ||
| 101 | 104 | $css_generator->add_class_styles( |
| 102 | 105 | '{{WRAPPER}} .ablocks-icon-wrap', |
| 103 | 106 | Icon::get_wrapper_css( $attributes ), |
| 104 | 107 | Icon::get_wrapper_css( $attributes, 'Tablet' ), |
| 105 | - Icon::get_wrapper_css( $attributes, 'Mobile' ) | |
| 108 | + Icon::get_wrapper_css( $attributes, 'Mobile' ), | |
| 109 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_css( $attributes, $device ); } ) | |
| 106 | 110 | ); |
| 107 | 111 | |
| 108 | 112 | $css_generator->add_class_styles( |
| 109 | 113 | '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon', |
| @@ -109,8 +113,9 @@ | ||
| 109 | 113 | '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon', |
| 110 | 114 | Icon::get_element_image_css( $attributes ), |
| 111 | 115 | Icon::get_element_image_css( $attributes, 'Tablet' ), |
| 112 | 116 | Icon::get_element_image_css( $attributes, 'Mobile' ), |
| 117 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_element_image_css( $attributes, $device ); } ) | |
| 113 | 118 | ); |
| 114 | 119 | |
| 115 | 120 | // rating icon spacing css |
| 116 | 121 | $css_generator->add_class_styles( |
| @@ -117,8 +122,9 @@ | ||
| 117 | 122 | '{{WRAPPER}} .ablocks-star-ratings-icons', |
| 118 | 123 | $this->get_rating_icon_spacing_css( $attributes ), |
| 119 | 124 | $this->get_rating_icon_spacing_css( $attributes, 'Tablet' ), |
| 120 | 125 | $this->get_rating_icon_spacing_css( $attributes, 'Mobile' ), |
| 126 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_rating_icon_spacing_css( $attributes, $device ); } ) | |
| 121 | 127 | ); |
| 122 | 128 | // rating number css |
| 123 | 129 | $css_generator->add_class_styles( |
| 124 | 130 | '{{WRAPPER}} .ablocks-star-rating-number', |
| @@ -124,8 +130,9 @@ | ||
| 124 | 130 | '{{WRAPPER}} .ablocks-star-rating-number', |
| 125 | 131 | $this->get_rating_number_css( $attributes ), |
| 126 | 132 | $this->get_rating_number_css( $attributes, 'Tablet' ), |
| 127 | 133 | $this->get_rating_number_css( $attributes, 'Mobile' ), |
| 134 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_rating_number_css( $attributes, $device ); } ) | |
| 128 | 135 | ); |
| 129 | 136 | |
| 130 | 137 | return $css_generator->generate_css(); |
| 131 | 138 | } |