| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | // Generate CSS |
| 28 | 28 | $css_generator = new CssGenerator( $attributes ); |
| 29 | 29 | |
| 30 | 30 | $css_generator->add_class_styles( |
| 31 | - '{{WRAPPER}}.ablocks-block--advance-list-item .ablocks-block-container', | |
| 31 | + '{{WRAPPER}}.ablocks-block--advance-list-item .ablocks-block-container .ablocks-advance-list-item-link', | |
| 32 | 32 | $this->get_container_css( $attributes, '' ), |
| 33 | 33 | $this->get_container_css( $attributes, 'Tablet' ), |
| 34 | 34 | $this->get_container_css( $attributes, 'Mobile' ), |
| 35 | 35 | ); |
| @@ -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 ), |