@navikt/ds-css 7.5.0 → 7.5.2
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 +8 -0
- package/darkside/button.darkside.css +8 -6
- package/darkside/copybutton.darkside.css +1 -1
- package/darkside/expansioncard.darkside.css +123 -175
- package/darkside/form/error-summary.darkside.css +30 -36
- package/darkside/form/fieldset.darkside.css +2 -10
- package/darkside/form/file-upload.darkside.css +106 -110
- package/darkside/form/form-progress.darkside.css +30 -25
- package/darkside/form/form-summary.darkside.css +28 -24
- package/darkside/form/form.darkside.css +6 -14
- package/darkside/form/radio-checkbox.darkside.css +73 -142
- package/darkside/form/text-field.darkside.css +38 -81
- package/darkside/help-text.darkside.css +16 -40
- package/darkside/index.css +1 -1
- package/darkside/link.darkside.css +40 -56
- package/darkside/list.darkside.css +36 -35
- package/darkside/loader.darkside.css +72 -58
- package/darkside/modal.darkside.css +59 -54
- package/darkside/pagination.darkside.css +12 -44
- package/darkside/popover.darkside.css +12 -75
- package/darkside/progress-bar.darkside.css +12 -12
- package/dist/component/form.css +5 -1
- package/dist/component/form.min.css +1 -1
- package/dist/component/index.css +8 -2
- package/dist/component/index.min.css +2 -2
- package/dist/component/loader.css +1 -0
- package/dist/component/loader.min.css +1 -1
- package/dist/components.css +8 -2
- package/dist/components.min.css +2 -2
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +8 -2
- package/dist/index.min.css +2 -2
- package/form/combobox.css +4 -0
- package/form/form-progress.css +2 -1
- package/loader.css +1 -0
- package/package.json +2 -2
|
@@ -18,30 +18,28 @@
|
|
|
18
18
|
|
|
19
19
|
.navds-checkbox__label,
|
|
20
20
|
.navds-radio__label {
|
|
21
|
-
padding: var(--
|
|
21
|
+
padding: var(--ax-spacing-3) 0;
|
|
22
22
|
cursor: pointer;
|
|
23
23
|
display: flex;
|
|
24
|
-
gap: var(--
|
|
24
|
+
gap: var(--ax-spacing-2);
|
|
25
25
|
|
|
26
|
-
--
|
|
27
|
-
--
|
|
26
|
+
--__axc-radio-checkbox-readonly-bg: var(--ax-bg-neutral-moderate);
|
|
27
|
+
--__axc-radio-checkbox-readonly-border: var(--ax-border-subtle);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.navds-checkbox__label::before,
|
|
31
31
|
.navds-radio__label::before {
|
|
32
32
|
content: "";
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
border-radius: var(--ax-border-radius-medium);
|
|
34
|
+
background-color: var(--ax-bg-input);
|
|
35
35
|
flex-shrink: 0;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
margin-block: 2px;
|
|
40
|
-
margin-inline: 2px;
|
|
36
|
+
width: 1.5rem;
|
|
37
|
+
height: 1.5rem;
|
|
38
|
+
border: 2px solid var(--ax-border-default);
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
.navds-radio__label::before {
|
|
44
|
-
border-radius: var(--
|
|
42
|
+
border-radius: var(--ax-border-radius-full);
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
.navds-checkbox__content,
|
|
@@ -61,38 +59,27 @@
|
|
|
61
59
|
|
|
62
60
|
.navds-checkbox--small > .navds-checkbox__label,
|
|
63
61
|
.navds-radio--small > .navds-radio__label {
|
|
64
|
-
padding: var(--
|
|
62
|
+
padding: var(--ax-spacing-1-alt) 0;
|
|
65
63
|
}
|
|
66
64
|
|
|
67
65
|
.navds-checkbox--small > .navds-checkbox__label::before,
|
|
68
66
|
.navds-radio--small > .navds-radio__label::before {
|
|
69
|
-
width:
|
|
70
|
-
height:
|
|
67
|
+
width: 1.25rem;
|
|
68
|
+
height: 1.25rem;
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
.navds-checkbox__input:focus + .navds-checkbox__label::before,
|
|
74
72
|
.navds-radio__input:focus + .navds-radio__label::before {
|
|
75
|
-
outline: 2px solid
|
|
73
|
+
outline: 2px solid var(--ax-border-focus);
|
|
76
74
|
outline-offset: 2px;
|
|
77
|
-
box-shadow:
|
|
78
|
-
0 0 0 2px var(--ac-radio-checkbox-border, var(--a-border-default)),
|
|
79
|
-
0 0 0 2px var(--ac-radio-checkbox-bg, var(--a-surface-default)),
|
|
80
|
-
0 0 0 4px var(--a-border-focus);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.navds-checkbox__input:hover:focus + .navds-checkbox__label::before,
|
|
84
|
-
.navds-radio__input:hover:focus + .navds-radio__label::before {
|
|
85
|
-
box-shadow:
|
|
86
|
-
0 0 0 2px var(--ac-radio-checkbox-action, var(--a-surface-action-hover)),
|
|
87
|
-
0 0 0 4px var(--a-border-focus);
|
|
88
75
|
}
|
|
89
76
|
|
|
90
77
|
.navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
|
|
91
78
|
content: "";
|
|
92
79
|
position: absolute;
|
|
93
80
|
top: 50%;
|
|
94
|
-
transform: translate(var(--
|
|
95
|
-
background-color: var(--
|
|
81
|
+
transform: translate(var(--ax-spacing-1-alt), -50%);
|
|
82
|
+
background-color: var(--ax-bg-default);
|
|
96
83
|
width: 0.75rem;
|
|
97
84
|
height: 0.25rem;
|
|
98
85
|
border-radius: 1px;
|
|
@@ -104,13 +91,13 @@
|
|
|
104
91
|
}
|
|
105
92
|
|
|
106
93
|
.navds-checkbox__input:where(:checked, :indeterminate) + .navds-checkbox__label::before {
|
|
107
|
-
|
|
108
|
-
|
|
94
|
+
background-color: var(--ax-bg-accent-strong-pressed);
|
|
95
|
+
border-color: var(--ax-bg-accent-strong-pressed);
|
|
109
96
|
}
|
|
110
97
|
|
|
111
|
-
.navds-checkbox__input:where(:checked, :indeterminate):hover + .navds-checkbox__label::before {
|
|
112
|
-
|
|
113
|
-
background-color: var(--
|
|
98
|
+
.navds-checkbox__input:where(:checked, :indeterminate):not(:disabled):hover + .navds-checkbox__label::before {
|
|
99
|
+
border-color: var(--ax-bg-accent-strong-hover);
|
|
100
|
+
background-color: var(--ax-bg-accent-strong-hover);
|
|
114
101
|
}
|
|
115
102
|
|
|
116
103
|
.navds-checkbox__input:where(:not(:checked)) + .navds-checkbox__label > .navds-checkbox__icon {
|
|
@@ -118,10 +105,10 @@
|
|
|
118
105
|
}
|
|
119
106
|
|
|
120
107
|
.navds-checkbox__input:checked + .navds-checkbox__label > .navds-checkbox__icon {
|
|
121
|
-
color: var(--
|
|
108
|
+
color: var(--ax-bg-default);
|
|
122
109
|
position: absolute;
|
|
123
110
|
height: 1.5rem;
|
|
124
|
-
transform: translate(var(--
|
|
111
|
+
transform: translate(var(--ax-spacing-1-alt));
|
|
125
112
|
pointer-events: none;
|
|
126
113
|
|
|
127
114
|
/* Fixed edcase where when using in shadow-dom, svg will not center */
|
|
@@ -143,73 +130,44 @@
|
|
|
143
130
|
background-position: 0.25rem center;
|
|
144
131
|
}
|
|
145
132
|
|
|
146
|
-
.navds-checkbox__input:indeterminate:focus + .navds-checkbox__label::before,
|
|
147
|
-
.navds-checkbox__input:checked:focus + .navds-checkbox__label::before {
|
|
148
|
-
box-shadow:
|
|
149
|
-
0 0 0 1px var(--ac-radio-checkbox-action, var(--a-surface-action-selected)),
|
|
150
|
-
0 0 0 2px var(--ac-radio-checkbox-bg, var(--a-surface-default)),
|
|
151
|
-
0 0 0 4px var(--a-border-focus);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
133
|
.navds-radio__input:checked + .navds-radio__label::before {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
inset 0 0 0 2px var(--ac-radio-checkbox-bg, var(--a-surface-default));
|
|
158
|
-
background-color: var(--ac-radio-checkbox-action, var(--a-surface-action-selected));
|
|
134
|
+
background-color: var(--ax-bg-input);
|
|
135
|
+
border: 8px solid var(--ax-bg-accent-strong-pressed);
|
|
159
136
|
}
|
|
160
137
|
|
|
161
|
-
.navds-radio__input:checked
|
|
162
|
-
|
|
163
|
-
0 0 0 2px var(--ac-radio-checkbox-action, var(--a-surface-action-selected)),
|
|
164
|
-
inset 0 0 0 2px var(--ac-radio-checkbox-bg, var(--a-surface-default)),
|
|
165
|
-
0 0 0 4px var(--a-border-focus);
|
|
138
|
+
.navds-radio--small > .navds-radio__input:checked + .navds-radio__label::before {
|
|
139
|
+
border-width: 6px;
|
|
166
140
|
}
|
|
167
141
|
|
|
168
142
|
.navds-checkbox__input:hover:not(:disabled) + .navds-checkbox__label,
|
|
169
143
|
.navds-radio__input:hover:not(:disabled) + .navds-radio__label {
|
|
170
|
-
color: var(--
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.navds-checkbox__input:hover:not(:disabled, :checked, :indeterminate, :focus) + .navds-checkbox__label::before,
|
|
174
|
-
.navds-radio__input:hover:not(:disabled, :checked, :focus) + .navds-radio__label::before {
|
|
175
|
-
box-shadow: 0 0 0 2px var(--ac-radio-checkbox-action, var(--a-surface-action-hover));
|
|
144
|
+
color: var(--ax-text-accent-strong);
|
|
176
145
|
}
|
|
177
146
|
|
|
178
147
|
.navds-checkbox__input:hover:not(:disabled, :checked, :indeterminate) + .navds-checkbox__label::before,
|
|
179
148
|
.navds-radio__input:hover:not(:disabled, :checked) + .navds-radio__label::before {
|
|
180
|
-
|
|
149
|
+
border-color: var(--ax-border-accent-strong);
|
|
150
|
+
background-color: var(--ax-bg-accent-moderate-hoverA);
|
|
181
151
|
}
|
|
182
152
|
|
|
183
|
-
.navds-checkbox--error > .navds-checkbox__input:not(:
|
|
184
|
-
.navds-radio--error > .navds-radio__input:not(:
|
|
185
|
-
|
|
153
|
+
.navds-checkbox--error > .navds-checkbox__input:not(:disabled, :checked, :indeterminate) + .navds-checkbox__label::before,
|
|
154
|
+
.navds-radio--error > .navds-radio__input:not(:disabled, :checked) + .navds-radio__label::before {
|
|
155
|
+
border-color: var(--ax-border-danger);
|
|
186
156
|
}
|
|
187
157
|
|
|
188
|
-
.navds-checkbox--error
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
box-shadow:
|
|
193
|
-
0 0 0 2px var(--ac-radio-checkbox-error-border, var(--a-border-danger)),
|
|
194
|
-
0 0 0 4px var(--a-border-focus);
|
|
158
|
+
.navds-checkbox--error > .navds-checkbox__input:not(:disabled, :checked, :indeterminate):hover + .navds-checkbox__label::before,
|
|
159
|
+
.navds-radio--error > .navds-radio__input:not(:disabled, :checked):hover + .navds-radio__label::before {
|
|
160
|
+
background-color: var(--ax-bg-danger-moderate-hoverA);
|
|
161
|
+
border-color: var(--ax-border-danger-strong);
|
|
195
162
|
}
|
|
196
163
|
|
|
197
|
-
.navds-checkbox--error
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
.navds-radio--error > .navds-radio__input:hover:not(:disabled, :checked, :focus) + .navds-radio__label::before {
|
|
201
|
-
background-color: var(--ac-radio-checkbox-error-hover-bg, var(--a-surface-danger-subtle));
|
|
202
|
-
box-shadow: 0 0 0 2px var(--ac-radio-checkbox-error-border, var(--a-border-danger));
|
|
164
|
+
.navds-checkbox--error > .navds-checkbox__input:is(:checked, :indeterminate):not(:disabled) + .navds-checkbox__label::before {
|
|
165
|
+
background-color: var(--ax-bg-danger-strong-pressed);
|
|
166
|
+
border-color: var(--ax-bg-danger-strong-pressed);
|
|
203
167
|
}
|
|
204
168
|
|
|
205
|
-
.navds-
|
|
206
|
-
|
|
207
|
-
+ .navds-checkbox__label::before,
|
|
208
|
-
.navds-radio--error > .navds-radio__input:focus:hover:not(:disabled, :checked) + .navds-radio__label::before {
|
|
209
|
-
background-color: var(--ac-radio-checkbox-error-hover-bg, var(--a-surface-danger-subtle));
|
|
210
|
-
box-shadow:
|
|
211
|
-
0 0 0 2px var(--ac-radio-checkbox-error-border, var(--a-border-danger)),
|
|
212
|
-
0 0 0 4px var(--a-border-focus);
|
|
169
|
+
.navds-radio--error > .navds-radio__input:checked + .navds-radio__label::before {
|
|
170
|
+
border-color: var(--ax-bg-danger-strong-pressed);
|
|
213
171
|
}
|
|
214
172
|
|
|
215
173
|
.navds-checkbox--disabled,
|
|
@@ -236,85 +194,65 @@
|
|
|
236
194
|
|
|
237
195
|
.navds-checkbox--readonly > .navds-checkbox__input:hover + .navds-checkbox__label,
|
|
238
196
|
.navds-radio--readonly > .navds-radio__input:hover + .navds-radio__label {
|
|
239
|
-
color: var(--
|
|
197
|
+
color: var(--ax-text-default);
|
|
240
198
|
}
|
|
241
199
|
|
|
242
|
-
.navds-checkbox--readonly > .navds-checkbox__input:not(:disabled
|
|
243
|
-
.navds-checkbox--readonly > .navds-checkbox__input:hover
|
|
200
|
+
.navds-checkbox--readonly > .navds-checkbox__input:not(:disabled) + .navds-checkbox__label::before,
|
|
201
|
+
.navds-checkbox--readonly > .navds-checkbox__input:hover .navds-checkbox__label::before,
|
|
244
202
|
.navds-radio--readonly > .navds-radio__input:not(:disabled, :checked) + .navds-radio__label::before,
|
|
245
203
|
.navds-radio--readonly > .navds-radio__input:hover:not(:checked, :focus) + .navds-radio__label::before {
|
|
246
|
-
background-color: var(--
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.navds-checkbox--readonly > .navds-checkbox__input:focus + .navds-checkbox__label::before,
|
|
251
|
-
.navds-radio--readonly > .navds-radio__input:focus + .navds-radio__label::before {
|
|
252
|
-
--__ac-radio-checkbox-readonly-border: var(--a-border-subtle), var(--a-shadow-focus);
|
|
204
|
+
background-color: var(--__axc-radio-checkbox-readonly-bg);
|
|
205
|
+
border-color: var(--__axc-radio-checkbox-readonly-border);
|
|
253
206
|
}
|
|
254
207
|
|
|
255
|
-
.navds-checkbox--readonly > .navds-checkbox__input:checked + .navds-checkbox__label::before {
|
|
256
|
-
|
|
257
|
-
|
|
208
|
+
.navds-checkbox--readonly > .navds-checkbox__input:where(:checked, :indeterminate) + .navds-checkbox__label::before {
|
|
209
|
+
border-color: var(--__axc-radio-checkbox-readonly-border);
|
|
210
|
+
background-color: var(--__axc-radio-checkbox-readonly-bg);
|
|
258
211
|
}
|
|
259
212
|
|
|
260
213
|
.navds-checkbox--readonly > .navds-checkbox__input:checked + .navds-checkbox__label > .navds-checkbox__icon {
|
|
261
|
-
color: var(--
|
|
214
|
+
color: var(--ax-text-subtle);
|
|
262
215
|
}
|
|
263
216
|
|
|
264
217
|
.navds-radio--readonly > .navds-radio__input:checked + .navds-radio__label::before {
|
|
265
|
-
background-color: var(--
|
|
218
|
+
background-color: var(--ax-bg-neutral-strong);
|
|
219
|
+
border-width: 0;
|
|
266
220
|
box-shadow:
|
|
267
|
-
0 0 0 2px var(--
|
|
268
|
-
inset 0 0 0
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.navds-checkbox--readonly > .navds-checkbox__input:indeterminate + .navds-checkbox__label::before {
|
|
272
|
-
box-shadow: 0 0 0 2px var(--__ac-radio-checkbox-readonly-border);
|
|
273
|
-
background-color: var(--__ac-radio-checkbox-readonly-bg);
|
|
221
|
+
inset 0 0 0 2px var(--ax-border-subtle),
|
|
222
|
+
inset 0 0 0 8px var(--ax-bg-neutral-moderate);
|
|
274
223
|
}
|
|
275
224
|
|
|
276
225
|
.navds-checkbox--readonly > .navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
|
|
277
|
-
background-color: var(--
|
|
226
|
+
background-color: var(--ax-text-subtle);
|
|
278
227
|
}
|
|
279
228
|
|
|
280
229
|
@media (forced-colors: active) {
|
|
281
|
-
.navds-checkbox__input:focus + .navds-checkbox__label::before,
|
|
282
|
-
.navds-radio__input:focus + .navds-radio__label::before {
|
|
283
|
-
outline-color: highlight;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
230
|
.navds-checkbox,
|
|
287
231
|
.navds-radio {
|
|
288
|
-
--
|
|
289
|
-
--
|
|
290
|
-
--
|
|
232
|
+
--__axc-radio-checkbox-high-contrast-bg: field;
|
|
233
|
+
--__axc-radio-checkbox-high-contrast-text: fieldtext;
|
|
234
|
+
--__axc-radio-checkbox-high-contrast-highlight: highlight;
|
|
235
|
+
|
|
236
|
+
/* TODO: Consider adding this to global scope */
|
|
237
|
+
--ax-border-focus: Highlight;
|
|
291
238
|
}
|
|
292
239
|
|
|
293
240
|
.navds-checkbox__label::before,
|
|
294
241
|
.navds-radio__label::before {
|
|
295
|
-
border: 1px solid var(--
|
|
296
|
-
background-color: var(--
|
|
242
|
+
border: 1px solid var(--__axc-radio-checkbox-high-contrast-text);
|
|
243
|
+
background-color: var(--__axc-radio-checkbox-high-contrast-bg);
|
|
297
244
|
}
|
|
298
245
|
|
|
299
246
|
.navds-checkbox__input:checked + .navds-checkbox__label > .navds-checkbox__icon {
|
|
300
|
-
color: var(--
|
|
247
|
+
color: var(--__axc-radio-checkbox-high-contrast-text);
|
|
301
248
|
}
|
|
302
249
|
|
|
303
250
|
.navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
|
|
304
|
-
background-color: var(--
|
|
251
|
+
background-color: var(--__axc-radio-checkbox-high-contrast-text);
|
|
305
252
|
}
|
|
306
253
|
|
|
307
254
|
.navds-radio__input:checked + .navds-radio__label::before {
|
|
308
|
-
border:
|
|
309
|
-
outline: 3px solid var(--__ac-radio-checkbox-high-contrast-bg);
|
|
310
|
-
outline-offset: -4px;
|
|
311
|
-
background-color: var(--__ac-radio-checkbox-high-contrast-text);
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.navds-radio__input:checked:focus + .navds-radio__label::before {
|
|
315
|
-
border: 1px solid var(--__ac-radio-checkbox-high-contrast-bg);
|
|
316
|
-
outline: 2px solid highlight;
|
|
317
|
-
outline-offset: 2px;
|
|
255
|
+
border: 6px solid var(--__axc-radio-checkbox-high-contrast-text);
|
|
318
256
|
}
|
|
319
257
|
|
|
320
258
|
:not(.navds-checkbox--readonly) > .navds-checkbox__input:hover:not(:disabled) + .navds-checkbox__label,
|
|
@@ -322,32 +260,25 @@
|
|
|
322
260
|
color: highlight;
|
|
323
261
|
}
|
|
324
262
|
|
|
325
|
-
.navds-checkbox__input:focus + .navds-checkbox__label::before {
|
|
326
|
-
outline: 2px solid var(--__ac-radio-checkbox-high-contrast-highlight);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
263
|
.navds-checkbox--readonly > .navds-checkbox__input:checked + .navds-checkbox__label::before {
|
|
330
|
-
border: 1px solid var(--
|
|
331
|
-
background-color: var(--
|
|
264
|
+
border: 1px solid var(--__axc-radio-checkbox-high-contrast-text);
|
|
265
|
+
background-color: var(--__axc-radio-checkbox-high-contrast-bg);
|
|
332
266
|
}
|
|
333
267
|
|
|
334
268
|
.navds-checkbox--readonly > .navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
|
|
335
|
-
background-color: var(--
|
|
269
|
+
background-color: var(--__axc-radio-checkbox-high-contrast-text);
|
|
336
270
|
}
|
|
337
271
|
|
|
338
272
|
.navds-radio--readonly > .navds-radio__input:checked + .navds-radio__label::before {
|
|
339
|
-
border:
|
|
340
|
-
outline: 3px solid var(--__ac-radio-checkbox-high-contrast-bg);
|
|
341
|
-
outline-offset: -4px;
|
|
342
|
-
background-color: var(--__ac-radio-checkbox-high-contrast-text);
|
|
273
|
+
border-width: 6px;
|
|
343
274
|
}
|
|
344
275
|
|
|
345
276
|
.navds-checkbox--disabled,
|
|
346
277
|
.navds-radio--disabled {
|
|
347
278
|
opacity: 1;
|
|
348
279
|
|
|
349
|
-
--
|
|
350
|
-
--
|
|
280
|
+
--__axc-radio-checkbox-high-contrast-bg: field;
|
|
281
|
+
--__axc-radio-checkbox-high-contrast-text: graytext;
|
|
351
282
|
}
|
|
352
283
|
|
|
353
284
|
:is(.navds-checkbox--disabled, .navds-radio--disabled) :is(.navds-checkbox__label, .navds-radio__label) {
|
|
@@ -1,107 +1,64 @@
|
|
|
1
|
-
[data-theme="dark"] {
|
|
2
|
-
--__ac-textfield-text: var(--a-text-on-inverted);
|
|
3
|
-
--__ac-textfield-bg: var(--a-surface-inverted);
|
|
4
|
-
--__ac-textfield-border: var(--a-border-on-inverted);
|
|
5
|
-
--__ac-textfield-hover-border: var(--a-blue-200);
|
|
6
|
-
--__ac-textfield-placeholder: var(--a-gray-500);
|
|
7
|
-
--__ac-textfield-error-border: var(--a-red-300);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
[data-theme="light"] {
|
|
11
|
-
--__ac-textfield-text: initial;
|
|
12
|
-
--__ac-textfield-bg: initial;
|
|
13
|
-
--__ac-textfield-border: initial;
|
|
14
|
-
--__ac-textfield-hover-border: initial;
|
|
15
|
-
--__ac-textfield-placeholder: initial;
|
|
16
|
-
--__ac-textfield-error-border: initial;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
1
|
.navds-text-field__input {
|
|
20
2
|
appearance: none;
|
|
21
|
-
padding: var(--
|
|
22
|
-
background
|
|
23
|
-
border-radius: var(--
|
|
24
|
-
border: 1px solid var(--
|
|
3
|
+
padding: var(--ax-spacing-2);
|
|
4
|
+
background: var(--ax-bg-input);
|
|
5
|
+
border-radius: var(--ax-border-radius-medium);
|
|
6
|
+
border: 1px solid var(--ax-border-default);
|
|
25
7
|
min-height: 3rem;
|
|
26
8
|
width: 100%;
|
|
27
|
-
color: var(--
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.navds-text-field__input[size] {
|
|
31
|
-
width: auto;
|
|
32
|
-
}
|
|
9
|
+
color: var(--ax-text-default);
|
|
33
10
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.navds-form-field--small .navds-text-field__input {
|
|
39
|
-
padding: 0 var(--a-spacing-2);
|
|
40
|
-
min-height: 2rem;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.navds-text-field__input:hover {
|
|
44
|
-
border-color: var(--ac-textfield-hover-border, var(--__ac-textfield-hover-border, var(--a-border-action-hover)));
|
|
45
|
-
}
|
|
11
|
+
&:hover {
|
|
12
|
+
border-color: var(--ax-border-accent-strong);
|
|
13
|
+
}
|
|
46
14
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
15
|
+
&:focus-visible {
|
|
16
|
+
border-color: var(--ax-border-accent-strong);
|
|
17
|
+
outline: 2px solid var(--ax-border-focus);
|
|
18
|
+
outline-offset: 2px;
|
|
19
|
+
}
|
|
53
20
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
21
|
+
&:disabled {
|
|
22
|
+
background-color: var(--ax-bg-input);
|
|
23
|
+
border-color: var(--ax-border-default);
|
|
24
|
+
cursor: not-allowed;
|
|
58
25
|
}
|
|
59
|
-
}
|
|
60
26
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
.navds-text-field--error > .navds-text-field__input:not(:hover, :disabled) {
|
|
65
|
-
border-color: var(--ac-textfield-error-border, var(--__ac-textfield-error-border, var(--a-border-danger)));
|
|
66
|
-
box-shadow: 0 0 0 1px var(--ac-textfield-error-border, var(--__ac-textfield-error-border, var(--a-border-danger)));
|
|
67
|
-
}
|
|
27
|
+
&::placeholder {
|
|
28
|
+
color: var(--ax-text-subtle);
|
|
29
|
+
}
|
|
68
30
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
var(--a-shadow-focus);
|
|
31
|
+
&[size] {
|
|
32
|
+
width: auto;
|
|
33
|
+
}
|
|
73
34
|
}
|
|
74
35
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
0 0 0 1px var(--a-border-danger),
|
|
79
|
-
var(--a-shadow-focus);
|
|
80
|
-
}
|
|
36
|
+
.navds-form-field--small .navds-text-field__input {
|
|
37
|
+
padding: 0 var(--ax-spacing-2);
|
|
38
|
+
min-height: 2rem;
|
|
81
39
|
}
|
|
82
40
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
border-color: var(--ac-textfield-border, var(--__ac-textfield-border, var(--a-border-default)));
|
|
87
|
-
box-shadow: none;
|
|
88
|
-
cursor: not-allowed;
|
|
41
|
+
.navds-text-field--error > .navds-text-field__input:not(:hover, :disabled) {
|
|
42
|
+
border-color: var(--ax-border-danger);
|
|
43
|
+
box-shadow: 0 0 0 1px var(--ax-border-danger);
|
|
89
44
|
}
|
|
90
45
|
|
|
91
46
|
.navds-text-field--readonly .navds-text-field__input {
|
|
92
|
-
background-color: var(--
|
|
93
|
-
border-color: var(--
|
|
47
|
+
background-color: var(--ax-bg-neutral-moderate);
|
|
48
|
+
border-color: var(--ax-border-neutral-subtleA);
|
|
94
49
|
cursor: default;
|
|
95
50
|
}
|
|
96
51
|
|
|
97
52
|
/**
|
|
98
53
|
* Removes default search icon
|
|
99
54
|
*/
|
|
100
|
-
.navds-text-field__input[type="search"]
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
55
|
+
.navds-text-field__input[type="search"] {
|
|
56
|
+
&::-webkit-search-decoration,
|
|
57
|
+
&::-webkit-search-cancel-button,
|
|
58
|
+
&::-webkit-search-results-button,
|
|
59
|
+
&::-webkit-search-results-decoration {
|
|
60
|
+
-webkit-appearance: none;
|
|
61
|
+
}
|
|
105
62
|
}
|
|
106
63
|
|
|
107
64
|
@media (forced-colors: active) {
|
|
@@ -3,44 +3,30 @@
|
|
|
3
3
|
border: 0;
|
|
4
4
|
cursor: pointer;
|
|
5
5
|
background-color: transparent;
|
|
6
|
-
border-radius: var(--
|
|
6
|
+
border-radius: var(--ax-border-radius-full);
|
|
7
7
|
display: flex;
|
|
8
8
|
justify-content: center;
|
|
9
9
|
align-items: center;
|
|
10
|
-
color: var(--
|
|
10
|
+
color: var(--ax-bg-accent-strong);
|
|
11
11
|
font-size: 1.25rem;
|
|
12
|
-
padding: calc(var(--
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.navds-help-text__button:focus-visible {
|
|
16
|
-
outline: 2px solid transparent;
|
|
17
|
-
box-shadow:
|
|
18
|
-
0 0 0 1px var(--a-border-focus),
|
|
19
|
-
inset 0 0 0 1px var(--a-border-focus);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@supports not selector(:focus-visible) {
|
|
23
|
-
.navds-help-text__button:focus {
|
|
24
|
-
outline: 2px solid transparent;
|
|
25
|
-
box-shadow:
|
|
26
|
-
0 0 0 1px var(--a-border-focus),
|
|
27
|
-
inset 0 0 0 1px var(--a-border-focus);
|
|
28
|
-
}
|
|
12
|
+
padding: calc(var(--ax-spacing-1) / 2);
|
|
29
13
|
}
|
|
30
14
|
|
|
31
15
|
.navds-help-text__icon {
|
|
32
|
-
border-radius: var(--
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.navds-help-text__popover > .navds-popover__arrow {
|
|
36
|
-
background-color: var(--ac-help-text-popover-bg, var(--a-surface-info-subtle));
|
|
16
|
+
border-radius: var(--ax-border-radius-full);
|
|
37
17
|
}
|
|
38
18
|
|
|
39
19
|
.navds-help-text__popover.navds-popover {
|
|
40
|
-
background-color: var(--
|
|
41
|
-
max-width: min(65ch, calc(100vw -
|
|
42
|
-
|
|
43
|
-
|
|
20
|
+
background-color: var(--ax-bg-info-moderate);
|
|
21
|
+
max-width: min(65ch, calc(100vw - var(--ax-spacing-6)));
|
|
22
|
+
border-radius: var(--ax-border-radius-large);
|
|
23
|
+
border: 1px solid var(--ax-border-info);
|
|
24
|
+
box-shadow:
|
|
25
|
+
0 0 1px 0 rgba(7 9 13/ 0.15),
|
|
26
|
+
0 1px 3px 0 rgba(7 9 13/ 0.1),
|
|
27
|
+
0 5px 12px 0 rgba(7 9 13/ 0.13),
|
|
28
|
+
0 0.5px 0 0 rgba(255 255 255/ 0) inset,
|
|
29
|
+
0 0 1px 0 rgba(255 255 255/ 0) inset;
|
|
44
30
|
}
|
|
45
31
|
|
|
46
32
|
.navds-help-text__icon--filled {
|
|
@@ -53,21 +39,11 @@
|
|
|
53
39
|
|
|
54
40
|
.navds-help-text__button:where(:hover, :focus-visible, [aria-expanded="true"]) > .navds-help-text__icon--filled {
|
|
55
41
|
display: inherit;
|
|
56
|
-
color: var(--
|
|
42
|
+
color: var(--ax-bg-accent-strong-hover);
|
|
57
43
|
}
|
|
58
44
|
|
|
59
45
|
.navds-help-text__button[aria-expanded="true"] > .navds-help-text__icon--filled {
|
|
60
|
-
color: var(--
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@supports not selector(:focus-visible) {
|
|
64
|
-
.navds-help-text__button:where(:focus) > .navds-help-text__icon {
|
|
65
|
-
display: none;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.navds-help-text__button:where(:focus) > .navds-help-text__icon--filled {
|
|
69
|
-
display: inherit;
|
|
70
|
-
}
|
|
46
|
+
color: var(--ax-bg-accent-strong-pressed);
|
|
71
47
|
}
|
|
72
48
|
|
|
73
49
|
@media (forced-colors: active) {
|
package/darkside/index.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
|
|
3
|
-
@layer aksel.reset, aksel.typography, aksel.theme, aksel.
|
|
3
|
+
@layer aksel.reset, aksel.typography, aksel.theme, aksel.components, aksel.forms, aksel.layout, aksel.utilities;
|
|
4
4
|
|
|
5
5
|
/* CSS foundations */
|
|
6
6
|
@import "./baseline/reset.darkside.css" layer(aksel.reset);
|