@wordpress/base-styles 4.12.0 → 4.14.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/CHANGELOG.md +8 -0
- package/_colors.scss +2 -0
- package/_default-custom-properties.scss +2 -0
- package/_mixins.scss +34 -1
- package/_variables.scss +3 -3
- package/_z-index.scss +3 -11
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 4.14.0 (2022-12-14)
|
|
6
|
+
|
|
7
|
+
### Enhancements
|
|
8
|
+
|
|
9
|
+
- Lighten the border color in the `input-style__neutral` mixin ([#46252](https://github.com/WordPress/gutenberg/pull/46252)).
|
|
10
|
+
|
|
11
|
+
## 4.13.0 (2022-11-16)
|
|
12
|
+
|
|
5
13
|
## 4.12.0 (2022-11-02)
|
|
6
14
|
|
|
7
15
|
## 4.11.0 (2022-10-19)
|
package/_colors.scss
CHANGED
package/_mixins.scss
CHANGED
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
box-shadow: 0 0 0 transparent;
|
|
132
132
|
transition: box-shadow 0.1s linear;
|
|
133
133
|
border-radius: $radius-block-ui;
|
|
134
|
-
border: $border-width solid $gray-
|
|
134
|
+
border: $border-width solid $gray-600;
|
|
135
135
|
@include reduce-motion("transition");
|
|
136
136
|
}
|
|
137
137
|
|
|
@@ -550,3 +550,36 @@
|
|
|
550
550
|
}
|
|
551
551
|
/* stylelint-enable function-comma-space-after */
|
|
552
552
|
}
|
|
553
|
+
|
|
554
|
+
@mixin custom-scrollbars-on-hover() {
|
|
555
|
+
visibility: hidden;
|
|
556
|
+
|
|
557
|
+
$handle-color: #757575;
|
|
558
|
+
$track-color: #1e1e1e;
|
|
559
|
+
|
|
560
|
+
// WebKit
|
|
561
|
+
&::-webkit-scrollbar {
|
|
562
|
+
width: 12px;
|
|
563
|
+
height: 12px;
|
|
564
|
+
}
|
|
565
|
+
&::-webkit-scrollbar-track {
|
|
566
|
+
background-color: $track-color;
|
|
567
|
+
}
|
|
568
|
+
&::-webkit-scrollbar-thumb {
|
|
569
|
+
background-color: $handle-color;
|
|
570
|
+
border-radius: 8px;
|
|
571
|
+
border: 3px solid transparent;
|
|
572
|
+
background-clip: padding-box;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
// Firefox 109+ and Chrome 111+
|
|
576
|
+
scrollbar-color: $handle-color $track-color; // Syntax, "dark", "light", or "#handle-color #track-color"
|
|
577
|
+
scrollbar-width: thin;
|
|
578
|
+
scrollbar-gutter: stable;
|
|
579
|
+
|
|
580
|
+
&:hover,
|
|
581
|
+
&:focus,
|
|
582
|
+
& > * {
|
|
583
|
+
visibility: visible;
|
|
584
|
+
}
|
|
585
|
+
}
|
package/_variables.scss
CHANGED
|
@@ -57,15 +57,15 @@ $admin-sidebar-width-big: 190px;
|
|
|
57
57
|
$admin-sidebar-width-collapsed: 36px;
|
|
58
58
|
$modal-min-width: 360px;
|
|
59
59
|
$spinner-size: 16px;
|
|
60
|
+
$canvas-padding: $grid-unit-30;
|
|
60
61
|
|
|
61
62
|
|
|
62
63
|
/**
|
|
63
64
|
* Shadows.
|
|
64
65
|
*/
|
|
65
66
|
|
|
66
|
-
$shadow-popover: 0 2px
|
|
67
|
-
$shadow-modal: 0
|
|
68
|
-
|
|
67
|
+
$shadow-popover: 0 0.7px 1px rgba($black, 0.1), 0 1.2px 1.7px -0.2px rgba($black, 0.1), 0 2.3px 3.3px -0.5px rgba($black, 0.1);
|
|
68
|
+
$shadow-modal: 0 0.7px 1px rgba($black, 0.15), 0 2.7px 3.8px -0.2px rgba($black, 0.15), 0 5.5px 7.8px -0.3px rgba($black, 0.15), 0.1px 11.5px 16.4px -0.5px rgba($black, 0.15);
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Editor widths.
|
package/_z-index.scss
CHANGED
|
@@ -7,15 +7,13 @@ $z-layers: (
|
|
|
7
7
|
".block-editor-block-switcher__arrow": 1,
|
|
8
8
|
".block-editor-block-list__block {core/image aligned wide or fullwide}": 20,
|
|
9
9
|
".block-library-classic__toolbar": 31, // When scrolled to top this toolbar needs to sit over block-editor-block-toolbar
|
|
10
|
-
".block-editor-block-list__layout .reusable-block-indicator": 1,
|
|
11
10
|
".block-editor-block-list__block-selection-button": 22,
|
|
12
11
|
".components-form-toggle__input": 1,
|
|
13
12
|
".edit-post-text-editor__toolbar": 1,
|
|
14
13
|
".edit-site-code-editor__toolbar": 1,
|
|
15
|
-
".edit-post-sidebar__panel-tab.is-active": 1,
|
|
16
14
|
|
|
17
15
|
// These next three share a stacking context
|
|
18
|
-
".block-library-template-part__selection-search":
|
|
16
|
+
".block-library-template-part__selection-search": 2, // higher sticky element
|
|
19
17
|
|
|
20
18
|
// These next two share a stacking context
|
|
21
19
|
".interface-complementary-area .components-panel" : 0, // lower scrolling content
|
|
@@ -109,14 +107,6 @@ $z-layers: (
|
|
|
109
107
|
// Show interface skeleton footer above interface skeleton drawer
|
|
110
108
|
".interface-interface-skeleton__footer": 90,
|
|
111
109
|
|
|
112
|
-
// Show the navigation toggle above the skeleton header
|
|
113
|
-
".edit-site-navigation-toggle": 31,
|
|
114
|
-
// Show the navigation link above the skeleton header
|
|
115
|
-
".edit-site-navigation-link": 31,
|
|
116
|
-
|
|
117
|
-
// Show the FSE template previews above the editor and any open block toolbars
|
|
118
|
-
".edit-site-navigation-panel__preview": 32,
|
|
119
|
-
|
|
120
110
|
// Above the block list and the header.
|
|
121
111
|
".block-editor-block-popover": 31,
|
|
122
112
|
|
|
@@ -187,6 +177,8 @@ $z-layers: (
|
|
|
187
177
|
|
|
188
178
|
// Appear under the topbar.
|
|
189
179
|
".customize-widgets__block-toolbar": 7,
|
|
180
|
+
|
|
181
|
+
".is-focusing-regions [role='region']:focus .interface-navigable-region__stacker": -1,
|
|
190
182
|
);
|
|
191
183
|
|
|
192
184
|
@function z-index( $key ) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/base-styles",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.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": "1eb65aabe6738097f4c062e78f69ae8f05879848"
|
|
27
27
|
}
|