soinproduction-gutenberg 0.3.48 → 0.3.50
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/admin-ui/README.md +11 -0
- package/admin-ui/editor.css +88 -30
- package/admin-ui/tokens.css +4 -0
- package/components/drag/editor.tsx +3 -2
- package/core/editor/inspector.tsx +1 -1
- package/core/editor/styles.css +29 -29
- package/core/media/universal/editor.css +6 -6
- package/dist/admin-ui/README.md +11 -0
- package/dist/admin-ui/editor.css +88 -30
- package/dist/admin-ui/tokens.css +4 -0
- package/dist/components/drag/editor.js +2 -1
- package/dist/components/drag/editor.js.map +2 -2
- package/dist/core/editor/inspector.js +1 -1
- package/dist/core/editor/inspector.js.map +2 -2
- package/dist/core/editor/styles.css +29 -29
- package/dist/core/media/universal/editor.css +6 -6
- package/dist/host/editor/index.js +2 -2
- package/dist/host/editor/index.js.map +2 -2
- package/dist/modules/forms/frontend/field-blocks.js +3 -2
- package/dist/modules/forms/frontend/field-blocks.js.map +2 -2
- package/dist/modules/forms/frontend/layout-controls.js +3 -2
- package/dist/modules/forms/frontend/layout-controls.js.map +2 -2
- package/dist/modules/forms/frontend/settings-editor.js +2 -1
- package/dist/modules/forms/frontend/settings-editor.js.map +2 -2
- package/host/editor/index.tsx +3 -3
- package/modules/forms/frontend/field-blocks.tsx +4 -3
- package/modules/forms/frontend/layout-controls.tsx +4 -3
- package/modules/forms/frontend/settings-editor.tsx +3 -2
- package/package.json +1 -1
package/admin-ui/README.md
CHANGED
|
@@ -46,3 +46,14 @@ The booking module uses Russian UI at the user's explicit request.
|
|
|
46
46
|
Popover positions follow their anchors during page/dialog scrolling and resize; an offscreen anchor closes its popover. List scrolling remains independent. Time fields without an hourly step provide separate 24-hour and 00–59 minute columns plus a Done action, while `step=3600` retains whole-hour choices.
|
|
47
47
|
|
|
48
48
|
Floating card actions use `--site-card-tools-inset` (20px by default) from the top and right edges. Apply this consistently to list items, media/background controls and record controls. Text button tools and column-outline tools keep their own anchor positions.
|
|
49
|
+
|
|
50
|
+
## Shared inspector typography
|
|
51
|
+
|
|
52
|
+
All Kit block inspectors use the existing OrderedInspectorControls scope, including Cols, shell settings and form fields/layout/delivery. Site canvas typography is independent.
|
|
53
|
+
|
|
54
|
+
- System UI font: 13px / 1.4. Supporting descriptions: 12px / 1.5.
|
|
55
|
+
- Field labels: 11px, weight 500, uppercase. Panel headings: 13px, weight 600, normal case.
|
|
56
|
+
- Reset links: 11px, normal case; aligned with their label, retaining an independent keyboard focus.
|
|
57
|
+
- Inputs/selects: 40px minimum height. Compact actions and segmented choices: 32px minimum height; 16px icons. Preview tiles and canvas affordances retain their purpose-specific geometry.
|
|
58
|
+
- Labels use an 8px gap; related fields use 16px. Reuse --sp-ui-space and typography/control tokens rather than individual measurements.
|
|
59
|
+
- Do not style third-party WordPress panels or site content with this control scope. Keep radio/keyboard behavior, field IDs, saved keys and callbacks unchanged.
|
package/admin-ui/editor.css
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
border-radius: 2px !important;
|
|
25
25
|
background-color: var(--sp-ui-surface);
|
|
26
26
|
color: var(--sp-ui-ink);
|
|
27
|
-
font-size:
|
|
27
|
+
font-size: var(--sp-ui-font-size-small);
|
|
28
28
|
min-height: var(--sp-ui-control-height);
|
|
29
29
|
box-shadow: none;
|
|
30
30
|
padding-inline: 11px;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
.fe-settings-dialog
|
|
43
43
|
)
|
|
44
44
|
:is(.components-base-control__label, .components-input-control__label) {
|
|
45
|
-
font-size:
|
|
45
|
+
font-size: var(--sp-ui-label-size) !important;
|
|
46
46
|
text-transform: none !important;
|
|
47
47
|
letter-spacing: 0 !important;
|
|
48
48
|
color: var(--sp-ui-muted);
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
.components-button:is(.is-secondary, .is-primary, .is-tertiary) {
|
|
61
61
|
border-radius: 2px;
|
|
62
62
|
min-height: 32px;
|
|
63
|
-
font-size:
|
|
63
|
+
font-size: var(--sp-ui-font-size-small);
|
|
64
64
|
font-weight: 500;
|
|
65
65
|
box-shadow: none;
|
|
66
66
|
}
|
|
@@ -87,18 +87,18 @@
|
|
|
87
87
|
border-color: #e0e0e0;
|
|
88
88
|
}
|
|
89
89
|
.site-menu-toggle {
|
|
90
|
-
font-size:
|
|
90
|
+
font-size: var(--sp-ui-font-size-small);
|
|
91
91
|
color: var(--sp-ui-ink);
|
|
92
92
|
}
|
|
93
93
|
.site-menu-card-body {
|
|
94
94
|
padding: 16px;
|
|
95
95
|
}
|
|
96
96
|
.site-menu-heading {
|
|
97
|
-
font-size:
|
|
97
|
+
font-size: var(--sp-ui-font-size-small);
|
|
98
98
|
color: var(--sp-ui-ink);
|
|
99
99
|
}
|
|
100
100
|
.site-menu-hint {
|
|
101
|
-
font-size:
|
|
101
|
+
font-size: var(--sp-ui-font-size-small);
|
|
102
102
|
line-height: 1.7;
|
|
103
103
|
color: #757575;
|
|
104
104
|
}
|
|
@@ -126,12 +126,12 @@
|
|
|
126
126
|
border-color: #949494;
|
|
127
127
|
border-radius: 2px;
|
|
128
128
|
box-shadow: none;
|
|
129
|
-
font-size:
|
|
129
|
+
font-size: var(--sp-ui-font-size);
|
|
130
130
|
}
|
|
131
131
|
.site-relationship-option,
|
|
132
132
|
.site-relationship-row {
|
|
133
133
|
border-color: #e0e0e0;
|
|
134
|
-
font-size:
|
|
134
|
+
font-size: var(--sp-ui-font-size);
|
|
135
135
|
color: #1e1e1e;
|
|
136
136
|
}
|
|
137
137
|
.site-relationship-row:last-child {
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
}
|
|
153
153
|
.site-relationship-empty {
|
|
154
154
|
color: #8c98aa;
|
|
155
|
-
font-size:
|
|
155
|
+
font-size: var(--sp-ui-label-size);
|
|
156
156
|
}
|
|
157
157
|
.site-relationship-thumbnail {
|
|
158
158
|
border-radius: 2px;
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
}
|
|
211
211
|
.fe-settings-dialog .components-tab-panel__tabs button {
|
|
212
212
|
border-radius: 2px;
|
|
213
|
-
font-size:
|
|
213
|
+
font-size: var(--sp-ui-font-size-small);
|
|
214
214
|
color: #7a879a;
|
|
215
215
|
height: 36px;
|
|
216
216
|
}
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
.fe-channel-heading p,
|
|
241
241
|
.fe-template-heading p,
|
|
242
242
|
.fe-help {
|
|
243
|
-
font-size:
|
|
243
|
+
font-size: var(--sp-ui-label-size);
|
|
244
244
|
color: #757575;
|
|
245
245
|
line-height: 1.7;
|
|
246
246
|
}
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
border-radius: 2px;
|
|
260
260
|
color: #1e1e1e;
|
|
261
261
|
background: var(--sp-ui-surface);
|
|
262
|
-
font-size:
|
|
262
|
+
font-size: var(--sp-ui-label-size);
|
|
263
263
|
}
|
|
264
264
|
.fe-action-options {
|
|
265
265
|
gap: 8px;
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
border-radius: 2px;
|
|
307
307
|
}
|
|
308
308
|
.sp-media-control .sp-media-tabs button {
|
|
309
|
-
font-size:
|
|
309
|
+
font-size: var(--sp-ui-label-size);
|
|
310
310
|
min-height: 32px;
|
|
311
311
|
color: var(--sp-ui-muted);
|
|
312
312
|
}
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
border-radius: 2px;
|
|
321
321
|
}
|
|
322
322
|
.sp-media-help {
|
|
323
|
-
font-size:
|
|
323
|
+
font-size: var(--sp-ui-label-size);
|
|
324
324
|
color: var(--sp-ui-subtle);
|
|
325
325
|
line-height: 1.7;
|
|
326
326
|
}
|
|
@@ -654,13 +654,13 @@
|
|
|
654
654
|
.site-select-control > label {
|
|
655
655
|
margin-bottom: 8px;
|
|
656
656
|
color: #1e1e1e;
|
|
657
|
-
font-size:
|
|
657
|
+
font-size: var(--sp-ui-label-size);
|
|
658
658
|
font-weight: 500;
|
|
659
659
|
text-transform: uppercase;
|
|
660
660
|
}
|
|
661
661
|
.site-select-control > p {
|
|
662
662
|
color: #757575;
|
|
663
|
-
font-size:
|
|
663
|
+
font-size: var(--sp-ui-font-size-small);
|
|
664
664
|
}
|
|
665
665
|
.site-select-trigger[data-density='admin'] {
|
|
666
666
|
min-height: 40px;
|
|
@@ -670,7 +670,7 @@
|
|
|
670
670
|
background: #fff;
|
|
671
671
|
box-shadow: none;
|
|
672
672
|
color: #1e1e1e;
|
|
673
|
-
font-size:
|
|
673
|
+
font-size: var(--sp-ui-font-size);
|
|
674
674
|
}
|
|
675
675
|
.site-select-trigger[data-density='admin']:focus-visible,
|
|
676
676
|
.site-select-trigger[data-density='admin'][data-state='open'] {
|
|
@@ -688,7 +688,7 @@
|
|
|
688
688
|
padding: 4px 8px;
|
|
689
689
|
border-radius: 2px;
|
|
690
690
|
color: #1e1e1e;
|
|
691
|
-
font-size:
|
|
691
|
+
font-size: var(--sp-ui-font-size);
|
|
692
692
|
}
|
|
693
693
|
.site-select-menu[data-density='admin'] .site-select-option[data-highlighted] {
|
|
694
694
|
background: #f0f0f0;
|
|
@@ -705,7 +705,7 @@
|
|
|
705
705
|
|
|
706
706
|
/* Shared visual column alignment controls, used in both Inspector and popover. */
|
|
707
707
|
.site-flow-alignment{border:0;margin:16px 0 0;padding:0;min-width:0}
|
|
708
|
-
.site-flow-alignment legend{font-size:
|
|
708
|
+
.site-flow-alignment legend{font-size:var(--sp-ui-label-size);font-weight:500;text-transform:uppercase;margin-bottom:8px;padding:0}
|
|
709
709
|
.site-flow-alignment-options{display:flex;gap:4px}
|
|
710
710
|
.site-flow-alignment-options .components-button{display:flex;align-items:center;justify-content:center;flex:1;min-width:32px;height:36px;padding:0;border:1px solid #e0e0e0;border-radius:2px;background:#fff;color:#1e1e1e}
|
|
711
711
|
.site-flow-alignment-options .components-button:hover{border-color:var(--wp-admin-theme-color,#3858e9);color:var(--wp-admin-theme-color,#3858e9)}
|
|
@@ -716,16 +716,16 @@
|
|
|
716
716
|
|
|
717
717
|
/* Compact Gutenberg-style collection mode selector. */
|
|
718
718
|
.site-list-display-settings{display:grid;gap:16px;margin-block:16px}
|
|
719
|
-
.site-collection-display-title{margin:0;font-size:
|
|
719
|
+
.site-collection-display-title{margin:0;font-size:var(--sp-ui-font-size);font-weight:600}
|
|
720
720
|
.site-collection-modes{border:0;padding:0;margin:0;min-width:0}
|
|
721
|
-
.site-collection-modes legend{margin-bottom:8px;padding:0;font-size:
|
|
721
|
+
.site-collection-modes legend{margin-bottom:8px;padding:0;font-size:var(--sp-ui-label-size);font-weight:500;text-transform:uppercase}
|
|
722
722
|
.site-collection-mode-options{display:flex;gap:4px}
|
|
723
723
|
.site-list-display-settings .site-collection-mode.components-button{display:flex;align-items:center;justify-content:center;flex:1;min-width:32px;height:36px;min-height:36px;padding:0;border:1px solid #ddd;border-radius:2px;background:#fff;color:#1e1e1e;box-shadow:none}
|
|
724
724
|
.site-list-display-settings .site-collection-mode.components-button:hover{border-color:var(--wp-admin-theme-color,#3858e9);color:var(--wp-admin-theme-color,#3858e9);background:#fff}
|
|
725
725
|
.site-list-display-settings .site-collection-mode.components-button[aria-pressed="true"]{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9);color:#fff;box-shadow:none}
|
|
726
726
|
.site-collection-mode.components-button svg{pointer-events:none;width:20px;height:20px}
|
|
727
727
|
.site-collection-mode.components-button:focus-visible{outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:2px}
|
|
728
|
-
.site-collection-mode-label{margin:6px 0 0;color:#757575;font-size:
|
|
728
|
+
.site-collection-mode-label{margin:6px 0 0;color:#757575;font-size:var(--sp-ui-font-size-small);line-height:1.4}
|
|
729
729
|
.site-list-display-settings .components-base-control{margin-bottom:0}
|
|
730
730
|
|
|
731
731
|
.site-collection-modes legend strong{font-weight:600;text-transform:none;color:var(--wp-admin-theme-color,#3858e9)}
|
|
@@ -744,9 +744,9 @@
|
|
|
744
744
|
.site-collection-button-row .components-base-control__help{display:none}
|
|
745
745
|
.site-button-icon-settings{display:grid;gap:16px}
|
|
746
746
|
.site-button-icon-position{border:0;padding:0;margin:0;min-width:0}
|
|
747
|
-
.site-button-icon-position legend{margin-bottom:8px;padding:0;font-size:
|
|
747
|
+
.site-button-icon-position legend{margin-bottom:8px;padding:0;font-size:var(--sp-ui-label-size);font-weight:500;text-transform:uppercase}
|
|
748
748
|
.site-button-icon-position>div{display:flex;gap:4px}
|
|
749
|
-
.site-button-icon-position .components-button{flex:1;justify-content:center;gap:6px;height:32px;padding:0 8px;border:1px solid #ddd;border-radius:2px;background:#fff;color:#1e1e1e;font-size:
|
|
749
|
+
.site-button-icon-position .components-button{flex:1;justify-content:center;gap:6px;height:32px;padding:0 8px;border:1px solid #ddd;border-radius:2px;background:#fff;color:#1e1e1e;font-size:var(--sp-ui-font-size-small);white-space:nowrap}
|
|
750
750
|
.site-button-icon-position .components-button[aria-pressed="true"]{background:var(--wp-admin-theme-color,#3858e9);border-color:var(--wp-admin-theme-color,#3858e9);color:#fff}
|
|
751
751
|
.site-button-icon-position .components-button:focus-visible{outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:2px}
|
|
752
752
|
.site-button-icon-position svg{flex:none;pointer-events:none}
|
|
@@ -765,15 +765,15 @@
|
|
|
765
765
|
.site-list-display-settings .site-collection-button-row .components-dropdown>.components-button[aria-pressed="true"]:hover{
|
|
766
766
|
background:var(--wp-admin-theme-color-darker-10,#2145cf);border-color:var(--wp-admin-theme-color-darker-10,#2145cf);color:#fff;
|
|
767
767
|
}
|
|
768
|
-
.site-collection-icon-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px -4px 12px 0;padding-bottom:8px;border-bottom:1px solid #e0e0e0;font-size:
|
|
768
|
+
.site-collection-icon-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px -4px 12px 0;padding-bottom:8px;border-bottom:1px solid #e0e0e0;font-size:var(--sp-ui-font-size);font-weight:600}
|
|
769
769
|
.site-collection-icon-header .components-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:28px;min-width:28px;height:28px;padding:0;color:#1e1e1e;background:#fff;border-radius:2px}
|
|
770
770
|
.site-collection-icon-header .components-button:hover{background:#f0f0f0;color:var(--wp-admin-theme-color,#3858e9)}
|
|
771
771
|
.site-collection-icon-header .components-button:focus-visible{outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:1px}
|
|
772
772
|
/* Independent HTML tag and heading style presets. */
|
|
773
773
|
.site-heading-setting{border:0;margin:0 0 calc(var(--sp-ui-space)*2);padding:0;min-width:0}
|
|
774
774
|
.site-heading-setting:last-child{margin-bottom:0}
|
|
775
|
-
.site-heading-setting legend{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:var(--sp-ui-space);padding:0;font-size:
|
|
776
|
-
.site-heading-setting legend>.components-button{height:auto;min-height:0;padding:0;font-size:
|
|
775
|
+
.site-heading-setting legend{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:var(--sp-ui-space);padding:0;font-size:var(--sp-ui-label-size);font-weight:500;text-transform:uppercase}
|
|
776
|
+
.site-heading-setting legend>.components-button{height:auto;min-height:0;padding:0;font-size:var(--sp-ui-label-size);text-transform:none}
|
|
777
777
|
.site-heading-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;padding:3px;border:1px solid var(--sp-ui-border);border-radius:var(--sp-ui-radius-control);background:var(--sp-ui-canvas)}
|
|
778
778
|
.site-heading-options>.components-button{display:flex;justify-content:center;min-width:0;height:var(--sp-ui-control-small);padding:0;border-radius:calc(var(--sp-ui-radius-control) - 3px);background:transparent;color:var(--sp-ui-muted);box-shadow:none}
|
|
779
779
|
.site-heading-options>.components-button:hover{background:var(--sp-ui-surface-soft);color:var(--sp-ui-ink)}
|
|
@@ -806,11 +806,69 @@
|
|
|
806
806
|
.site-archive-filter-options > .site-select-control { margin:0; }
|
|
807
807
|
|
|
808
808
|
/* Color setting labels match heading and other inspector field labels. */
|
|
809
|
-
.site-field-color > legend .site-setting-label > span:first-child { font-size:
|
|
809
|
+
.site-field-color > legend .site-setting-label > span:first-child { font-size: var(--sp-ui-label-size); font-weight: 500; text-transform: uppercase; }
|
|
810
810
|
|
|
811
811
|
/* Text uses the same preset tiles as Heading; its color stays in the same panel. */
|
|
812
812
|
.site-text-size-options{grid-template-columns:repeat(3,minmax(0,1fr))}
|
|
813
|
-
.site-text-size-options>.components-button{text-transform:uppercase;font-size:
|
|
814
|
-
.site-text-color-setting>span{font-size:
|
|
813
|
+
.site-text-size-options>.components-button{text-transform:uppercase;font-size:var(--sp-ui-label-size);padding:0 4px}
|
|
814
|
+
.site-text-color-setting>span{font-size:var(--sp-ui-label-size);font-weight:500;text-transform:uppercase}
|
|
815
815
|
|
|
816
816
|
.site-text-size-options>.components-button:disabled{grid-column:1/-1}
|
|
817
|
+
|
|
818
|
+
/* One typographic and control scale for Kit inspectors, never authored canvas content. */
|
|
819
|
+
.site-control-scope,
|
|
820
|
+
.site-field-controls,
|
|
821
|
+
.sp-media-control {
|
|
822
|
+
font: 400 var(--sp-ui-font-size)/var(--sp-ui-line-height) var(--sp-ui-font);
|
|
823
|
+
color: var(--sp-ui-ink);
|
|
824
|
+
letter-spacing: normal;
|
|
825
|
+
text-transform: none;
|
|
826
|
+
}
|
|
827
|
+
:where(.site-control-scope, .site-field-controls, .sp-media-control)
|
|
828
|
+
:is(.components-base-control__label, .components-input-control__label,
|
|
829
|
+
.site-item-field-label, .site-field-control-heading > span, .site-field-rich-control > span) {
|
|
830
|
+
font: 500 var(--sp-ui-label-size)/var(--sp-ui-line-height) var(--sp-ui-font);
|
|
831
|
+
letter-spacing: normal;
|
|
832
|
+
text-transform: uppercase;
|
|
833
|
+
color: var(--sp-ui-ink);
|
|
834
|
+
}
|
|
835
|
+
:where(.site-control-scope, .site-field-controls, .sp-media-control)
|
|
836
|
+
:is(.components-text-control__input, .components-input-control__input,
|
|
837
|
+
.components-select-control__input, .components-combobox-control__input) {
|
|
838
|
+
box-sizing: border-box;
|
|
839
|
+
min-height: var(--sp-ui-control-height);
|
|
840
|
+
font: 400 var(--sp-ui-font-size)/var(--sp-ui-line-height) var(--sp-ui-font);
|
|
841
|
+
border-radius: var(--sp-ui-radius-control);
|
|
842
|
+
}
|
|
843
|
+
:where(.site-control-scope, .site-field-controls, .sp-media-control)
|
|
844
|
+
.components-textarea-control__input,
|
|
845
|
+
.site-field-rich-control > .block-editor-rich-text__editable {
|
|
846
|
+
font: 400 var(--sp-ui-font-size)/1.5 var(--sp-ui-font);
|
|
847
|
+
border-radius: var(--sp-ui-radius-control);
|
|
848
|
+
}
|
|
849
|
+
:where(.site-control-scope, .site-field-controls, .sp-media-control)
|
|
850
|
+
.components-base-control__help,
|
|
851
|
+
.sp-media-help {
|
|
852
|
+
font: 400 var(--sp-ui-font-size-small)/1.5 var(--sp-ui-font);
|
|
853
|
+
color: var(--sp-ui-muted);
|
|
854
|
+
}
|
|
855
|
+
.site-control-scope .components-panel__body-toggle.components-button {
|
|
856
|
+
font: 600 var(--sp-ui-font-size)/var(--sp-ui-line-height) var(--sp-ui-font);
|
|
857
|
+
text-transform: none;
|
|
858
|
+
letter-spacing: normal;
|
|
859
|
+
}
|
|
860
|
+
.site-heading-options > .components-button,
|
|
861
|
+
.site-button-icon-position .components-button,
|
|
862
|
+
.sp-media-tabs button {
|
|
863
|
+
box-sizing: border-box;
|
|
864
|
+
min-height: var(--sp-ui-control-small);
|
|
865
|
+
font: 500 var(--sp-ui-font-size)/var(--sp-ui-line-height) var(--sp-ui-font);
|
|
866
|
+
}
|
|
867
|
+
.site-item-heading-toggle.components-button {
|
|
868
|
+
font: 500 var(--sp-ui-label-size)/var(--sp-ui-line-height) var(--sp-ui-font);
|
|
869
|
+
}
|
|
870
|
+
.site-setting-reset.components-button.components-button {
|
|
871
|
+
font: 400 var(--sp-ui-label-size)/var(--sp-ui-line-height) var(--sp-ui-font);
|
|
872
|
+
text-transform: none;
|
|
873
|
+
letter-spacing: normal;
|
|
874
|
+
}
|
package/admin-ui/tokens.css
CHANGED
|
@@ -22,5 +22,9 @@
|
|
|
22
22
|
--sp-ui-control-height: 40px;
|
|
23
23
|
--sp-ui-control-small: 32px;
|
|
24
24
|
--sp-ui-space: 8px;
|
|
25
|
+
--sp-ui-font-size: 13px;
|
|
26
|
+
--sp-ui-font-size-small: 12px;
|
|
27
|
+
--sp-ui-label-size: 11px;
|
|
28
|
+
--sp-ui-line-height: 1.4;
|
|
25
29
|
--sp-ui-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
26
30
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import { OrderedInspectorControls } from '../../core/editor/inspector.js';
|
|
2
3
|
import { ResetButton } from '../../core/editor/reset.js';
|
|
3
4
|
import { addStyle, addVariables } from '../../core/editor/add-position.js';
|
|
4
5
|
import { viewClasses } from '../../core/fields/view-classes.js';
|
|
@@ -130,10 +131,10 @@ function FlowColumnEditor({section,field,palettes,attributes,setAttributes,clien
|
|
|
130
131
|
</>;
|
|
131
132
|
const {children,...containerProps}=innerProps;
|
|
132
133
|
const content=<>
|
|
133
|
-
<
|
|
134
|
+
<OrderedInspectorControls><wp.components.PanelBody title={`Column ${layout.index+1}`}>
|
|
134
135
|
<p>{grid?`Set the column start and width on the ${tracks}-column grid.`:`Rows are arranged automatically. Up to ${field.controlOptions.maxCol} columns per row.`}</p>
|
|
135
136
|
{controls}
|
|
136
|
-
</wp.components.PanelBody></
|
|
137
|
+
</wp.components.PanelBody></OrderedInspectorControls>
|
|
137
138
|
<div {...containerProps}>
|
|
138
139
|
<svg className="site-record-add-frame site-flow-column-frame" aria-hidden="true"><rect rx="2" /></svg>
|
|
139
140
|
{grid && target && resizable && !fullRow ? <>
|
|
@@ -5,5 +5,5 @@ export const InspectorOrderContext = createContext<number | undefined>(undefined
|
|
|
5
5
|
/** Keep an editor-only priority out of authored DOM attributes and frontend CSS. */
|
|
6
6
|
export function OrderedInspectorControls({ children, order }: { children: ReactNode; order?: number }) {
|
|
7
7
|
const inherited = useContext(InspectorOrderContext);
|
|
8
|
-
return <wp.blockEditor.InspectorControls><div className="site-inspector-group" style={{order: fieldOrder(order ?? inherited)}}>{children}</div></wp.blockEditor.InspectorControls>;
|
|
8
|
+
return <wp.blockEditor.InspectorControls><div className="site-inspector-group site-control-scope" style={{order: fieldOrder(order ?? inherited)}}>{children}</div></wp.blockEditor.InspectorControls>;
|
|
9
9
|
}
|
package/core/editor/styles.css
CHANGED
|
@@ -212,17 +212,17 @@
|
|
|
212
212
|
display: flex;
|
|
213
213
|
align-items: center;
|
|
214
214
|
justify-content: space-between;
|
|
215
|
-
font-size:
|
|
215
|
+
font-size: var(--sp-ui-font-size);
|
|
216
216
|
}
|
|
217
217
|
.site-menu-heading > span {
|
|
218
218
|
border-radius: 2px;
|
|
219
219
|
background: #f0f0f0;
|
|
220
220
|
padding: 2px 7px;
|
|
221
221
|
color: #757575;
|
|
222
|
-
font-size:
|
|
222
|
+
font-size: var(--sp-ui-label-size);
|
|
223
223
|
}
|
|
224
224
|
.site-menu-hint {
|
|
225
|
-
font-size:
|
|
225
|
+
font-size: var(--sp-ui-font-size-small) !important;
|
|
226
226
|
line-height: 1.5;
|
|
227
227
|
color: #757575;
|
|
228
228
|
margin: 8px 0 14px !important;
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
}
|
|
308
308
|
.site-menu-toggle strong {
|
|
309
309
|
display: block;
|
|
310
|
-
font-size:
|
|
310
|
+
font-size: var(--sp-ui-font-size);
|
|
311
311
|
font-weight: 500;
|
|
312
312
|
overflow: hidden;
|
|
313
313
|
text-overflow: ellipsis;
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
display: flex;
|
|
318
318
|
align-items: center;
|
|
319
319
|
gap: 4px;
|
|
320
|
-
font-size:
|
|
320
|
+
font-size: var(--sp-ui-label-size);
|
|
321
321
|
color: #757575;
|
|
322
322
|
margin-top: 5px;
|
|
323
323
|
overflow: hidden;
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
margin-bottom: 8px;
|
|
433
433
|
padding: 0;
|
|
434
434
|
color: #1e1e1e;
|
|
435
|
-
font-size:
|
|
435
|
+
font-size: var(--sp-ui-label-size);
|
|
436
436
|
font-weight: 500;
|
|
437
437
|
text-transform: uppercase;
|
|
438
438
|
}
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
margin-bottom: 16px;
|
|
481
481
|
}
|
|
482
482
|
.site-statistic-fields label {
|
|
483
|
-
font-size:
|
|
483
|
+
font-size: var(--sp-ui-label-size);
|
|
484
484
|
font-weight: 500;
|
|
485
485
|
text-transform: uppercase;
|
|
486
486
|
}
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
padding: 8px;
|
|
490
490
|
border: 1px solid #949494;
|
|
491
491
|
border-radius: 2px;
|
|
492
|
-
font-size:
|
|
492
|
+
font-size: var(--sp-ui-font-size);
|
|
493
493
|
font-weight: 400;
|
|
494
494
|
text-transform: none;
|
|
495
495
|
min-height: 36px;
|
|
@@ -722,7 +722,7 @@
|
|
|
722
722
|
padding: 10px 12px;
|
|
723
723
|
background: #f0f0f0;
|
|
724
724
|
border-bottom: 1px solid #e0e0e0;
|
|
725
|
-
font-size:
|
|
725
|
+
font-size: var(--sp-ui-font-size-small);
|
|
726
726
|
font-weight: 600;
|
|
727
727
|
}
|
|
728
728
|
.site-relationship-panel > input[type='search'] {
|
|
@@ -733,7 +733,7 @@
|
|
|
733
733
|
margin: 8px;
|
|
734
734
|
border: 1px solid #c3c4c7;
|
|
735
735
|
border-radius: 2px;
|
|
736
|
-
font-size:
|
|
736
|
+
font-size: var(--sp-ui-font-size-small);
|
|
737
737
|
}
|
|
738
738
|
.site-relationship-options {
|
|
739
739
|
max-height: 240px;
|
|
@@ -789,7 +789,7 @@
|
|
|
789
789
|
}
|
|
790
790
|
.site-relationship-copy strong {
|
|
791
791
|
display: block;
|
|
792
|
-
font-size:
|
|
792
|
+
font-size: var(--sp-ui-font-size-small);
|
|
793
793
|
font-weight: 500;
|
|
794
794
|
line-height: 1.45;
|
|
795
795
|
white-space: normal;
|
|
@@ -798,7 +798,7 @@
|
|
|
798
798
|
.site-relationship-copy small {
|
|
799
799
|
display: block;
|
|
800
800
|
margin-top: 3px;
|
|
801
|
-
font-size:
|
|
801
|
+
font-size: var(--sp-ui-label-size);
|
|
802
802
|
line-height: 1.35;
|
|
803
803
|
color: #757575;
|
|
804
804
|
}
|
|
@@ -870,7 +870,7 @@
|
|
|
870
870
|
.site-relationship-empty {
|
|
871
871
|
margin: 0 !important;
|
|
872
872
|
padding: 18px 12px;
|
|
873
|
-
font-size:
|
|
873
|
+
font-size: var(--sp-ui-font-size-small) !important;
|
|
874
874
|
line-height: 1.5;
|
|
875
875
|
color: #757575;
|
|
876
876
|
}
|
|
@@ -923,7 +923,7 @@
|
|
|
923
923
|
padding: 8px;
|
|
924
924
|
border: 1px solid #949494;
|
|
925
925
|
min-height: 36px;
|
|
926
|
-
font-size:
|
|
926
|
+
font-size: var(--sp-ui-font-size);
|
|
927
927
|
line-height: 1.5;
|
|
928
928
|
}
|
|
929
929
|
|
|
@@ -939,7 +939,7 @@
|
|
|
939
939
|
.site-editor-button{position:relative;display:inline-flex}
|
|
940
940
|
/* Button widths: proportional presets and a direct, keyboard-accessible slider. */
|
|
941
941
|
.site-button-width-control{min-width:0;margin:16px 0;padding:0;border:0;font:400 12px/1.4 var(--sp-ui-font,system-ui,sans-serif);color:#1e1e1e}
|
|
942
|
-
.site-button-width-control legend{float:none;margin-bottom:8px;padding:0;font-size:
|
|
942
|
+
.site-button-width-control legend{float:none;margin-bottom:8px;padding:0;font-size:var(--sp-ui-label-size);font-weight:500;text-transform:uppercase}
|
|
943
943
|
.site-button-width-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
|
|
944
944
|
.site-button-width-presets>button{display:flex;min-width:0;min-height:52px;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:6px 4px;border:1px solid #ddd;border-radius:2px;background:#fff;color:#50575e;font:inherit;cursor:pointer;transition:background-color .12s,border-color .12s,color .12s}
|
|
945
945
|
.site-button-width-presets>button[aria-pressed="true"]{border-color:var(--wp-admin-theme-color,#3858e9);background:color-mix(in srgb,var(--wp-admin-theme-color,#3858e9) 7%,white);color:var(--wp-admin-theme-color,#3858e9)}
|
|
@@ -957,10 +957,10 @@
|
|
|
957
957
|
.site-button-width-presets>button:focus-visible,.site-button-width-range input:focus-visible{outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:2px}
|
|
958
958
|
@media(hover:hover) and (pointer:fine){.site-button-width-presets>button:hover{border-color:var(--wp-admin-theme-color,#3858e9);color:var(--wp-admin-theme-color,#3858e9)}}
|
|
959
959
|
.site-button-styles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:232px;padding:8px}
|
|
960
|
-
.site-button-style-tile{display:grid;justify-items:center;gap:6px;padding:10px 6px;background:none;border:1px solid transparent;border-radius:2px;font-size:
|
|
960
|
+
.site-button-style-tile{display:grid;justify-items:center;gap:6px;padding:10px 6px;background:none;border:1px solid transparent;border-radius:2px;font-size:var(--sp-ui-font-size-small);color:#1e1e1e;cursor:pointer}
|
|
961
961
|
.site-button-style-tile:hover{background:#f0f0f0}
|
|
962
962
|
.site-button-style-tile[aria-pressed="true"]{border-color:var(--wp-admin-theme-color,#3858e9)}
|
|
963
|
-
.site-button-style-sample{display:grid;place-items:center;width:64px;height:30px;font-size:
|
|
963
|
+
.site-button-style-sample{display:grid;place-items:center;width:64px;height:30px;font-size:var(--sp-ui-label-size);letter-spacing:.08em;border:1px solid transparent}
|
|
964
964
|
.site-button-style-sample.is-primary{background:#111;color:#fff}
|
|
965
965
|
.site-button-style-sample.is-accent{background:#e67f42;color:#fff}
|
|
966
966
|
.site-button-style-sample.is-outline{border-color:#111;color:#111}
|
|
@@ -971,7 +971,7 @@
|
|
|
971
971
|
.site-background-settings:not(:last-child){margin-bottom:16px}
|
|
972
972
|
.site-background-settings video,.site-background-settings img{display:block;width:100%;aspect-ratio:16/9;margin-bottom:8px;object-fit:cover;background:#000;border-radius:2px}
|
|
973
973
|
.site-segmented{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#f0f0f0;border-radius:2px}
|
|
974
|
-
.site-segmented button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:32px;background:none;border:0;border-radius:2px;color:#757575;font-size:
|
|
974
|
+
.site-segmented button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:32px;background:none;border:0;border-radius:2px;color:#757575;font-size:var(--sp-ui-font-size);cursor:pointer}
|
|
975
975
|
.site-segmented button[aria-checked="true"]{background:#fff;color:#1e1e1e;box-shadow:0 0 0 1px #e0e0e0}
|
|
976
976
|
.site-segmented button:focus-visible{outline:2px solid #3858e9;outline-offset:1px}
|
|
977
977
|
.site-segmented .dashicons{width:16px;height:16px;font-size:16px}
|
|
@@ -985,7 +985,7 @@
|
|
|
985
985
|
.site-media-select-action.components-button.is-empty{width:100%;height:auto;min-height:88px;padding:16px;border:1px dashed #949494;border-radius:2px;background:#f0f0f0;color:#757575;flex-direction:column;gap:8px}
|
|
986
986
|
.site-media-select-action.components-button.is-empty:hover{background:#f0f0f0;border-color:#3858e9;color:#3858e9}
|
|
987
987
|
.site-media-select-copy{display:flex;flex-direction:column;align-items:inherit;gap:3px}
|
|
988
|
-
.site-media-select-hint{font-size:
|
|
988
|
+
.site-media-select-hint{font-size:var(--sp-ui-label-size);font-weight:400;color:#757575}
|
|
989
989
|
.site-media-select-action.components-button.is-replace{justify-self:end;width:32px;height:32px;min-width:32px;padding:8px;border:1px solid var(--sp-ui-border,#ddd);border-radius:2px;background:var(--sp-ui-surface,#fff);color:var(--sp-ui-text,#1e1e1e)}
|
|
990
990
|
.site-media-select-action.components-button:focus-visible{outline:2px solid #3858e9;outline-offset:3px}
|
|
991
991
|
.site-media-select-action.components-button svg{flex-shrink:0}
|
|
@@ -1049,7 +1049,7 @@
|
|
|
1049
1049
|
}
|
|
1050
1050
|
|
|
1051
1051
|
.site-drag-layouts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}
|
|
1052
|
-
.site-drag-layout{display:grid;gap:6px;padding:8px;background:#fff;border:1px solid #ddd;border-radius:2px;color:#1e1e1e;font-size:
|
|
1052
|
+
.site-drag-layout{display:grid;gap:6px;padding:8px;background:#fff;border:1px solid #ddd;border-radius:2px;color:#1e1e1e;font-size:var(--sp-ui-label-size);cursor:pointer}
|
|
1053
1053
|
.site-drag-layout[aria-pressed="true"]{border-color:var(--wp-admin-theme-color,#3858e9);box-shadow:0 0 0 1px var(--wp-admin-theme-color,#3858e9)}
|
|
1054
1054
|
.site-drag-layout__preview{display:grid;gap:3px;height:32px}
|
|
1055
1055
|
.site-drag-layout__preview>span{background:#e0e0e0;border-radius:1px}
|
|
@@ -1157,9 +1157,9 @@
|
|
|
1157
1157
|
.site-flow-layout-tabs button[aria-selected="true"]{background:#fff;color:#1e1e1e;box-shadow:0 1px 2px rgba(0,0,0,.12)}
|
|
1158
1158
|
.site-flow-layout-tabs button.has-own::after{content:"";position:absolute;top:4px;right:4px;width:5px;height:5px;border-radius:50%;background:var(--site-flow-color)}
|
|
1159
1159
|
.site-flow-layout-head{display:flex;align-items:baseline;gap:6px;margin-top:4px}
|
|
1160
|
-
.site-flow-layout-head span{color:#757575;font-size:
|
|
1160
|
+
.site-flow-layout-head span{color:#757575;font-size:var(--sp-ui-font-size-small)}
|
|
1161
1161
|
.site-flow-layout-head .components-button{margin-left:auto;height:auto;padding:0}
|
|
1162
|
-
.site-flow-layout-state,.site-flow-layout-hint{margin:0;color:#757575;font-size:
|
|
1162
|
+
.site-flow-layout-state,.site-flow-layout-hint{margin:0;color:#757575;font-size:var(--sp-ui-font-size-small);line-height:1.4}
|
|
1163
1163
|
.site-flow-layout-grid{display:grid;gap:2px;height:32px;padding:3px;border:1px solid #e0e0e0;border-radius:2px;cursor:col-resize;touch-action:none;user-select:none}
|
|
1164
1164
|
.site-flow-layout-grid span{border-radius:1px;background:#f0f0f0}
|
|
1165
1165
|
.site-flow-layout-grid span.is-on{background:var(--site-flow-color)}
|
|
@@ -1215,15 +1215,15 @@
|
|
|
1215
1215
|
|
|
1216
1216
|
/* Settings use one spacing system; nested WordPress margins must not add a second gap. */
|
|
1217
1217
|
.site-field-controls { gap: 16px; }
|
|
1218
|
-
.site-item-field { display: grid; gap:
|
|
1218
|
+
.site-item-field { display: grid; gap: var(--sp-ui-space); min-width: 0; }
|
|
1219
1219
|
.site-item-field > :is(.site-field-rich-control, .components-base-control, .site-media-setting, .site-background-settings, .site-item-field-label) { margin: 0; }
|
|
1220
1220
|
.site-item-field .components-base-control:last-child { margin-bottom: 0; }
|
|
1221
|
-
.site-item-field-label { display: block; font-size:
|
|
1221
|
+
.site-item-field-label { display: block; font-size: var(--sp-ui-font-size-small); }
|
|
1222
1222
|
.site-item-heading-settings { min-width: 0; }
|
|
1223
|
-
.site-item-heading-toggle.components-button { display: flex; width: 100%; height: 32px; min-height: 32px; padding: 0; justify-content: space-between; border: 0; color: #50575e; background: transparent; box-shadow: none; font-size:
|
|
1223
|
+
.site-item-heading-toggle.components-button { display: flex; width: 100%; height: 32px; min-height: 32px; padding: 0; justify-content: space-between; border: 0; color: #50575e; background: transparent; box-shadow: none; font-size: var(--sp-ui-font-size-small); font-weight: 500; text-transform: uppercase; }
|
|
1224
1224
|
.site-item-heading-toggle svg { flex: none; transition: transform 150ms ease; }
|
|
1225
1225
|
.site-item-heading-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
|
|
1226
|
-
.site-item-heading-toggle.components-button:
|
|
1226
|
+
.site-item-heading-toggle.components-button:focus-visible:not(:disabled) { outline: 2px solid var(--sp-ui-accent); outline-offset: 2px; box-shadow: none; }
|
|
1227
1227
|
.site-item-heading-content:not([hidden]) { display: grid; gap: 16px; padding: 12px 0 0; }
|
|
1228
1228
|
.site-item-heading-content[hidden] { display: none !important; }
|
|
1229
1229
|
.site-item-heading-content .site-heading-setting { margin: 0; }
|
|
@@ -1240,12 +1240,12 @@
|
|
|
1240
1240
|
|
|
1241
1241
|
.site-setting-label{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}
|
|
1242
1242
|
.site-field-color>legend{width:100%}
|
|
1243
|
-
.site-setting-reset.components-button.components-button{height:auto;min-height:0;padding:0;color:#757575;font-size:
|
|
1243
|
+
.site-setting-reset.components-button.components-button{height:auto;min-height:0;padding:0;color:#757575;font-size:var(--sp-ui-label-size);line-height:1.5;text-decoration:underline;text-underline-offset:2px;background:none;box-shadow:none}
|
|
1244
1244
|
.site-setting-reset.components-button.components-button:hover:not(:disabled){color:var(--wp-admin-theme-color,#3858e9)}
|
|
1245
1245
|
.site-setting-reset.components-button.components-button:disabled{color:#949494;opacity:1}
|
|
1246
1246
|
.site-setting-reset.components-button.components-button:focus-visible{outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:3px;box-shadow:none}
|
|
1247
1247
|
.site-inline-icon-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
|
|
1248
|
-
.site-inline-icon-heading strong{font-size:
|
|
1248
|
+
.site-inline-icon-heading strong{font-size:var(--sp-ui-font-size-small)}
|
|
1249
1249
|
.editor-styles-wrapper img.site-inline-icon{cursor:pointer;pointer-events:auto}
|
|
1250
1250
|
.editor-styles-wrapper img.site-inline-icon[data-rich-text-format-boundary]{outline:1px solid var(--wp-admin-theme-color,#3858e9);outline-offset:3px}
|
|
1251
1251
|
|
|
@@ -1261,7 +1261,7 @@
|
|
|
1261
1261
|
.site-field-control-heading>span{min-width:0}
|
|
1262
1262
|
.site-appearance-toggle{line-height:0;justify-self:end}
|
|
1263
1263
|
.site-field-appearance-panel{padding:12px 16px;border-bottom:1px solid #e0e0e0}
|
|
1264
|
-
.site-field-appearance{font-size:
|
|
1264
|
+
.site-field-appearance{font-size:var(--sp-ui-font-size-small);font-weight:500}
|
|
1265
1265
|
.site-field-labeled-control{display:grid;gap:8px}
|
|
1266
1266
|
.site-appearance-disclosure{grid-column:1/-1;min-width:0;padding:4px 0 8px;color:var(--sp-ui-ink,#1e1e1e);font:normal 13px/1.4 var(--sp-ui-font,system-ui,sans-serif);text-transform:none;letter-spacing:normal}
|
|
1267
1267
|
.site-appearance-disclosure[hidden]{display:none}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
.sp-media-device-tabs span {
|
|
50
50
|
text-transform: capitalize;
|
|
51
|
-
font-size:
|
|
51
|
+
font-size: var(--sp-ui-label-size);
|
|
52
52
|
}
|
|
53
53
|
.sp-media-control-preview {
|
|
54
54
|
display: grid;
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
gap: 8px;
|
|
79
79
|
padding: 16px;
|
|
80
80
|
color: var(--sp-ui-muted, #50575e);
|
|
81
|
-
font-size:
|
|
81
|
+
font-size: var(--sp-ui-font-size-small);
|
|
82
82
|
line-height: 1.5;
|
|
83
83
|
text-align: center;
|
|
84
84
|
}
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
margin: 0 !important;
|
|
101
101
|
}
|
|
102
102
|
.sp-media-control .components-base-control__label {
|
|
103
|
-
font-size:
|
|
103
|
+
font-size: var(--sp-ui-label-size) !important;
|
|
104
104
|
font-weight: 600 !important;
|
|
105
105
|
color: var(--sp-ui-muted, #50575e);
|
|
106
106
|
}
|
|
@@ -119,14 +119,14 @@
|
|
|
119
119
|
.sp-media-advanced summary {
|
|
120
120
|
cursor: pointer;
|
|
121
121
|
font-weight: 500;
|
|
122
|
-
font-size:
|
|
122
|
+
font-size: var(--sp-ui-font-size-small);
|
|
123
123
|
}
|
|
124
124
|
.sp-media-advanced .components-base-control {
|
|
125
125
|
margin-top: 12px !important;
|
|
126
126
|
}
|
|
127
127
|
.sp-media-help {
|
|
128
128
|
margin: 0;
|
|
129
|
-
font-size:
|
|
129
|
+
font-size: var(--sp-ui-label-size);
|
|
130
130
|
line-height: 1.5;
|
|
131
131
|
color: var(--sp-ui-muted, #50575e);
|
|
132
132
|
}
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
}
|
|
136
136
|
.sp-media-error {
|
|
137
137
|
margin: 0;
|
|
138
|
-
font-size:
|
|
138
|
+
font-size: var(--sp-ui-font-size-small);
|
|
139
139
|
color: #b32d2e;
|
|
140
140
|
}
|
|
141
141
|
.sp-media-control svg {
|
package/dist/admin-ui/README.md
CHANGED
|
@@ -46,3 +46,14 @@ The booking module uses Russian UI at the user's explicit request.
|
|
|
46
46
|
Popover positions follow their anchors during page/dialog scrolling and resize; an offscreen anchor closes its popover. List scrolling remains independent. Time fields without an hourly step provide separate 24-hour and 00–59 minute columns plus a Done action, while `step=3600` retains whole-hour choices.
|
|
47
47
|
|
|
48
48
|
Floating card actions use `--site-card-tools-inset` (20px by default) from the top and right edges. Apply this consistently to list items, media/background controls and record controls. Text button tools and column-outline tools keep their own anchor positions.
|
|
49
|
+
|
|
50
|
+
## Shared inspector typography
|
|
51
|
+
|
|
52
|
+
All Kit block inspectors use the existing OrderedInspectorControls scope, including Cols, shell settings and form fields/layout/delivery. Site canvas typography is independent.
|
|
53
|
+
|
|
54
|
+
- System UI font: 13px / 1.4. Supporting descriptions: 12px / 1.5.
|
|
55
|
+
- Field labels: 11px, weight 500, uppercase. Panel headings: 13px, weight 600, normal case.
|
|
56
|
+
- Reset links: 11px, normal case; aligned with their label, retaining an independent keyboard focus.
|
|
57
|
+
- Inputs/selects: 40px minimum height. Compact actions and segmented choices: 32px minimum height; 16px icons. Preview tiles and canvas affordances retain their purpose-specific geometry.
|
|
58
|
+
- Labels use an 8px gap; related fields use 16px. Reuse --sp-ui-space and typography/control tokens rather than individual measurements.
|
|
59
|
+
- Do not style third-party WordPress panels or site content with this control scope. Keep radio/keyboard behavior, field IDs, saved keys and callbacks unchanged.
|