PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.8
Elementor Website Builder – more than just a page builder v3.35.8
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 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | modules/atomic-widgets/styles/style-schema.php +4 -72 4.1.0-beta23.35.8 View file →
@@ -23,9 +23,8 @@
23 23 use Elementor\Modules\AtomicWidgets\PropTypes\Transition_Prop_Type;
24 24 use Elementor\Modules\AtomicWidgets\PropTypes\Union_Prop_Type;
25 25 use Elementor\Modules\AtomicWidgets\PropTypes\Flex_Prop_Type;
26 26 use Elementor\Modules\AtomicWidgets\PropDependencies\Manager as Dependency_Manager;
27 -use Elementor\Modules\AtomicWidgets\PropTypes\Span_Prop_Type;
28 27
29 28 if ( ! defined( 'ABSPATH' ) ) {
30 29 exit; // Exit if accessed directly.
31 30 }
@@ -45,9 +44,8 @@
45 44 self::get_background_props(),
46 45 self::get_effects_props(),
47 46 self::get_layout_props(),
48 47 self::get_alignment_props(),
49 - self::get_special_props(),
50 48 );
51 49 }
52 50
53 51 private static function get_size_props() {
@@ -90,20 +88,8 @@
90 88 ];
91 89 }
92 90
93 91 private static function get_position_props() {
94 - $non_static_dependency = Dependency_Manager::make( Dependency_Manager::RELATION_AND )
95 - ->where( [
96 - 'operator' => 'exists',
97 - 'path' => [ 'position' ],
98 - ] )
99 - ->where( [
100 - 'operator' => 'ne',
101 - 'path' => [ 'position' ],
102 - 'value' => 'static',
103 - ] )
104 - ->get();
105 -
106 92 return [
107 93 'position' => String_Prop_Type::make()->enum( [
108 94 'static',
109 95 'relative',
@@ -110,20 +96,12 @@
110 96 'absolute',
111 97 'fixed',
112 98 'sticky',
113 99 ] )->description( 'The CSS position property specifies the type of positioning method used for an element (static, relative, absolute, fixed, or sticky).' ),
114 - 'inset-block-start' => Size_Prop_Type::make()
115 - ->description( 'Size PropType for the inset-block-start CSS property' )
116 - ->set_dependencies( $non_static_dependency ),
117 - 'inset-inline-end' => Size_Prop_Type::make()
118 - ->description( 'Size PropType for the inset-inline-end CSS property' )
119 - ->set_dependencies( $non_static_dependency ),
120 - 'inset-block-end' => Size_Prop_Type::make()
121 - ->description( 'Size PropType for the inset-block-end CSS property' )
122 - ->set_dependencies( $non_static_dependency ),
123 - 'inset-inline-start' => Size_Prop_Type::make()
124 - ->description( 'Size PropType for the inset-inline-start CSS property' )
125 - ->set_dependencies( $non_static_dependency ),
100 + 'inset-block-start' => Size_Prop_Type::make()->description( 'Size PropType for the inset-block-start CSS property' ),
101 + 'inset-inline-end' => Size_Prop_Type::make()->description( 'Size PropType for the inset-inline-end CSS property' ),
102 + 'inset-block-end' => Size_Prop_Type::make()->description( 'Size PropType for the inset-block-end CSS property' ),
103 + 'inset-inline-start' => Size_Prop_Type::make()->description( 'Size PropType for the inset-inline-start CSS property' ),
126 104 'z-index' => Number_Prop_Type::make()
127 105 ->description( 'The z-index CSS property sets the z-order of a positioned element and its descendants or flex items. It specifies the stack order of elements.' ),
128 106 'scroll-margin-top' => Size_Prop_Type::make()->units( Size_Constants::anchor_offset() ),
129 107 ];
@@ -250,23 +228,8 @@
250 228 ->description( 'The border style in CSS values' ),
251 229 'outline-width' => Size_Prop_Type::make()
252 230 ->units( Size_Constants::border() )
253 231 ->description( 'The width of the outline in Size PropType format' ),
254 - '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.' ),
255 - 'outline-style' => String_Prop_Type::make()->enum( [
256 - 'none',
257 - 'hidden',
258 - 'dotted',
259 - 'dashed',
260 - 'solid',
261 - 'double',
262 - 'groove',
263 - 'ridge',
264 - 'inset',
265 - 'outset',
266 - ] )->description( 'The outline style in CSS values' ),
267 - 'outline-offset' => Size_Prop_Type::make()->units( Size_Constants::border() )->description( 'The offset of the outline, specified as a length in Size PropType format' ),
268 -
269 232 ];
270 233 }
271 234
272 235 private static function get_background_props() {
@@ -342,19 +305,8 @@
342 305 'nowrap',
343 306 'wrap-reverse',
344 307 ] )->description( 'Specifies whether the flex items should wrap or not. CSS values: wrap, nowrap, wrap-reverse' ),
345 308 'flex' => Flex_Prop_Type::make(),
346 - 'grid-template-columns' => String_Prop_Type::make()
347 - ->description( 'Defines the columns of a grid container. Accepts any valid CSS grid-template-columns value, e.g. repeat(3, 1fr) or 100px 200px auto.' ),
348 - 'grid-template-rows' => String_Prop_Type::make()
349 - ->description( 'Defines the rows of a grid container. Accepts any valid CSS grid-template-rows value, e.g. repeat(3, 1fr) or 100px 200px auto.' ),
350 - 'grid-auto-flow' => String_Prop_Type::make()
351 - ->enum( [ 'row', 'column', 'row dense', 'column dense' ] )
352 - ->description( 'Controls how auto-placed items flow in the grid. CSS values: row, column, row dense, column dense.' ),
353 - 'grid-column' => Span_Prop_Type::make()
354 - ->description( 'Defines a grid item column placement. Accepts values like span N or any valid CSS grid-column value.' ),
355 - 'grid-row' => Span_Prop_Type::make()
356 - ->description( 'Defines a grid item row placement. Accepts values like span N or any valid CSS grid-row value.' ),
357 309 ];
358 310 }
359 311
360 312 private static function get_alignment_props() {
@@ -373,20 +325,8 @@
373 325 'space-evenly',
374 326 'stretch',
375 327 ] )
376 328 ->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' ),
377 - 'justify-items' => String_Prop_Type::make()->enum( [
378 - 'normal',
379 - 'stretch',
380 - 'center',
381 - 'start',
382 - 'end',
383 - 'flex-start',
384 - 'flex-end',
385 - 'left',
386 - 'right',
387 - 'anchor-center',
388 - ] )->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' ),
389 329 'align-content' => String_Prop_Type::make()->enum( [
390 330 'center',
391 331 'start',
392 332 'end',
@@ -423,15 +363,7 @@
423 363 'last baseline',
424 364 'stretch',
425 365 ] )->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' ),
426 366 'order' => Number_Prop_Type::make()->description( 'Specifies the order of the flex items. Items with lower order values are displayed first.' ),
427 - ];
428 - }
429 -
430 - private static function get_special_props() {
431 - return [
432 - 'content' => String_Prop_Type::make()->description( 'The string content for pseudo-element content property' ),
433 - 'appearance' => String_Prop_Type::make()->enum( [ 'none', 'auto' ] )->description( 'The appearance of the element. CSS values: none, auto' ),
434 - 'clip-path' => String_Prop_Type::make()->description( 'The clip-path CSS property defines a shape to be used as clipping region.' ),
435 367 ];
436 368 }
437 369 }