@wordpress/base-styles 4.22.0 → 4.24.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 +65 -13
- package/_variables.scss +2 -1
- package/_z-index.scss +5 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/_mixins.scss
CHANGED
|
@@ -76,12 +76,28 @@
|
|
|
76
76
|
|
|
77
77
|
@mixin input-style__focus() {
|
|
78
78
|
border-color: var(--wp-admin-theme-color);
|
|
79
|
-
box-shadow: 0 0 0 ($border-width-focus - $border-width) var(--wp-admin-theme-color);
|
|
79
|
+
box-shadow: 0 0 0 ($border-width-focus-fallback - $border-width) var(--wp-admin-theme-color);
|
|
80
80
|
|
|
81
81
|
// Windows High Contrast mode will show this outline, but not the box-shadow.
|
|
82
82
|
outline: 2px solid transparent;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
@mixin button-style__focus() {
|
|
86
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
87
|
+
|
|
88
|
+
// Windows High Contrast mode will show this outline, but not the box-shadow.
|
|
89
|
+
outline: 2px solid transparent;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
@mixin button-style-outset__focus($focus-color) {
|
|
94
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) $white, 0 0 0 calc(2 * var(--wp-admin-border-width-focus)) $focus-color;
|
|
95
|
+
|
|
96
|
+
// Windows High Contrast mode will show this outline, but not the box-shadow.
|
|
97
|
+
outline: 2px solid transparent;
|
|
98
|
+
outline-offset: 2px;
|
|
99
|
+
}
|
|
100
|
+
|
|
85
101
|
|
|
86
102
|
/**
|
|
87
103
|
* Applies editor left position to the selector passed as argument
|
|
@@ -224,7 +240,7 @@
|
|
|
224
240
|
border-radius: $radius-block-ui;
|
|
225
241
|
|
|
226
242
|
&:focus {
|
|
227
|
-
box-shadow: 0 0 0 ($border-width * 2) $white, 0 0 0 ($border-width * 2 + $border-width-focus) var(--wp-admin-theme-color);
|
|
243
|
+
box-shadow: 0 0 0 ($border-width * 2) $white, 0 0 0 ($border-width * 2 + $border-width-focus-fallback) var(--wp-admin-theme-color);
|
|
228
244
|
|
|
229
245
|
// Only visible in Windows High Contrast mode.
|
|
230
246
|
outline: 2px solid transparent;
|
|
@@ -308,7 +324,7 @@
|
|
|
308
324
|
}
|
|
309
325
|
|
|
310
326
|
&:focus {
|
|
311
|
-
box-shadow: 0 0 0 ($border-width * 2) $white, 0 0 0 ($border-width * 2 + $border-width-focus) var(--wp-admin-theme-color);
|
|
327
|
+
box-shadow: 0 0 0 ($border-width * 2) $white, 0 0 0 ($border-width * 2 + $border-width-focus-fallback) var(--wp-admin-theme-color);
|
|
312
328
|
|
|
313
329
|
// Only visible in Windows High Contrast mode.
|
|
314
330
|
outline: 2px solid transparent;
|
|
@@ -335,6 +351,31 @@
|
|
|
335
351
|
}
|
|
336
352
|
}
|
|
337
353
|
|
|
354
|
+
// The editor input reset with increased specificity to avoid theme styles bleeding in.
|
|
355
|
+
@mixin editor-input-reset() {
|
|
356
|
+
font-family: $editor-html-font !important;
|
|
357
|
+
color: $gray-900 !important;
|
|
358
|
+
background: $white !important;
|
|
359
|
+
padding: $grid-unit-15 !important;
|
|
360
|
+
border: $border-width solid $gray-900 !important;
|
|
361
|
+
box-shadow: none !important;
|
|
362
|
+
border-radius: $radius-block-ui !important;
|
|
363
|
+
|
|
364
|
+
// Fonts smaller than 16px causes mobile safari to zoom.
|
|
365
|
+
font-size: $mobile-text-min-font-size !important;
|
|
366
|
+
@include break-small {
|
|
367
|
+
font-size: $default-font-size !important;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
&:focus {
|
|
371
|
+
border-color: var(--wp-admin-theme-color) !important;
|
|
372
|
+
box-shadow: 0 0 0 ($border-width-focus-fallback - $border-width) var(--wp-admin-theme-color) !important;
|
|
373
|
+
|
|
374
|
+
// Windows High Contrast mode will show this outline, but not the box-shadow.
|
|
375
|
+
outline: 2px solid transparent !important;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
338
379
|
/**
|
|
339
380
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
340
381
|
*/
|
|
@@ -489,11 +530,7 @@
|
|
|
489
530
|
/* stylelint-enable function-comma-space-after */
|
|
490
531
|
}
|
|
491
532
|
|
|
492
|
-
@mixin custom-scrollbars-on-hover() {
|
|
493
|
-
visibility: hidden;
|
|
494
|
-
|
|
495
|
-
$handle-color: #757575;
|
|
496
|
-
$track-color: #1e1e1e;
|
|
533
|
+
@mixin custom-scrollbars-on-hover($handle-color, $handle-color-hover) {
|
|
497
534
|
|
|
498
535
|
// WebKit
|
|
499
536
|
&::-webkit-scrollbar {
|
|
@@ -501,7 +538,7 @@
|
|
|
501
538
|
height: 12px;
|
|
502
539
|
}
|
|
503
540
|
&::-webkit-scrollbar-track {
|
|
504
|
-
background-color:
|
|
541
|
+
background-color: transparent;
|
|
505
542
|
}
|
|
506
543
|
&::-webkit-scrollbar-thumb {
|
|
507
544
|
background-color: $handle-color;
|
|
@@ -509,15 +546,30 @@
|
|
|
509
546
|
border: 3px solid transparent;
|
|
510
547
|
background-clip: padding-box;
|
|
511
548
|
}
|
|
549
|
+
&:hover::-webkit-scrollbar-thumb, // This needs specificity.
|
|
550
|
+
&:focus::-webkit-scrollbar-thumb,
|
|
551
|
+
&:focus-within::-webkit-scrollbar-thumb {
|
|
552
|
+
background-color: $handle-color-hover;
|
|
553
|
+
}
|
|
512
554
|
|
|
513
555
|
// Firefox 109+ and Chrome 111+
|
|
514
|
-
scrollbar-color: $handle-color $track-color; // Syntax, "dark", "light", or "#handle-color #track-color"
|
|
515
556
|
scrollbar-width: thin;
|
|
516
|
-
scrollbar-gutter: stable;
|
|
557
|
+
scrollbar-gutter: stable both-edges;
|
|
558
|
+
scrollbar-color: $handle-color transparent; // Syntax, "dark", "light", or "#handle-color #track-color"
|
|
517
559
|
|
|
518
560
|
&:hover,
|
|
519
561
|
&:focus,
|
|
520
|
-
|
|
521
|
-
|
|
562
|
+
&:focus-within {
|
|
563
|
+
scrollbar-color: $handle-color-hover transparent;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
// Needed to fix a Safari rendering issue.
|
|
567
|
+
will-change: transform;
|
|
568
|
+
|
|
569
|
+
// Always show scrollbar on Mobile devices.
|
|
570
|
+
@media (hover: none) {
|
|
571
|
+
& {
|
|
572
|
+
scrollbar-color: $handle-color-hover transparent;
|
|
573
|
+
}
|
|
522
574
|
}
|
|
523
575
|
}
|
package/_variables.scss
CHANGED
|
@@ -46,6 +46,7 @@ $grid-unit-80: 8 * $grid-unit; // 64px
|
|
|
46
46
|
|
|
47
47
|
$icon-size: 24px;
|
|
48
48
|
$button-size: 36px;
|
|
49
|
+
$button-size-next-default-40px: 40px; // transitionary variable for next default button size
|
|
49
50
|
$button-size-small: 24px;
|
|
50
51
|
$header-height: 60px;
|
|
51
52
|
$panel-header-height: $grid-unit-60;
|
|
@@ -83,7 +84,7 @@ $widget-area-width: 700px;
|
|
|
83
84
|
|
|
84
85
|
$block-toolbar-height: $grid-unit-60;
|
|
85
86
|
$border-width: 1px;
|
|
86
|
-
$border-width-focus: 2px; // This exists as a fallback, and is ideally overridden by var(--wp-admin-border-width-focus) unless in some SASS math cases.
|
|
87
|
+
$border-width-focus-fallback: 2px; // This exists as a fallback, and is ideally overridden by var(--wp-admin-border-width-focus) unless in some SASS math cases.
|
|
87
88
|
$border-width-tab: 1.5px;
|
|
88
89
|
$helptext-font-size: 12px;
|
|
89
90
|
$radius-round: 50%;
|
package/_z-index.scss
CHANGED
|
@@ -33,8 +33,8 @@ $z-layers: (
|
|
|
33
33
|
".interface-interface-skeleton__content": 20,
|
|
34
34
|
".edit-widgets-header": 30,
|
|
35
35
|
".block-library-button__inline-link .block-editor-url-input__suggestions": 6, // URL suggestions for button block above sibling inserter
|
|
36
|
-
".wp-block-cover__inner-container":
|
|
37
|
-
".wp-block-cover.is-placeholder .components-placeholder.is-large":
|
|
36
|
+
".wp-block-cover__inner-container": 1, // InnerBlocks area inside cover image block.
|
|
37
|
+
".wp-block-cover.is-placeholder .components-placeholder.is-large": 1, // Cover block resizer component inside a large placeholder.
|
|
38
38
|
".wp-block-cover.has-background-dim::before": 1, // Overlay area inside block cover need to be higher than the video background.
|
|
39
39
|
".block-library-cover__padding-visualizer": 2, // BoxControl visualizer needs to be +1 higher than .wp-block-cover.has-background-dim::before
|
|
40
40
|
".wp-block-cover__image-background": 0, // Image background inside cover block.
|
|
@@ -189,6 +189,9 @@ $z-layers: (
|
|
|
189
189
|
".edit-site-layout__canvas-container.is-resizing::after": 100,
|
|
190
190
|
// Title needs to appear above other UI the section content.
|
|
191
191
|
".edit-site-sidebar-navigation-screen__title-icon": 1,
|
|
192
|
+
|
|
193
|
+
// Ensure modal footer actions appear above modal contents
|
|
194
|
+
".edit-site-start-template-options__modal__actions": 1,
|
|
192
195
|
);
|
|
193
196
|
|
|
194
197
|
@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.24.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": "e936127e1e13881f1a940b7bd1593a9e500147f3"
|
|
27
27
|
}
|