@wordpress/base-styles 4.0.2 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/_colors.native.scss +3 -0
- package/_mixins.scss +2 -6
- package/_z-index.scss +11 -1
- package/package.json +2 -2
package/LICENSE.md
CHANGED
package/_colors.native.scss
CHANGED
|
@@ -80,6 +80,9 @@ $gray-80: #2c3338;
|
|
|
80
80
|
$gray-90: #1d2327;
|
|
81
81
|
$gray-100: #101517;
|
|
82
82
|
|
|
83
|
+
$yellow-30: #deb100;
|
|
84
|
+
$yellow-50: #9d6e00;
|
|
85
|
+
|
|
83
86
|
// neutral (light) - black is a base color in light mode
|
|
84
87
|
$light-primary: #000d; //rgba(0, 0, 0, 0.87);
|
|
85
88
|
$light-secondary: #0009; //rgba(0, 0, 0, 0.6);
|
package/_mixins.scss
CHANGED
|
@@ -214,16 +214,12 @@
|
|
|
214
214
|
transition-duration: 0s;
|
|
215
215
|
transition-delay: 0s;
|
|
216
216
|
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
@else if $property == "animation" {
|
|
217
|
+
} @else if $property == "animation" {
|
|
220
218
|
@media (prefers-reduced-motion: reduce) {
|
|
221
219
|
animation-duration: 1ms;
|
|
222
220
|
animation-delay: 0s;
|
|
223
221
|
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
@else {
|
|
222
|
+
} @else {
|
|
227
223
|
@media (prefers-reduced-motion: reduce) {
|
|
228
224
|
transition-duration: 0s;
|
|
229
225
|
transition-delay: 0s;
|
package/_z-index.scss
CHANGED
|
@@ -11,6 +11,7 @@ $z-layers: (
|
|
|
11
11
|
".block-editor-block-list__block-selection-button": 22,
|
|
12
12
|
".components-form-toggle__input": 1,
|
|
13
13
|
".edit-post-text-editor__toolbar": 1,
|
|
14
|
+
".edit-site-code-editor__toolbar": 1,
|
|
14
15
|
".edit-post-sidebar__panel-tab.is-active": 1,
|
|
15
16
|
|
|
16
17
|
// These next three share a stacking context
|
|
@@ -39,10 +40,14 @@ $z-layers: (
|
|
|
39
40
|
".wp-block-cover__inner-container": 1, // InnerBlocks area inside cover image block
|
|
40
41
|
".wp-block-cover.is-placeholder .components-placeholder.is-large": 1, // Cover block resizer component inside a large placeholder.
|
|
41
42
|
".wp-block-cover.has-background-dim::before": 1, // Overlay area inside block cover need to be higher than the video background.
|
|
43
|
+
".block-library-cover__padding-visualizer": 2, // BoxControl visualizer needs to be +1 higher than .wp-block-cover.has-background-dim::before
|
|
42
44
|
".wp-block-cover__image-background": 0, // Image background inside cover block.
|
|
43
45
|
".wp-block-cover__video-background": 0, // Video background inside cover block.
|
|
44
46
|
".wp-block-template-part__placeholder-preview-filter-input": 1,
|
|
45
47
|
|
|
48
|
+
// Fixed position appender:
|
|
49
|
+
".block-editor-block-list__block .block-list-appender": 2,
|
|
50
|
+
|
|
46
51
|
// Navigation menu dropdown.
|
|
47
52
|
".has-child .wp-block-navigation__submenu-container": 28,
|
|
48
53
|
".has-child:hover .wp-block-navigation__submenu-container": 29,
|
|
@@ -115,6 +120,8 @@ $z-layers: (
|
|
|
115
120
|
|
|
116
121
|
// Show the navigation toggle above the skeleton header
|
|
117
122
|
".edit-site-navigation-toggle": 31,
|
|
123
|
+
// Show the navigation link above the skeleton header
|
|
124
|
+
".edit-site-navigation-link": 31,
|
|
118
125
|
|
|
119
126
|
// Show the FSE template previews above the editor and any open block toolbars
|
|
120
127
|
".edit-site-navigation-panel__preview": 32,
|
|
@@ -137,7 +144,10 @@ $z-layers: (
|
|
|
137
144
|
|
|
138
145
|
// Should be above the popover (dropdown)
|
|
139
146
|
".reusable-blocks-menu-items__convert-modal": 1000001,
|
|
140
|
-
".edit-site-template-part-
|
|
147
|
+
".edit-site-create-template-part-modal": 1000001,
|
|
148
|
+
|
|
149
|
+
// Note: The ConfirmDialog component's z-index is being set to 1000001 in packages/components/src/confirm-dialog/styles.ts
|
|
150
|
+
// because it uses emotion and not sass. We need it to render on top its parent popover.
|
|
141
151
|
|
|
142
152
|
// ...Except for popovers immediately beneath wp-admin menu on large breakpoints
|
|
143
153
|
".components-popover.block-editor-inserter__popover": 99999,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/base-styles",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Base SCSS utilities and variables for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "d95ccb9366e249133cdb1d7b25c382446b9ee502"
|
|
27
27
|
}
|