@nordcode/ui 1.1.4 → 1.1.6
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 +16 -0
- package/out/bundle.css +11 -6
- package/out/bundle_configless.css +11 -6
- package/out/complete.css +11 -6
- package/out/complete_configless.css +11 -6
- package/package.json +1 -1
- package/src/styles/components/icons.css +2 -2
- package/src/styles/components/inputs/base.css +1 -1
- package/src/styles/components/inputs/fields.css +2 -2
- package/src/styles/components/inputs/segmented.css +1 -1
- package/src/styles/components/inputs/tag-select.css +1 -1
- package/src/styles/utils/base.css +13 -16
- package/src/styles/utils/layouts.css +3 -3
- package/src/styles/utils/theme.css +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -85,3 +85,19 @@ Lots of spring cleaning
|
|
|
85
85
|
### Fixes
|
|
86
86
|
|
|
87
87
|
- Fix summary border-radius by using a border-radius token
|
|
88
|
+
|
|
89
|
+
## 1.1.5 (2025-01-09)
|
|
90
|
+
|
|
91
|
+
### Improvements
|
|
92
|
+
|
|
93
|
+
- Add `themed` class to apply `var(--text)` and `var(--surface)` colors
|
|
94
|
+
|
|
95
|
+
### Fixes
|
|
96
|
+
|
|
97
|
+
- Fix text colors for `<ins>` and `<del>`
|
|
98
|
+
|
|
99
|
+
## 1.1.6 (2025-01-09)
|
|
100
|
+
|
|
101
|
+
### Improvements
|
|
102
|
+
|
|
103
|
+
- Small changes to spacings.
|
package/out/bundle.css
CHANGED
|
@@ -805,16 +805,16 @@
|
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
:where(del) {
|
|
808
|
-
color: var(--color-status-danger-
|
|
809
|
-
-webkit-text-decoration-color: var(--color-status-danger-
|
|
810
|
-
text-decoration-color: var(--color-status-danger-
|
|
808
|
+
color: var(--color-status-danger-emphasis);
|
|
809
|
+
-webkit-text-decoration-color: var(--color-status-danger-emphasis);
|
|
810
|
+
text-decoration-color: var(--color-status-danger-emphasis);
|
|
811
811
|
background: var(--color-status-danger-surface);
|
|
812
812
|
}
|
|
813
813
|
|
|
814
814
|
:where(ins) {
|
|
815
|
-
color: var(--color-status-success-
|
|
816
|
-
-webkit-text-decoration-color: var(--color-status-success-
|
|
817
|
-
text-decoration-color: var(--color-status-success-
|
|
815
|
+
color: var(--color-status-success-emphasis);
|
|
816
|
+
-webkit-text-decoration-color: var(--color-status-success-emphasis);
|
|
817
|
+
text-decoration-color: var(--color-status-success-emphasis);
|
|
818
818
|
background: var(--color-status-success-surface);
|
|
819
819
|
}
|
|
820
820
|
|
|
@@ -1253,6 +1253,11 @@
|
|
|
1253
1253
|
--surface-hover: var(--color-status-success-base);
|
|
1254
1254
|
--border-hover: var(--color-status-success-base);
|
|
1255
1255
|
}
|
|
1256
|
+
|
|
1257
|
+
.themed {
|
|
1258
|
+
background: var(--surface);
|
|
1259
|
+
color: var(--text);
|
|
1260
|
+
}
|
|
1256
1261
|
}
|
|
1257
1262
|
|
|
1258
1263
|
:where(.text-assistive, .sr-only) {
|
|
@@ -586,16 +586,16 @@
|
|
|
586
586
|
}
|
|
587
587
|
|
|
588
588
|
:where(del) {
|
|
589
|
-
color: var(--color-status-danger-
|
|
590
|
-
-webkit-text-decoration-color: var(--color-status-danger-
|
|
591
|
-
text-decoration-color: var(--color-status-danger-
|
|
589
|
+
color: var(--color-status-danger-emphasis);
|
|
590
|
+
-webkit-text-decoration-color: var(--color-status-danger-emphasis);
|
|
591
|
+
text-decoration-color: var(--color-status-danger-emphasis);
|
|
592
592
|
background: var(--color-status-danger-surface);
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
:where(ins) {
|
|
596
|
-
color: var(--color-status-success-
|
|
597
|
-
-webkit-text-decoration-color: var(--color-status-success-
|
|
598
|
-
text-decoration-color: var(--color-status-success-
|
|
596
|
+
color: var(--color-status-success-emphasis);
|
|
597
|
+
-webkit-text-decoration-color: var(--color-status-success-emphasis);
|
|
598
|
+
text-decoration-color: var(--color-status-success-emphasis);
|
|
599
599
|
background: var(--color-status-success-surface);
|
|
600
600
|
}
|
|
601
601
|
|
|
@@ -1034,6 +1034,11 @@
|
|
|
1034
1034
|
--surface-hover: var(--color-status-success-base);
|
|
1035
1035
|
--border-hover: var(--color-status-success-base);
|
|
1036
1036
|
}
|
|
1037
|
+
|
|
1038
|
+
.themed {
|
|
1039
|
+
background: var(--surface);
|
|
1040
|
+
color: var(--text);
|
|
1041
|
+
}
|
|
1037
1042
|
}
|
|
1038
1043
|
|
|
1039
1044
|
:where(.text-assistive, .sr-only) {
|
package/out/complete.css
CHANGED
|
@@ -805,16 +805,16 @@
|
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
:where(del) {
|
|
808
|
-
color: var(--color-status-danger-
|
|
809
|
-
-webkit-text-decoration-color: var(--color-status-danger-
|
|
810
|
-
text-decoration-color: var(--color-status-danger-
|
|
808
|
+
color: var(--color-status-danger-emphasis);
|
|
809
|
+
-webkit-text-decoration-color: var(--color-status-danger-emphasis);
|
|
810
|
+
text-decoration-color: var(--color-status-danger-emphasis);
|
|
811
811
|
background: var(--color-status-danger-surface);
|
|
812
812
|
}
|
|
813
813
|
|
|
814
814
|
:where(ins) {
|
|
815
|
-
color: var(--color-status-success-
|
|
816
|
-
-webkit-text-decoration-color: var(--color-status-success-
|
|
817
|
-
text-decoration-color: var(--color-status-success-
|
|
815
|
+
color: var(--color-status-success-emphasis);
|
|
816
|
+
-webkit-text-decoration-color: var(--color-status-success-emphasis);
|
|
817
|
+
text-decoration-color: var(--color-status-success-emphasis);
|
|
818
818
|
background: var(--color-status-success-surface);
|
|
819
819
|
}
|
|
820
820
|
|
|
@@ -1253,6 +1253,11 @@
|
|
|
1253
1253
|
--surface-hover: var(--color-status-success-base);
|
|
1254
1254
|
--border-hover: var(--color-status-success-base);
|
|
1255
1255
|
}
|
|
1256
|
+
|
|
1257
|
+
.themed {
|
|
1258
|
+
background: var(--surface);
|
|
1259
|
+
color: var(--text);
|
|
1260
|
+
}
|
|
1256
1261
|
}
|
|
1257
1262
|
|
|
1258
1263
|
:where(.text-assistive, .sr-only) {
|
|
@@ -586,16 +586,16 @@
|
|
|
586
586
|
}
|
|
587
587
|
|
|
588
588
|
:where(del) {
|
|
589
|
-
color: var(--color-status-danger-
|
|
590
|
-
-webkit-text-decoration-color: var(--color-status-danger-
|
|
591
|
-
text-decoration-color: var(--color-status-danger-
|
|
589
|
+
color: var(--color-status-danger-emphasis);
|
|
590
|
+
-webkit-text-decoration-color: var(--color-status-danger-emphasis);
|
|
591
|
+
text-decoration-color: var(--color-status-danger-emphasis);
|
|
592
592
|
background: var(--color-status-danger-surface);
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
:where(ins) {
|
|
596
|
-
color: var(--color-status-success-
|
|
597
|
-
-webkit-text-decoration-color: var(--color-status-success-
|
|
598
|
-
text-decoration-color: var(--color-status-success-
|
|
596
|
+
color: var(--color-status-success-emphasis);
|
|
597
|
+
-webkit-text-decoration-color: var(--color-status-success-emphasis);
|
|
598
|
+
text-decoration-color: var(--color-status-success-emphasis);
|
|
599
599
|
background: var(--color-status-success-surface);
|
|
600
600
|
}
|
|
601
601
|
|
|
@@ -1034,6 +1034,11 @@
|
|
|
1034
1034
|
--surface-hover: var(--color-status-success-base);
|
|
1035
1035
|
--border-hover: var(--color-status-success-base);
|
|
1036
1036
|
}
|
|
1037
|
+
|
|
1038
|
+
.themed {
|
|
1039
|
+
background: var(--surface);
|
|
1040
|
+
color: var(--text);
|
|
1041
|
+
}
|
|
1037
1042
|
}
|
|
1038
1043
|
|
|
1039
1044
|
:where(.text-assistive, .sr-only) {
|
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&[data-size="inline"] {
|
|
35
|
-
--icon-size: 0.
|
|
35
|
+
--icon-size: 0.75lh;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&[data-size="button"] {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
:where(button, .nc-button)
|
|
47
|
+
:where(button, .nc-button)>.nc-icon {
|
|
48
48
|
--icon-size: 2ex;
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer components.input-fields {
|
|
2
2
|
:where(.nc-input-field) {
|
|
3
3
|
display: grid;
|
|
4
|
-
gap: 0.
|
|
4
|
+
gap: 0.25lh;
|
|
5
5
|
grid-template-columns: minmax(0, 1fr);
|
|
6
6
|
inline-size: 100%;
|
|
7
7
|
min-inline-size: var(--input-field-min-inline-size);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
&>label,
|
|
12
12
|
&>.nc-stack {
|
|
13
|
-
gap: 0
|
|
13
|
+
gap: 0;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&>.nc-cluster {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
--_tag-select-checked-surface-color: var(--tag-select-checked-surface-color,
|
|
6
6
|
var(--color-brand-primary-base));
|
|
7
7
|
--_tag-select-border-radius: var(--tag-select-border-radius, var(--_input-border-radius));
|
|
8
|
-
--nc-legend-spacing: 0.
|
|
8
|
+
--nc-legend-spacing: 0.25lh;
|
|
9
9
|
|
|
10
10
|
&:focus-within:has(:focus-visible) {
|
|
11
11
|
outline-offset: 1ch;
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
display: block;
|
|
79
79
|
color: var(--color-surface-subtle);
|
|
80
80
|
background-color: var(--color-text-base);
|
|
81
|
-
padding: 0.
|
|
81
|
+
padding: 0.25lh 1ch;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
:where(details) {
|
|
85
85
|
--p-x-details: 2ch;
|
|
86
|
-
--p-y-details: 0.
|
|
86
|
+
--p-y-details: 0.75lh;
|
|
87
87
|
--b-r-details: var(--border-radius-medium);
|
|
88
88
|
|
|
89
89
|
background-color: var(--color-surface-muted);
|
|
@@ -92,17 +92,16 @@
|
|
|
92
92
|
padding: var(--p-y-details) var(--p-x-details);
|
|
93
93
|
inline-size: 100%;
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
&>summary {
|
|
96
96
|
color: var(--color-text-base);
|
|
97
97
|
background: var(--color-surface-subtle);
|
|
98
98
|
font-weight: var(--font-weight-heading);
|
|
99
99
|
border-radius: var(--b-r-details);
|
|
100
100
|
padding: var(--p-y-details) var(--p-x-details);
|
|
101
|
-
margin: calc(-1 * var(--p-y-details))
|
|
102
|
-
calc(-1 * var(--p-x-details) + var(--border-width-thin));
|
|
101
|
+
margin: calc(-1 * var(--p-y-details)) calc(-1 * var(--p-x-details) + var(--border-width-thin));
|
|
103
102
|
}
|
|
104
103
|
|
|
105
|
-
&[open]
|
|
104
|
+
&[open]>summary {
|
|
106
105
|
border-end-start-radius: 0;
|
|
107
106
|
border-end-end-radius: 0;
|
|
108
107
|
margin-block-end: var(--p-y-details);
|
|
@@ -139,11 +138,9 @@
|
|
|
139
138
|
margin-block-start: var(--spacing-near);
|
|
140
139
|
font-size: var(--font-size-base);
|
|
141
140
|
max-inline-size: max-content;
|
|
142
|
-
color: color-mix(
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
transparent
|
|
146
|
-
);
|
|
141
|
+
color: color-mix(in oklch,
|
|
142
|
+
currentColor calc(var(--transparency-weaker) * 100%),
|
|
143
|
+
transparent);
|
|
147
144
|
}
|
|
148
145
|
|
|
149
146
|
& cite:before {
|
|
@@ -388,14 +385,14 @@
|
|
|
388
385
|
}
|
|
389
386
|
|
|
390
387
|
:where(del) {
|
|
391
|
-
color: var(--color-status-danger-
|
|
392
|
-
text-decoration-color: var(--color-status-danger-
|
|
388
|
+
color: var(--color-status-danger-emphasis);
|
|
389
|
+
text-decoration-color: var(--color-status-danger-emphasis);
|
|
393
390
|
background: var(--color-status-danger-surface);
|
|
394
391
|
}
|
|
395
392
|
|
|
396
393
|
:where(ins) {
|
|
397
|
-
color: var(--color-status-success-
|
|
398
|
-
text-decoration-color: var(--color-status-success-
|
|
394
|
+
color: var(--color-status-success-emphasis);
|
|
395
|
+
text-decoration-color: var(--color-status-success-emphasis);
|
|
399
396
|
background: var(--color-status-success-surface);
|
|
400
397
|
}
|
|
401
398
|
|
|
@@ -413,6 +410,6 @@
|
|
|
413
410
|
}
|
|
414
411
|
|
|
415
412
|
:where(li > :is(ul, ol)) {
|
|
416
|
-
margin-block-start: 0.
|
|
413
|
+
margin-block-start: 0.25lh;
|
|
417
414
|
}
|
|
418
415
|
}
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
|
|
56
56
|
:where(.nc-flow) {
|
|
57
57
|
>*+* {
|
|
58
|
-
margin-block-start: var(--flow-gap,
|
|
58
|
+
margin-block-start: var(--flow-gap, 1lh);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
>* {
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
|
|
65
65
|
>*:is(h1, h2, h3, h4, h5, h6) {
|
|
66
66
|
max-inline-size: var(--flow-headline-meassure, 32ch);
|
|
67
|
-
--flow-gap: 1.
|
|
67
|
+
--flow-gap: 1.5lh;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
>*:is(h1, h2, h3, h4, h5, h6)+ :not([class]) {
|
|
71
|
-
--flow-gap: 0.
|
|
71
|
+
--flow-gap: 0.5lh;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
>figure {
|