@nubisco/ui 1.51.0 → 1.52.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/dist/components/Shell.vue.d.ts +6 -1
- package/dist/components/Shell.vue.d.ts.map +1 -1
- package/dist/components/ShellPanel.vue.d.ts.map +1 -1
- package/dist/components/Slider.vue.d.ts.map +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +10189 -10140
- package/dist/index.mjs.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/src/styles/patterns/_inspector.scss +26 -3
package/package.json
CHANGED
|
@@ -32,9 +32,12 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
// Two-column rows: label left (quiet), control right, so every value shares
|
|
35
|
-
// one left edge you scan straight down and each field is half as tall.
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
// one left edge you scan straight down and each field is half as tall. Only
|
|
36
|
+
// fields that HAVE a label get the two-column grid; a label-less input (e.g.
|
|
37
|
+
// a bare list of text inputs) stays full width instead of gaining a phantom
|
|
38
|
+
// empty label column.
|
|
39
|
+
.nb-text-input:has(> .nb-label),
|
|
40
|
+
.nb-select:has(> .nb-label) {
|
|
38
41
|
display: grid;
|
|
39
42
|
grid-template-columns: var(--nb-inspector-label-width) minmax(0, 1fr);
|
|
40
43
|
align-items: center;
|
|
@@ -53,4 +56,24 @@
|
|
|
53
56
|
text-transform: none;
|
|
54
57
|
letter-spacing: 0;
|
|
55
58
|
}
|
|
59
|
+
|
|
60
|
+
// Sliders take the same two-column shape. The default variant's field-box is
|
|
61
|
+
// display:contents, so override it to a block to make it the value cell, and
|
|
62
|
+
// let the track shrink into the narrower column beside its readout.
|
|
63
|
+
.nb-slider:has(> .nb-slider__label) {
|
|
64
|
+
display: grid;
|
|
65
|
+
grid-template-columns: var(--nb-inspector-label-width) minmax(0, 1fr);
|
|
66
|
+
align-items: center;
|
|
67
|
+
column-gap: 10px;
|
|
68
|
+
|
|
69
|
+
.nb-slider__label {
|
|
70
|
+
font-size: var(--nb-font-size-11, 11px);
|
|
71
|
+
line-height: 1.2;
|
|
72
|
+
color: var(--nb-c-text-muted);
|
|
73
|
+
}
|
|
74
|
+
.nb-slider__field-box {
|
|
75
|
+
display: block;
|
|
76
|
+
min-width: 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
56
79
|
}
|