| @@ -32,9 +32,10 @@ | ||
| 32 | 32 | '{{WRAPPER}}.ablocks-block--text-path:not(.ablocks-block-container), |
| 33 | 33 | {{WRAPPER}}.ablocks-block--text-path .ablocks-block-container', |
| 34 | 34 | $this->get_text_path_container_css( $attributes ), |
| 35 | 35 | $this->get_text_path_container_css( $attributes, 'Tablet' ), |
| 36 | - $this->get_text_path_container_css( $attributes, 'Mobile' ) | |
| 36 | + $this->get_text_path_container_css( $attributes, 'Mobile' ), | |
| 37 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_text_path_container_css( $attributes, $device ); } ) | |
| 37 | 38 | ); |
| 38 | 39 | |
| 39 | 40 | $css_generator->add_class_styles( |
| 40 | 41 | '{{WRAPPER}} .ablocks-text-path-text', |
| @@ -39,9 +40,10 @@ | ||
| 39 | 40 | $css_generator->add_class_styles( |
| 40 | 41 | '{{WRAPPER}} .ablocks-text-path-text', |
| 41 | 42 | $this->get_text_css( $attributes ), |
| 42 | 43 | $this->get_text_css( $attributes, 'Tablet' ), |
| 43 | - $this->get_text_css( $attributes, 'Mobile' ) | |
| 44 | + $this->get_text_css( $attributes, 'Mobile' ), | |
| 45 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_text_css( $attributes, $device ); } ) | |
| 44 | 46 | ); |
| 45 | 47 | |
| 46 | 48 | $css_generator->add_class_styles( |
| 47 | 49 | '{{WRAPPER}} .ablocks-text-path-text:hover', |
| @@ -46,9 +48,10 @@ | ||
| 46 | 48 | $css_generator->add_class_styles( |
| 47 | 49 | '{{WRAPPER}} .ablocks-text-path-text:hover', |
| 48 | 50 | $this->get_text_hover_css( $attributes ), |
| 49 | 51 | $this->get_text_hover_css( $attributes, 'Tablet' ), |
| 50 | - $this->get_text_hover_css( $attributes, 'Mobile' ) | |
| 52 | + $this->get_text_hover_css( $attributes, 'Mobile' ), | |
| 53 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_text_hover_css( $attributes, $device ); } ) | |
| 51 | 54 | ); |
| 52 | 55 | |
| 53 | 56 | $css_generator->add_class_styles( |
| 54 | 57 | '{{WRAPPER}} .ablocks-path-text-path', |
| @@ -53,9 +56,10 @@ | ||
| 53 | 56 | $css_generator->add_class_styles( |
| 54 | 57 | '{{WRAPPER}} .ablocks-path-text-path', |
| 55 | 58 | $this->get_text_path_css( $attributes ), |
| 56 | 59 | $this->get_text_path_css( $attributes, 'Tablet' ), |
| 57 | - $this->get_text_path_css( $attributes, 'Mobile' ) | |
| 60 | + $this->get_text_path_css( $attributes, 'Mobile' ), | |
| 61 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_text_path_css( $attributes, $device ); } ) | |
| 58 | 62 | ); |
| 59 | 63 | |
| 60 | 64 | return $css_generator->generate_css(); |
| 61 | 65 | } |
| @@ -66,9 +70,10 @@ | ||
| 66 | 70 | '{{WRAPPER}}.ablocks-block--text-path:not(.ablocks-block-container), |
| 67 | 71 | {{WRAPPER}}.ablocks-block--text-path .ablocks-block-container', |
| 68 | 72 | $this->get_text_path_container_css( $attributes ), |
| 69 | 73 | $this->get_text_path_container_css( $attributes, 'Tablet' ), |
| 70 | - $this->get_text_path_container_css( $attributes, 'Mobile' ) | |
| 74 | + $this->get_text_path_container_css( $attributes, 'Mobile' ), | |
| 75 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_text_path_container_css( $attributes, $device ); } ) | |
| 71 | 76 | ); |
| 72 | 77 | |
| 73 | 78 | $css_generator->add_class_styles( |
| 74 | 79 | '{{WRAPPER}} .ablocks-text-path-text', |
| @@ -73,9 +78,10 @@ | ||
| 73 | 78 | $css_generator->add_class_styles( |
| 74 | 79 | '{{WRAPPER}} .ablocks-text-path-text', |
| 75 | 80 | $this->get_text_css( $attributes ), |
| 76 | 81 | $this->get_text_css( $attributes, 'Tablet' ), |
| 77 | - $this->get_text_css( $attributes, 'Mobile' ) | |
| 82 | + $this->get_text_css( $attributes, 'Mobile' ), | |
| 83 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_text_css( $attributes, $device ); } ) | |
| 78 | 84 | ); |
| 79 | 85 | |
| 80 | 86 | $css_generator->add_class_styles( |
| 81 | 87 | '{{WRAPPER}} .ablocks-text-path-text:hover', |
| @@ -80,9 +86,10 @@ | ||
| 80 | 86 | $css_generator->add_class_styles( |
| 81 | 87 | '{{WRAPPER}} .ablocks-text-path-text:hover', |
| 82 | 88 | $this->get_text_hover_css( $attributes ), |
| 83 | 89 | $this->get_text_hover_css( $attributes, 'Tablet' ), |
| 84 | - $this->get_text_hover_css( $attributes, 'Mobile' ) | |
| 90 | + $this->get_text_hover_css( $attributes, 'Mobile' ), | |
| 91 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_text_hover_css( $attributes, $device ); } ) | |
| 85 | 92 | ); |
| 86 | 93 | |
| 87 | 94 | $css_generator->add_class_styles( |
| 88 | 95 | '{{WRAPPER}} .ablocks-path-text-path', |
| @@ -87,9 +94,10 @@ | ||
| 87 | 94 | $css_generator->add_class_styles( |
| 88 | 95 | '{{WRAPPER}} .ablocks-path-text-path', |
| 89 | 96 | $this->get_text_path_css( $attributes ), |
| 90 | 97 | $this->get_text_path_css( $attributes, 'Tablet' ), |
| 91 | - $this->get_text_path_css( $attributes, 'Mobile' ) | |
| 98 | + $this->get_text_path_css( $attributes, 'Mobile' ), | |
| 99 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_text_path_css( $attributes, $device ); } ) | |
| 92 | 100 | ); |
| 93 | 101 | |
| 94 | 102 | return $css_generator->generate_css(); |
| 95 | 103 | } |