@wordpress/base-styles 5.3.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 +2 -0
- package/_mixins.scss +28 -5
- package/_variables.scss +2 -2
- package/_z-index.scss +2 -1
- 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
|
@@ -131,6 +131,7 @@ $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,
|
|
134
135
|
".dataviews-action-modal": 1000001,
|
|
135
136
|
".editor-action-modal": 1000001,
|
|
136
137
|
".editor-post-template__swap-template-modal": 1000001,
|
|
@@ -208,7 +209,7 @@ $z-layers: (
|
|
|
208
209
|
".dataviews-view-table thead": 1,
|
|
209
210
|
|
|
210
211
|
// Ensure quick actions toolbar appear above pagination
|
|
211
|
-
".dataviews-bulk-actions": 2,
|
|
212
|
+
".dataviews-bulk-actions-toolbar": 2,
|
|
212
213
|
);
|
|
213
214
|
|
|
214
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
|
}
|