| @@ -28,10 +28,9 @@ | ||
| 28 | 28 | $css_generator->add_class_styles( |
| 29 | 29 | '{{WRAPPER}}.ablocks-block--container', |
| 30 | 30 | $this->get_main_wrapper_css( $attributes ), |
| 31 | 31 | $this->get_main_wrapper_css( $attributes, 'Tablet' ), |
| 32 | - $this->get_main_wrapper_css( $attributes, 'Mobile' ), | |
| 33 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_main_wrapper_css( $attributes, $device ); } ) | |
| 32 | + $this->get_main_wrapper_css( $attributes, 'Mobile' ) | |
| 34 | 33 | ); |
| 35 | 34 | |
| 36 | 35 | $css_generator->add_class_styles( |
| 37 | 36 | '{{WRAPPER}}.ablocks-block--container-has-link-overlay', |
| @@ -49,10 +48,9 @@ | ||
| 49 | 48 | $css_generator->add_class_styles( |
| 50 | 49 | '{{WRAPPER}} > .ablocks-block-container', |
| 51 | 50 | $this->get_block_container_css( $attributes ), |
| 52 | 51 | $this->get_block_container_css( $attributes, 'Tablet' ), |
| 53 | - $this->get_block_container_css( $attributes, 'Mobile' ), | |
| 54 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_block_container_css( $attributes, $device ); } ) | |
| 52 | + $this->get_block_container_css( $attributes, 'Mobile' ) | |
| 55 | 53 | ); |
| 56 | 54 | |
| 57 | 55 | $css_generator->add_class_styles( |
| 58 | 56 | '{{WRAPPER}} > .ablocks-block-container', |
| @@ -57,17 +55,15 @@ | ||
| 57 | 55 | $css_generator->add_class_styles( |
| 58 | 56 | '{{WRAPPER}} > .ablocks-block-container', |
| 59 | 57 | $this->get_inner_blocks_closest_parent_css( $attributes ), |
| 60 | 58 | $this->get_inner_blocks_closest_parent_css( $attributes, 'Tablet' ), |
| 61 | - $this->get_inner_blocks_closest_parent_css( $attributes, 'Mobile' ), | |
| 62 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_inner_blocks_closest_parent_css( $attributes, $device ); } ) | |
| 59 | + $this->get_inner_blocks_closest_parent_css( $attributes, 'Mobile' ) | |
| 63 | 60 | ); |
| 64 | 61 | $css_generator->add_class_styles( |
| 65 | 62 | '{{WRAPPER}} > .ablocks-block-container > *:not(style,.ablocks-block--container)', |
| 66 | 63 | $this->get_container_inner_blocks_row_column_display_css( $attributes ), |
| 67 | 64 | $this->get_container_inner_blocks_row_column_display_css( $attributes, 'Tablet' ), |
| 68 | - $this->get_container_inner_blocks_row_column_display_css( $attributes, 'Mobile' ), | |
| 69 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_container_inner_blocks_row_column_display_css( $attributes, $device ); } ) | |
| 65 | + $this->get_container_inner_blocks_row_column_display_css( $attributes, 'Mobile' ) | |
| 70 | 66 | ); |
| 71 | 67 | |
| 72 | 68 | $css_generator->add_class_styles( |
| 73 | 69 | '{{WRAPPER}}::before', |
| @@ -117,9 +113,8 @@ | ||
| 117 | 113 | body:not(.ablocks-is-fse-theme) {{WRAPPER}}.ablocks-block--container--is-root', |
| 118 | 114 | $this->reset_static_css( $attributes ), |
| 119 | 115 | $this->reset_static_css( $attributes, 'Tablet' ), |
| 120 | 116 | $this->reset_static_css( $attributes, 'Mobile' ), |
| 121 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->reset_static_css( $attributes, $device ); } ) | |
| 122 | 117 | ); |
| 123 | 118 | } |
| 124 | 119 | $css_generator->add_class_styles( |
| 125 | 120 | '{{WRAPPER}}.ablocks-block--container', |
| @@ -124,10 +119,9 @@ | ||
| 124 | 119 | $css_generator->add_class_styles( |
| 125 | 120 | '{{WRAPPER}}.ablocks-block--container', |
| 126 | 121 | $this->get_main_wrapper_css( $attributes ), |
| 127 | 122 | $this->get_main_wrapper_css( $attributes, 'Tablet' ), |
| 128 | - $this->get_main_wrapper_css( $attributes, 'Mobile' ), | |
| 129 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_main_wrapper_css( $attributes, $device ); } ) | |
| 123 | + $this->get_main_wrapper_css( $attributes, 'Mobile' ) | |
| 130 | 124 | ); |
| 131 | 125 | |
| 132 | 126 | $css_generator->add_class_styles( |
| 133 | 127 | '{{WRAPPER}}.ablocks-block--container-has-link-overlay', |
| @@ -146,10 +140,9 @@ | ||
| 146 | 140 | $css_generator->add_class_styles( |
| 147 | 141 | $attributes['isRootContainer'] ? '{{WRAPPER}} > .ablocks-block-container' : '{{WRAPPER}}', |
| 148 | 142 | $this->get_block_container_css( $attributes ), |
| 149 | 143 | $this->get_block_container_css( $attributes, 'Tablet' ), |
| 150 | - $this->get_block_container_css( $attributes, 'Mobile' ), | |
| 151 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_block_container_css( $attributes, $device ); } ) | |
| 144 | + $this->get_block_container_css( $attributes, 'Mobile' ) | |
| 152 | 145 | ); |
| 153 | 146 | |
| 154 | 147 | $css_generator->add_class_styles( |
| 155 | 148 | $attributes['isRootContainer'] ? '{{WRAPPER}} > .ablocks-block-container' : '{{WRAPPER}}', |
| @@ -154,17 +147,15 @@ | ||
| 154 | 147 | $css_generator->add_class_styles( |
| 155 | 148 | $attributes['isRootContainer'] ? '{{WRAPPER}} > .ablocks-block-container' : '{{WRAPPER}}', |
| 156 | 149 | $this->get_inner_blocks_closest_parent_css( $attributes ), |
| 157 | 150 | $this->get_inner_blocks_closest_parent_css( $attributes, 'Tablet' ), |
| 158 | - $this->get_inner_blocks_closest_parent_css( $attributes, 'Mobile' ), | |
| 159 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_inner_blocks_closest_parent_css( $attributes, $device ); } ) | |
| 151 | + $this->get_inner_blocks_closest_parent_css( $attributes, 'Mobile' ) | |
| 160 | 152 | ); |
| 161 | 153 | $css_generator->add_class_styles( |
| 162 | 154 | '{{WRAPPER}}.ablocks-has-block-container > .ablocks-block-container', |
| 163 | 155 | $this->get_inner_blocks_closest_parent_css( $attributes ), |
| 164 | 156 | $this->get_inner_blocks_closest_parent_css( $attributes, 'Tablet' ), |
| 165 | - $this->get_inner_blocks_closest_parent_css( $attributes, 'Mobile' ), | |
| 166 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_inner_blocks_closest_parent_css( $attributes, $device ); } ) | |
| 157 | + $this->get_inner_blocks_closest_parent_css( $attributes, 'Mobile' ) | |
| 167 | 158 | ); |
| 168 | 159 | |
| 169 | 160 | $css_generator->add_class_styles( |
| 170 | 161 | $attributes['isRootContainer'] ? '{{WRAPPER}} > .ablocks-block-container > *:not(style,.ablocks-block--container)' : '{{WRAPPER}}', |
| @@ -169,10 +160,9 @@ | ||
| 169 | 160 | $css_generator->add_class_styles( |
| 170 | 161 | $attributes['isRootContainer'] ? '{{WRAPPER}} > .ablocks-block-container > *:not(style,.ablocks-block--container)' : '{{WRAPPER}}', |
| 171 | 162 | $this->get_container_inner_blocks_row_column_display_css_2( $attributes ), |
| 172 | 163 | $this->get_container_inner_blocks_row_column_display_css_2( $attributes, 'Tablet' ), |
| 173 | - $this->get_container_inner_blocks_row_column_display_css_2( $attributes, 'Mobile' ), | |
| 174 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_container_inner_blocks_row_column_display_css_2( $attributes, $device ); } ) | |
| 164 | + $this->get_container_inner_blocks_row_column_display_css_2( $attributes, 'Mobile' ) | |
| 175 | 165 | ); |
| 176 | 166 | |
| 177 | 167 | $css_generator->add_class_styles( |
| 178 | 168 | '{{WRAPPER}}::before', |
| @@ -178,9 +168,8 @@ | ||
| 178 | 168 | '{{WRAPPER}}::before', |
| 179 | 169 | $this->get_container_before_css( $attributes ), |
| 180 | 170 | $this->get_container_before_css( $attributes, 'Tablet' ), |
| 181 | 171 | $this->get_container_before_css( $attributes, 'Mobile' ), |
| 182 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_container_before_css( $attributes, $device ); } ) | |
| 183 | 172 | ); |
| 184 | 173 | $css_generator->add_class_styles( |
| 185 | 174 | '{{WRAPPER}}:hover::before', |
| 186 | 175 | $this->get_container_before_hover_css( $attributes ), |
| @@ -185,9 +174,8 @@ | ||
| 185 | 174 | '{{WRAPPER}}:hover::before', |
| 186 | 175 | $this->get_container_before_hover_css( $attributes ), |
| 187 | 176 | $this->get_container_before_hover_css( $attributes, 'Tablet' ), |
| 188 | 177 | $this->get_container_before_hover_css( $attributes, 'Mobile' ), |
| 189 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_container_before_hover_css( $attributes, $device ); } ) | |
| 190 | 178 | ); |
| 191 | 179 | $css_generator->add_class_styles( |
| 192 | 180 | '{{WRAPPER}} .ablocks-container-shape-top > svg', |
| 193 | 181 | $this->getContainerShapeTopSvgCSS( $attributes ), |
| @@ -192,9 +180,8 @@ | ||
| 192 | 180 | '{{WRAPPER}} .ablocks-container-shape-top > svg', |
| 193 | 181 | $this->getContainerShapeTopSvgCSS( $attributes ), |
| 194 | 182 | $this->getContainerShapeTopSvgCSS( $attributes, 'Tablet' ), |
| 195 | 183 | $this->getContainerShapeTopSvgCSS( $attributes, 'Mobile' ), |
| 196 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->getContainerShapeTopSvgCSS( $attributes, $device ); } ) | |
| 197 | 184 | ); |
| 198 | 185 | $css_generator->add_class_styles( |
| 199 | 186 | '{{WRAPPER}} .ablocks-container-shape-bottom > svg', |
| 200 | 187 | $this->getContainerShapeBottomSvgCSS( $attributes ), |
| @@ -199,9 +186,8 @@ | ||
| 199 | 186 | '{{WRAPPER}} .ablocks-container-shape-bottom > svg', |
| 200 | 187 | $this->getContainerShapeBottomSvgCSS( $attributes ), |
| 201 | 188 | $this->getContainerShapeBottomSvgCSS( $attributes, 'Tablet' ), |
| 202 | 189 | $this->getContainerShapeBottomSvgCSS( $attributes, 'Mobile' ), |
| 203 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->getContainerShapeBottomSvgCSS( $attributes, $device ); } ) | |
| 204 | 190 | ); |
| 205 | 191 | |
| 206 | 192 | $css_generator->add_class_styles( |
| 207 | 193 | '{{WRAPPER}} .ablocks-container-shape-top', |
| @@ -207,9 +193,8 @@ | ||
| 207 | 193 | '{{WRAPPER}} .ablocks-container-shape-top', |
| 208 | 194 | $this->getContainerShapeTopCSS( $attributes ), |
| 209 | 195 | $this->getContainerShapeTopCSS( $attributes, 'Tablet' ), |
| 210 | 196 | $this->getContainerShapeTopCSS( $attributes, 'Mobile' ), |
| 211 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->getContainerShapeTopCSS( $attributes, $device ); } ) | |
| 212 | 197 | ); |
| 213 | 198 | $css_generator->add_class_styles( |
| 214 | 199 | '{{WRAPPER}} .ablocks-container-shape-bottom', |
| 215 | 200 | $this->getContainerShapeBottomCSS( $attributes ), |
| @@ -214,9 +199,8 @@ | ||
| 214 | 199 | '{{WRAPPER}} .ablocks-container-shape-bottom', |
| 215 | 200 | $this->getContainerShapeBottomCSS( $attributes ), |
| 216 | 201 | $this->getContainerShapeBottomCSS( $attributes, 'Tablet' ), |
| 217 | 202 | $this->getContainerShapeBottomCSS( $attributes, 'Mobile' ), |
| 218 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->getContainerShapeBottomCSS( $attributes, $device ); } ) | |
| 219 | 203 | ); |
| 220 | 204 | |
| 221 | 205 | return $css_generator->generate_css(); |
| 222 | 206 | } |