@wordpress/base-styles 4.0.4 → 4.1.1-next.f435e9e01b.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/README.md +7 -1
- package/_colors.native.scss +3 -0
- package/_mixins.scss +2 -6
- package/_variables.scss +1 -1
- package/_z-index.scss +5 -0
- package/package.json +2 -2
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -40,4 +40,10 @@ To make that work with [`sass`](https://www.npmjs.com/package/sass) or [`node-sa
|
|
|
40
40
|
}
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
## Contributing to this package
|
|
44
|
+
|
|
45
|
+
This is an individual package that's part of the Gutenberg project. The project is organized as a monorepo. It's made up of multiple self-contained software packages, each with a specific purpose. The packages in this monorepo are published to [npm](https://www.npmjs.com/) and used by [WordPress](https://make.wordpress.org/core/) as well as other software projects.
|
|
46
|
+
|
|
47
|
+
To find out more about contributing to this package or Gutenberg as a whole, please read the project's main [contributor guide](https://github.com/WordPress/gutenberg/tree/HEAD/CONTRIBUTING.md).
|
|
48
|
+
|
|
49
|
+
<br /><br /><p align="center"><img src="https://s.w.org/style/images/codeispoetry.png?1" alt="Code is Poetry." /></p>
|
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/_variables.scss
CHANGED
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,6 +40,7 @@ $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,
|
|
@@ -144,6 +146,9 @@ $z-layers: (
|
|
|
144
146
|
".reusable-blocks-menu-items__convert-modal": 1000001,
|
|
145
147
|
".edit-site-create-template-part-modal": 1000001,
|
|
146
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.
|
|
151
|
+
|
|
147
152
|
// ...Except for popovers immediately beneath wp-admin menu on large breakpoints
|
|
148
153
|
".components-popover.block-editor-inserter__popover": 99999,
|
|
149
154
|
".components-popover.table-of-contents__popover": 99998,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/base-styles",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.1-next.f435e9e01b.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": "14b2846015dfb1b440ce93accdd03842ebe5f1cd"
|
|
27
27
|
}
|