@wordpress/base-styles 5.2.0 → 5.4.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/_mixins.scss +28 -5
- package/_variables.scss +2 -2
- package/_z-index.scss +5 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/_mixins.scss
CHANGED
|
@@ -318,6 +318,7 @@
|
|
|
318
318
|
height: $radio-input-size-sm;
|
|
319
319
|
min-width: $radio-input-size-sm;
|
|
320
320
|
max-width: $radio-input-size-sm;
|
|
321
|
+
position: relative;
|
|
321
322
|
|
|
322
323
|
@include break-small() {
|
|
323
324
|
height: $radio-input-size;
|
|
@@ -328,9 +329,12 @@
|
|
|
328
329
|
|
|
329
330
|
&:checked::before {
|
|
330
331
|
box-sizing: inherit;
|
|
331
|
-
width:
|
|
332
|
-
height:
|
|
333
|
-
|
|
332
|
+
width: math.div($radio-input-size-sm, 2);
|
|
333
|
+
height: math.div($radio-input-size-sm, 2);
|
|
334
|
+
position: absolute;
|
|
335
|
+
top: 50%;
|
|
336
|
+
left: 50%;
|
|
337
|
+
transform: translate(-50%, -50%);
|
|
334
338
|
margin: 0;
|
|
335
339
|
background-color: $white;
|
|
336
340
|
|
|
@@ -338,7 +342,8 @@
|
|
|
338
342
|
border: 4px solid $white;
|
|
339
343
|
|
|
340
344
|
@include break-small() {
|
|
341
|
-
|
|
345
|
+
width: math.div($radio-input-size, 2);
|
|
346
|
+
height: math.div($radio-input-size, 2);
|
|
342
347
|
}
|
|
343
348
|
}
|
|
344
349
|
|
|
@@ -351,7 +356,7 @@
|
|
|
351
356
|
|
|
352
357
|
&:checked {
|
|
353
358
|
background: var(--wp-admin-theme-color);
|
|
354
|
-
border
|
|
359
|
+
border: none;
|
|
355
360
|
}
|
|
356
361
|
}
|
|
357
362
|
|
|
@@ -597,3 +602,21 @@
|
|
|
597
602
|
}
|
|
598
603
|
}
|
|
599
604
|
}
|
|
605
|
+
|
|
606
|
+
@mixin selected-block-outline($widthRatio: 1) {
|
|
607
|
+
outline-color: var(--wp-admin-theme-color);
|
|
608
|
+
outline-style: solid;
|
|
609
|
+
outline-width: calc(#{$widthRatio} * (var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));
|
|
610
|
+
outline-offset: calc(#{$widthRatio} * ((-1 * var(--wp-admin-border-width-focus) ) / var(--wp-block-editor-iframe-zoom-out-scale, 1)));
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
@mixin selected-block-focus($widthRatio: 1) {
|
|
614
|
+
content: "";
|
|
615
|
+
position: absolute;
|
|
616
|
+
pointer-events: none;
|
|
617
|
+
top: 0;
|
|
618
|
+
right: 0;
|
|
619
|
+
bottom: 0;
|
|
620
|
+
left: 0;
|
|
621
|
+
@include selected-block-outline($widthRatio);
|
|
622
|
+
}
|
package/_variables.scss
CHANGED
|
@@ -51,7 +51,7 @@ $button-size-small: 24px;
|
|
|
51
51
|
$button-size-compact: 32px;
|
|
52
52
|
$header-height: 60px;
|
|
53
53
|
$panel-header-height: $grid-unit-60;
|
|
54
|
-
$nav-sidebar-width:
|
|
54
|
+
$nav-sidebar-width: 300px;
|
|
55
55
|
$admin-bar-height: 32px;
|
|
56
56
|
$admin-bar-height-big: 46px;
|
|
57
57
|
$admin-sidebar-width: 160px;
|
|
@@ -93,7 +93,7 @@ $border-width-tab: 1.5px;
|
|
|
93
93
|
$helptext-font-size: 12px;
|
|
94
94
|
$radius-round: 50%;
|
|
95
95
|
$radius-block-ui: 2px;
|
|
96
|
-
$radio-input-size:
|
|
96
|
+
$radio-input-size: 16px;
|
|
97
97
|
$radio-input-size-sm: 24px; // Width & height for small viewports.
|
|
98
98
|
|
|
99
99
|
// Deprecated, please avoid using these.
|
package/_z-index.scss
CHANGED
|
@@ -65,8 +65,10 @@ $z-layers: (
|
|
|
65
65
|
// Needs to be below media library that has a z-index of 160000.
|
|
66
66
|
"{core/video track editor popover}": 160000 - 10,
|
|
67
67
|
|
|
68
|
-
// Needs to be below media library that has a z-index of 160000.
|
|
68
|
+
// Needs to be below media library (.media-model) that has a z-index of 160000.
|
|
69
69
|
".block-editor-format-toolbar__image-popover": 160000 - 10,
|
|
70
|
+
// Below the media library backdrop (.media-modal-backdrop), which has a z-index of 159900.
|
|
71
|
+
".block-editor-global-styles-background-panel__popover": 159900 - 10,
|
|
70
72
|
|
|
71
73
|
// Small screen inner blocks overlay must be displayed above drop zone,
|
|
72
74
|
// settings menu, and movers.
|
|
@@ -129,6 +131,7 @@ $z-layers: (
|
|
|
129
131
|
".block-editor-template-part__selection-modal": 1000001,
|
|
130
132
|
".block-editor-block-rename-modal": 1000001,
|
|
131
133
|
".edit-site-list__rename-modal": 1000001,
|
|
134
|
+
".dataviews-bulk-actions__modal": 1000001,
|
|
132
135
|
".dataviews-action-modal": 1000001,
|
|
133
136
|
".editor-action-modal": 1000001,
|
|
134
137
|
".editor-post-template__swap-template-modal": 1000001,
|
|
@@ -206,7 +209,7 @@ $z-layers: (
|
|
|
206
209
|
".dataviews-view-table thead": 1,
|
|
207
210
|
|
|
208
211
|
// Ensure quick actions toolbar appear above pagination
|
|
209
|
-
".dataviews-bulk-actions": 2,
|
|
212
|
+
".dataviews-bulk-actions-toolbar": 2,
|
|
210
213
|
);
|
|
211
214
|
|
|
212
215
|
@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.4.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": "363edb39b8dda8727f652e42cbb8497732693ed2"
|
|
31
31
|
}
|