@nordcode/ui 1.0.11 → 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 +157 -193
- package/out/bundle_configless.css +64 -69
- package/out/colors.css +1 -1
- package/out/complete.css +173 -210
- package/out/complete_configless.css +80 -86
- 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 +56 -43
|
@@ -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,28 +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
|
-
inline-size: 100%;
|
|
124
|
-
text-rendering: optimizeSpeed;
|
|
125
125
|
block-size: 100%;
|
|
126
|
-
min-block-size: 100vh;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
:where(body) {
|
|
130
|
-
font-weight: var(--font-weight-default);
|
|
131
126
|
color: var(--color-text-base);
|
|
132
127
|
background-color: var(--color-surface-muted);
|
|
133
128
|
font-family: var(--font-family-default);
|
|
134
129
|
line-height: var(--line-height-base);
|
|
135
|
-
|
|
136
|
-
font-
|
|
130
|
+
font-weight: var(--font-weight-default);
|
|
131
|
+
font-size-adjust: from-font;
|
|
132
|
+
interpolate-size: allow-keywords;
|
|
133
|
+
font-kerning: normal;
|
|
134
|
+
-moz-osx-font-smoothing: grayscale;
|
|
135
|
+
-webkit-font-smoothing: antialiased;
|
|
137
136
|
}
|
|
138
137
|
|
|
139
|
-
:where(body
|
|
140
|
-
|
|
138
|
+
:where(body) {
|
|
139
|
+
min-block-size: 100vh;
|
|
141
140
|
}
|
|
142
141
|
|
|
143
142
|
:where(ul[role="list"], ol[role="list"]) {
|
|
@@ -164,13 +163,17 @@
|
|
|
164
163
|
}
|
|
165
164
|
|
|
166
165
|
:where(figure) {
|
|
167
|
-
|
|
166
|
+
grid-template-rows: 1fr auto;
|
|
167
|
+
place-content: center;
|
|
168
168
|
gap: 0;
|
|
169
169
|
display: grid;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
: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)) {
|
|
173
173
|
cursor: pointer;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:where(a[href], area, button, input, label[for], select, summary, textarea, [tabindex]:not([tabindex*="-"])) {
|
|
174
177
|
touch-action: manipulation;
|
|
175
178
|
-webkit-tap-highlight-color: transparent;
|
|
176
179
|
}
|
|
@@ -187,19 +190,10 @@
|
|
|
187
190
|
letter-spacing: inherit;
|
|
188
191
|
}
|
|
189
192
|
|
|
190
|
-
:where(label:not(class) + input, label:not(class) + select, label:not(class) + textarea) {
|
|
191
|
-
display: block;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
:where(p, summary) {
|
|
195
|
-
max-inline-size: var(--measure-base);
|
|
196
|
-
font-size: inherit;
|
|
197
|
-
line-height: var(--line-height-base);
|
|
198
|
-
margin: 0;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
193
|
:where(p) {
|
|
194
|
+
text-wrap: balance;
|
|
202
195
|
text-wrap: pretty;
|
|
196
|
+
max-inline-size: var(--measure-base);
|
|
203
197
|
}
|
|
204
198
|
|
|
205
199
|
:where(html):has(dialog:modal) {
|
|
@@ -209,6 +203,12 @@
|
|
|
209
203
|
}
|
|
210
204
|
|
|
211
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
|
+
|
|
212
212
|
:where(dt) {
|
|
213
213
|
font-weight: var(--font-weight-active);
|
|
214
214
|
color: var(--color-text-base);
|
|
@@ -278,9 +278,6 @@
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
:where(figcaption) {
|
|
281
|
-
font-family: var(--font-family-sans);
|
|
282
|
-
font-weight: var(--font-weight-default);
|
|
283
|
-
line-height: var(--line-height-base);
|
|
284
281
|
color: var(--color-surface-subtle);
|
|
285
282
|
background-color: var(--color-text-base);
|
|
286
283
|
padding: .3lh 1ch;
|
|
@@ -289,33 +286,26 @@
|
|
|
289
286
|
|
|
290
287
|
:where(details) {
|
|
291
288
|
--p-x-details: 2ch;
|
|
292
|
-
--p-y-details: .
|
|
293
|
-
background-color: var(--color-surface-
|
|
289
|
+
--p-y-details: .8lh;
|
|
290
|
+
background-color: var(--color-surface-muted);
|
|
294
291
|
border-radius: var(--border-radius-medium);
|
|
295
292
|
border: var(--border-width-thin) solid var(--color-border-base);
|
|
296
|
-
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
:where(details) > * {
|
|
300
|
-
padding-inline: var(--p-x-details);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
:where(details) > :last-child {
|
|
304
|
-
padding-block-end: var(--p-y-details);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
:where(details) > summary::-webkit-details-marker {
|
|
308
|
-
display: none;
|
|
293
|
+
padding: var(--p-y-details) var(--p-x-details);
|
|
309
294
|
}
|
|
310
295
|
|
|
311
296
|
:where(details) > summary {
|
|
312
|
-
cursor: pointer;
|
|
313
297
|
color: var(--color-text-base);
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
padding
|
|
318
|
-
|
|
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);
|
|
319
309
|
}
|
|
320
310
|
|
|
321
311
|
.note, blockquote {
|
|
@@ -362,9 +352,10 @@
|
|
|
362
352
|
}
|
|
363
353
|
|
|
364
354
|
:where(hr) {
|
|
365
|
-
border-top: var(--border-width-medium) solid var(--color-border-base);
|
|
366
|
-
block-size: 0;
|
|
367
355
|
inline-size: 100%;
|
|
356
|
+
block-size: var(--border-width-medium);
|
|
357
|
+
background: var(--color-border-base);
|
|
358
|
+
border-block-start: 0;
|
|
368
359
|
}
|
|
369
360
|
|
|
370
361
|
:where(h1, h2, h3, h4, h5, h6) {
|
|
@@ -446,6 +437,11 @@
|
|
|
446
437
|
font-weight: var(--font-weight-default);
|
|
447
438
|
}
|
|
448
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
|
+
|
|
449
445
|
:where([aria-disabled="true"], .disabled, :disabled) {
|
|
450
446
|
color: inherit;
|
|
451
447
|
opacity: 1;
|
|
@@ -610,8 +606,12 @@
|
|
|
610
606
|
padding-inline-start: 2ch;
|
|
611
607
|
}
|
|
612
608
|
|
|
613
|
-
:where(li + li)
|
|
614
|
-
margin-
|
|
609
|
+
:where(li + li) {
|
|
610
|
+
margin-block-start: .5lh;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
:where(li > :is(ul, ol)) {
|
|
614
|
+
margin-block-start: .3lh;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
|
|
@@ -669,7 +669,7 @@
|
|
|
669
669
|
}
|
|
670
670
|
|
|
671
671
|
:where(.nc-flow) > * + * {
|
|
672
|
-
margin-block-start: var(--flow-gap, .
|
|
672
|
+
margin-block-start: var(--flow-gap, .8lh);
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
:where(.nc-flow) > * {
|
|
@@ -681,16 +681,11 @@
|
|
|
681
681
|
--flow-gap: 1.3lh;
|
|
682
682
|
}
|
|
683
683
|
|
|
684
|
-
:where(.nc-flow) > :is(h1, h2, h3, h4, h5, h6) +
|
|
685
|
-
--flow-gap: .
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
:where(.nc-flow) > p + p {
|
|
689
|
-
--flow-gap: .8lh;
|
|
684
|
+
:where(.nc-flow) > :is(h1, h2, h3, h4, h5, h6) + :not([class]) {
|
|
685
|
+
--flow-gap: .3lh;
|
|
690
686
|
}
|
|
691
687
|
|
|
692
688
|
:where(.nc-flow) > figure {
|
|
693
|
-
margin-block: 1lh;
|
|
694
689
|
margin-inline: 0;
|
|
695
690
|
}
|
|
696
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));
|