PluginProbe
Elementor Website Builder – more than just a page builder / 3.34.0-beta1
Elementor Website Builder – more than just a page builder v3.34.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
← All changes | modules/atomic-widgets/styles/style-schema.php +5 -42 4.0.9 → 3.34.0-beta1 View file →
@@ -44,9 +44,8 @@
44 44 self::get_background_props(),
45 45 self::get_effects_props(),
46 46 self::get_layout_props(),
47 47 self::get_alignment_props(),
48 - self::get_special_props(),
49 48 );
50 49 }
51 50
52 51 private static function get_size_props() {
@@ -195,12 +194,11 @@
195 194 ->units( Size_Constants::spacing() )
196 195 ->description( 'Padding css in Size PropType format' )
197 196 ),
198 197 'margin' => Union_Prop_Type::make()
199 - ->add_prop_type( Dimensions_Prop_Type::make_with_units( Size_Constants::spacing_margin() ) )
198 + ->add_prop_type( Dimensions_Prop_Type::make() )
200 199 ->add_prop_type(
201 200 Size_Prop_Type::make()
202 - ->units( Size_Constants::spacing_margin() )
203 201 ->description( 'Margin css in Size PropType format' )
204 202 ),
205 203 ];
206 204 }
@@ -207,13 +205,13 @@
207 205
208 206 private static function get_border_props() {
209 207 return [
210 208 'border-radius' => Union_Prop_Type::make()
211 - ->add_prop_type( Border_Radius_Prop_Type::make() )
212 - ->add_prop_type( Size_Prop_Type::make()->units( Size_Constants::border() ) ),
209 + ->add_prop_type( Size_Prop_Type::make()->units( Size_Constants::border() ) )
210 + ->add_prop_type( Border_Radius_Prop_Type::make() ),
213 211 'border-width' => Union_Prop_Type::make()
214 - ->add_prop_type( Border_Width_Prop_Type::make() )
215 - ->add_prop_type( Size_Prop_Type::make()->units( Size_Constants::border() ) ),
212 + ->add_prop_type( Size_Prop_Type::make()->units( Size_Constants::border() ) )
213 + ->add_prop_type( Border_Width_Prop_Type::make() ),
216 214 'border-color' => Color_Prop_Type::make()->description( 'The border color, specified as a hex code, rgb(a), hsl(a), or a standard css color name.' ),
217 215 'border-style' => String_Prop_Type::make()->enum( [
218 216 'none',
219 217 'hidden',
@@ -229,23 +227,8 @@
229 227 ->description( 'The border style in CSS values' ),
230 228 'outline-width' => Size_Prop_Type::make()
231 229 ->units( Size_Constants::border() )
232 230 ->description( 'The width of the outline in Size PropType format' ),
233 - 'outline-color' => Color_Prop_Type::make()->description( 'The color of the outline, specified as a hex code, rgb(a), hsl(a), or a standard css color name.' ),
234 - 'outline-style' => String_Prop_Type::make()->enum( [
235 - 'none',
236 - 'hidden',
237 - 'dotted',
238 - 'dashed',
239 - 'solid',
240 - 'double',
241 - 'groove',
242 - 'ridge',
243 - 'inset',
244 - 'outset',
245 - ] )->description( 'The outline style in CSS values' ),
246 - 'outline-offset' => Size_Prop_Type::make()->units( Size_Constants::border() )->description( 'The offset of the outline, specified as a length in Size PropType format' ),
247 -
248 231 ];
249 232 }
250 233
251 234 private static function get_background_props() {
@@ -341,20 +324,8 @@
341 324 'space-evenly',
342 325 'stretch',
343 326 ] )
344 327 ->description( 'Defines how the browser distributes space between and around content items along the main-axis of a flex container. CSS values: center, start, end, flex-start, flex-end, left, right, normal, space-between, space-around, space-evenly, stretch' ),
345 - 'justify-items' => String_Prop_Type::make()->enum( [
346 - 'normal',
347 - 'stretch',
348 - 'center',
349 - 'start',
350 - 'end',
351 - 'flex-start',
352 - 'flex-end',
353 - 'left',
354 - 'right',
355 - 'anchor-center',
356 - ] )->description( 'Defines how the browser distributes space between and around content items along the inline axis of a grid container. CSS values: center, start, end, flex-start, flex-end, left, right' ),
357 328 'align-content' => String_Prop_Type::make()->enum( [
358 329 'center',
359 330 'start',
360 331 'end',
@@ -391,15 +362,7 @@
391 362 'last baseline',
392 363 'stretch',
393 364 ] )->description( 'Allows the default alignment (or the one specified by align-items) to be overridden for individual flex items. CSS values: auto, normal, center, start, end, self-start, self-end, flex-start, flex-end, anchor-center, baseline, first baseline, last baseline, stretch' ),
394 365 'order' => Number_Prop_Type::make()->description( 'Specifies the order of the flex items. Items with lower order values are displayed first.' ),
395 - ];
396 - }
397 -
398 - private static function get_special_props() {
399 - return [
400 - 'content' => String_Prop_Type::make()->description( 'The string content for pseudo-element content property' ),
401 - 'appearance' => String_Prop_Type::make()->enum( [ 'none', 'auto' ] )->description( 'The appearance of the element. CSS values: none, auto' ),
402 - 'clip-path' => String_Prop_Type::make()->description( 'The clip-path CSS property defines a shape to be used as clipping region.' ),
403 366 ];
404 367 }
405 368 }