@nordcode/ui 1.2.0 → 1.3.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 +61 -49
- package/out/bundle.css +26 -29
- package/out/bundle_configless.css +20 -24
- package/out/complete.css +60 -62
- package/out/complete_configless.css +54 -57
- package/package.json +1 -1
- package/src/styles/components/alerts.css +2 -2
- package/src/styles/components/badges.css +1 -1
- package/src/styles/components/breadcrumbs.css +1 -1
- package/src/styles/components/buttons.css +59 -46
- package/src/styles/components/card.css +2 -1
- package/src/styles/components/dialogs.css +11 -8
- package/src/styles/components/forms.css +12 -6
- package/src/styles/components/inputs/base.css +75 -65
- package/src/styles/components/inputs/fields.css +11 -11
- package/src/styles/components/inputs/segmented.css +23 -13
- package/src/styles/components/inputs/tag-select.css +10 -6
- package/src/styles/components/lists.css +3 -3
- package/src/styles/components/notifications.css +8 -6
- package/src/styles/config/config.css +6 -5
- package/src/styles/utils/base.css +18 -18
- package/src/styles/utils/layouts.css +31 -20
- package/src/styles/utils/reset.css +1 -1
|
@@ -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:
|
|
114
|
+
outline-offset: .5em;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
:where(:focus:not(:focus-visible)) {
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
grid-column: 1 / 1;
|
|
242
242
|
min-block-size: 100%;
|
|
243
243
|
padding-block-end: 0;
|
|
244
|
-
padding-inline-end:
|
|
244
|
+
padding-inline-end: 1em;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
:where(dt):not(:last-of-type) {
|
|
@@ -277,19 +277,19 @@
|
|
|
277
277
|
:where(figcaption) {
|
|
278
278
|
color: var(--color-surface-subtle);
|
|
279
279
|
background-color: var(--color-text-base);
|
|
280
|
-
padding: .
|
|
280
|
+
padding: .35em .5em;
|
|
281
281
|
display: block;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
:where(details) {
|
|
285
|
-
--p-x-details:
|
|
286
|
-
--p-y-details:
|
|
285
|
+
--p-x-details: 1em;
|
|
286
|
+
--p-y-details: 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);
|
|
290
|
-
border: var(--border-width-thin) solid var(--color-border-base);
|
|
291
290
|
padding: var(--p-y-details) var(--p-x-details);
|
|
292
291
|
inline-size: 100%;
|
|
292
|
+
box-shadow: 0 0 0 var(--border-width-thin) var(--color-border-base);
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
:where(details) > summary {
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
font-weight: var(--font-weight-heading);
|
|
299
299
|
border-radius: var(--b-r-details);
|
|
300
300
|
padding: var(--p-y-details) var(--p-x-details);
|
|
301
|
-
margin: calc(-1 * var(--p-y-details)) calc(-1 * var(--p-x-details)
|
|
301
|
+
margin: calc(-1 * var(--p-y-details)) calc(-1 * var(--p-x-details));
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
:where(details)[open] > summary {
|
|
@@ -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:
|
|
318
|
+
padding-inline-start: 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: .
|
|
345
|
+
margin-inline-end: .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: .35em;
|
|
409
409
|
font-weight: var(--font-weight-default);
|
|
410
410
|
cursor: pointer;
|
|
411
411
|
letter-spacing: var(--tracking-tight);
|
|
@@ -456,7 +456,7 @@
|
|
|
456
456
|
line-height: inherit;
|
|
457
457
|
-webkit-box-decoration-break: clone;
|
|
458
458
|
box-decoration-break: clone;
|
|
459
|
-
padding-inline: .
|
|
459
|
+
padding-inline: .25em;
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
:where(code, kbd, var) {
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
word-spacing: normal;
|
|
471
471
|
overflow-wrap: normal;
|
|
472
472
|
max-inline-size: fit-content;
|
|
473
|
-
padding-block: .
|
|
473
|
+
padding-block: .2em;
|
|
474
474
|
font-style: normal;
|
|
475
475
|
}
|
|
476
476
|
|
|
@@ -497,7 +497,7 @@
|
|
|
497
497
|
border-radius: var(--border-radius-medium);
|
|
498
498
|
background: var(--color-surface-subtle);
|
|
499
499
|
-webkit-overflow-scrolling: touch;
|
|
500
|
-
padding:
|
|
500
|
+
padding: 1em;
|
|
501
501
|
overflow-x: auto;
|
|
502
502
|
}
|
|
503
503
|
|
|
@@ -538,7 +538,7 @@
|
|
|
538
538
|
line-height: var(--line-height-small);
|
|
539
539
|
white-space: nowrap;
|
|
540
540
|
font-variant-numeric: tabular-nums;
|
|
541
|
-
padding: .
|
|
541
|
+
padding: .5em;
|
|
542
542
|
}
|
|
543
543
|
|
|
544
544
|
:where(td), :where(thead th) {
|
|
@@ -608,15 +608,11 @@
|
|
|
608
608
|
}
|
|
609
609
|
|
|
610
610
|
:where(ul, ol) {
|
|
611
|
-
padding-inline-start:
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
:where(li + li) {
|
|
615
|
-
margin-block-start: .5lh;
|
|
611
|
+
padding-inline-start: 1em;
|
|
616
612
|
}
|
|
617
613
|
|
|
618
|
-
:where(li > :is(ul, ol)) {
|
|
619
|
-
margin-block-start: .
|
|
614
|
+
:where(li + li), :where(li > :is(ul, ol)) {
|
|
615
|
+
margin-block-start: .5em;
|
|
620
616
|
}
|
|
621
617
|
|
|
622
618
|
@supports (font-variant-position: sub) {
|
|
@@ -650,7 +646,7 @@
|
|
|
650
646
|
content: close-quote;
|
|
651
647
|
content: "“";
|
|
652
648
|
content: "”";
|
|
653
|
-
margin-inline-start: -.
|
|
649
|
+
margin-inline-start: -.5em;
|
|
654
650
|
}
|
|
655
651
|
|
|
656
652
|
:where(.quoted p) {
|
|
@@ -743,11 +739,11 @@
|
|
|
743
739
|
}
|
|
744
740
|
|
|
745
741
|
:where(.nc-flow) > * {
|
|
746
|
-
max-inline-size: var(--flow-base-meassure,
|
|
742
|
+
max-inline-size: var(--flow-base-meassure, 36em);
|
|
747
743
|
}
|
|
748
744
|
|
|
749
745
|
:where(.nc-flow) > :is(h1, h2, h3, h4, h5, h6) {
|
|
750
|
-
max-inline-size: var(--flow-headline-meassure,
|
|
746
|
+
max-inline-size: var(--flow-headline-meassure, 16em);
|
|
751
747
|
--flow-gap: 1.5lh;
|
|
752
748
|
}
|
|
753
749
|
|
|
@@ -1225,7 +1221,7 @@
|
|
|
1225
1221
|
:where(.nc-alert) {
|
|
1226
1222
|
background: var(--surface);
|
|
1227
1223
|
color: var(--text);
|
|
1228
|
-
gap:
|
|
1224
|
+
gap: .75em;
|
|
1229
1225
|
}
|
|
1230
1226
|
|
|
1231
1227
|
:where(.nc-alert) > .nc-icon {
|
|
@@ -1252,7 +1248,7 @@
|
|
|
1252
1248
|
border-radius: var(--border-radius-small);
|
|
1253
1249
|
background: var(--surface, transparent);
|
|
1254
1250
|
inline-size: max-content;
|
|
1255
|
-
padding: .
|
|
1251
|
+
padding: .5em;
|
|
1256
1252
|
line-height: 1;
|
|
1257
1253
|
}
|
|
1258
1254
|
}
|
|
@@ -1277,7 +1273,7 @@
|
|
|
1277
1273
|
color: inherit;
|
|
1278
1274
|
content: "›";
|
|
1279
1275
|
font-size: inherit;
|
|
1280
|
-
padding-inline:
|
|
1276
|
+
padding-inline: .5em;
|
|
1281
1277
|
}
|
|
1282
1278
|
|
|
1283
1279
|
:where(.nc-breadcrumb-link) {
|
|
@@ -1410,7 +1406,7 @@
|
|
|
1410
1406
|
}
|
|
1411
1407
|
|
|
1412
1408
|
: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 {
|
|
1413
|
-
--_button-padding-inline:
|
|
1409
|
+
--_button-padding-inline: .5em;
|
|
1414
1410
|
min-block-size: var(--button-height-small);
|
|
1415
1411
|
}
|
|
1416
1412
|
|
|
@@ -1419,8 +1415,8 @@
|
|
|
1419
1415
|
}
|
|
1420
1416
|
|
|
1421
1417
|
: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 {
|
|
1422
|
-
--_button-offset-distance: var(--button-offset-distance, -.
|
|
1423
|
-
--_button-offset-distance-hover: var(--button-offset-distance-hover, -.
|
|
1418
|
+
--_button-offset-distance: var(--button-offset-distance, -.15em);
|
|
1419
|
+
--_button-offset-distance-hover: var(--button-offset-distance-hover, -.075em);
|
|
1424
1420
|
--_button-transform: translate(var(--_button-offset-distance), var(--_button-offset-distance));
|
|
1425
1421
|
--_button-hover-transform: translate(var(--_button-offset-distance-hover), var(--_button-offset-distance-hover));
|
|
1426
1422
|
--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);
|
|
@@ -1435,7 +1431,7 @@
|
|
|
1435
1431
|
}
|
|
1436
1432
|
|
|
1437
1433
|
: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) {
|
|
1438
|
-
gap: .
|
|
1434
|
+
gap: .25em;
|
|
1439
1435
|
}
|
|
1440
1436
|
|
|
1441
1437
|
: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 {
|
|
@@ -1476,7 +1472,7 @@
|
|
|
1476
1472
|
border: var(--_input-border);
|
|
1477
1473
|
min-block-size: var(--button-height-base);
|
|
1478
1474
|
border-radius: var(--_input-border-radius);
|
|
1479
|
-
padding-inline: 0
|
|
1475
|
+
padding-inline: 0 .5em;
|
|
1480
1476
|
}
|
|
1481
1477
|
|
|
1482
1478
|
:where(input[type="file"]:not([class]))::-webkit-file-upload-button {
|
|
@@ -1490,7 +1486,7 @@
|
|
|
1490
1486
|
border-inline-end: var(--border-width-thin) solid var(--color-border-base);
|
|
1491
1487
|
border-start-end-radius: 0;
|
|
1492
1488
|
border-end-end-radius: 0;
|
|
1493
|
-
margin-inline-end:
|
|
1489
|
+
margin-inline-end: .5em;
|
|
1494
1490
|
inset-block-start: 0;
|
|
1495
1491
|
inset-inline-start: 0;
|
|
1496
1492
|
transform: none;
|
|
@@ -1507,7 +1503,7 @@
|
|
|
1507
1503
|
border-inline-end: var(--border-width-thin) solid var(--color-border-base);
|
|
1508
1504
|
border-start-end-radius: 0;
|
|
1509
1505
|
border-end-end-radius: 0;
|
|
1510
|
-
margin-inline-end:
|
|
1506
|
+
margin-inline-end: .5em;
|
|
1511
1507
|
inset-block-start: 0;
|
|
1512
1508
|
inset-inline-start: 0;
|
|
1513
1509
|
transform: none;
|
|
@@ -1540,7 +1536,7 @@
|
|
|
1540
1536
|
padding-block: var(--_card-padding-block);
|
|
1541
1537
|
color: var(--_card-color);
|
|
1542
1538
|
appearance: none;
|
|
1543
|
-
border:
|
|
1539
|
+
border: var(--border-width-thin) solid var(--_card-border-color);
|
|
1544
1540
|
background-color: var(--_card-background-color);
|
|
1545
1541
|
border-radius: var(--_card-border-radius);
|
|
1546
1542
|
box-shadow: var(--_card-shadow);
|
|
@@ -1590,6 +1586,7 @@
|
|
|
1590
1586
|
}
|
|
1591
1587
|
|
|
1592
1588
|
:where(.nc-clickable-card) a[data-link="main"] {
|
|
1589
|
+
font: inherit;
|
|
1593
1590
|
text-decoration: none;
|
|
1594
1591
|
}
|
|
1595
1592
|
|
|
@@ -1626,7 +1623,7 @@
|
|
|
1626
1623
|
max-inline-size: var(--_dialog-max-inline-size);
|
|
1627
1624
|
background: var(--color-surface-base);
|
|
1628
1625
|
border-radius: var(--_dialog-radius);
|
|
1629
|
-
overflow-clip-margin:
|
|
1626
|
+
overflow-clip-margin: 1em;
|
|
1630
1627
|
pointer-events: all;
|
|
1631
1628
|
max-block-size: 100dvh;
|
|
1632
1629
|
margin: auto 0;
|
|
@@ -1666,7 +1663,7 @@
|
|
|
1666
1663
|
block-size: max-content;
|
|
1667
1664
|
inline-size: 100%;
|
|
1668
1665
|
max-block-size: var(--_dialog-max-block-size);
|
|
1669
|
-
overflow-clip-margin:
|
|
1666
|
+
overflow-clip-margin: 1em;
|
|
1670
1667
|
grid-template: "header header"
|
|
1671
1668
|
"content content" 1fr
|
|
1672
1669
|
"footer footer"
|
|
@@ -1763,7 +1760,7 @@
|
|
|
1763
1760
|
:where(.nc-form-hint) {
|
|
1764
1761
|
font-size: var(--font-size-large);
|
|
1765
1762
|
color: var(--color-text-muted);
|
|
1766
|
-
margin-block: .
|
|
1763
|
+
margin-block: .75em;
|
|
1767
1764
|
}
|
|
1768
1765
|
|
|
1769
1766
|
:where(fieldset:not([class]), .nc-fieldset) {
|
|
@@ -1781,12 +1778,12 @@
|
|
|
1781
1778
|
}
|
|
1782
1779
|
|
|
1783
1780
|
:where(legend:not([class]), .nc-legend) + * {
|
|
1784
|
-
margin-block-start: var(--nc-legend-spacing,
|
|
1781
|
+
margin-block-start: var(--nc-legend-spacing, 1em);
|
|
1785
1782
|
}
|
|
1786
1783
|
|
|
1787
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) {
|
|
1788
|
-
--nc-legend-spacing: .
|
|
1789
|
-
margin-block-end: .
|
|
1785
|
+
--nc-legend-spacing: .2em;
|
|
1786
|
+
margin-block-end: .75em;
|
|
1790
1787
|
}
|
|
1791
1788
|
}
|
|
1792
1789
|
|
|
@@ -1966,9 +1963,9 @@
|
|
|
1966
1963
|
|
|
1967
1964
|
:where(select:not([class]), .nc-select) {
|
|
1968
1965
|
background-image: var(--triangle-down-url);
|
|
1969
|
-
background-position: right
|
|
1970
|
-
background-size:
|
|
1971
|
-
padding-inline-end:
|
|
1966
|
+
background-position: right .5em top 50%;
|
|
1967
|
+
background-size: 1em .75em;
|
|
1968
|
+
padding-inline-end: 1.75em;
|
|
1972
1969
|
}
|
|
1973
1970
|
|
|
1974
1971
|
:where(textarea:not([class]), .nc-textarea) {
|
|
@@ -2103,11 +2100,11 @@
|
|
|
2103
2100
|
--_tag-select-checked-text-color: var(--tag-select-checked-text-color, var(--color-brand-primary-contrast));
|
|
2104
2101
|
--_tag-select-checked-surface-color: var(--tag-select-checked-surface-color, var(--color-brand-primary-base));
|
|
2105
2102
|
--_tag-select-border-radius: var(--tag-select-border-radius, var(--_input-border-radius));
|
|
2106
|
-
--nc-legend-spacing: .
|
|
2103
|
+
--nc-legend-spacing: .35em;
|
|
2107
2104
|
}
|
|
2108
2105
|
|
|
2109
2106
|
:where(.nc-tag-select-field):focus-within:has(:focus-visible) {
|
|
2110
|
-
outline-offset:
|
|
2107
|
+
outline-offset: .5em;
|
|
2111
2108
|
outline: var(--_input-outline);
|
|
2112
2109
|
border-radius: var(--_tag-select-border-radius);
|
|
2113
2110
|
}
|
|
@@ -2144,7 +2141,7 @@
|
|
|
2144
2141
|
max-inline-size: var(--input-field-max-inline-size);
|
|
2145
2142
|
grid-template-columns: minmax(0, 1fr);
|
|
2146
2143
|
place-items: start;
|
|
2147
|
-
gap: .
|
|
2144
|
+
gap: .35em;
|
|
2148
2145
|
display: grid;
|
|
2149
2146
|
}
|
|
2150
2147
|
|
|
@@ -2153,7 +2150,7 @@
|
|
|
2153
2150
|
}
|
|
2154
2151
|
|
|
2155
2152
|
:where(.nc-input-field) > .nc-cluster {
|
|
2156
|
-
gap:
|
|
2153
|
+
gap: .5em;
|
|
2157
2154
|
}
|
|
2158
2155
|
|
|
2159
2156
|
:where(.nc-input-error) {
|
|
@@ -2174,7 +2171,7 @@
|
|
|
2174
2171
|
align-items: center;
|
|
2175
2172
|
block-size: 1em;
|
|
2176
2173
|
inline-size: 1em;
|
|
2177
|
-
margin-inline-end:
|
|
2174
|
+
margin-inline-end: .5em;
|
|
2178
2175
|
display: inline-flex;
|
|
2179
2176
|
}
|
|
2180
2177
|
|
|
@@ -2188,7 +2185,7 @@
|
|
|
2188
2185
|
|
|
2189
2186
|
:where(.nc-checkbox-wrapper) > [data-label] {
|
|
2190
2187
|
grid-area: label;
|
|
2191
|
-
padding-inline-start:
|
|
2188
|
+
padding-inline-start: .5em;
|
|
2192
2189
|
}
|
|
2193
2190
|
|
|
2194
2191
|
:where(.nc-checkbox-wrapper) .nc-input-label {
|
|
@@ -2208,7 +2205,7 @@
|
|
|
2208
2205
|
}
|
|
2209
2206
|
|
|
2210
2207
|
:where(.nc-radio-field, .nc-checkbox-field) > :not(:first-child) {
|
|
2211
|
-
margin-block-start: .
|
|
2208
|
+
margin-block-start: .75em;
|
|
2212
2209
|
}
|
|
2213
2210
|
}
|
|
2214
2211
|
|
|
@@ -2217,7 +2214,7 @@
|
|
|
2217
2214
|
--_segmented-control-border-radius: var(--segmented-control-border-radius, var(--_input-border-radius));
|
|
2218
2215
|
--_segmented-control-checked-text-color: var(--segmented-control-checked-text-color, var(--color-brand-primary-contrast));
|
|
2219
2216
|
--_segmented-control-checked-surface-color: var(--segmented-control-checked-surface-color, var(--color-brand-primary-base));
|
|
2220
|
-
--nc-legend-spacing: .
|
|
2217
|
+
--nc-legend-spacing: .35em;
|
|
2221
2218
|
container: segmented-control / inline-size;
|
|
2222
2219
|
}
|
|
2223
2220
|
|
|
@@ -2374,7 +2371,7 @@
|
|
|
2374
2371
|
}
|
|
2375
2372
|
|
|
2376
2373
|
:where(.nc-meta-list-item):not(:last-child) {
|
|
2377
|
-
margin-block-end:
|
|
2374
|
+
margin-block-end: .5em;
|
|
2378
2375
|
}
|
|
2379
2376
|
|
|
2380
2377
|
@container metalist (width >= 20rem) {
|
|
@@ -2386,7 +2383,7 @@
|
|
|
2386
2383
|
content: "";
|
|
2387
2384
|
border-right: var(--border-width-medium) solid var(--color-border-muted);
|
|
2388
2385
|
transform: calc(var(--border-width-medium) / 2);
|
|
2389
|
-
margin: 0
|
|
2386
|
+
margin: 0 .5em;
|
|
2390
2387
|
}
|
|
2391
2388
|
}
|
|
2392
2389
|
|
|
@@ -2406,7 +2403,7 @@
|
|
|
2406
2403
|
--_notification-max-width: var(--notifications-max-width, 20rem);
|
|
2407
2404
|
--_notification-gap: var(--notification-gap, var(--spacing-base));
|
|
2408
2405
|
--_notification-border-color: var(--notification-border-color, var(--color-border-base));
|
|
2409
|
-
--_notification-center-background: var(--notification-center-background, color-mix(in oklch, var(---color-surface-subtle), transparent 95%)
|
|
2406
|
+
--_notification-center-background: var(--notification-center-background, color-mix(in oklch, var(---color-surface-subtle), transparent 95%));
|
|
2410
2407
|
}
|
|
2411
2408
|
|
|
2412
2409
|
:where(.nc-notification-center, .nc-notification-output) {
|
|
@@ -2471,7 +2468,7 @@
|
|
|
2471
2468
|
color: var(--color-text-base);
|
|
2472
2469
|
pointer-events: all;
|
|
2473
2470
|
flex-direction: column;
|
|
2474
|
-
padding: .
|
|
2471
|
+
padding: .5em 1em;
|
|
2475
2472
|
display: flex;
|
|
2476
2473
|
}
|
|
2477
2474
|
|
|
@@ -2498,7 +2495,7 @@
|
|
|
2498
2495
|
justify-content: space-between;
|
|
2499
2496
|
align-items: flex-end;
|
|
2500
2497
|
inline-size: 100%;
|
|
2501
|
-
margin-block-start: .
|
|
2498
|
+
margin-block-start: .25em;
|
|
2502
2499
|
display: flex;
|
|
2503
2500
|
}
|
|
2504
2501
|
|
package/package.json
CHANGED
|
@@ -5,28 +5,29 @@
|
|
|
5
5
|
background: none;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
:where(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
:where(
|
|
9
|
+
button:not([class]),
|
|
10
|
+
button[type]:not([class]),
|
|
11
|
+
input[type="button"]:not([class]),
|
|
12
|
+
input[type="submit"]:not([class]),
|
|
13
|
+
input[type="reset"]:not([class]),
|
|
14
|
+
input[type="file"]:not([class]),
|
|
15
|
+
input[type="file"]:not([class])::-webkit-file-upload-button,
|
|
16
|
+
input[type="file"]:not([class])::file-selector-button,
|
|
17
|
+
.nc-button
|
|
18
|
+
) {
|
|
17
19
|
--_button-background: var(--button-background, var(--surface-hover));
|
|
18
20
|
--_button-color: var(--button-color, var(--text-hover));
|
|
19
21
|
--_button-border-color: var(--button-border-color, var(--surface-hover));
|
|
20
22
|
--_button-border-radius: var(--button-border-radius, var(--border-radius-medium));
|
|
21
23
|
|
|
22
24
|
--_button-background-hover: var(--button-background-hover, var(--surface));
|
|
23
|
-
--_button-background-hover-light: var(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
--_button-background-hover-light: var(
|
|
26
|
+
--button-background-hover-light,
|
|
27
|
+
color-mix(in oklch, currentColor calc(var(--transparency-weaker) * 10%), transparent)
|
|
28
|
+
);
|
|
27
29
|
--_button-color-hover: var(--button-color-hover, var(--text));
|
|
28
|
-
--_button-border-color-hover: var(--button-border-color-hover,
|
|
29
|
-
var(--border));
|
|
30
|
+
--_button-border-color-hover: var(--button-border-color-hover, var(--border));
|
|
30
31
|
|
|
31
32
|
--_button-box-shadow: var(--button-box-shadow, var(--shadow-near));
|
|
32
33
|
--_button-hover-shadow: var(--button-hover-shadow, var(--shadow-nearest));
|
|
@@ -62,12 +63,14 @@
|
|
|
62
63
|
line-height: var(--line-height-base);
|
|
63
64
|
}
|
|
64
65
|
|
|
65
|
-
:where(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
:where(
|
|
67
|
+
button:not([class]),
|
|
68
|
+
button[type]:not([class]),
|
|
69
|
+
input[type="button"]:not([class]),
|
|
70
|
+
input[type="submit"]:not([class]),
|
|
71
|
+
input[type="reset"]:not([class]),
|
|
72
|
+
.nc-button
|
|
73
|
+
) {
|
|
71
74
|
&:hover {
|
|
72
75
|
background: var(--_button-background-hover);
|
|
73
76
|
color: var(--_button-color-hover);
|
|
@@ -75,7 +78,7 @@
|
|
|
75
78
|
box-shadow: var(--_button-hover-shadow);
|
|
76
79
|
}
|
|
77
80
|
|
|
78
|
-
&[aria-pressed=
|
|
81
|
+
&[aria-pressed="true"] {
|
|
79
82
|
box-shadow: none;
|
|
80
83
|
transform: none;
|
|
81
84
|
font-weight: var(--font-weight-active);
|
|
@@ -137,7 +140,7 @@
|
|
|
137
140
|
}
|
|
138
141
|
|
|
139
142
|
&.-small {
|
|
140
|
-
--_button-padding-inline:
|
|
143
|
+
--_button-padding-inline: 0.5em;
|
|
141
144
|
min-block-size: var(--button-height-small);
|
|
142
145
|
}
|
|
143
146
|
|
|
@@ -146,20 +149,30 @@
|
|
|
146
149
|
}
|
|
147
150
|
|
|
148
151
|
&.-offset {
|
|
149
|
-
--_button-offset-distance: var(--button-offset-distance, -0.
|
|
150
|
-
--_button-offset-distance-hover: var(--button-offset-distance-hover, -0.
|
|
151
|
-
|
|
152
|
-
--_button-transform: translate(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
--button-
|
|
162
|
-
calc(var(--_button-offset-distance
|
|
152
|
+
--_button-offset-distance: var(--button-offset-distance, -0.15em);
|
|
153
|
+
--_button-offset-distance-hover: var(--button-offset-distance-hover, -0.075em);
|
|
154
|
+
|
|
155
|
+
--_button-transform: translate(
|
|
156
|
+
var(--_button-offset-distance),
|
|
157
|
+
var(--_button-offset-distance)
|
|
158
|
+
);
|
|
159
|
+
--_button-hover-transform: translate(
|
|
160
|
+
var(--_button-offset-distance-hover),
|
|
161
|
+
var(--_button-offset-distance-hover)
|
|
162
|
+
);
|
|
163
|
+
|
|
164
|
+
--button-box-shadow: calc(var(--_button-offset-distance) / -2)
|
|
165
|
+
calc(var(--_button-offset-distance) / -2) 0 0 var(--shadow-color),
|
|
166
|
+
calc(var(--_button-offset-distance) * -1) calc(var(--_button-offset-distance) * -1)
|
|
167
|
+
0 0 var(--shadow-color), calc(var(--_button-offset-distance) * -1)
|
|
168
|
+
calc(var(--_button-offset-distance) * -1) calc(var(--_button-offset-distance) * -2)
|
|
169
|
+
0 var(--shadow-color);
|
|
170
|
+
|
|
171
|
+
--button-hover-shadow: calc(var(--_button-offset-distance-hover) * -1)
|
|
172
|
+
calc(var(--_button-offset-distance-hover) * -1) 0 0 var(--shadow-color),
|
|
173
|
+
calc(var(--_button-offset-distance-hover) * -1)
|
|
174
|
+
calc(var(--_button-offset-distance-hover) * -1)
|
|
175
|
+
calc(var(--_button-offset-distance-hover) / -2) 0 var(--shadow-color);
|
|
163
176
|
|
|
164
177
|
inset-block-start: calc(var(--_button-offset-distance) * -1);
|
|
165
178
|
inset-inline-start: calc(var(--_button-offset-distance) * -1);
|
|
@@ -175,7 +188,7 @@
|
|
|
175
188
|
*/
|
|
176
189
|
|
|
177
190
|
&:has(svg) {
|
|
178
|
-
gap: 0.
|
|
191
|
+
gap: 0.25em;
|
|
179
192
|
}
|
|
180
193
|
|
|
181
194
|
/*
|
|
@@ -192,7 +205,7 @@
|
|
|
192
205
|
fill: currentColor;
|
|
193
206
|
|
|
194
207
|
&:after {
|
|
195
|
-
content:
|
|
208
|
+
content: "";
|
|
196
209
|
inline-size: max(var(--button-height-base), 100%);
|
|
197
210
|
block-size: max(var(--button-height-base), 100%);
|
|
198
211
|
aspect-ratio: 1;
|
|
@@ -204,7 +217,7 @@
|
|
|
204
217
|
pointer-events: all;
|
|
205
218
|
}
|
|
206
219
|
|
|
207
|
-
|
|
220
|
+
& > svg {
|
|
208
221
|
pointer-events: none;
|
|
209
222
|
}
|
|
210
223
|
}
|
|
@@ -218,22 +231,22 @@
|
|
|
218
231
|
}
|
|
219
232
|
}
|
|
220
233
|
|
|
221
|
-
:where(input[type=
|
|
234
|
+
:where(input[type="file"]:not([class])) {
|
|
222
235
|
color: var(--_input-color);
|
|
223
236
|
background-color: var(--_input-background);
|
|
224
237
|
border: var(--_input-border);
|
|
225
238
|
min-block-size: var(--button-height-base);
|
|
226
|
-
padding-inline-end:
|
|
239
|
+
padding-inline-end: 0.5em;
|
|
227
240
|
padding-inline-start: 0;
|
|
228
241
|
border-radius: var(--_input-border-radius);
|
|
229
242
|
}
|
|
230
243
|
|
|
231
|
-
:where(input[type=
|
|
232
|
-
:where(input[type=
|
|
244
|
+
:where(input[type="file"]:not([class]))::-webkit-file-upload-button,
|
|
245
|
+
:where(input[type="file"]:not([class]))::file-selector-button {
|
|
233
246
|
background-color: var(--_button-background);
|
|
234
247
|
color: var(--_button-color);
|
|
235
248
|
padding-inline: var(--_button-padding-inline);
|
|
236
|
-
margin-inline-end:
|
|
249
|
+
margin-inline-end: 0.5em;
|
|
237
250
|
cursor: pointer;
|
|
238
251
|
box-shadow: none;
|
|
239
252
|
min-block-size: calc(var(--button-height-base) - var(--border-width-thin));
|
|
@@ -246,7 +259,7 @@
|
|
|
246
259
|
border-end-end-radius: 0;
|
|
247
260
|
}
|
|
248
261
|
|
|
249
|
-
:where(button[type=
|
|
262
|
+
:where(button[type="reset"]:not([class]), .nc-button.-destructive) {
|
|
250
263
|
--text: var(--color-status-danger-emphasis);
|
|
251
264
|
--color: var(--color-status-danger-base);
|
|
252
265
|
--surface: var(--color-status-danger-surface);
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
overflow: hidden;
|
|
29
29
|
|
|
30
30
|
appearance: none;
|
|
31
|
-
border:
|
|
31
|
+
border: var(--border-width-thin) solid var(--_card-border-color);
|
|
32
32
|
|
|
33
33
|
background-color: var(--_card-background-color);
|
|
34
34
|
border-radius: var(--_card-border-radius);
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
& a[data-link="main"] {
|
|
66
66
|
text-decoration: none;
|
|
67
|
+
font: inherit;
|
|
67
68
|
|
|
68
69
|
&:focus-within:focus-visible,
|
|
69
70
|
&:hover {
|