@nordcode/ui 1.3.1 → 2.0.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 +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/layouts.css +2 -2
- package/src/styles/utils/reset.css +1 -1
package/out/complete.css
CHANGED
|
@@ -211,12 +211,10 @@
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
:where(html) {
|
|
214
|
-
--
|
|
215
|
-
--
|
|
214
|
+
--control-height-base: var(--button-height-base);
|
|
215
|
+
--control-height-small: var(--button-height-small);
|
|
216
216
|
--font-family-link: var(--font-family-default);
|
|
217
217
|
--font-family-button: var(--font-family-default);
|
|
218
|
-
--input-height-base: 2.5rem;
|
|
219
|
-
--input-height-small: 2rem;
|
|
220
218
|
}
|
|
221
219
|
}
|
|
222
220
|
|
|
@@ -331,7 +329,7 @@
|
|
|
331
329
|
|
|
332
330
|
:where(:not(:active):focus-visible) {
|
|
333
331
|
outline: var(--border-width-medium) solid var(--color-brand-primary-base);
|
|
334
|
-
outline-offset: .5em;
|
|
332
|
+
outline-offset: var(--control-spacing-near, .5em);
|
|
335
333
|
}
|
|
336
334
|
|
|
337
335
|
:where(:focus:not(:focus-visible)) {
|
|
@@ -437,14 +435,14 @@
|
|
|
437
435
|
|
|
438
436
|
:where(dd):not(:last-of-type) {
|
|
439
437
|
border-bottom: var(--border-width-thin) solid var(--color-border-muted);
|
|
440
|
-
padding-block-end: .
|
|
438
|
+
padding-block-end: var(--control-spacing-base, .75em);
|
|
441
439
|
}
|
|
442
440
|
|
|
443
441
|
:where(dl:not([class]), .nc-description-list) {
|
|
444
442
|
overflow-wrap: anywhere;
|
|
445
|
-
grid-template-columns: .25fr .75fr;
|
|
446
443
|
align-items: flex-start;
|
|
447
|
-
row-gap: .
|
|
444
|
+
row-gap: var(--control-spacing-base, .75em);
|
|
445
|
+
grid-template-columns: .25fr .75fr;
|
|
448
446
|
inline-size: 100%;
|
|
449
447
|
max-inline-size: 100%;
|
|
450
448
|
display: grid;
|
|
@@ -466,7 +464,7 @@
|
|
|
466
464
|
|
|
467
465
|
:where(dt):not(:last-of-type) {
|
|
468
466
|
border-bottom: var(--border-width-thin) solid var(--color-border-muted);
|
|
469
|
-
padding-block-end: .
|
|
467
|
+
padding-block-end: var(--control-spacing-base, .75em);
|
|
470
468
|
}
|
|
471
469
|
|
|
472
470
|
:where(dd) {
|
|
@@ -497,13 +495,13 @@
|
|
|
497
495
|
:where(figcaption) {
|
|
498
496
|
color: var(--color-surface-subtle);
|
|
499
497
|
background-color: var(--color-text-base);
|
|
500
|
-
padding: .
|
|
498
|
+
padding: var(--control-spacing-nearest, .375em) var(--control-spacing-base, .75em);
|
|
501
499
|
display: block;
|
|
502
500
|
}
|
|
503
501
|
|
|
504
502
|
:where(details) {
|
|
505
|
-
--p-x-details: 1em;
|
|
506
|
-
--p-y-details: 1em;
|
|
503
|
+
--p-x-details: var(--control-spacing-far, 1em);
|
|
504
|
+
--p-y-details: var(--control-spacing-far, 1em);
|
|
507
505
|
--b-r-details: var(--border-radius-medium);
|
|
508
506
|
background-color: var(--color-surface-muted);
|
|
509
507
|
border-radius: var(--b-r-details);
|
|
@@ -535,7 +533,7 @@
|
|
|
535
533
|
font-size: var(--font-size-large);
|
|
536
534
|
margin-inline: 0;
|
|
537
535
|
padding: 0;
|
|
538
|
-
padding-inline-start: 1em;
|
|
536
|
+
padding-inline-start: var(--control-spacing-far, 1em);
|
|
539
537
|
position: relative;
|
|
540
538
|
}
|
|
541
539
|
|
|
@@ -562,7 +560,7 @@
|
|
|
562
560
|
|
|
563
561
|
:is(.note, blockquote) cite:before {
|
|
564
562
|
content: "—";
|
|
565
|
-
margin-inline-end: .5em;
|
|
563
|
+
margin-inline-end: var(--control-spacing-near, .5em);
|
|
566
564
|
}
|
|
567
565
|
|
|
568
566
|
cite {
|
|
@@ -625,7 +623,7 @@
|
|
|
625
623
|
:where(a, .nc-link) {
|
|
626
624
|
color: inherit;
|
|
627
625
|
font-family: var(--font-family-link);
|
|
628
|
-
text-underline-offset: .
|
|
626
|
+
text-underline-offset: var(--control-spacing-nearest, .375em);
|
|
629
627
|
font-weight: var(--font-weight-default);
|
|
630
628
|
cursor: pointer;
|
|
631
629
|
letter-spacing: var(--tracking-tight);
|
|
@@ -672,17 +670,18 @@
|
|
|
672
670
|
}
|
|
673
671
|
|
|
674
672
|
:where(del, ins, mark, code, kbd, var) {
|
|
673
|
+
padding-inline: var(--control-spacing-tiny, .25em);
|
|
675
674
|
border-radius: var(--border-radius-small);
|
|
676
675
|
line-height: inherit;
|
|
677
676
|
-webkit-box-decoration-break: clone;
|
|
678
677
|
box-decoration-break: clone;
|
|
679
|
-
padding-inline: .25em;
|
|
680
678
|
}
|
|
681
679
|
|
|
682
680
|
:where(code, kbd, var) {
|
|
683
681
|
font-family: var(--font-family-mono);
|
|
684
682
|
letter-spacing: 0;
|
|
685
683
|
font-weight: var(--font-weight-default);
|
|
684
|
+
padding-block: var(--control-spacing-minimal, .125em);
|
|
686
685
|
-webkit-hyphens: none;
|
|
687
686
|
hyphens: none;
|
|
688
687
|
tab-size: 4;
|
|
@@ -690,7 +689,6 @@
|
|
|
690
689
|
word-spacing: normal;
|
|
691
690
|
overflow-wrap: normal;
|
|
692
691
|
max-inline-size: fit-content;
|
|
693
|
-
padding-block: .2em;
|
|
694
692
|
font-style: normal;
|
|
695
693
|
}
|
|
696
694
|
|
|
@@ -711,13 +709,13 @@
|
|
|
711
709
|
}
|
|
712
710
|
|
|
713
711
|
:where(pre) {
|
|
712
|
+
padding: var(--control-spacing-far, 1em);
|
|
714
713
|
inline-size: 100%;
|
|
715
714
|
color: var(--color-text-base);
|
|
716
715
|
border: var(--border-width-medium) solid var(--color-border-base);
|
|
717
716
|
border-radius: var(--border-radius-medium);
|
|
718
717
|
background: var(--color-surface-subtle);
|
|
719
718
|
-webkit-overflow-scrolling: touch;
|
|
720
|
-
padding: 1em;
|
|
721
719
|
overflow-x: auto;
|
|
722
720
|
}
|
|
723
721
|
|
|
@@ -755,10 +753,10 @@
|
|
|
755
753
|
}
|
|
756
754
|
|
|
757
755
|
:where(td, th) {
|
|
756
|
+
padding: var(--control-spacing-near, .5em);
|
|
758
757
|
line-height: var(--line-height-small);
|
|
759
758
|
white-space: nowrap;
|
|
760
759
|
font-variant-numeric: tabular-nums;
|
|
761
|
-
padding: .5em;
|
|
762
760
|
}
|
|
763
761
|
|
|
764
762
|
:where(td), :where(thead th) {
|
|
@@ -828,11 +826,11 @@
|
|
|
828
826
|
}
|
|
829
827
|
|
|
830
828
|
:where(ul, ol) {
|
|
831
|
-
padding-inline-start:
|
|
829
|
+
padding-inline-start: var(--control-spacing-farthest, 1.5em);
|
|
832
830
|
}
|
|
833
831
|
|
|
834
832
|
:where(li + li), :where(li > :is(ul, ol)) {
|
|
835
|
-
margin-block-start: .5em;
|
|
833
|
+
margin-block-start: var(--control-spacing-near, .5em);
|
|
836
834
|
}
|
|
837
835
|
|
|
838
836
|
@supports (font-variant-position: sub) {
|
|
@@ -866,7 +864,7 @@
|
|
|
866
864
|
content: close-quote;
|
|
867
865
|
content: "“";
|
|
868
866
|
content: "”";
|
|
869
|
-
margin-inline-start:
|
|
867
|
+
margin-inline-start: calc(-1 * var(--control-spacing-near, .5em));
|
|
870
868
|
}
|
|
871
869
|
|
|
872
870
|
:where(.quoted p) {
|
|
@@ -959,11 +957,11 @@
|
|
|
959
957
|
}
|
|
960
958
|
|
|
961
959
|
:where(.nc-flow) > * {
|
|
962
|
-
max-inline-size: var(--flow-base-meassure,
|
|
960
|
+
max-inline-size: var(--flow-base-meassure, 44em);
|
|
963
961
|
}
|
|
964
962
|
|
|
965
963
|
:where(.nc-flow) > :is(h1, h2, h3, h4, h5, h6) {
|
|
966
|
-
max-inline-size: var(--flow-headline-meassure,
|
|
964
|
+
max-inline-size: var(--flow-headline-meassure, 22em);
|
|
967
965
|
--flow-gap: 1.5lh;
|
|
968
966
|
}
|
|
969
967
|
|
|
@@ -1441,7 +1439,7 @@
|
|
|
1441
1439
|
:where(.nc-alert) {
|
|
1442
1440
|
background: var(--surface);
|
|
1443
1441
|
color: var(--text);
|
|
1444
|
-
gap: .75em;
|
|
1442
|
+
gap: var(--control-spacing-base, .75em);
|
|
1445
1443
|
}
|
|
1446
1444
|
|
|
1447
1445
|
:where(.nc-alert) > .nc-icon {
|
|
@@ -1467,9 +1465,8 @@
|
|
|
1467
1465
|
border: var(--border-width-thin) solid var(--text, var(--color-text-base));
|
|
1468
1466
|
border-radius: var(--border-radius-small);
|
|
1469
1467
|
background: var(--surface, transparent);
|
|
1468
|
+
padding: var(--control-spacing-minimal, .125em) var(--control-spacing-near, .5em);
|
|
1470
1469
|
inline-size: max-content;
|
|
1471
|
-
padding: .5em;
|
|
1472
|
-
line-height: 1;
|
|
1473
1470
|
}
|
|
1474
1471
|
}
|
|
1475
1472
|
|
|
@@ -1490,10 +1487,10 @@
|
|
|
1490
1487
|
}
|
|
1491
1488
|
|
|
1492
1489
|
:where(.nc-breadcrumb-item):not(:last-child):after {
|
|
1490
|
+
padding-inline: var(--control-spacing-near, .5em);
|
|
1493
1491
|
color: inherit;
|
|
1494
1492
|
content: "›";
|
|
1495
1493
|
font-size: inherit;
|
|
1496
|
-
padding-inline: .5em;
|
|
1497
1494
|
}
|
|
1498
1495
|
|
|
1499
1496
|
:where(.nc-breadcrumb-link) {
|
|
@@ -1529,13 +1526,13 @@
|
|
|
1529
1526
|
--_button-border-color-hover: var(--button-border-color-hover, var(--border));
|
|
1530
1527
|
--_button-box-shadow: var(--button-box-shadow, var(--shadow-near));
|
|
1531
1528
|
--_button-hover-shadow: var(--button-hover-shadow, var(--shadow-nearest));
|
|
1532
|
-
--_button-padding-inline: var(--button-padding-inline,
|
|
1529
|
+
--_button-padding-inline: var(--button-padding-inline, var(--control-spacing-base, .75em));
|
|
1533
1530
|
background-color: var(--_button-background);
|
|
1534
1531
|
color: var(--_button-color);
|
|
1535
1532
|
border: var(--border-width-thin) solid var(--_button-border-color);
|
|
1536
1533
|
border-radius: var(--_button-border-radius);
|
|
1537
1534
|
padding-inline: var(--_button-padding-inline);
|
|
1538
|
-
min-block-size: var(--
|
|
1535
|
+
min-block-size: var(--control-height-base);
|
|
1539
1536
|
font-family: var(--font-family-button);
|
|
1540
1537
|
letter-spacing: var(--tracking-tight);
|
|
1541
1538
|
font-weight: var(--font-weight-default);
|
|
@@ -1626,8 +1623,8 @@
|
|
|
1626
1623
|
}
|
|
1627
1624
|
|
|
1628
1625
|
: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 {
|
|
1629
|
-
--_button-padding-inline: .5em;
|
|
1630
|
-
min-block-size: var(--
|
|
1626
|
+
--_button-padding-inline: var(--control-spacing-near, .5em);
|
|
1627
|
+
min-block-size: var(--control-height-small);
|
|
1631
1628
|
}
|
|
1632
1629
|
|
|
1633
1630
|
: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 {
|
|
@@ -1635,8 +1632,8 @@
|
|
|
1635
1632
|
}
|
|
1636
1633
|
|
|
1637
1634
|
: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 {
|
|
1638
|
-
--_button-offset-distance: var(--button-offset-distance,
|
|
1639
|
-
--_button-offset-distance-hover: var(--button-offset-distance-hover, -.
|
|
1635
|
+
--_button-offset-distance: var(--button-offset-distance, calc(-1 * var(--control-spacing-minimal)));
|
|
1636
|
+
--_button-offset-distance-hover: var(--button-offset-distance-hover, calc(-.5 * var(--control-spacing-minimal)));
|
|
1640
1637
|
--_button-transform: translate(var(--_button-offset-distance), var(--_button-offset-distance));
|
|
1641
1638
|
--_button-hover-transform: translate(var(--_button-offset-distance-hover), var(--_button-offset-distance-hover));
|
|
1642
1639
|
--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);
|
|
@@ -1651,7 +1648,7 @@
|
|
|
1651
1648
|
}
|
|
1652
1649
|
|
|
1653
1650
|
: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) {
|
|
1654
|
-
gap: .25em;
|
|
1651
|
+
gap: var(--control-spacing-tiny, .25em);
|
|
1655
1652
|
}
|
|
1656
1653
|
|
|
1657
1654
|
: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 {
|
|
@@ -1663,15 +1660,15 @@
|
|
|
1663
1660
|
|
|
1664
1661
|
: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 {
|
|
1665
1662
|
content: "";
|
|
1666
|
-
inline-size: max(var(--
|
|
1667
|
-
block-size: max(var(--
|
|
1663
|
+
inline-size: max(var(--control-height-base), 100%);
|
|
1664
|
+
block-size: max(var(--control-height-base), 100%);
|
|
1668
1665
|
aspect-ratio: 1;
|
|
1669
1666
|
z-index: -1;
|
|
1670
1667
|
pointer-events: all;
|
|
1671
1668
|
border-radius: 100%;
|
|
1672
1669
|
position: absolute;
|
|
1673
|
-
inset-block-start: calc(-.5 * (var(--
|
|
1674
|
-
inset-inline-start: calc(-.5 * (var(--
|
|
1670
|
+
inset-block-start: calc(-.5 * (var(--control-height-base) - 100%));
|
|
1671
|
+
inset-inline-start: calc(-.5 * (var(--control-height-base) - 100%));
|
|
1675
1672
|
}
|
|
1676
1673
|
|
|
1677
1674
|
: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 {
|
|
@@ -1690,9 +1687,10 @@
|
|
|
1690
1687
|
color: var(--_input-color);
|
|
1691
1688
|
background-color: var(--_input-background);
|
|
1692
1689
|
border: var(--_input-border);
|
|
1693
|
-
min-block-size: var(--
|
|
1690
|
+
min-block-size: var(--control-height-base);
|
|
1694
1691
|
border-radius: var(--_input-border-radius);
|
|
1695
|
-
padding-inline: 0
|
|
1692
|
+
padding-inline-start: 0;
|
|
1693
|
+
padding-inline-end: var(--contol-spacing-near, .5em);
|
|
1696
1694
|
}
|
|
1697
1695
|
|
|
1698
1696
|
:where(input[type="file"]:not([class]))::-webkit-file-upload-button {
|
|
@@ -1701,12 +1699,12 @@
|
|
|
1701
1699
|
padding-inline: var(--_button-padding-inline);
|
|
1702
1700
|
cursor: pointer;
|
|
1703
1701
|
box-shadow: none;
|
|
1704
|
-
min-block-size: calc(var(--
|
|
1702
|
+
min-block-size: calc(var(--control-height-base) - var(--border-width-thin));
|
|
1705
1703
|
border: none;
|
|
1706
1704
|
border-inline-end: var(--border-width-thin) solid var(--color-border-base);
|
|
1707
1705
|
border-start-end-radius: 0;
|
|
1708
1706
|
border-end-end-radius: 0;
|
|
1709
|
-
margin-inline-end: .5em;
|
|
1707
|
+
margin-inline-end: var(--contol-spacing-near, .5em);
|
|
1710
1708
|
inset-block-start: 0;
|
|
1711
1709
|
inset-inline-start: 0;
|
|
1712
1710
|
transform: none;
|
|
@@ -1718,12 +1716,12 @@
|
|
|
1718
1716
|
padding-inline: var(--_button-padding-inline);
|
|
1719
1717
|
cursor: pointer;
|
|
1720
1718
|
box-shadow: none;
|
|
1721
|
-
min-block-size: calc(var(--
|
|
1719
|
+
min-block-size: calc(var(--control-height-base) - var(--border-width-thin));
|
|
1722
1720
|
border: none;
|
|
1723
1721
|
border-inline-end: var(--border-width-thin) solid var(--color-border-base);
|
|
1724
1722
|
border-start-end-radius: 0;
|
|
1725
1723
|
border-end-end-radius: 0;
|
|
1726
|
-
margin-inline-end: .5em;
|
|
1724
|
+
margin-inline-end: var(--contol-spacing-near, .5em);
|
|
1727
1725
|
inset-block-start: 0;
|
|
1728
1726
|
inset-inline-start: 0;
|
|
1729
1727
|
transform: none;
|
|
@@ -1810,7 +1808,7 @@
|
|
|
1810
1808
|
text-decoration: none;
|
|
1811
1809
|
}
|
|
1812
1810
|
|
|
1813
|
-
:where(.nc-clickable-card) a[data-link="main"]:focus-within:focus-visible, :where(.nc-clickable-card) a[data-link="main"]:hover {
|
|
1811
|
+
: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 {
|
|
1814
1812
|
outline: none;
|
|
1815
1813
|
}
|
|
1816
1814
|
|
|
@@ -1829,7 +1827,7 @@
|
|
|
1829
1827
|
:where(.nc-dialog) {
|
|
1830
1828
|
--_dialog-padding-inline: var(--dialog-padding-inline, var(--spacing-base));
|
|
1831
1829
|
--_dialog-layout-padding: var(--layout-padding, var(--spacing-base));
|
|
1832
|
-
--_dialog-close-size: var(--dialog-close-size, var(--
|
|
1830
|
+
--_dialog-close-size: var(--dialog-close-size, var(--control-height-base));
|
|
1833
1831
|
--_dialog-transition-duration: var(--dialog-transition-duration, var(--transition-duration-base));
|
|
1834
1832
|
--_dialog-max-block-size: var(--dialog-max-block-size, 90dvh);
|
|
1835
1833
|
--_dialog-max-inline-size: var(--dialog-max-inline-size, 28rem);
|
|
@@ -1843,7 +1841,7 @@
|
|
|
1843
1841
|
max-inline-size: var(--_dialog-max-inline-size);
|
|
1844
1842
|
background: var(--color-surface-base);
|
|
1845
1843
|
border-radius: var(--_dialog-radius);
|
|
1846
|
-
overflow-clip-margin: 1em;
|
|
1844
|
+
overflow-clip-margin: var(--control-spacing-far, 1em);
|
|
1847
1845
|
pointer-events: all;
|
|
1848
1846
|
max-block-size: 100dvh;
|
|
1849
1847
|
margin: auto 0;
|
|
@@ -1883,7 +1881,7 @@
|
|
|
1883
1881
|
block-size: max-content;
|
|
1884
1882
|
inline-size: 100%;
|
|
1885
1883
|
max-block-size: var(--_dialog-max-block-size);
|
|
1886
|
-
overflow-clip-margin: 1em;
|
|
1884
|
+
overflow-clip-margin: var(--control-spacing-far, 1em);
|
|
1887
1885
|
grid-template: "header header"
|
|
1888
1886
|
"content content" 1fr
|
|
1889
1887
|
"footer footer"
|
|
@@ -1978,9 +1976,9 @@
|
|
|
1978
1976
|
}
|
|
1979
1977
|
|
|
1980
1978
|
:where(.nc-form-hint) {
|
|
1979
|
+
margin-block: var(--control-spacing-base, .75em);
|
|
1981
1980
|
font-size: var(--font-size-large);
|
|
1982
1981
|
color: var(--color-text-muted);
|
|
1983
|
-
margin-block: .75em;
|
|
1984
1982
|
}
|
|
1985
1983
|
|
|
1986
1984
|
:where(fieldset:not([class]), .nc-fieldset) {
|
|
@@ -1998,12 +1996,12 @@
|
|
|
1998
1996
|
}
|
|
1999
1997
|
|
|
2000
1998
|
:where(legend:not([class]), .nc-legend) + * {
|
|
2001
|
-
margin-block-start: var(--nc-legend-spacing, 1em);
|
|
1999
|
+
margin-block-start: var(--nc-legend-spacing, var(--control-spacing-far, 1em));
|
|
2002
2000
|
}
|
|
2003
2001
|
|
|
2004
2002
|
: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) {
|
|
2005
|
-
--nc-legend-spacing: .
|
|
2006
|
-
margin-block
|
|
2003
|
+
--nc-legend-spacing: var(--control-spacing-tiny, .25em);
|
|
2004
|
+
margin-block: var(--control-spacing-base, .75em);
|
|
2007
2005
|
}
|
|
2008
2006
|
}
|
|
2009
2007
|
|
|
@@ -2092,7 +2090,7 @@
|
|
|
2092
2090
|
}
|
|
2093
2091
|
|
|
2094
2092
|
:where(.nc-icon)[data-size="button"] {
|
|
2095
|
-
--icon-size: var(--
|
|
2093
|
+
--icon-size: var(--control-height-base);
|
|
2096
2094
|
}
|
|
2097
2095
|
|
|
2098
2096
|
:where(.nc-icon)[data-animation="spinning"] {
|
|
@@ -2135,8 +2133,8 @@
|
|
|
2135
2133
|
--_input-box-shadow: var(--input-box-shadow, var(--shadow-inset));
|
|
2136
2134
|
--_input-outline: var(--input-outline, var(--border-width-medium) solid var(--color-brand-primary-base));
|
|
2137
2135
|
--_input-disabled-filter: var(--input-disabled-filter, contrast(.72) opacity(.72));
|
|
2138
|
-
--_input-padding-block: var(--input-padding-block, .
|
|
2139
|
-
--_input-padding-inline: var(--input-padding-inline,
|
|
2136
|
+
--_input-padding-block: var(--input-padding-block, var(--control-spacing-tiny, .25em));
|
|
2137
|
+
--_input-padding-inline: var(--input-padding-inline, var(--control-spacing-base, .75em));
|
|
2140
2138
|
--_input-hover-background: var(--input-hover-background, var(--color-brand-primary-hover));
|
|
2141
2139
|
}
|
|
2142
2140
|
|
|
@@ -2149,7 +2147,7 @@
|
|
|
2149
2147
|
background-color: var(--_input-background);
|
|
2150
2148
|
border: var(--_input-border);
|
|
2151
2149
|
border-radius: var(--_input-border-radius);
|
|
2152
|
-
block-size: var(--
|
|
2150
|
+
block-size: var(--control-height-base);
|
|
2153
2151
|
padding-inline: var(--_input-padding-inline);
|
|
2154
2152
|
box-shadow: var(--_input-box-shadow);
|
|
2155
2153
|
inline-size: var(--input-inline-size, auto);
|
|
@@ -2271,7 +2269,7 @@
|
|
|
2271
2269
|
:where(input[type="color"], .nc-input-color) {
|
|
2272
2270
|
aspect-ratio: 1;
|
|
2273
2271
|
inline-size: auto;
|
|
2274
|
-
padding:
|
|
2272
|
+
padding: var(--control-spacing-minimal, .125em);
|
|
2275
2273
|
}
|
|
2276
2274
|
|
|
2277
2275
|
:where(input[type="date"], .nc-input-date) {
|
|
@@ -2284,8 +2282,8 @@
|
|
|
2284
2282
|
|
|
2285
2283
|
:where(input[type="range"], .nc-input-range)::-webkit-slider-thumb {
|
|
2286
2284
|
appearance: none;
|
|
2287
|
-
inline-size: calc(var(--
|
|
2288
|
-
block-size: calc(var(--
|
|
2285
|
+
inline-size: calc(var(--control-height-base) * .625);
|
|
2286
|
+
block-size: calc(var(--control-height-base) * .625);
|
|
2289
2287
|
border-radius: var(--_input-border-radius);
|
|
2290
2288
|
border: var(--_input-border);
|
|
2291
2289
|
border-color: var(--color-text-base);
|
|
@@ -2301,8 +2299,8 @@
|
|
|
2301
2299
|
|
|
2302
2300
|
:where(input[type="range"], .nc-input-range)::-moz-range-thumb {
|
|
2303
2301
|
appearance: none;
|
|
2304
|
-
inline-size: calc(var(--
|
|
2305
|
-
block-size: calc(var(--
|
|
2302
|
+
inline-size: calc(var(--control-height-base) * .625);
|
|
2303
|
+
block-size: calc(var(--control-height-base) * .625);
|
|
2306
2304
|
border-radius: var(--_input-border-radius);
|
|
2307
2305
|
border: var(--_input-border);
|
|
2308
2306
|
border-color: var(--color-text-base);
|
|
@@ -2320,11 +2318,11 @@
|
|
|
2320
2318
|
--_tag-select-checked-text-color: var(--tag-select-checked-text-color, var(--color-brand-primary-contrast));
|
|
2321
2319
|
--_tag-select-checked-surface-color: var(--tag-select-checked-surface-color, var(--color-brand-primary-base));
|
|
2322
2320
|
--_tag-select-border-radius: var(--tag-select-border-radius, var(--_input-border-radius));
|
|
2323
|
-
--nc-legend-spacing: .
|
|
2321
|
+
--nc-legend-spacing: var(--control-spacing-near, .5em);
|
|
2324
2322
|
}
|
|
2325
2323
|
|
|
2326
2324
|
:where(.nc-tag-select-field):focus-within:has(:focus-visible) {
|
|
2327
|
-
outline-offset: .5em;
|
|
2325
|
+
outline-offset: var(--controls-spacing-near, .5em);
|
|
2328
2326
|
outline: var(--_input-outline);
|
|
2329
2327
|
border-radius: var(--_tag-select-border-radius);
|
|
2330
2328
|
}
|
|
@@ -2356,12 +2354,12 @@
|
|
|
2356
2354
|
|
|
2357
2355
|
@layer components.input-fields {
|
|
2358
2356
|
:where(.nc-input-field) {
|
|
2357
|
+
gap: var(--control-spacing-near, .5em);
|
|
2359
2358
|
inline-size: 100%;
|
|
2360
2359
|
min-inline-size: var(--input-field-min-inline-size);
|
|
2361
2360
|
max-inline-size: var(--input-field-max-inline-size);
|
|
2362
2361
|
grid-template-columns: minmax(0, 1fr);
|
|
2363
2362
|
place-items: start;
|
|
2364
|
-
gap: .35em;
|
|
2365
2363
|
display: grid;
|
|
2366
2364
|
}
|
|
2367
2365
|
|
|
@@ -2370,7 +2368,7 @@
|
|
|
2370
2368
|
}
|
|
2371
2369
|
|
|
2372
2370
|
:where(.nc-input-field) > .nc-cluster {
|
|
2373
|
-
gap: .
|
|
2371
|
+
gap: var(--control-spacing-base, .75em);
|
|
2374
2372
|
}
|
|
2375
2373
|
|
|
2376
2374
|
:where(.nc-input-error) {
|
|
@@ -2391,7 +2389,7 @@
|
|
|
2391
2389
|
align-items: center;
|
|
2392
2390
|
block-size: 1em;
|
|
2393
2391
|
inline-size: 1em;
|
|
2394
|
-
margin-inline-end: .
|
|
2392
|
+
margin-inline-end: var(--control-spacing-base, .75em);
|
|
2395
2393
|
display: inline-flex;
|
|
2396
2394
|
}
|
|
2397
2395
|
|
|
@@ -2405,7 +2403,7 @@
|
|
|
2405
2403
|
|
|
2406
2404
|
:where(.nc-checkbox-wrapper) > [data-label] {
|
|
2407
2405
|
grid-area: label;
|
|
2408
|
-
padding-inline-start: .
|
|
2406
|
+
padding-inline-start: var(--control-spacing-base, .75em);
|
|
2409
2407
|
}
|
|
2410
2408
|
|
|
2411
2409
|
:where(.nc-checkbox-wrapper) .nc-input-label {
|
|
@@ -2425,7 +2423,7 @@
|
|
|
2425
2423
|
}
|
|
2426
2424
|
|
|
2427
2425
|
:where(.nc-radio-field, .nc-checkbox-field) > :not(:first-child) {
|
|
2428
|
-
margin-block-start: .75em;
|
|
2426
|
+
margin-block-start: var(--control-spacing-far, .75em);
|
|
2429
2427
|
}
|
|
2430
2428
|
}
|
|
2431
2429
|
|
|
@@ -2434,7 +2432,7 @@
|
|
|
2434
2432
|
--_segmented-control-border-radius: var(--segmented-control-border-radius, var(--_input-border-radius));
|
|
2435
2433
|
--_segmented-control-checked-text-color: var(--segmented-control-checked-text-color, var(--color-brand-primary-contrast));
|
|
2436
2434
|
--_segmented-control-checked-surface-color: var(--segmented-control-checked-surface-color, var(--color-brand-primary-base));
|
|
2437
|
-
--nc-legend-spacing: .
|
|
2435
|
+
--nc-legend-spacing: var(--control-spacing-near, .5em);
|
|
2438
2436
|
container: segmented-control / inline-size;
|
|
2439
2437
|
}
|
|
2440
2438
|
|
|
@@ -2462,7 +2460,7 @@
|
|
|
2462
2460
|
:where(.nc-segmented-control) label {
|
|
2463
2461
|
padding-inline: var(--_input-padding-inline);
|
|
2464
2462
|
padding-block: var(--_input-padding-block);
|
|
2465
|
-
min-block-size: var(--segmented-control-min-height, var(--
|
|
2463
|
+
min-block-size: var(--segmented-control-min-height, var(--control-height-base));
|
|
2466
2464
|
color: var(--_input-color);
|
|
2467
2465
|
border: var(--_input-border);
|
|
2468
2466
|
justify-content: center;
|
|
@@ -2591,7 +2589,7 @@
|
|
|
2591
2589
|
}
|
|
2592
2590
|
|
|
2593
2591
|
:where(.nc-meta-list-item):not(:last-child) {
|
|
2594
|
-
margin-block-end: .
|
|
2592
|
+
margin-block-end: var(--control-spacing-base, .75em);
|
|
2595
2593
|
}
|
|
2596
2594
|
|
|
2597
2595
|
@container metalist (width >= 20rem) {
|
|
@@ -2602,8 +2600,8 @@
|
|
|
2602
2600
|
:where(.nc-meta-list-item):not(:last-child):after {
|
|
2603
2601
|
content: "";
|
|
2604
2602
|
border-right: var(--border-width-medium) solid var(--color-border-muted);
|
|
2603
|
+
margin: 0 var(--control-spacing-base, .75em);
|
|
2605
2604
|
transform: calc(var(--border-width-medium) / 2);
|
|
2606
|
-
margin: 0 .5em;
|
|
2607
2605
|
}
|
|
2608
2606
|
}
|
|
2609
2607
|
|
|
@@ -2679,6 +2677,7 @@
|
|
|
2679
2677
|
}
|
|
2680
2678
|
|
|
2681
2679
|
:where(.nc-notification) {
|
|
2680
|
+
padding: var(--control-spacing-near, .5em) var(--control-spacing-base, .75em);
|
|
2682
2681
|
background: var(--color-surface-base);
|
|
2683
2682
|
border: var(--border-width-thin) solid var(--_notification-border-color);
|
|
2684
2683
|
border-radius: var(--border-radius-small);
|
|
@@ -2688,7 +2687,6 @@
|
|
|
2688
2687
|
color: var(--color-text-base);
|
|
2689
2688
|
pointer-events: all;
|
|
2690
2689
|
flex-direction: column;
|
|
2691
|
-
padding: .5em 1em;
|
|
2692
2690
|
display: flex;
|
|
2693
2691
|
}
|
|
2694
2692
|
|
|
@@ -2712,10 +2710,10 @@
|
|
|
2712
2710
|
}
|
|
2713
2711
|
|
|
2714
2712
|
:where(.nc-notification-footer) {
|
|
2713
|
+
inline-size: 100%;
|
|
2715
2714
|
justify-content: space-between;
|
|
2716
2715
|
align-items: flex-end;
|
|
2717
|
-
|
|
2718
|
-
margin-block-start: .25em;
|
|
2716
|
+
margin-block-start: var(--control-spacing-tiny, .25em);
|
|
2719
2717
|
display: flex;
|
|
2720
2718
|
}
|
|
2721
2719
|
|