@nordcode/ui 1.3.2 → 2.0.1
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 +27 -0
- package/out/bundle.css +22 -24
- package/out/bundle_configless.css +20 -20
- package/out/complete.css +74 -76
- package/out/complete_configless.css +72 -72
- package/package.json +1 -1
- package/src/styles/components/alerts.css +1 -1
- package/src/styles/components/badges.css +1 -2
- package/src/styles/components/breadcrumbs.css +1 -1
- package/src/styles/components/buttons.css +21 -15
- package/src/styles/components/card.css +1 -0
- package/src/styles/components/dialogs.css +3 -3
- package/src/styles/components/forms.css +4 -4
- package/src/styles/components/icons.css +2 -2
- package/src/styles/components/inputs/base.css +6 -6
- package/src/styles/components/inputs/fields.css +5 -5
- package/src/styles/components/inputs/segmented.css +2 -2
- package/src/styles/components/inputs/tag-select.css +3 -2
- package/src/styles/components/lists.css +2 -2
- package/src/styles/components/notifications.css +2 -2
- package/src/styles/config/extras.css +2 -5
- package/src/styles/utils/base.css +17 -17
- package/src/styles/utils/reset.css +1 -1
- package/src/styles/utils/theme.css +2 -2
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
|
|
112
112
|
:where(:not(:active):focus-visible) {
|
|
113
113
|
outline: var(--border-width-medium) solid var(--color-brand-primary-base);
|
|
114
|
-
outline-offset: .5em;
|
|
114
|
+
outline-offset: var(--control-spacing-near, .5em);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
:where(:focus:not(:focus-visible)) {
|
|
@@ -217,14 +217,14 @@
|
|
|
217
217
|
|
|
218
218
|
:where(dd):not(:last-of-type) {
|
|
219
219
|
border-bottom: var(--border-width-thin) solid var(--color-border-muted);
|
|
220
|
-
padding-block-end: .
|
|
220
|
+
padding-block-end: var(--control-spacing-base, .75em);
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
:where(dl:not([class]), .nc-description-list) {
|
|
224
224
|
overflow-wrap: anywhere;
|
|
225
|
-
grid-template-columns: .25fr .75fr;
|
|
226
225
|
align-items: flex-start;
|
|
227
|
-
row-gap: .
|
|
226
|
+
row-gap: var(--control-spacing-base, .75em);
|
|
227
|
+
grid-template-columns: .25fr .75fr;
|
|
228
228
|
inline-size: 100%;
|
|
229
229
|
max-inline-size: 100%;
|
|
230
230
|
display: grid;
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
|
|
247
247
|
:where(dt):not(:last-of-type) {
|
|
248
248
|
border-bottom: var(--border-width-thin) solid var(--color-border-muted);
|
|
249
|
-
padding-block-end: .
|
|
249
|
+
padding-block-end: var(--control-spacing-base, .75em);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
:where(dd) {
|
|
@@ -277,13 +277,13 @@
|
|
|
277
277
|
:where(figcaption) {
|
|
278
278
|
color: var(--color-surface-subtle);
|
|
279
279
|
background-color: var(--color-text-base);
|
|
280
|
-
padding: .
|
|
280
|
+
padding: var(--control-spacing-nearest, .375em) var(--control-spacing-base, .75em);
|
|
281
281
|
display: block;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
:where(details) {
|
|
285
|
-
--p-x-details: 1em;
|
|
286
|
-
--p-y-details: 1em;
|
|
285
|
+
--p-x-details: var(--control-spacing-far, 1em);
|
|
286
|
+
--p-y-details: var(--control-spacing-far, 1em);
|
|
287
287
|
--b-r-details: var(--border-radius-medium);
|
|
288
288
|
background-color: var(--color-surface-muted);
|
|
289
289
|
border-radius: var(--b-r-details);
|
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
font-size: var(--font-size-large);
|
|
316
316
|
margin-inline: 0;
|
|
317
317
|
padding: 0;
|
|
318
|
-
padding-inline-start: 1em;
|
|
318
|
+
padding-inline-start: var(--control-spacing-far, 1em);
|
|
319
319
|
position: relative;
|
|
320
320
|
}
|
|
321
321
|
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
|
|
343
343
|
:is(.note, blockquote) cite:before {
|
|
344
344
|
content: "—";
|
|
345
|
-
margin-inline-end: .5em;
|
|
345
|
+
margin-inline-end: var(--control-spacing-near, .5em);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
cite {
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
:where(a, .nc-link) {
|
|
406
406
|
color: inherit;
|
|
407
407
|
font-family: var(--font-family-link);
|
|
408
|
-
text-underline-offset: .
|
|
408
|
+
text-underline-offset: var(--control-spacing-nearest, .375em);
|
|
409
409
|
font-weight: var(--font-weight-default);
|
|
410
410
|
cursor: pointer;
|
|
411
411
|
letter-spacing: var(--tracking-tight);
|
|
@@ -452,17 +452,18 @@
|
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
:where(del, ins, mark, code, kbd, var) {
|
|
455
|
+
padding-inline: var(--control-spacing-tiny, .25em);
|
|
455
456
|
border-radius: var(--border-radius-small);
|
|
456
457
|
line-height: inherit;
|
|
457
458
|
-webkit-box-decoration-break: clone;
|
|
458
459
|
box-decoration-break: clone;
|
|
459
|
-
padding-inline: .25em;
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
:where(code, kbd, var) {
|
|
463
463
|
font-family: var(--font-family-mono);
|
|
464
464
|
letter-spacing: 0;
|
|
465
465
|
font-weight: var(--font-weight-default);
|
|
466
|
+
padding-block: var(--control-spacing-minimal, .125em);
|
|
466
467
|
-webkit-hyphens: none;
|
|
467
468
|
hyphens: none;
|
|
468
469
|
tab-size: 4;
|
|
@@ -470,7 +471,6 @@
|
|
|
470
471
|
word-spacing: normal;
|
|
471
472
|
overflow-wrap: normal;
|
|
472
473
|
max-inline-size: fit-content;
|
|
473
|
-
padding-block: .2em;
|
|
474
474
|
font-style: normal;
|
|
475
475
|
}
|
|
476
476
|
|
|
@@ -491,13 +491,13 @@
|
|
|
491
491
|
}
|
|
492
492
|
|
|
493
493
|
:where(pre) {
|
|
494
|
+
padding: var(--control-spacing-far, 1em);
|
|
494
495
|
inline-size: 100%;
|
|
495
496
|
color: var(--color-text-base);
|
|
496
497
|
border: var(--border-width-medium) solid var(--color-border-base);
|
|
497
498
|
border-radius: var(--border-radius-medium);
|
|
498
499
|
background: var(--color-surface-subtle);
|
|
499
500
|
-webkit-overflow-scrolling: touch;
|
|
500
|
-
padding: 1em;
|
|
501
501
|
overflow-x: auto;
|
|
502
502
|
}
|
|
503
503
|
|
|
@@ -535,10 +535,10 @@
|
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
:where(td, th) {
|
|
538
|
+
padding: var(--control-spacing-near, .5em);
|
|
538
539
|
line-height: var(--line-height-small);
|
|
539
540
|
white-space: nowrap;
|
|
540
541
|
font-variant-numeric: tabular-nums;
|
|
541
|
-
padding: .5em;
|
|
542
542
|
}
|
|
543
543
|
|
|
544
544
|
:where(td), :where(thead th) {
|
|
@@ -608,11 +608,11 @@
|
|
|
608
608
|
}
|
|
609
609
|
|
|
610
610
|
:where(ul, ol) {
|
|
611
|
-
padding-inline-start:
|
|
611
|
+
padding-inline-start: var(--control-spacing-farthest, 1.5em);
|
|
612
612
|
}
|
|
613
613
|
|
|
614
614
|
:where(li + li), :where(li > :is(ul, ol)) {
|
|
615
|
-
margin-block-start: .5em;
|
|
615
|
+
margin-block-start: var(--control-spacing-near, .5em);
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
@supports (font-variant-position: sub) {
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
content: close-quote;
|
|
647
647
|
content: "“";
|
|
648
648
|
content: "”";
|
|
649
|
-
margin-inline-start:
|
|
649
|
+
margin-inline-start: calc(-1 * var(--control-spacing-near, .5em));
|
|
650
650
|
}
|
|
651
651
|
|
|
652
652
|
:where(.quoted p) {
|
|
@@ -993,7 +993,7 @@
|
|
|
993
993
|
* {
|
|
994
994
|
--text: var(--color-text-muted);
|
|
995
995
|
--color: var(--color-text-muted);
|
|
996
|
-
--surface:
|
|
996
|
+
--surface: var(--color-surface-base);
|
|
997
997
|
--border: var(--color-border-muted);
|
|
998
998
|
--text-hover: var(--color-text-on-emphasis);
|
|
999
999
|
--color-hover: var(--color-text-on-emphasis);
|
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
.-neutral {
|
|
1027
1027
|
--text: var(--color-text-muted);
|
|
1028
1028
|
--color: var(--color-text-muted);
|
|
1029
|
-
--surface:
|
|
1029
|
+
--surface: var(--color-surface-base);
|
|
1030
1030
|
--border: var(--color-border-muted);
|
|
1031
1031
|
--text-hover: var(--color-text-on-emphasis);
|
|
1032
1032
|
--color-hover: var(--color-text-on-emphasis);
|
|
@@ -1221,7 +1221,7 @@
|
|
|
1221
1221
|
:where(.nc-alert) {
|
|
1222
1222
|
background: var(--surface);
|
|
1223
1223
|
color: var(--text);
|
|
1224
|
-
gap: .75em;
|
|
1224
|
+
gap: var(--control-spacing-base, .75em);
|
|
1225
1225
|
}
|
|
1226
1226
|
|
|
1227
1227
|
:where(.nc-alert) > .nc-icon {
|
|
@@ -1247,9 +1247,8 @@
|
|
|
1247
1247
|
border: var(--border-width-thin) solid var(--text, var(--color-text-base));
|
|
1248
1248
|
border-radius: var(--border-radius-small);
|
|
1249
1249
|
background: var(--surface, transparent);
|
|
1250
|
+
padding: var(--control-spacing-minimal, .125em) var(--control-spacing-near, .5em);
|
|
1250
1251
|
inline-size: max-content;
|
|
1251
|
-
padding: .5em;
|
|
1252
|
-
line-height: 1;
|
|
1253
1252
|
}
|
|
1254
1253
|
}
|
|
1255
1254
|
|
|
@@ -1270,10 +1269,10 @@
|
|
|
1270
1269
|
}
|
|
1271
1270
|
|
|
1272
1271
|
:where(.nc-breadcrumb-item):not(:last-child):after {
|
|
1272
|
+
padding-inline: var(--control-spacing-near, .5em);
|
|
1273
1273
|
color: inherit;
|
|
1274
1274
|
content: "›";
|
|
1275
1275
|
font-size: inherit;
|
|
1276
|
-
padding-inline: .5em;
|
|
1277
1276
|
}
|
|
1278
1277
|
|
|
1279
1278
|
:where(.nc-breadcrumb-link) {
|
|
@@ -1309,13 +1308,13 @@
|
|
|
1309
1308
|
--_button-border-color-hover: var(--button-border-color-hover, var(--border));
|
|
1310
1309
|
--_button-box-shadow: var(--button-box-shadow, var(--shadow-near));
|
|
1311
1310
|
--_button-hover-shadow: var(--button-hover-shadow, var(--shadow-nearest));
|
|
1312
|
-
--_button-padding-inline: var(--button-padding-inline,
|
|
1311
|
+
--_button-padding-inline: var(--button-padding-inline, var(--control-spacing-base, .75em));
|
|
1313
1312
|
background-color: var(--_button-background);
|
|
1314
1313
|
color: var(--_button-color);
|
|
1315
1314
|
border: var(--border-width-thin) solid var(--_button-border-color);
|
|
1316
1315
|
border-radius: var(--_button-border-radius);
|
|
1317
1316
|
padding-inline: var(--_button-padding-inline);
|
|
1318
|
-
min-block-size: var(--
|
|
1317
|
+
min-block-size: var(--control-height-base);
|
|
1319
1318
|
font-family: var(--font-family-button);
|
|
1320
1319
|
letter-spacing: var(--tracking-tight);
|
|
1321
1320
|
font-weight: var(--font-weight-default);
|
|
@@ -1406,8 +1405,8 @@
|
|
|
1406
1405
|
}
|
|
1407
1406
|
|
|
1408
1407
|
:where(button:not([class]), button[type]:not([class]), input[type="button"]:not([class]), input[type="submit"]:not([class]), input[type="reset"]:not([class]), .nc-button).-small {
|
|
1409
|
-
--_button-padding-inline: .5em;
|
|
1410
|
-
min-block-size: var(--
|
|
1408
|
+
--_button-padding-inline: var(--control-spacing-near, .5em);
|
|
1409
|
+
min-block-size: var(--control-height-small);
|
|
1411
1410
|
}
|
|
1412
1411
|
|
|
1413
1412
|
:where(button:not([class]), button[type]:not([class]), input[type="button"]:not([class]), input[type="submit"]:not([class]), input[type="reset"]:not([class]), .nc-button).-round {
|
|
@@ -1415,8 +1414,8 @@
|
|
|
1415
1414
|
}
|
|
1416
1415
|
|
|
1417
1416
|
:where(button:not([class]), button[type]:not([class]), input[type="button"]:not([class]), input[type="submit"]:not([class]), input[type="reset"]:not([class]), .nc-button).-offset {
|
|
1418
|
-
--_button-offset-distance: var(--button-offset-distance,
|
|
1419
|
-
--_button-offset-distance-hover: var(--button-offset-distance-hover, -.
|
|
1417
|
+
--_button-offset-distance: var(--button-offset-distance, calc(-1 * var(--control-spacing-minimal)));
|
|
1418
|
+
--_button-offset-distance-hover: var(--button-offset-distance-hover, calc(-.5 * var(--control-spacing-minimal)));
|
|
1420
1419
|
--_button-transform: translate(var(--_button-offset-distance), var(--_button-offset-distance));
|
|
1421
1420
|
--_button-hover-transform: translate(var(--_button-offset-distance-hover), var(--_button-offset-distance-hover));
|
|
1422
1421
|
--button-box-shadow: calc(var(--_button-offset-distance) / -2) calc(var(--_button-offset-distance) / -2) 0 0 var(--shadow-color), calc(var(--_button-offset-distance) * -1) calc(var(--_button-offset-distance) * -1) 0 0 var(--shadow-color), calc(var(--_button-offset-distance) * -1) calc(var(--_button-offset-distance) * -1) calc(var(--_button-offset-distance) * -2) 0 var(--shadow-color);
|
|
@@ -1431,7 +1430,7 @@
|
|
|
1431
1430
|
}
|
|
1432
1431
|
|
|
1433
1432
|
:where(button:not([class]), button[type]:not([class]), input[type="button"]:not([class]), input[type="submit"]:not([class]), input[type="reset"]:not([class]), .nc-button):has(svg) {
|
|
1434
|
-
gap: .25em;
|
|
1433
|
+
gap: var(--control-spacing-tiny, .25em);
|
|
1435
1434
|
}
|
|
1436
1435
|
|
|
1437
1436
|
:where(button:not([class]), button[type]:not([class]), input[type="button"]:not([class]), input[type="submit"]:not([class]), input[type="reset"]:not([class]), .nc-button)[aria-label], :where(button:not([class]), button[type]:not([class]), input[type="button"]:not([class]), input[type="submit"]:not([class]), input[type="reset"]:not([class]), .nc-button).-icon {
|
|
@@ -1443,15 +1442,15 @@
|
|
|
1443
1442
|
|
|
1444
1443
|
:is(:where(button:not([class]), button[type]:not([class]), input[type="button"]:not([class]), input[type="submit"]:not([class]), input[type="reset"]:not([class]), .nc-button)[aria-label], :where(button:not([class]), button[type]:not([class]), input[type="button"]:not([class]), input[type="submit"]:not([class]), input[type="reset"]:not([class]), .nc-button).-icon):after {
|
|
1445
1444
|
content: "";
|
|
1446
|
-
inline-size: max(var(--
|
|
1447
|
-
block-size: max(var(--
|
|
1445
|
+
inline-size: max(var(--control-height-base), 100%);
|
|
1446
|
+
block-size: max(var(--control-height-base), 100%);
|
|
1448
1447
|
aspect-ratio: 1;
|
|
1449
1448
|
z-index: -1;
|
|
1450
1449
|
pointer-events: all;
|
|
1451
1450
|
border-radius: 100%;
|
|
1452
1451
|
position: absolute;
|
|
1453
|
-
inset-block-start: calc(-.5 * (var(--
|
|
1454
|
-
inset-inline-start: calc(-.5 * (var(--
|
|
1452
|
+
inset-block-start: calc(-.5 * (var(--control-height-base) - 100%));
|
|
1453
|
+
inset-inline-start: calc(-.5 * (var(--control-height-base) - 100%));
|
|
1455
1454
|
}
|
|
1456
1455
|
|
|
1457
1456
|
:is(:where(button:not([class]), button[type]:not([class]), input[type="button"]:not([class]), input[type="submit"]:not([class]), input[type="reset"]:not([class]), .nc-button)[aria-label], :where(button:not([class]), button[type]:not([class]), input[type="button"]:not([class]), input[type="submit"]:not([class]), input[type="reset"]:not([class]), .nc-button).-icon) > svg {
|
|
@@ -1470,9 +1469,10 @@
|
|
|
1470
1469
|
color: var(--_input-color);
|
|
1471
1470
|
background-color: var(--_input-background);
|
|
1472
1471
|
border: var(--_input-border);
|
|
1473
|
-
min-block-size: var(--
|
|
1472
|
+
min-block-size: var(--control-height-base);
|
|
1474
1473
|
border-radius: var(--_input-border-radius);
|
|
1475
|
-
padding-inline: 0
|
|
1474
|
+
padding-inline-start: 0;
|
|
1475
|
+
padding-inline-end: var(--contol-spacing-near, .5em);
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
1478
|
:where(input[type="file"]:not([class]))::-webkit-file-upload-button {
|
|
@@ -1481,12 +1481,12 @@
|
|
|
1481
1481
|
padding-inline: var(--_button-padding-inline);
|
|
1482
1482
|
cursor: pointer;
|
|
1483
1483
|
box-shadow: none;
|
|
1484
|
-
min-block-size: calc(var(--
|
|
1484
|
+
min-block-size: calc(var(--control-height-base) - var(--border-width-thin));
|
|
1485
1485
|
border: none;
|
|
1486
1486
|
border-inline-end: var(--border-width-thin) solid var(--color-border-base);
|
|
1487
1487
|
border-start-end-radius: 0;
|
|
1488
1488
|
border-end-end-radius: 0;
|
|
1489
|
-
margin-inline-end: .5em;
|
|
1489
|
+
margin-inline-end: var(--contol-spacing-near, .5em);
|
|
1490
1490
|
inset-block-start: 0;
|
|
1491
1491
|
inset-inline-start: 0;
|
|
1492
1492
|
transform: none;
|
|
@@ -1498,12 +1498,12 @@
|
|
|
1498
1498
|
padding-inline: var(--_button-padding-inline);
|
|
1499
1499
|
cursor: pointer;
|
|
1500
1500
|
box-shadow: none;
|
|
1501
|
-
min-block-size: calc(var(--
|
|
1501
|
+
min-block-size: calc(var(--control-height-base) - var(--border-width-thin));
|
|
1502
1502
|
border: none;
|
|
1503
1503
|
border-inline-end: var(--border-width-thin) solid var(--color-border-base);
|
|
1504
1504
|
border-start-end-radius: 0;
|
|
1505
1505
|
border-end-end-radius: 0;
|
|
1506
|
-
margin-inline-end: .5em;
|
|
1506
|
+
margin-inline-end: var(--contol-spacing-near, .5em);
|
|
1507
1507
|
inset-block-start: 0;
|
|
1508
1508
|
inset-inline-start: 0;
|
|
1509
1509
|
transform: none;
|
|
@@ -1590,7 +1590,7 @@
|
|
|
1590
1590
|
text-decoration: none;
|
|
1591
1591
|
}
|
|
1592
1592
|
|
|
1593
|
-
:where(.nc-clickable-card) a[data-link="main"]:focus-within:focus-visible, :where(.nc-clickable-card) a[data-link="main"]:hover {
|
|
1593
|
+
:where(.nc-clickable-card) a[data-link="main"]:focus-visible, :where(.nc-clickable-card) a[data-link="main"]:focus-within:focus-visible, :where(.nc-clickable-card) a[data-link="main"]:hover {
|
|
1594
1594
|
outline: none;
|
|
1595
1595
|
}
|
|
1596
1596
|
|
|
@@ -1609,7 +1609,7 @@
|
|
|
1609
1609
|
:where(.nc-dialog) {
|
|
1610
1610
|
--_dialog-padding-inline: var(--dialog-padding-inline, var(--spacing-base));
|
|
1611
1611
|
--_dialog-layout-padding: var(--layout-padding, var(--spacing-base));
|
|
1612
|
-
--_dialog-close-size: var(--dialog-close-size, var(--
|
|
1612
|
+
--_dialog-close-size: var(--dialog-close-size, var(--control-height-base));
|
|
1613
1613
|
--_dialog-transition-duration: var(--dialog-transition-duration, var(--transition-duration-base));
|
|
1614
1614
|
--_dialog-max-block-size: var(--dialog-max-block-size, 90dvh);
|
|
1615
1615
|
--_dialog-max-inline-size: var(--dialog-max-inline-size, 28rem);
|
|
@@ -1623,7 +1623,7 @@
|
|
|
1623
1623
|
max-inline-size: var(--_dialog-max-inline-size);
|
|
1624
1624
|
background: var(--color-surface-base);
|
|
1625
1625
|
border-radius: var(--_dialog-radius);
|
|
1626
|
-
overflow-clip-margin: 1em;
|
|
1626
|
+
overflow-clip-margin: var(--control-spacing-far, 1em);
|
|
1627
1627
|
pointer-events: all;
|
|
1628
1628
|
max-block-size: 100dvh;
|
|
1629
1629
|
margin: auto 0;
|
|
@@ -1663,7 +1663,7 @@
|
|
|
1663
1663
|
block-size: max-content;
|
|
1664
1664
|
inline-size: 100%;
|
|
1665
1665
|
max-block-size: var(--_dialog-max-block-size);
|
|
1666
|
-
overflow-clip-margin: 1em;
|
|
1666
|
+
overflow-clip-margin: var(--control-spacing-far, 1em);
|
|
1667
1667
|
grid-template: "header header"
|
|
1668
1668
|
"content content" 1fr
|
|
1669
1669
|
"footer footer"
|
|
@@ -1758,9 +1758,9 @@
|
|
|
1758
1758
|
}
|
|
1759
1759
|
|
|
1760
1760
|
:where(.nc-form-hint) {
|
|
1761
|
+
margin-block: var(--control-spacing-base, .75em);
|
|
1761
1762
|
font-size: var(--font-size-large);
|
|
1762
1763
|
color: var(--color-text-muted);
|
|
1763
|
-
margin-block: .75em;
|
|
1764
1764
|
}
|
|
1765
1765
|
|
|
1766
1766
|
:where(fieldset:not([class]), .nc-fieldset) {
|
|
@@ -1778,12 +1778,12 @@
|
|
|
1778
1778
|
}
|
|
1779
1779
|
|
|
1780
1780
|
:where(legend:not([class]), .nc-legend) + * {
|
|
1781
|
-
margin-block-start: var(--nc-legend-spacing, 1em);
|
|
1781
|
+
margin-block-start: var(--nc-legend-spacing, var(--control-spacing-far, 1em));
|
|
1782
1782
|
}
|
|
1783
1783
|
|
|
1784
1784
|
:where(:is(fieldset:not([class]), .nc-fieldset):has(:is(.nc-legend + .nc-hint, legend:not([class]) + .nc-hint)) > :is(legend:not([class]), .nc-legend) + .nc-hint) {
|
|
1785
|
-
--nc-legend-spacing: .
|
|
1786
|
-
margin-block
|
|
1785
|
+
--nc-legend-spacing: var(--control-spacing-tiny, .25em);
|
|
1786
|
+
margin-block: var(--control-spacing-base, .75em);
|
|
1787
1787
|
}
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
@@ -1872,7 +1872,7 @@
|
|
|
1872
1872
|
}
|
|
1873
1873
|
|
|
1874
1874
|
:where(.nc-icon)[data-size="button"] {
|
|
1875
|
-
--icon-size: var(--
|
|
1875
|
+
--icon-size: var(--control-height-base);
|
|
1876
1876
|
}
|
|
1877
1877
|
|
|
1878
1878
|
:where(.nc-icon)[data-animation="spinning"] {
|
|
@@ -1915,8 +1915,8 @@
|
|
|
1915
1915
|
--_input-box-shadow: var(--input-box-shadow, var(--shadow-inset));
|
|
1916
1916
|
--_input-outline: var(--input-outline, var(--border-width-medium) solid var(--color-brand-primary-base));
|
|
1917
1917
|
--_input-disabled-filter: var(--input-disabled-filter, contrast(.72) opacity(.72));
|
|
1918
|
-
--_input-padding-block: var(--input-padding-block, .
|
|
1919
|
-
--_input-padding-inline: var(--input-padding-inline,
|
|
1918
|
+
--_input-padding-block: var(--input-padding-block, var(--control-spacing-tiny, .25em));
|
|
1919
|
+
--_input-padding-inline: var(--input-padding-inline, var(--control-spacing-base, .75em));
|
|
1920
1920
|
--_input-hover-background: var(--input-hover-background, var(--color-brand-primary-hover));
|
|
1921
1921
|
}
|
|
1922
1922
|
|
|
@@ -1929,7 +1929,7 @@
|
|
|
1929
1929
|
background-color: var(--_input-background);
|
|
1930
1930
|
border: var(--_input-border);
|
|
1931
1931
|
border-radius: var(--_input-border-radius);
|
|
1932
|
-
block-size: var(--
|
|
1932
|
+
block-size: var(--control-height-base);
|
|
1933
1933
|
padding-inline: var(--_input-padding-inline);
|
|
1934
1934
|
box-shadow: var(--_input-box-shadow);
|
|
1935
1935
|
inline-size: var(--input-inline-size, auto);
|
|
@@ -2051,7 +2051,7 @@
|
|
|
2051
2051
|
:where(input[type="color"], .nc-input-color) {
|
|
2052
2052
|
aspect-ratio: 1;
|
|
2053
2053
|
inline-size: auto;
|
|
2054
|
-
padding:
|
|
2054
|
+
padding: var(--control-spacing-minimal, .125em);
|
|
2055
2055
|
}
|
|
2056
2056
|
|
|
2057
2057
|
:where(input[type="date"], .nc-input-date) {
|
|
@@ -2064,8 +2064,8 @@
|
|
|
2064
2064
|
|
|
2065
2065
|
:where(input[type="range"], .nc-input-range)::-webkit-slider-thumb {
|
|
2066
2066
|
appearance: none;
|
|
2067
|
-
inline-size: calc(var(--
|
|
2068
|
-
block-size: calc(var(--
|
|
2067
|
+
inline-size: calc(var(--control-height-base) * .625);
|
|
2068
|
+
block-size: calc(var(--control-height-base) * .625);
|
|
2069
2069
|
border-radius: var(--_input-border-radius);
|
|
2070
2070
|
border: var(--_input-border);
|
|
2071
2071
|
border-color: var(--color-text-base);
|
|
@@ -2081,8 +2081,8 @@
|
|
|
2081
2081
|
|
|
2082
2082
|
:where(input[type="range"], .nc-input-range)::-moz-range-thumb {
|
|
2083
2083
|
appearance: none;
|
|
2084
|
-
inline-size: calc(var(--
|
|
2085
|
-
block-size: calc(var(--
|
|
2084
|
+
inline-size: calc(var(--control-height-base) * .625);
|
|
2085
|
+
block-size: calc(var(--control-height-base) * .625);
|
|
2086
2086
|
border-radius: var(--_input-border-radius);
|
|
2087
2087
|
border: var(--_input-border);
|
|
2088
2088
|
border-color: var(--color-text-base);
|
|
@@ -2100,11 +2100,11 @@
|
|
|
2100
2100
|
--_tag-select-checked-text-color: var(--tag-select-checked-text-color, var(--color-brand-primary-contrast));
|
|
2101
2101
|
--_tag-select-checked-surface-color: var(--tag-select-checked-surface-color, var(--color-brand-primary-base));
|
|
2102
2102
|
--_tag-select-border-radius: var(--tag-select-border-radius, var(--_input-border-radius));
|
|
2103
|
-
--nc-legend-spacing: .
|
|
2103
|
+
--nc-legend-spacing: var(--control-spacing-near, .5em);
|
|
2104
2104
|
}
|
|
2105
2105
|
|
|
2106
2106
|
:where(.nc-tag-select-field):focus-within:has(:focus-visible) {
|
|
2107
|
-
outline-offset: .5em;
|
|
2107
|
+
outline-offset: var(--controls-spacing-near, .5em);
|
|
2108
2108
|
outline: var(--_input-outline);
|
|
2109
2109
|
border-radius: var(--_tag-select-border-radius);
|
|
2110
2110
|
}
|
|
@@ -2136,12 +2136,12 @@
|
|
|
2136
2136
|
|
|
2137
2137
|
@layer components.input-fields {
|
|
2138
2138
|
:where(.nc-input-field) {
|
|
2139
|
+
gap: var(--control-spacing-near, .5em);
|
|
2139
2140
|
inline-size: 100%;
|
|
2140
2141
|
min-inline-size: var(--input-field-min-inline-size);
|
|
2141
2142
|
max-inline-size: var(--input-field-max-inline-size);
|
|
2142
2143
|
grid-template-columns: minmax(0, 1fr);
|
|
2143
2144
|
place-items: start;
|
|
2144
|
-
gap: .35em;
|
|
2145
2145
|
display: grid;
|
|
2146
2146
|
}
|
|
2147
2147
|
|
|
@@ -2150,7 +2150,7 @@
|
|
|
2150
2150
|
}
|
|
2151
2151
|
|
|
2152
2152
|
:where(.nc-input-field) > .nc-cluster {
|
|
2153
|
-
gap: .
|
|
2153
|
+
gap: var(--control-spacing-base, .75em);
|
|
2154
2154
|
}
|
|
2155
2155
|
|
|
2156
2156
|
:where(.nc-input-error) {
|
|
@@ -2171,7 +2171,7 @@
|
|
|
2171
2171
|
align-items: center;
|
|
2172
2172
|
block-size: 1em;
|
|
2173
2173
|
inline-size: 1em;
|
|
2174
|
-
margin-inline-end: .
|
|
2174
|
+
margin-inline-end: var(--control-spacing-base, .75em);
|
|
2175
2175
|
display: inline-flex;
|
|
2176
2176
|
}
|
|
2177
2177
|
|
|
@@ -2185,7 +2185,7 @@
|
|
|
2185
2185
|
|
|
2186
2186
|
:where(.nc-checkbox-wrapper) > [data-label] {
|
|
2187
2187
|
grid-area: label;
|
|
2188
|
-
padding-inline-start: .
|
|
2188
|
+
padding-inline-start: var(--control-spacing-base, .75em);
|
|
2189
2189
|
}
|
|
2190
2190
|
|
|
2191
2191
|
:where(.nc-checkbox-wrapper) .nc-input-label {
|
|
@@ -2205,7 +2205,7 @@
|
|
|
2205
2205
|
}
|
|
2206
2206
|
|
|
2207
2207
|
:where(.nc-radio-field, .nc-checkbox-field) > :not(:first-child) {
|
|
2208
|
-
margin-block-start: .75em;
|
|
2208
|
+
margin-block-start: var(--control-spacing-far, .75em);
|
|
2209
2209
|
}
|
|
2210
2210
|
}
|
|
2211
2211
|
|
|
@@ -2214,7 +2214,7 @@
|
|
|
2214
2214
|
--_segmented-control-border-radius: var(--segmented-control-border-radius, var(--_input-border-radius));
|
|
2215
2215
|
--_segmented-control-checked-text-color: var(--segmented-control-checked-text-color, var(--color-brand-primary-contrast));
|
|
2216
2216
|
--_segmented-control-checked-surface-color: var(--segmented-control-checked-surface-color, var(--color-brand-primary-base));
|
|
2217
|
-
--nc-legend-spacing: .
|
|
2217
|
+
--nc-legend-spacing: var(--control-spacing-near, .5em);
|
|
2218
2218
|
container: segmented-control / inline-size;
|
|
2219
2219
|
}
|
|
2220
2220
|
|
|
@@ -2242,7 +2242,7 @@
|
|
|
2242
2242
|
:where(.nc-segmented-control) label {
|
|
2243
2243
|
padding-inline: var(--_input-padding-inline);
|
|
2244
2244
|
padding-block: var(--_input-padding-block);
|
|
2245
|
-
min-block-size: var(--segmented-control-min-height, var(--
|
|
2245
|
+
min-block-size: var(--segmented-control-min-height, var(--control-height-base));
|
|
2246
2246
|
color: var(--_input-color);
|
|
2247
2247
|
border: var(--_input-border);
|
|
2248
2248
|
justify-content: center;
|
|
@@ -2371,7 +2371,7 @@
|
|
|
2371
2371
|
}
|
|
2372
2372
|
|
|
2373
2373
|
:where(.nc-meta-list-item):not(:last-child) {
|
|
2374
|
-
margin-block-end: .
|
|
2374
|
+
margin-block-end: var(--control-spacing-base, .75em);
|
|
2375
2375
|
}
|
|
2376
2376
|
|
|
2377
2377
|
@container metalist (width >= 20rem) {
|
|
@@ -2382,8 +2382,8 @@
|
|
|
2382
2382
|
:where(.nc-meta-list-item):not(:last-child):after {
|
|
2383
2383
|
content: "";
|
|
2384
2384
|
border-right: var(--border-width-medium) solid var(--color-border-muted);
|
|
2385
|
+
margin: 0 var(--control-spacing-base, .75em);
|
|
2385
2386
|
transform: calc(var(--border-width-medium) / 2);
|
|
2386
|
-
margin: 0 .5em;
|
|
2387
2387
|
}
|
|
2388
2388
|
}
|
|
2389
2389
|
|
|
@@ -2459,6 +2459,7 @@
|
|
|
2459
2459
|
}
|
|
2460
2460
|
|
|
2461
2461
|
:where(.nc-notification) {
|
|
2462
|
+
padding: var(--control-spacing-near, .5em) var(--control-spacing-base, .75em);
|
|
2462
2463
|
background: var(--color-surface-base);
|
|
2463
2464
|
border: var(--border-width-thin) solid var(--_notification-border-color);
|
|
2464
2465
|
border-radius: var(--border-radius-small);
|
|
@@ -2468,7 +2469,6 @@
|
|
|
2468
2469
|
color: var(--color-text-base);
|
|
2469
2470
|
pointer-events: all;
|
|
2470
2471
|
flex-direction: column;
|
|
2471
|
-
padding: .5em 1em;
|
|
2472
2472
|
display: flex;
|
|
2473
2473
|
}
|
|
2474
2474
|
|
|
@@ -2492,10 +2492,10 @@
|
|
|
2492
2492
|
}
|
|
2493
2493
|
|
|
2494
2494
|
:where(.nc-notification-footer) {
|
|
2495
|
+
inline-size: 100%;
|
|
2495
2496
|
justify-content: space-between;
|
|
2496
2497
|
align-items: flex-end;
|
|
2497
|
-
|
|
2498
|
-
margin-block-start: .25em;
|
|
2498
|
+
margin-block-start: var(--control-spacing-tiny, .25em);
|
|
2499
2499
|
display: flex;
|
|
2500
2500
|
}
|
|
2501
2501
|
|
package/package.json
CHANGED
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
border: var(--border-width-thin) solid var(--text, var(--color-text-base));
|
|
8
8
|
border-radius: var(--border-radius-small);
|
|
9
9
|
background: var(--surface, transparent);
|
|
10
|
-
padding: 0.5em;
|
|
10
|
+
padding: var(--control-spacing-minimal, 0.125em) var(--control-spacing-near, 0.5em);
|
|
11
11
|
inline-size: max-content;
|
|
12
|
-
line-height: 1;
|
|
13
12
|
}
|
|
14
13
|
}
|