@nordcode/ui 2.0.1 → 2.0.3
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 +18 -0
- package/out/bundle.css +10 -5
- package/out/bundle_configless.css +10 -5
- package/out/complete.css +40 -36
- package/out/complete_configless.css +40 -36
- package/package.json +1 -1
- package/src/styles/components/buttons.css +9 -16
- package/src/styles/utils/base.css +2 -2
- package/src/styles/utils/reset.css +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 2.0.3 (2025-09-11)
|
|
2
|
+
|
|
3
|
+
### improvements
|
|
4
|
+
|
|
5
|
+
- add :active state to buttons
|
|
6
|
+
- use more accessbile emhpasis color for selections
|
|
7
|
+
|
|
8
|
+
### removals
|
|
9
|
+
|
|
10
|
+
- remove unused .buttonReset class
|
|
11
|
+
|
|
12
|
+
## 2.0.2 (2025-05-10)
|
|
13
|
+
|
|
14
|
+
### improvements
|
|
15
|
+
|
|
16
|
+
- increase focus-visible visibility
|
|
17
|
+
- small utility tweaks
|
|
18
|
+
|
|
1
19
|
## 2.0.1 (2025-05-04)
|
|
2
20
|
|
|
3
21
|
### improvements
|
package/out/bundle.css
CHANGED
|
@@ -328,8 +328,9 @@
|
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
:where(:not(:active):focus-visible) {
|
|
331
|
-
outline:
|
|
332
|
-
|
|
331
|
+
outline: 2px solid var(--color-brand-primary-base);
|
|
332
|
+
box-shadow: 0 0 0 2px var(--color-surface-base);
|
|
333
|
+
outline-offset: 2px;
|
|
333
334
|
}
|
|
334
335
|
|
|
335
336
|
:where(:focus:not(:focus-visible)) {
|
|
@@ -377,6 +378,10 @@
|
|
|
377
378
|
display: block;
|
|
378
379
|
}
|
|
379
380
|
|
|
381
|
+
:where(svg) {
|
|
382
|
+
flex: none;
|
|
383
|
+
}
|
|
384
|
+
|
|
380
385
|
:where(img, svg, video) {
|
|
381
386
|
block-size: auto;
|
|
382
387
|
max-inline-size: 100%;
|
|
@@ -612,12 +617,12 @@
|
|
|
612
617
|
|
|
613
618
|
::selection {
|
|
614
619
|
background-color: var(--color-brand-primary-base);
|
|
615
|
-
color: var(--color-
|
|
620
|
+
color: var(--color-brand-primary-emphasis);
|
|
616
621
|
}
|
|
617
622
|
|
|
618
623
|
::target-text {
|
|
619
624
|
background-color: var(--color-brand-primary-base);
|
|
620
|
-
color: var(--color-
|
|
625
|
+
color: var(--color-brand-primary-emphasis);
|
|
621
626
|
}
|
|
622
627
|
|
|
623
628
|
:where(a, .nc-link) {
|
|
@@ -628,7 +633,7 @@
|
|
|
628
633
|
cursor: pointer;
|
|
629
634
|
letter-spacing: var(--tracking-tight);
|
|
630
635
|
text-decoration: underline;
|
|
631
|
-
text-decoration-thickness:
|
|
636
|
+
text-decoration-thickness: .1em;
|
|
632
637
|
}
|
|
633
638
|
|
|
634
639
|
:where(a, .nc-link):visited {
|
|
@@ -110,8 +110,9 @@
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
:where(:not(:active):focus-visible) {
|
|
113
|
-
outline:
|
|
114
|
-
|
|
113
|
+
outline: 2px solid var(--color-brand-primary-base);
|
|
114
|
+
box-shadow: 0 0 0 2px var(--color-surface-base);
|
|
115
|
+
outline-offset: 2px;
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
:where(:focus:not(:focus-visible)) {
|
|
@@ -159,6 +160,10 @@
|
|
|
159
160
|
display: block;
|
|
160
161
|
}
|
|
161
162
|
|
|
163
|
+
:where(svg) {
|
|
164
|
+
flex: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
162
167
|
:where(img, svg, video) {
|
|
163
168
|
block-size: auto;
|
|
164
169
|
max-inline-size: 100%;
|
|
@@ -394,12 +399,12 @@
|
|
|
394
399
|
|
|
395
400
|
::selection {
|
|
396
401
|
background-color: var(--color-brand-primary-base);
|
|
397
|
-
color: var(--color-
|
|
402
|
+
color: var(--color-brand-primary-emphasis);
|
|
398
403
|
}
|
|
399
404
|
|
|
400
405
|
::target-text {
|
|
401
406
|
background-color: var(--color-brand-primary-base);
|
|
402
|
-
color: var(--color-
|
|
407
|
+
color: var(--color-brand-primary-emphasis);
|
|
403
408
|
}
|
|
404
409
|
|
|
405
410
|
:where(a, .nc-link) {
|
|
@@ -410,7 +415,7 @@
|
|
|
410
415
|
cursor: pointer;
|
|
411
416
|
letter-spacing: var(--tracking-tight);
|
|
412
417
|
text-decoration: underline;
|
|
413
|
-
text-decoration-thickness:
|
|
418
|
+
text-decoration-thickness: .1em;
|
|
414
419
|
}
|
|
415
420
|
|
|
416
421
|
:where(a, .nc-link):visited {
|
package/out/complete.css
CHANGED
|
@@ -328,8 +328,9 @@
|
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
:where(:not(:active):focus-visible) {
|
|
331
|
-
outline:
|
|
332
|
-
|
|
331
|
+
outline: 2px solid var(--color-brand-primary-base);
|
|
332
|
+
box-shadow: 0 0 0 2px var(--color-surface-base);
|
|
333
|
+
outline-offset: 2px;
|
|
333
334
|
}
|
|
334
335
|
|
|
335
336
|
:where(:focus:not(:focus-visible)) {
|
|
@@ -377,6 +378,10 @@
|
|
|
377
378
|
display: block;
|
|
378
379
|
}
|
|
379
380
|
|
|
381
|
+
:where(svg) {
|
|
382
|
+
flex: none;
|
|
383
|
+
}
|
|
384
|
+
|
|
380
385
|
:where(img, svg, video) {
|
|
381
386
|
block-size: auto;
|
|
382
387
|
max-inline-size: 100%;
|
|
@@ -612,12 +617,12 @@
|
|
|
612
617
|
|
|
613
618
|
::selection {
|
|
614
619
|
background-color: var(--color-brand-primary-base);
|
|
615
|
-
color: var(--color-
|
|
620
|
+
color: var(--color-brand-primary-emphasis);
|
|
616
621
|
}
|
|
617
622
|
|
|
618
623
|
::target-text {
|
|
619
624
|
background-color: var(--color-brand-primary-base);
|
|
620
|
-
color: var(--color-
|
|
625
|
+
color: var(--color-brand-primary-emphasis);
|
|
621
626
|
}
|
|
622
627
|
|
|
623
628
|
:where(a, .nc-link) {
|
|
@@ -628,7 +633,7 @@
|
|
|
628
633
|
cursor: pointer;
|
|
629
634
|
letter-spacing: var(--tracking-tight);
|
|
630
635
|
text-decoration: underline;
|
|
631
|
-
text-decoration-thickness:
|
|
636
|
+
text-decoration-thickness: .1em;
|
|
632
637
|
}
|
|
633
638
|
|
|
634
639
|
:where(a, .nc-link):visited {
|
|
@@ -1509,12 +1514,6 @@
|
|
|
1509
1514
|
}
|
|
1510
1515
|
|
|
1511
1516
|
@layer components.buttons {
|
|
1512
|
-
.buttonReset {
|
|
1513
|
-
background: none;
|
|
1514
|
-
border: none;
|
|
1515
|
-
padding: 0;
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
1517
|
:where(button:not([class]), button[type]:not([class]), input[type="button"]:not([class]), input[type="submit"]:not([class]), input[type="reset"]:not([class]), input[type="file"]:not([class]), .nc-button) {
|
|
1519
1518
|
--_button-background: var(--button-background, var(--surface-hover));
|
|
1520
1519
|
--_button-color: var(--button-color, var(--text-hover));
|
|
@@ -1546,6 +1545,7 @@
|
|
|
1546
1545
|
box-shadow: var(--_button-box-shadow);
|
|
1547
1546
|
-webkit-user-select: none;
|
|
1548
1547
|
user-select: none;
|
|
1548
|
+
text-box: cap alphabetic;
|
|
1549
1549
|
-webkit-tap-highlight-color: transparent;
|
|
1550
1550
|
-webkit-touch-callout: none;
|
|
1551
1551
|
line-height: var(--line-height-base);
|
|
@@ -1570,8 +1570,14 @@
|
|
|
1570
1570
|
transform: none;
|
|
1571
1571
|
}
|
|
1572
1572
|
|
|
1573
|
-
: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):active {
|
|
1573
|
+
: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):is(:active, .-active) {
|
|
1574
|
+
background-color: var(--_button-background-hover);
|
|
1575
|
+
color: var(--_button-color-hover);
|
|
1576
|
+
border-color: var(--_button-border-color-hover);
|
|
1574
1577
|
box-shadow: none;
|
|
1578
|
+
filter: contrast(1.2) saturate(1.1);
|
|
1579
|
+
-webkit-backdrop-filter: contrast(2);
|
|
1580
|
+
backdrop-filter: contrast(2);
|
|
1575
1581
|
transform: none;
|
|
1576
1582
|
}
|
|
1577
1583
|
|
|
@@ -1588,14 +1594,6 @@
|
|
|
1588
1594
|
transform: none !important;
|
|
1589
1595
|
}
|
|
1590
1596
|
|
|
1591
|
-
: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).-active {
|
|
1592
|
-
background-color: var(--_button-background-hover);
|
|
1593
|
-
color: var(--_button-color-hover);
|
|
1594
|
-
border-color: var(--_button-border-color-hover);
|
|
1595
|
-
box-shadow: none;
|
|
1596
|
-
transform: none;
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
1597
|
: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).-outline {
|
|
1600
1598
|
color: var(--text);
|
|
1601
1599
|
border-color: var(--border);
|
|
@@ -1612,8 +1610,6 @@
|
|
|
1612
1610
|
color: var(--text);
|
|
1613
1611
|
background-color: #0000;
|
|
1614
1612
|
border-color: #0000;
|
|
1615
|
-
box-shadow: none !important;
|
|
1616
|
-
transform: none !important;
|
|
1617
1613
|
}
|
|
1618
1614
|
|
|
1619
1615
|
: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).-stealth:hover {
|
|
@@ -1622,6 +1618,11 @@
|
|
|
1622
1618
|
border-color: #0000;
|
|
1623
1619
|
}
|
|
1624
1620
|
|
|
1621
|
+
: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).-stealth {
|
|
1622
|
+
box-shadow: none !important;
|
|
1623
|
+
transform: none !important;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1625
1626
|
: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 {
|
|
1626
1627
|
--_button-padding-inline: var(--control-spacing-near, .5em);
|
|
1627
1628
|
min-block-size: var(--control-height-small);
|
|
@@ -1748,6 +1749,20 @@
|
|
|
1748
1749
|
--_card-padding-inline: var(--card-padding-inline, var(--spacing-base));
|
|
1749
1750
|
--_card-padding-block: var(--card-padding-block, var(--spacing-far));
|
|
1750
1751
|
--_card-border-radius: var(--card-border-radius, var(--border-radius-large));
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
:where(.nc-card)[data-size="xs"] {
|
|
1755
|
+
--_card-padding-inline: var(--card-padding-inline, var(--spacing-nearest));
|
|
1756
|
+
--_card-padding-block: var(--card-padding-block, var(--spacing-near));
|
|
1757
|
+
--_card-border-radius: var(--card-border-radius, var(--border-radius-medium));
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
:where(.nc-card)[data-size="sm"] {
|
|
1761
|
+
--_card-padding-inline: var(--card-padding-inline, var(--spacing-near));
|
|
1762
|
+
--_card-padding-block: var(--card-padding-block, var(--spacing-base));
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
:where(.nc-card) {
|
|
1751
1766
|
box-sizing: border-box;
|
|
1752
1767
|
inline-size: 100%;
|
|
1753
1768
|
padding-inline: var(--_card-padding-inline);
|
|
@@ -1763,24 +1778,13 @@
|
|
|
1763
1778
|
overflow: hidden;
|
|
1764
1779
|
}
|
|
1765
1780
|
|
|
1766
|
-
|
|
1767
|
-
--_card-padding-inline: var(--card-padding-inline, var(--spacing-nearest));
|
|
1768
|
-
--_card-padding-block: var(--card-padding-block, var(--spacing-near));
|
|
1769
|
-
--_card-border-radius: var(--card-border-radius, var(--border-radius-medium));
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
:where(.nc-card)[data-size="sm"] {
|
|
1773
|
-
--_card-padding-inline: var(--card-padding-inline, var(--spacing-near));
|
|
1774
|
-
--_card-padding-block: var(--card-padding-block, var(--spacing-base));
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
@media (min-width: 480px) {
|
|
1781
|
+
@media (width >= 480px) {
|
|
1778
1782
|
:where(.nc-card) {
|
|
1779
1783
|
--_card-padding-inline: var(--card-padding-inline, var(--spacing-far));
|
|
1780
1784
|
}
|
|
1781
1785
|
}
|
|
1782
1786
|
|
|
1783
|
-
@media (
|
|
1787
|
+
@media (width >= 1024px) {
|
|
1784
1788
|
:where(.nc-card) {
|
|
1785
1789
|
--_card-padding-inline: var(--card-padding-inline, var(--spacing-farthest));
|
|
1786
1790
|
}
|
|
@@ -1852,7 +1856,7 @@
|
|
|
1852
1856
|
overflow: clip;
|
|
1853
1857
|
}
|
|
1854
1858
|
|
|
1855
|
-
@media (
|
|
1859
|
+
@media (width >= 36rem) {
|
|
1856
1860
|
:where(.nc-dialog) {
|
|
1857
1861
|
--_dialog-radius: var(--dialog-radius, var(--border-radius-medium));
|
|
1858
1862
|
inline-size: calc(100dvw - 2 * var(--_dialog-layout-padding));
|
|
@@ -110,8 +110,9 @@
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
:where(:not(:active):focus-visible) {
|
|
113
|
-
outline:
|
|
114
|
-
|
|
113
|
+
outline: 2px solid var(--color-brand-primary-base);
|
|
114
|
+
box-shadow: 0 0 0 2px var(--color-surface-base);
|
|
115
|
+
outline-offset: 2px;
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
:where(:focus:not(:focus-visible)) {
|
|
@@ -159,6 +160,10 @@
|
|
|
159
160
|
display: block;
|
|
160
161
|
}
|
|
161
162
|
|
|
163
|
+
:where(svg) {
|
|
164
|
+
flex: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
162
167
|
:where(img, svg, video) {
|
|
163
168
|
block-size: auto;
|
|
164
169
|
max-inline-size: 100%;
|
|
@@ -394,12 +399,12 @@
|
|
|
394
399
|
|
|
395
400
|
::selection {
|
|
396
401
|
background-color: var(--color-brand-primary-base);
|
|
397
|
-
color: var(--color-
|
|
402
|
+
color: var(--color-brand-primary-emphasis);
|
|
398
403
|
}
|
|
399
404
|
|
|
400
405
|
::target-text {
|
|
401
406
|
background-color: var(--color-brand-primary-base);
|
|
402
|
-
color: var(--color-
|
|
407
|
+
color: var(--color-brand-primary-emphasis);
|
|
403
408
|
}
|
|
404
409
|
|
|
405
410
|
:where(a, .nc-link) {
|
|
@@ -410,7 +415,7 @@
|
|
|
410
415
|
cursor: pointer;
|
|
411
416
|
letter-spacing: var(--tracking-tight);
|
|
412
417
|
text-decoration: underline;
|
|
413
|
-
text-decoration-thickness:
|
|
418
|
+
text-decoration-thickness: .1em;
|
|
414
419
|
}
|
|
415
420
|
|
|
416
421
|
:where(a, .nc-link):visited {
|
|
@@ -1291,12 +1296,6 @@
|
|
|
1291
1296
|
}
|
|
1292
1297
|
|
|
1293
1298
|
@layer components.buttons {
|
|
1294
|
-
.buttonReset {
|
|
1295
|
-
background: none;
|
|
1296
|
-
border: none;
|
|
1297
|
-
padding: 0;
|
|
1298
|
-
}
|
|
1299
|
-
|
|
1300
1299
|
:where(button:not([class]), button[type]:not([class]), input[type="button"]:not([class]), input[type="submit"]:not([class]), input[type="reset"]:not([class]), input[type="file"]:not([class]), .nc-button) {
|
|
1301
1300
|
--_button-background: var(--button-background, var(--surface-hover));
|
|
1302
1301
|
--_button-color: var(--button-color, var(--text-hover));
|
|
@@ -1328,6 +1327,7 @@
|
|
|
1328
1327
|
box-shadow: var(--_button-box-shadow);
|
|
1329
1328
|
-webkit-user-select: none;
|
|
1330
1329
|
user-select: none;
|
|
1330
|
+
text-box: cap alphabetic;
|
|
1331
1331
|
-webkit-tap-highlight-color: transparent;
|
|
1332
1332
|
-webkit-touch-callout: none;
|
|
1333
1333
|
line-height: var(--line-height-base);
|
|
@@ -1352,8 +1352,14 @@
|
|
|
1352
1352
|
transform: none;
|
|
1353
1353
|
}
|
|
1354
1354
|
|
|
1355
|
-
: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):active {
|
|
1355
|
+
: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):is(:active, .-active) {
|
|
1356
|
+
background-color: var(--_button-background-hover);
|
|
1357
|
+
color: var(--_button-color-hover);
|
|
1358
|
+
border-color: var(--_button-border-color-hover);
|
|
1356
1359
|
box-shadow: none;
|
|
1360
|
+
filter: contrast(1.2) saturate(1.1);
|
|
1361
|
+
-webkit-backdrop-filter: contrast(2);
|
|
1362
|
+
backdrop-filter: contrast(2);
|
|
1357
1363
|
transform: none;
|
|
1358
1364
|
}
|
|
1359
1365
|
|
|
@@ -1370,14 +1376,6 @@
|
|
|
1370
1376
|
transform: none !important;
|
|
1371
1377
|
}
|
|
1372
1378
|
|
|
1373
|
-
: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).-active {
|
|
1374
|
-
background-color: var(--_button-background-hover);
|
|
1375
|
-
color: var(--_button-color-hover);
|
|
1376
|
-
border-color: var(--_button-border-color-hover);
|
|
1377
|
-
box-shadow: none;
|
|
1378
|
-
transform: none;
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
1379
|
: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).-outline {
|
|
1382
1380
|
color: var(--text);
|
|
1383
1381
|
border-color: var(--border);
|
|
@@ -1394,8 +1392,6 @@
|
|
|
1394
1392
|
color: var(--text);
|
|
1395
1393
|
background-color: #0000;
|
|
1396
1394
|
border-color: #0000;
|
|
1397
|
-
box-shadow: none !important;
|
|
1398
|
-
transform: none !important;
|
|
1399
1395
|
}
|
|
1400
1396
|
|
|
1401
1397
|
: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).-stealth:hover {
|
|
@@ -1404,6 +1400,11 @@
|
|
|
1404
1400
|
border-color: #0000;
|
|
1405
1401
|
}
|
|
1406
1402
|
|
|
1403
|
+
: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).-stealth {
|
|
1404
|
+
box-shadow: none !important;
|
|
1405
|
+
transform: none !important;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1407
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 {
|
|
1408
1409
|
--_button-padding-inline: var(--control-spacing-near, .5em);
|
|
1409
1410
|
min-block-size: var(--control-height-small);
|
|
@@ -1530,6 +1531,20 @@
|
|
|
1530
1531
|
--_card-padding-inline: var(--card-padding-inline, var(--spacing-base));
|
|
1531
1532
|
--_card-padding-block: var(--card-padding-block, var(--spacing-far));
|
|
1532
1533
|
--_card-border-radius: var(--card-border-radius, var(--border-radius-large));
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
:where(.nc-card)[data-size="xs"] {
|
|
1537
|
+
--_card-padding-inline: var(--card-padding-inline, var(--spacing-nearest));
|
|
1538
|
+
--_card-padding-block: var(--card-padding-block, var(--spacing-near));
|
|
1539
|
+
--_card-border-radius: var(--card-border-radius, var(--border-radius-medium));
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
:where(.nc-card)[data-size="sm"] {
|
|
1543
|
+
--_card-padding-inline: var(--card-padding-inline, var(--spacing-near));
|
|
1544
|
+
--_card-padding-block: var(--card-padding-block, var(--spacing-base));
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
:where(.nc-card) {
|
|
1533
1548
|
box-sizing: border-box;
|
|
1534
1549
|
inline-size: 100%;
|
|
1535
1550
|
padding-inline: var(--_card-padding-inline);
|
|
@@ -1545,24 +1560,13 @@
|
|
|
1545
1560
|
overflow: hidden;
|
|
1546
1561
|
}
|
|
1547
1562
|
|
|
1548
|
-
|
|
1549
|
-
--_card-padding-inline: var(--card-padding-inline, var(--spacing-nearest));
|
|
1550
|
-
--_card-padding-block: var(--card-padding-block, var(--spacing-near));
|
|
1551
|
-
--_card-border-radius: var(--card-border-radius, var(--border-radius-medium));
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
:where(.nc-card)[data-size="sm"] {
|
|
1555
|
-
--_card-padding-inline: var(--card-padding-inline, var(--spacing-near));
|
|
1556
|
-
--_card-padding-block: var(--card-padding-block, var(--spacing-base));
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
@media (min-width: 480px) {
|
|
1563
|
+
@media (width >= 480px) {
|
|
1560
1564
|
:where(.nc-card) {
|
|
1561
1565
|
--_card-padding-inline: var(--card-padding-inline, var(--spacing-far));
|
|
1562
1566
|
}
|
|
1563
1567
|
}
|
|
1564
1568
|
|
|
1565
|
-
@media (
|
|
1569
|
+
@media (width >= 1024px) {
|
|
1566
1570
|
:where(.nc-card) {
|
|
1567
1571
|
--_card-padding-inline: var(--card-padding-inline, var(--spacing-farthest));
|
|
1568
1572
|
}
|
|
@@ -1634,7 +1638,7 @@
|
|
|
1634
1638
|
overflow: clip;
|
|
1635
1639
|
}
|
|
1636
1640
|
|
|
1637
|
-
@media (
|
|
1641
|
+
@media (width >= 36rem) {
|
|
1638
1642
|
:where(.nc-dialog) {
|
|
1639
1643
|
--_dialog-radius: var(--dialog-radius, var(--border-radius-medium));
|
|
1640
1644
|
inline-size: calc(100dvw - 2 * var(--_dialog-layout-padding));
|
package/package.json
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
@layer components.buttons {
|
|
2
|
-
.buttonReset {
|
|
3
|
-
padding: 0;
|
|
4
|
-
border: none;
|
|
5
|
-
background: none;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
2
|
:where(
|
|
9
3
|
button:not([class]),
|
|
10
4
|
button[type]:not([class]),
|
|
@@ -57,6 +51,7 @@
|
|
|
57
51
|
text-decoration: unset;
|
|
58
52
|
box-shadow: var(--_button-box-shadow);
|
|
59
53
|
user-select: none;
|
|
54
|
+
text-box: cap alphabetic;
|
|
60
55
|
-webkit-tap-highlight-color: transparent;
|
|
61
56
|
-webkit-touch-callout: none;
|
|
62
57
|
|
|
@@ -71,6 +66,7 @@
|
|
|
71
66
|
input[type="reset"]:not([class]),
|
|
72
67
|
.nc-button
|
|
73
68
|
) {
|
|
69
|
+
|
|
74
70
|
&:hover {
|
|
75
71
|
background: var(--_button-background-hover);
|
|
76
72
|
color: var(--_button-color-hover);
|
|
@@ -84,9 +80,15 @@
|
|
|
84
80
|
font-weight: var(--font-weight-active);
|
|
85
81
|
}
|
|
86
82
|
|
|
87
|
-
&:active {
|
|
83
|
+
&:is(:active, .-active) {
|
|
84
|
+
background-color: var(--_button-background-hover);
|
|
85
|
+
color: var(--_button-color-hover);
|
|
86
|
+
border-color: var(--_button-border-color-hover);
|
|
87
|
+
|
|
88
88
|
box-shadow: none;
|
|
89
89
|
transform: none;
|
|
90
|
+
filter: contrast(1.2) saturate(1.1);
|
|
91
|
+
backdrop-filter: contrast(2);
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
&[disabled] {
|
|
@@ -103,15 +105,6 @@
|
|
|
103
105
|
cursor: not-allowed;
|
|
104
106
|
}
|
|
105
107
|
|
|
106
|
-
&.-active {
|
|
107
|
-
background-color: var(--_button-background-hover);
|
|
108
|
-
color: var(--_button-color-hover);
|
|
109
|
-
border-color: var(--_button-border-color-hover);
|
|
110
|
-
|
|
111
|
-
box-shadow: none;
|
|
112
|
-
transform: none;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
108
|
&.-outline {
|
|
116
109
|
background-color: transparent;
|
|
117
110
|
color: var(--text);
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
::selection,
|
|
203
203
|
::target-text {
|
|
204
204
|
background-color: var(--color-brand-primary-base);
|
|
205
|
-
color: var(--color-
|
|
205
|
+
color: var(--color-brand-primary-emphasis);
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
:where(a, .nc-link) {
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
font-family: var(--font-family-link);
|
|
211
211
|
text-decoration: underline;
|
|
212
212
|
text-underline-offset: var(--control-spacing-nearest, 0.375em);
|
|
213
|
-
text-decoration-thickness:
|
|
213
|
+
text-decoration-thickness: 0.1em;
|
|
214
214
|
font-weight: var(--font-weight-default);
|
|
215
215
|
text-decoration-color: currentColor;
|
|
216
216
|
cursor: pointer;
|
|
@@ -27,8 +27,9 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
:where(:not(:active):focus-visible) {
|
|
30
|
-
outline:
|
|
31
|
-
|
|
30
|
+
outline: 2px solid var(--color-brand-primary-base);
|
|
31
|
+
box-shadow: 0 0 0 2px var(--color-surface-base);
|
|
32
|
+
outline-offset: 2px;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
:where(:focus:not(:focus-visible)) {
|
|
@@ -81,6 +82,10 @@
|
|
|
81
82
|
display: block;
|
|
82
83
|
}
|
|
83
84
|
|
|
85
|
+
:where(svg) {
|
|
86
|
+
flex: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
84
89
|
:where(img, svg, video) {
|
|
85
90
|
max-inline-size: 100%;
|
|
86
91
|
block-size: auto;
|