@nordcode/ui 1.0.12 → 1.1.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/ATTRIBUTION.md +3 -0
- package/CHANGELOG.md +10 -0
- package/out/bundle.css +159 -192
- package/out/bundle_configless.css +66 -68
- package/out/colors.css +1 -1
- package/out/complete.css +174 -208
- package/out/complete_configless.css +81 -84
- package/package.json +1 -1
- package/src/styles/components/forms.css +3 -3
- package/src/styles/components/icons.css +2 -2
- package/src/styles/components/inputs/base.css +6 -5
- package/src/styles/components/inputs/fields.css +2 -3
- package/src/styles/components/inputs/segmented.css +1 -1
- package/src/styles/components/inputs/tag-select.css +1 -1
- package/src/styles/config/config.css +583 -268
- package/src/styles/config/extras.css +0 -6
- package/src/styles/theme/colors.css +1 -1
- package/src/styles/utils/base.css +29 -28
- package/src/styles/utils/layouts.css +3 -8
- package/src/styles/utils/reset.css +57 -41
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
color-scheme: dark;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
:where(
|
|
29
|
+
:where(:root) {
|
|
30
30
|
--l-brand-primary: var(--lightningcss-light, var(--l-brand-primary-light)) var(--lightningcss-dark, var(--l-brand-primary-dark));
|
|
31
31
|
--color-brand-primary-emphasis: var(--lightningcss-light, var(--color-brand-primary-emphasis-light)) var(--lightningcss-dark, var(--color-brand-primary-emphasis-dark));
|
|
32
32
|
--color-brand-primary-base: var(--lightningcss-light, var(--color-brand-primary-base-light)) var(--lightningcss-dark, var(--color-brand-primary-base-dark));
|
|
@@ -86,10 +86,6 @@
|
|
|
86
86
|
@layer reset {
|
|
87
87
|
*, :after, :before {
|
|
88
88
|
box-sizing: border-box;
|
|
89
|
-
accent-color: var(--color-brand-primary-base);
|
|
90
|
-
font-kerning: normal;
|
|
91
|
-
-moz-osx-font-smoothing: grayscale;
|
|
92
|
-
-webkit-font-smoothing: antialiased;
|
|
93
89
|
}
|
|
94
90
|
|
|
95
91
|
:where(:not(dialog)) {
|
|
@@ -103,11 +99,17 @@
|
|
|
103
99
|
border-width: 0;
|
|
104
100
|
}
|
|
105
101
|
|
|
106
|
-
|
|
107
|
-
|
|
102
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
103
|
+
:where(:focus-visible) {
|
|
104
|
+
transition: outline-offset var(--transition-duration-short) var(--ease-2);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:where(:not(:active):focus-visible) {
|
|
108
|
+
transition-duration: var(--transition-duration-base);
|
|
109
|
+
}
|
|
108
110
|
}
|
|
109
111
|
|
|
110
|
-
:where(:focus-visible
|
|
112
|
+
:where(:not(:active):focus-visible) {
|
|
111
113
|
outline: var(--border-width-medium) solid var(--color-brand-primary-base);
|
|
112
114
|
outline-offset: 1ch;
|
|
113
115
|
}
|
|
@@ -116,25 +118,25 @@
|
|
|
116
118
|
outline: none;
|
|
117
119
|
}
|
|
118
120
|
|
|
119
|
-
:where(
|
|
121
|
+
:where(:root) {
|
|
120
122
|
-webkit-text-size-adjust: none;
|
|
121
123
|
-moz-text-size-adjust: none;
|
|
122
124
|
text-size-adjust: none;
|
|
123
125
|
block-size: 100%;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
:where(body) {
|
|
126
|
+
color: var(--color-text-base);
|
|
127
|
+
background-color: var(--color-surface-muted);
|
|
127
128
|
font-family: var(--font-family-default);
|
|
129
|
+
line-height: var(--line-height-base);
|
|
128
130
|
font-weight: var(--font-weight-default);
|
|
129
131
|
font-size-adjust: from-font;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
interpolate-size: allow-keywords;
|
|
133
|
+
font-kerning: normal;
|
|
134
|
+
-moz-osx-font-smoothing: grayscale;
|
|
135
|
+
-webkit-font-smoothing: antialiased;
|
|
134
136
|
}
|
|
135
137
|
|
|
136
|
-
:where(body
|
|
137
|
-
|
|
138
|
+
:where(body) {
|
|
139
|
+
min-block-size: 100vh;
|
|
138
140
|
}
|
|
139
141
|
|
|
140
142
|
:where(ul[role="list"], ol[role="list"]) {
|
|
@@ -161,13 +163,17 @@
|
|
|
161
163
|
}
|
|
162
164
|
|
|
163
165
|
:where(figure) {
|
|
164
|
-
|
|
166
|
+
grid-template-rows: 1fr auto;
|
|
167
|
+
place-content: center;
|
|
165
168
|
gap: 0;
|
|
166
|
-
display:
|
|
169
|
+
display: grid;
|
|
167
170
|
}
|
|
168
171
|
|
|
169
|
-
:where(a[href], area, button, input, label[for], select, summary,
|
|
172
|
+
:where(a[href], area, button, input:not([type="text"], [type="email"], [type="number"], [type="password"], [type=""], [type="tel"], [type="url"]), label[for], select, summary, [tabindex]:not([tabindex*="-"], pre)) {
|
|
170
173
|
cursor: pointer;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:where(a[href], area, button, input, label[for], select, summary, textarea, [tabindex]:not([tabindex*="-"])) {
|
|
171
177
|
touch-action: manipulation;
|
|
172
178
|
-webkit-tap-highlight-color: transparent;
|
|
173
179
|
}
|
|
@@ -184,19 +190,10 @@
|
|
|
184
190
|
letter-spacing: inherit;
|
|
185
191
|
}
|
|
186
192
|
|
|
187
|
-
:where(label:not(class) + input, label:not(class) + select, label:not(class) + textarea) {
|
|
188
|
-
display: block;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
:where(p, summary) {
|
|
192
|
-
max-inline-size: var(--measure-base);
|
|
193
|
-
font-size: inherit;
|
|
194
|
-
line-height: var(--line-height-base);
|
|
195
|
-
margin: 0;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
193
|
:where(p) {
|
|
194
|
+
text-wrap: balance;
|
|
199
195
|
text-wrap: pretty;
|
|
196
|
+
max-inline-size: var(--measure-base);
|
|
200
197
|
}
|
|
201
198
|
|
|
202
199
|
:where(html):has(dialog:modal) {
|
|
@@ -206,6 +203,12 @@
|
|
|
206
203
|
}
|
|
207
204
|
|
|
208
205
|
@layer base {
|
|
206
|
+
:where(:root) {
|
|
207
|
+
accent-color: var(--color-brand-primary-base);
|
|
208
|
+
caret-color: var(--color-brand-primary-base);
|
|
209
|
+
scrollbar-color: var(--color-text-subtle) transparent;
|
|
210
|
+
}
|
|
211
|
+
|
|
209
212
|
:where(dt) {
|
|
210
213
|
font-weight: var(--font-weight-active);
|
|
211
214
|
color: var(--color-text-base);
|
|
@@ -275,9 +278,6 @@
|
|
|
275
278
|
}
|
|
276
279
|
|
|
277
280
|
:where(figcaption) {
|
|
278
|
-
font-family: var(--font-family-sans);
|
|
279
|
-
font-weight: var(--font-weight-default);
|
|
280
|
-
line-height: var(--line-height-base);
|
|
281
281
|
color: var(--color-surface-subtle);
|
|
282
282
|
background-color: var(--color-text-base);
|
|
283
283
|
padding: .3lh 1ch;
|
|
@@ -286,33 +286,26 @@
|
|
|
286
286
|
|
|
287
287
|
:where(details) {
|
|
288
288
|
--p-x-details: 2ch;
|
|
289
|
-
--p-y-details: .
|
|
290
|
-
background-color: var(--color-surface-
|
|
289
|
+
--p-y-details: .8lh;
|
|
290
|
+
background-color: var(--color-surface-muted);
|
|
291
291
|
border-radius: var(--border-radius-medium);
|
|
292
292
|
border: var(--border-width-thin) solid var(--color-border-base);
|
|
293
|
-
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
:where(details) > * {
|
|
297
|
-
padding-inline: var(--p-x-details);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
:where(details) > :last-child {
|
|
301
|
-
padding-block-end: var(--p-y-details);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
:where(details) > summary::-webkit-details-marker {
|
|
305
|
-
display: none;
|
|
293
|
+
padding: var(--p-y-details) var(--p-x-details);
|
|
306
294
|
}
|
|
307
295
|
|
|
308
296
|
:where(details) > summary {
|
|
309
|
-
cursor: pointer;
|
|
310
297
|
color: var(--color-text-base);
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
padding
|
|
315
|
-
|
|
298
|
+
background: var(--color-surface-subtle);
|
|
299
|
+
border-radius: var(--border-radius-medium);
|
|
300
|
+
font-weight: var(--font-weight-heading);
|
|
301
|
+
padding: var(--p-y-details) var(--p-x-details);
|
|
302
|
+
margin: calc(-1 * var(--p-y-details)) calc(-1 * var(--p-x-details) + var(--border-width-thin));
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
:where(details)[open] > summary {
|
|
306
|
+
border-end-end-radius: 0;
|
|
307
|
+
border-end-start-radius: 0;
|
|
308
|
+
margin-block-end: var(--p-y-details);
|
|
316
309
|
}
|
|
317
310
|
|
|
318
311
|
.note, blockquote {
|
|
@@ -359,9 +352,10 @@
|
|
|
359
352
|
}
|
|
360
353
|
|
|
361
354
|
:where(hr) {
|
|
362
|
-
border-top: var(--border-width-medium) solid var(--color-border-base);
|
|
363
|
-
block-size: 0;
|
|
364
355
|
inline-size: 100%;
|
|
356
|
+
block-size: var(--border-width-medium);
|
|
357
|
+
background: var(--color-border-base);
|
|
358
|
+
border-block-start: 0;
|
|
365
359
|
}
|
|
366
360
|
|
|
367
361
|
:where(h1, h2, h3, h4, h5, h6) {
|
|
@@ -443,6 +437,11 @@
|
|
|
443
437
|
font-weight: var(--font-weight-default);
|
|
444
438
|
}
|
|
445
439
|
|
|
440
|
+
:where(abbr) {
|
|
441
|
+
-webkit-text-decoration-color: var(--color-brand-primary-base);
|
|
442
|
+
text-decoration-color: var(--color-brand-primary-base);
|
|
443
|
+
}
|
|
444
|
+
|
|
446
445
|
:where([aria-disabled="true"], .disabled, :disabled) {
|
|
447
446
|
color: inherit;
|
|
448
447
|
opacity: 1;
|
|
@@ -607,8 +606,12 @@
|
|
|
607
606
|
padding-inline-start: 2ch;
|
|
608
607
|
}
|
|
609
608
|
|
|
610
|
-
:where(li + li)
|
|
611
|
-
margin-
|
|
609
|
+
:where(li + li) {
|
|
610
|
+
margin-block-start: .5lh;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
:where(li > :is(ul, ol)) {
|
|
614
|
+
margin-block-start: .3lh;
|
|
612
615
|
}
|
|
613
616
|
}
|
|
614
617
|
|
|
@@ -666,7 +669,7 @@
|
|
|
666
669
|
}
|
|
667
670
|
|
|
668
671
|
:where(.nc-flow) > * + * {
|
|
669
|
-
margin-block-start: var(--flow-gap, .
|
|
672
|
+
margin-block-start: var(--flow-gap, .8lh);
|
|
670
673
|
}
|
|
671
674
|
|
|
672
675
|
:where(.nc-flow) > * {
|
|
@@ -678,16 +681,11 @@
|
|
|
678
681
|
--flow-gap: 1.3lh;
|
|
679
682
|
}
|
|
680
683
|
|
|
681
|
-
:where(.nc-flow) > :is(h1, h2, h3, h4, h5, h6) +
|
|
682
|
-
--flow-gap: .
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
:where(.nc-flow) > p + p {
|
|
686
|
-
--flow-gap: .8lh;
|
|
684
|
+
:where(.nc-flow) > :is(h1, h2, h3, h4, h5, h6) + :not([class]) {
|
|
685
|
+
--flow-gap: .3lh;
|
|
687
686
|
}
|
|
688
687
|
|
|
689
688
|
:where(.nc-flow) > figure {
|
|
690
|
-
margin-block: 1lh;
|
|
691
689
|
margin-inline: 0;
|
|
692
690
|
}
|
|
693
691
|
|
package/out/colors.css
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
color-scheme: dark;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
:where(
|
|
27
|
+
:where(:root) {
|
|
28
28
|
--l-brand-primary: var(--lightningcss-light, var(--l-brand-primary-light)) var(--lightningcss-dark, var(--l-brand-primary-dark));
|
|
29
29
|
--color-brand-primary-emphasis: var(--lightningcss-light, var(--color-brand-primary-emphasis-light)) var(--lightningcss-dark, var(--color-brand-primary-emphasis-dark));
|
|
30
30
|
--color-brand-primary-base: var(--lightningcss-light, var(--color-brand-primary-base-light)) var(--lightningcss-dark, var(--color-brand-primary-base-dark));
|