@wordpress/base-styles 5.5.0 → 5.7.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 +4 -0
- package/_animations.scss +2 -2
- package/_colors.scss +3 -1
- package/_mixins.scss +4 -4
- package/_variables.scss +19 -9
- package/_z-index.scss +2 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/_animations.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@mixin edit-post__fade-in-animation($speed: 0.
|
|
2
|
-
animation: edit-post__fade-in-animation $speed
|
|
1
|
+
@mixin edit-post__fade-in-animation($speed: 0.08s, $delay: 0s) {
|
|
2
|
+
animation: edit-post__fade-in-animation $speed linear $delay;
|
|
3
3
|
animation-fill-mode: forwards;
|
|
4
4
|
@include reduce-motion("animation");
|
|
5
5
|
}
|
package/_colors.scss
CHANGED
|
@@ -17,7 +17,6 @@ $gray-100: #f0f0f0; // Used for light gray backgrounds.
|
|
|
17
17
|
$white: #fff;
|
|
18
18
|
|
|
19
19
|
// Opacities & additional colors.
|
|
20
|
-
$dark-theme-focus: $white; // Focus color when the theme is dark.
|
|
21
20
|
$dark-gray-placeholder: rgba($gray-900, 0.62);
|
|
22
21
|
$medium-gray-placeholder: rgba($gray-900, 0.55);
|
|
23
22
|
$light-gray-placeholder: rgba($white, 0.65);
|
|
@@ -26,3 +25,6 @@ $light-gray-placeholder: rgba($white, 0.65);
|
|
|
26
25
|
$alert-yellow: #f0b849;
|
|
27
26
|
$alert-red: #cc1818;
|
|
28
27
|
$alert-green: #4ab866;
|
|
28
|
+
|
|
29
|
+
// Deprecated, please avoid using these.
|
|
30
|
+
$dark-theme-focus: $white; // Focus color when the theme is dark.
|
package/_mixins.scss
CHANGED
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
@mixin input-style__neutral() {
|
|
75
75
|
box-shadow: 0 0 0 transparent;
|
|
76
76
|
transition: box-shadow 0.1s linear;
|
|
77
|
-
border-radius: $radius-
|
|
77
|
+
border-radius: $radius-small;
|
|
78
78
|
border: $border-width solid $gray-600;
|
|
79
79
|
@include reduce-motion("transition");
|
|
80
80
|
}
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
border: $border-width solid $gray-900;
|
|
228
228
|
margin-right: $grid-unit-15;
|
|
229
229
|
transition: none;
|
|
230
|
-
border-radius: $radius-
|
|
230
|
+
border-radius: $radius-small;
|
|
231
231
|
|
|
232
232
|
&:focus {
|
|
233
233
|
box-shadow: 0 0 0 ($border-width * 2) $white, 0 0 0 ($border-width * 2 + $border-width-focus-fallback) var(--wp-admin-theme-color);
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
&:focus {
|
|
364
364
|
color: var(--wp-admin-theme-color--rgb);
|
|
365
365
|
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color, #007cba);
|
|
366
|
-
border-radius: $radius-
|
|
366
|
+
border-radius: $radius-small;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
padding: $grid-unit-15 !important;
|
|
376
376
|
border: $border-width solid $gray-900 !important;
|
|
377
377
|
box-shadow: none !important;
|
|
378
|
-
border-radius: $radius-
|
|
378
|
+
border-radius: $radius-small !important;
|
|
379
379
|
|
|
380
380
|
// Fonts smaller than 16px causes mobile safari to zoom.
|
|
381
381
|
font-size: $mobile-text-min-font-size !important;
|
package/_variables.scss
CHANGED
|
@@ -47,9 +47,25 @@ $radius-x-small: 1px; // Applied to elements like buttons nested within primit
|
|
|
47
47
|
$radius-small: 2px; // Applied to most primitives.
|
|
48
48
|
$radius-medium: 4px; // Applied to containers with smaller padding.
|
|
49
49
|
$radius-large: 8px; // Applied to containers with larger padding.
|
|
50
|
-
$radius-full: 9999px; // For
|
|
50
|
+
$radius-full: 9999px; // For pills.
|
|
51
51
|
$radius-round: 50%; // For circles and ovals.
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* Elevation scale.
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
// For sections and containers that group related content and controls, which may overlap other content. Example: Preview Frame.
|
|
58
|
+
$elevation-x-small: 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);
|
|
59
|
+
|
|
60
|
+
// For components that provide contextual feedback without being intrusive. Generally non-interruptive. Example: Tooltips, Snackbar.
|
|
61
|
+
$elevation-small: 0 0.7px 1px 0 rgba(0, 0, 0, 0.12), 0 2.2px 3.7px -0.2px rgba(0, 0, 0, 0.12), 0 5.3px 7.3px -0.5px rgba(0, 0, 0, 0.12);
|
|
62
|
+
|
|
63
|
+
// For components that offer additional actions. Example: Menus, Command Palette
|
|
64
|
+
$elevation-medium: 0 0.7px 1px 0 rgba(0, 0, 0, 0.14), 0 4.2px 5.7px -0.2px rgba(0, 0, 0, 0.14), 0 7.3px 9.3px -0.5px rgba(0, 0, 0, 0.14);
|
|
65
|
+
|
|
66
|
+
// For components that confirm decisions or handle necessary interruptions. Example: Modals.
|
|
67
|
+
$elevation-large: 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);
|
|
68
|
+
|
|
53
69
|
/**
|
|
54
70
|
* Dimensions.
|
|
55
71
|
*/
|
|
@@ -74,14 +90,6 @@ $modal-width-large: 840px;
|
|
|
74
90
|
$spinner-size: 16px;
|
|
75
91
|
$canvas-padding: $grid-unit-20;
|
|
76
92
|
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Shadows.
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
$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);
|
|
83
|
-
$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);
|
|
84
|
-
|
|
85
93
|
/**
|
|
86
94
|
* Editor widths.
|
|
87
95
|
*/
|
|
@@ -107,6 +115,8 @@ $radio-input-size-sm: 24px; // Width & height for small viewports.
|
|
|
107
115
|
// Deprecated, please avoid using these.
|
|
108
116
|
$block-padding: 14px; // Used to define space between block footprint and surrouding borders.
|
|
109
117
|
$radius-block-ui: $radius-small;
|
|
118
|
+
$shadow-popover: $elevation-x-small;
|
|
119
|
+
$shadow-modal: $elevation-large;
|
|
110
120
|
|
|
111
121
|
|
|
112
122
|
/**
|
package/_z-index.scss
CHANGED
|
@@ -131,7 +131,6 @@ $z-layers: (
|
|
|
131
131
|
".block-editor-template-part__selection-modal": 1000001,
|
|
132
132
|
".block-editor-block-rename-modal": 1000001,
|
|
133
133
|
".edit-site-list__rename-modal": 1000001,
|
|
134
|
-
".dataviews-bulk-actions__modal": 1000001,
|
|
135
134
|
".dataviews-action-modal": 1000001,
|
|
136
135
|
".editor-action-modal": 1000001,
|
|
137
136
|
".editor-post-template__swap-template-modal": 1000001,
|
|
@@ -194,7 +193,6 @@ $z-layers: (
|
|
|
194
193
|
// Site editor layout
|
|
195
194
|
".edit-site-page-header": 2,
|
|
196
195
|
".edit-site-page-content": 1,
|
|
197
|
-
".edit-site-patterns__dataviews-list-pagination": 2,
|
|
198
196
|
".edit-site-templates__dataviews-list-pagination": 2,
|
|
199
197
|
".edit-site-layout__canvas-container": 2,
|
|
200
198
|
".edit-site-layout__sidebar": 1,
|
|
@@ -211,8 +209,8 @@ $z-layers: (
|
|
|
211
209
|
// Ensure selection checkbox stays above the preview field.
|
|
212
210
|
".dataviews-view-grid__card .dataviews-selection-checkbox": 1,
|
|
213
211
|
|
|
214
|
-
// Ensure
|
|
215
|
-
".dataviews-
|
|
212
|
+
// Ensure footer stays above the preview field.
|
|
213
|
+
".dataviews-footer": 2,
|
|
216
214
|
);
|
|
217
215
|
|
|
218
216
|
@function z-index( $key ) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/base-styles",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.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",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "c90d920de07c53dff82c5914635b56fafa503b7f"
|
|
31
31
|
}
|