| @@ -50,15 +50,17 @@ | ||
| 50 | 50 | $css_generator->add_class_styles( |
| 51 | 51 | '{{WRAPPER}} .ablocks-icon-wrap', |
| 52 | 52 | Icon::get_wrapper_css( $attributes ), |
| 53 | 53 | Icon::get_wrapper_css( $attributes, 'Tablet' ), |
| 54 | - Icon::get_wrapper_css( $attributes, 'Mobile' ) | |
| 54 | + Icon::get_wrapper_css( $attributes, 'Mobile' ), | |
| 55 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_css( $attributes, $device ); } ) | |
| 55 | 56 | ); |
| 56 | 57 | $css_generator->add_class_styles( |
| 57 | 58 | '{{WRAPPER}} .ablocks-icon-wrap:hover', |
| 58 | 59 | Icon::get_wrapper_hover_css( $attributes ), |
| 59 | 60 | Icon::get_wrapper_hover_css( $attributes, 'Tablet' ), |
| 60 | - Icon::get_wrapper_hover_css( $attributes, 'Mobile' ) | |
| 61 | + Icon::get_wrapper_hover_css( $attributes, 'Mobile' ), | |
| 62 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_hover_css( $attributes, $device ); } ) | |
| 61 | 63 | ); |
| 62 | 64 | $css_generator->add_class_styles( |
| 63 | 65 | '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon', |
| 64 | 66 | Icon::get_element_image_css( $attributes ), |