@navikt/ds-css 7.5.2 → 7.6.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/CHANGELOG.md +20 -0
- package/darkside/action-menu.darkside.css +1 -6
- package/darkside/button.darkside.css +128 -141
- package/darkside/chips.darkside.css +6 -0
- package/darkside/expansioncard.darkside.css +2 -9
- package/darkside/form/combobox.darkside.css +255 -217
- package/darkside/form/file-upload.darkside.css +9 -9
- package/darkside/form/form-summary.darkside.css +1 -0
- package/darkside/form/index.css +14 -16
- package/darkside/form/select.darkside.css +74 -68
- package/darkside/form/switch.darkside.css +125 -132
- package/darkside/form/text-field.darkside.css +1 -1
- package/darkside/form/textarea.darkside.css +36 -78
- package/darkside/help-text.darkside.css +0 -6
- package/darkside/index.css +24 -12
- package/darkside/internalheader.darkside.css +45 -49
- package/darkside/modal.darkside.css +1 -4
- package/darkside/popover.darkside.css +1 -4
- package/darkside/primitives/index.css +30 -34
- package/darkside/read-more.darkside.css +68 -57
- package/darkside/skeleton.darkside.css +21 -24
- package/darkside/stepper.darkside.css +181 -221
- package/darkside/tabs.darkside.css +67 -74
- package/dist/component/form.css +22 -18
- package/dist/component/form.min.css +2 -2
- package/dist/component/index.css +40 -22
- package/dist/component/index.min.css +3 -3
- package/dist/component/modal.css +8 -0
- package/dist/component/modal.min.css +1 -1
- package/dist/component/readmore.css +4 -0
- package/dist/component/readmore.min.css +1 -1
- package/dist/components.css +40 -22
- package/dist/components.min.css +3 -3
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +40 -22
- package/dist/index.min.css +3 -3
- package/form/combobox.css +9 -2
- package/form/file-upload.css +7 -9
- package/form/select.css +2 -9
- package/form/switch.css +8 -0
- package/modal.css +8 -0
- package/package.json +2 -2
- package/read-more.css +4 -0
|
@@ -1,121 +1,157 @@
|
|
|
1
1
|
.navds-combobox__wrapper {
|
|
2
|
-
--
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--
|
|
2
|
+
--__axc-combobox-icon-size: 1.5rem;
|
|
3
|
+
--__axc-combobox-wrapper-inner-padding: var(--ax-spacing-2);
|
|
4
|
+
--__axc-combobox-list-item-padding-block: var(--ax-spacing-3);
|
|
5
|
+
--__axc-combobox-list-item-padding-inline: var(--ax-spacing-3);
|
|
6
|
+
--__axc-combobox-border-width: 1px;
|
|
7
|
+
--__axc-combobox-input-height: 2rem;
|
|
8
8
|
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
width: 100%;
|
|
12
12
|
position: relative;
|
|
13
|
+
border-radius: var(--ax-border-radius-medium);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.navds-form-field:not(:is(.navds-combobox--disabled, .navds-combobox--readonly)) {
|
|
17
|
+
& .navds-combobox__wrapper:hover {
|
|
18
|
+
border-color: var(--ax-border-focus);
|
|
19
|
+
}
|
|
13
20
|
}
|
|
14
21
|
|
|
15
22
|
.navds-form-field--small .navds-combobox__wrapper {
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
23
|
+
--__axc-combobox-icon-size: 1.25rem;
|
|
24
|
+
--__axc-combobox-wrapper-inner-padding: var(--ax-spacing-1);
|
|
25
|
+
--__axc-combobox-list-item-padding-block: var(--ax-spacing-1-alt);
|
|
26
|
+
--__axc-combobox-list-item-padding-inline: var(--ax-spacing-2);
|
|
27
|
+
--__axc-combobox-input-height: 1.5rem;
|
|
21
28
|
}
|
|
22
29
|
|
|
23
30
|
.navds-combobox--disabled {
|
|
24
31
|
opacity: 0.3;
|
|
25
|
-
}
|
|
26
32
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
& .navds-combobox__wrapper {
|
|
34
|
+
& *:hover {
|
|
35
|
+
cursor: not-allowed;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
30
38
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
39
|
+
& .navds-combobox__selected-options {
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
}
|
|
34
42
|
|
|
35
|
-
.navds-combobox--
|
|
36
|
-
|
|
43
|
+
& .navds-combobox--readonly {
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
}
|
|
37
46
|
}
|
|
38
47
|
|
|
39
48
|
.navds-combobox--readonly {
|
|
40
49
|
pointer-events: none;
|
|
41
|
-
}
|
|
42
50
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
51
|
+
& .navds-combobox__selected-options {
|
|
52
|
+
& .navds-chips__chip {
|
|
53
|
+
background-color: var(--ax-bg-neutral-moderateA);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
& .navds-combobox__button-toggle-list {
|
|
58
|
+
color: var(--ax-bg-neutral-moderate);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
& .navds-combobox__wrapper {
|
|
62
|
+
border-color: var(--ax-border-subtle);
|
|
63
|
+
overflow: clip;
|
|
64
|
+
}
|
|
46
65
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
66
|
+
& .navds-text-field__input,
|
|
67
|
+
& .navds-combobox__input {
|
|
68
|
+
background-color: var(--ax-bg-neutral-moderate);
|
|
69
|
+
}
|
|
51
70
|
}
|
|
52
71
|
|
|
53
72
|
.navds-combobox__button-clear svg,
|
|
54
73
|
.navds-combobox__button-toggle-list svg,
|
|
55
74
|
.navds-combobox__list svg {
|
|
56
|
-
width: var(--
|
|
57
|
-
height: var(--
|
|
75
|
+
width: var(--__axc-combobox-icon-size);
|
|
76
|
+
height: var(--__axc-combobox-icon-size);
|
|
58
77
|
}
|
|
59
78
|
|
|
60
|
-
.navds-combobox__wrapper-inner
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
flex-direction: row;
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: space-between;
|
|
66
|
-
width: 100%;
|
|
67
|
-
padding-block: calc(var(--__ac-combobox-wrapper-inner-padding) - var(--__ac-combobox-border-width));
|
|
68
|
-
padding-inline: var(--__ac-combobox-wrapper-inner-padding);
|
|
69
|
-
}
|
|
79
|
+
.navds-combobox__wrapper-inner {
|
|
80
|
+
border: 1px solid var(--ax-border-default);
|
|
81
|
+
border-radius: var(--ax-border-radius-medium);
|
|
70
82
|
|
|
71
|
-
.navds-
|
|
72
|
-
|
|
73
|
-
|
|
83
|
+
&:has(.navds-combobox__input:focus-visible) {
|
|
84
|
+
outline: 2px solid var(--ax-border-focus);
|
|
85
|
+
outline-offset: 2px;
|
|
86
|
+
border-color: var(--ax-border-focus);
|
|
87
|
+
}
|
|
74
88
|
|
|
75
|
-
.navds-combobox__wrapper-inner
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
89
|
+
&:has(.navds-combobox__input:focus-visible).navds-combobox__wrapper-inner--virtually-unfocused {
|
|
90
|
+
outline: none;
|
|
91
|
+
border-color: var(--ax-border-default);
|
|
92
|
+
}
|
|
79
93
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
94
|
+
&.navds-text-field__input {
|
|
95
|
+
position: relative;
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-direction: row;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
width: 100%;
|
|
101
|
+
padding-block: calc(var(--__axc-combobox-wrapper-inner-padding) - var(--__axc-combobox-border-width));
|
|
102
|
+
padding-inline: var(--__axc-combobox-wrapper-inner-padding);
|
|
103
|
+
}
|
|
83
104
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
105
|
+
& > :first-child {
|
|
106
|
+
flex: 2;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
& > :last-child {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-flow: row nowrap;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:hover {
|
|
115
|
+
cursor: text;
|
|
116
|
+
}
|
|
87
117
|
}
|
|
88
118
|
|
|
89
|
-
.navds-combobox--error
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
119
|
+
.navds-combobox--error {
|
|
120
|
+
& .navds-combobox__wrapper-inner {
|
|
121
|
+
border-color: var(--ax-border-danger);
|
|
122
|
+
box-shadow: 0 0 0 1px var(--ax-border-danger);
|
|
123
|
+
|
|
124
|
+
&:has(.navds-combobox__input:focus-visible) {
|
|
125
|
+
border-color: var(--ax-border-danger);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
96
128
|
}
|
|
97
129
|
|
|
98
130
|
.navds-combobox__selected-options {
|
|
99
|
-
gap:
|
|
131
|
+
gap: 0;
|
|
100
132
|
align-items: center;
|
|
101
|
-
}
|
|
102
133
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
134
|
+
& > li {
|
|
135
|
+
margin: auto 0;
|
|
136
|
+
border-radius: var(--ax-border-radius-full);
|
|
137
|
+
}
|
|
107
138
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
139
|
+
& > li:last-of-type {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex: 1;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&[data-type="multiple"] {
|
|
145
|
+
gap: var(--__axc-combobox-wrapper-inner-padding);
|
|
146
|
+
}
|
|
111
147
|
}
|
|
112
148
|
|
|
113
149
|
.navds-combobox__selected-options--no-bg {
|
|
114
150
|
font-family: inherit;
|
|
115
|
-
font-size: var(--
|
|
116
|
-
font-weight: var(--
|
|
151
|
+
font-size: var(--ax-font-size-large);
|
|
152
|
+
font-weight: var(--ax-font-weight-regular);
|
|
117
153
|
letter-spacing: 0;
|
|
118
|
-
line-height: var(--
|
|
154
|
+
line-height: var(--ax-font-line-height-large);
|
|
119
155
|
margin: 0;
|
|
120
156
|
padding-left: 0.25rem;
|
|
121
157
|
}
|
|
@@ -129,68 +165,47 @@
|
|
|
129
165
|
border: none;
|
|
130
166
|
padding: 0;
|
|
131
167
|
margin: 0;
|
|
132
|
-
margin-left: var(--a-spacing-1);
|
|
133
168
|
min-width: 10ch;
|
|
134
169
|
width: 100%;
|
|
135
|
-
height: var(--
|
|
136
|
-
|
|
170
|
+
height: var(--__axc-combobox-input-height);
|
|
171
|
+
background: var(--ax-bg-input);
|
|
137
172
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.navds-combobox__input:focus-visible {
|
|
143
|
-
outline: none;
|
|
144
|
-
border: none;
|
|
145
|
-
box-shadow: none;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.navds-combobox__wrapper-inner:has(.navds-combobox__input:focus-visible) {
|
|
149
|
-
box-shadow: var(--a-shadow-focus);
|
|
150
|
-
outline: 3px solid transparent;
|
|
151
|
-
outline-offset: 2px;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.navds-combobox__wrapper-inner:has(.navds-combobox__input:focus-visible).navds-combobox__wrapper-inner--virtually-unfocused {
|
|
155
|
-
box-shadow: none;
|
|
156
|
-
outline: none;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
@supports not selector(:focus-visible) {
|
|
160
|
-
.navds-combobox__input:focus {
|
|
161
|
-
outline: none;
|
|
173
|
+
&:focus-visible {
|
|
174
|
+
outline: 0;
|
|
162
175
|
border: none;
|
|
163
|
-
box-shadow: none;
|
|
164
176
|
}
|
|
165
177
|
|
|
166
|
-
.navds-
|
|
167
|
-
|
|
168
|
-
outline: 3px solid transparent;
|
|
169
|
-
outline-offset: 2px;
|
|
178
|
+
.navds-combobox__selected-options > li:only-child > & {
|
|
179
|
+
margin-left: var(--ax-spacing-1);
|
|
170
180
|
}
|
|
181
|
+
}
|
|
171
182
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
outline: none;
|
|
175
|
-
}
|
|
183
|
+
.navds-combobox__input--hide-caret {
|
|
184
|
+
caret-color: transparent;
|
|
176
185
|
}
|
|
177
186
|
|
|
178
|
-
@supports not selector(:
|
|
179
|
-
.navds-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
187
|
+
@supports not selector(:focus-visible) {
|
|
188
|
+
.navds-combobox__input {
|
|
189
|
+
&:focus {
|
|
190
|
+
outline: none;
|
|
191
|
+
border: none;
|
|
192
|
+
}
|
|
183
193
|
}
|
|
184
194
|
|
|
185
|
-
.navds-
|
|
186
|
-
|
|
187
|
-
|
|
195
|
+
.navds-combobox__wrapper-inner {
|
|
196
|
+
&:has(.navds-combobox__input:focus) {
|
|
197
|
+
outline: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&:has(.navds-combobox__input:focus).navds-combobox__wrapper-inner--virtually-unfocused {
|
|
201
|
+
outline: none;
|
|
202
|
+
}
|
|
188
203
|
}
|
|
189
204
|
}
|
|
190
205
|
|
|
191
206
|
.navds-combobox__button-clear {
|
|
192
|
-
border-radius: var(--
|
|
193
|
-
color: var(--
|
|
207
|
+
border-radius: var(--ax-border-radius-medium);
|
|
208
|
+
color: var(--ax-text-subtle);
|
|
194
209
|
display: flex;
|
|
195
210
|
justify-content: center;
|
|
196
211
|
align-items: center;
|
|
@@ -206,8 +221,8 @@
|
|
|
206
221
|
}
|
|
207
222
|
|
|
208
223
|
.navds-combobox__button-toggle-list {
|
|
209
|
-
border-radius: var(--
|
|
210
|
-
color: var(--
|
|
224
|
+
border-radius: var(--ax-border-radius-medium);
|
|
225
|
+
color: var(--ax-text-default);
|
|
211
226
|
display: flex;
|
|
212
227
|
justify-content: center;
|
|
213
228
|
align-items: center;
|
|
@@ -218,31 +233,14 @@
|
|
|
218
233
|
padding: 0;
|
|
219
234
|
}
|
|
220
235
|
|
|
221
|
-
.navds-combobox__button-clear
|
|
222
|
-
.navds-combobox__button-toggle-list
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
.navds-combobox__button-clear:hover,
|
|
227
|
-
.navds-combobox__button-toggle-list:hover {
|
|
228
|
-
color: var(--ac-combobox-clear-icon-hover, var(--a-text-action-selected));
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.navds-combobox__button-toggle-list:focus-visible {
|
|
232
|
-
box-shadow:
|
|
233
|
-
0 0 0 1px var(--a-surface-default) inset,
|
|
234
|
-
var(--a-shadow-focus);
|
|
235
|
-
box-shadow: var(--a-shadow-focus);
|
|
236
|
-
outline: none;
|
|
237
|
-
}
|
|
236
|
+
.navds-combobox__button-clear,
|
|
237
|
+
.navds-combobox__button-toggle-list {
|
|
238
|
+
&:hover {
|
|
239
|
+
color: var(--ax-text-accent);
|
|
238
240
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
0 0 0 1px var(--a-surface-default) inset,
|
|
243
|
-
var(--a-shadow-focus);
|
|
244
|
-
box-shadow: var(--a-shadow-focus);
|
|
245
|
-
outline: none;
|
|
241
|
+
&:active {
|
|
242
|
+
color: var(--ax-text-accent-strong);
|
|
243
|
+
}
|
|
246
244
|
}
|
|
247
245
|
}
|
|
248
246
|
|
|
@@ -250,34 +248,30 @@
|
|
|
250
248
|
|
|
251
249
|
.navds-combobox__list {
|
|
252
250
|
max-height: 290px;
|
|
253
|
-
overflow
|
|
251
|
+
overflow: clip;
|
|
254
252
|
position: absolute;
|
|
255
253
|
left: 0;
|
|
256
254
|
right: 0;
|
|
257
|
-
z-index:
|
|
258
|
-
top: calc(100% + var(--
|
|
259
|
-
border: 1px solid var(--
|
|
255
|
+
z-index: 10;
|
|
256
|
+
top: calc(100% + var(--ax-spacing-2));
|
|
257
|
+
border: 1px solid var(--ax-border-subtleA);
|
|
260
258
|
display: flex;
|
|
261
259
|
flex-direction: column;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
color: var(--ac-combobox-list-text, var(--a-text-default));
|
|
260
|
+
border-radius: var(--ax-border-radius-large);
|
|
261
|
+
background-color: var(--ax-bg-raised);
|
|
262
|
+
color: var(--ax-text-default);
|
|
266
263
|
overscroll-behavior: contain;
|
|
264
|
+
box-shadow: var(--ax-shadow-dialog);
|
|
265
|
+
|
|
266
|
+
& .navds-combobox__list-options {
|
|
267
|
+
overflow-y: auto;
|
|
268
|
+
}
|
|
267
269
|
}
|
|
268
270
|
|
|
269
271
|
.navds-combobox__list--closed {
|
|
270
272
|
display: none;
|
|
271
273
|
}
|
|
272
274
|
|
|
273
|
-
.navds-combobox__list_non-selectables {
|
|
274
|
-
position: sticky;
|
|
275
|
-
top: 0;
|
|
276
|
-
left: 0;
|
|
277
|
-
right: 0;
|
|
278
|
-
z-index: 1;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
275
|
.navds-combobox__list-item,
|
|
282
276
|
.navds-combobox__list-item--loading,
|
|
283
277
|
.navds-combobox__list-item--no-options,
|
|
@@ -285,28 +279,32 @@
|
|
|
285
279
|
.navds-combobox__list-item--max-selected {
|
|
286
280
|
align-items: center;
|
|
287
281
|
display: flex;
|
|
288
|
-
flex-direction: row;
|
|
289
282
|
justify-content: space-between;
|
|
290
|
-
padding-block: var(--
|
|
291
|
-
padding-inline: var(--
|
|
292
|
-
|
|
293
|
-
|
|
283
|
+
padding-block: var(--__axc-combobox-list-item-padding-block);
|
|
284
|
+
padding-inline: var(--__axc-combobox-list-item-padding-inline);
|
|
285
|
+
border-radius: var(--ax-border-radius-medium);
|
|
286
|
+
border: 0;
|
|
287
|
+
margin-inline: var(--ax-spacing-2);
|
|
288
|
+
margin-block: var(--ax-spacing-1);
|
|
289
|
+
scroll-margin-block: 8px; /* outline + outline-offset + margin-block */
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.navds-combobox__list-item--no-options {
|
|
293
|
+
margin: 0;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
.navds-combobox__list-item--loading {
|
|
297
297
|
justify-content: center;
|
|
298
|
-
|
|
298
|
+
margin: 0;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
.navds-combobox__list-item--max-selected {
|
|
302
|
-
background: var(--
|
|
303
|
-
|
|
304
|
-
border-
|
|
305
|
-
border: 1px solid var(--
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
.navds-combobox__list_non-selectables:hover {
|
|
309
|
-
cursor: default;
|
|
302
|
+
background-color: var(--ax-bg-neutral-moderateA);
|
|
303
|
+
margin: 0;
|
|
304
|
+
border-radius: 0;
|
|
305
|
+
border-bottom: 1px solid var(--ax-border-neutral-subtle);
|
|
306
|
+
padding-block: var(--ax-spacing-2);
|
|
307
|
+
line-height: var(--ax-font-line-height-large);
|
|
310
308
|
}
|
|
311
309
|
|
|
312
310
|
/* ul-list and selectable li-items */
|
|
@@ -314,70 +312,82 @@
|
|
|
314
312
|
.navds-combobox__list-options {
|
|
315
313
|
list-style: none;
|
|
316
314
|
margin: 0;
|
|
317
|
-
padding: 0;
|
|
318
|
-
width: 100%;
|
|
319
315
|
display: inherit;
|
|
320
316
|
flex-direction: inherit;
|
|
321
317
|
gap: inherit;
|
|
322
318
|
background-color: inherit;
|
|
323
|
-
align-items:
|
|
319
|
+
align-items: stretch;
|
|
320
|
+
padding: 0;
|
|
321
|
+
padding-block: var(--ax-spacing-1);
|
|
324
322
|
}
|
|
325
323
|
|
|
326
|
-
.navds-combobox__list-item--focus
|
|
327
|
-
.navds-combobox__list--with-hover
|
|
328
|
-
.navds-combobox__list-item:where(:not([data-no-focus="true"], .navds-combobox__list-item--new-option)):hover {
|
|
329
|
-
background-color: var(--ac-combobox-list-item-hover-bg, var(--a-surface-hover));
|
|
324
|
+
.navds-combobox__list-item--focus {
|
|
330
325
|
cursor: pointer;
|
|
331
|
-
|
|
332
|
-
|
|
326
|
+
outline: 2px solid var(--ax-border-focus);
|
|
327
|
+
outline-offset: 2px;
|
|
333
328
|
}
|
|
334
329
|
|
|
335
|
-
.navds-combobox__list-item
|
|
336
|
-
|
|
337
|
-
opacity: 0.4;
|
|
338
|
-
}
|
|
330
|
+
.navds-combobox__list-item {
|
|
331
|
+
user-select: none;
|
|
339
332
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
333
|
+
&[data-no-focus="true"] {
|
|
334
|
+
cursor: not-allowed;
|
|
335
|
+
opacity: 0.4;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
& mark {
|
|
339
|
+
background-color: transparent;
|
|
340
|
+
font-weight: var(--ax-font-weight-bold);
|
|
341
|
+
}
|
|
343
342
|
|
|
344
|
-
|
|
345
|
-
|
|
343
|
+
& svg {
|
|
344
|
+
color: var(--ax-text-accent);
|
|
345
|
+
}
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
.navds-combobox__list-item--selected
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
348
|
+
.navds-combobox__list-item--selected {
|
|
349
|
+
background-color: var(--ax-bg-accent-moderate-pressedA);
|
|
350
|
+
|
|
351
|
+
& p {
|
|
352
|
+
font-weight: var(--ax-font-weight-bold);
|
|
353
|
+
}
|
|
352
354
|
}
|
|
353
355
|
|
|
354
356
|
.navds-combobox__list-item--new-option {
|
|
355
|
-
border-bottom: 1px solid var(--
|
|
356
|
-
|
|
357
|
+
border-bottom: 1px solid var(--ax-border-accent-subtleA);
|
|
358
|
+
border-radius: 0;
|
|
359
|
+
background: var(--ax-bg-accent-moderateA);
|
|
357
360
|
cursor: pointer;
|
|
358
361
|
justify-content: flex-start;
|
|
359
362
|
gap: 0.25rem;
|
|
360
|
-
|
|
363
|
+
margin: 0;
|
|
364
|
+
margin-block: calc(var(--ax-spacing-1) * -1);
|
|
365
|
+
padding-block: var(--ax-spacing-4);
|
|
366
|
+
|
|
367
|
+
& svg {
|
|
368
|
+
color: var(--ax-text-default);
|
|
369
|
+
}
|
|
361
370
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
371
|
+
&:only-child {
|
|
372
|
+
border: none;
|
|
373
|
+
}
|
|
365
374
|
}
|
|
366
375
|
|
|
367
376
|
.navds-combobox__list-item--new-option--focus {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
377
|
+
border-radius: calc(var(--ax-border-radius-large) - 1px) calc(var(--ax-border-radius-large) - 1px) 0 0;
|
|
378
|
+
|
|
379
|
+
/* TODO: new option should get a wrapper div later to
|
|
380
|
+
* style it properly with a nice rounded border radius
|
|
381
|
+
* */
|
|
382
|
+
outline: 2px solid var(--ax-border-focus);
|
|
383
|
+
outline-offset: -2px;
|
|
373
384
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
385
|
+
&:only-child {
|
|
386
|
+
border-radius: calc(var(--ax-border-radius-large) - 1px);
|
|
387
|
+
}
|
|
377
388
|
}
|
|
378
389
|
|
|
379
390
|
/* Mobile */
|
|
380
|
-
|
|
381
391
|
@media (max-width: 479px) {
|
|
382
392
|
.navds-combobox__button-toggle-list {
|
|
383
393
|
right: 0.5rem;
|
|
@@ -390,7 +400,7 @@
|
|
|
390
400
|
}
|
|
391
401
|
|
|
392
402
|
.navds-combobox__selected-options {
|
|
393
|
-
gap: var(--
|
|
403
|
+
gap: var(--ax-spacing-1);
|
|
394
404
|
}
|
|
395
405
|
}
|
|
396
406
|
|
|
@@ -416,12 +426,16 @@
|
|
|
416
426
|
}
|
|
417
427
|
|
|
418
428
|
.navds-combobox__list-item--selected {
|
|
419
|
-
background-color:
|
|
429
|
+
background-color: highlight;
|
|
420
430
|
color: selecteditemtext;
|
|
421
|
-
}
|
|
422
431
|
|
|
423
|
-
|
|
424
|
-
|
|
432
|
+
& * {
|
|
433
|
+
color: black;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
& > * {
|
|
437
|
+
forced-color-adjust: none;
|
|
438
|
+
}
|
|
425
439
|
}
|
|
426
440
|
|
|
427
441
|
.navds-combobox__list-item--selected.navds-combobox__list-item--focus,
|
|
@@ -436,6 +450,30 @@
|
|
|
436
450
|
|
|
437
451
|
.navds-combobox__list-item--new-option--focus {
|
|
438
452
|
outline: 2px solid highlight;
|
|
439
|
-
outline-offset:
|
|
453
|
+
outline-offset: 0;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.navds-combobox--disabled {
|
|
457
|
+
opacity: 1;
|
|
458
|
+
|
|
459
|
+
& * {
|
|
460
|
+
border-color: graytext;
|
|
461
|
+
color: graytext;
|
|
462
|
+
opacity: 1;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.navds-combobox__list-item--new-option {
|
|
467
|
+
svg {
|
|
468
|
+
color: canvastext;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
&:hover {
|
|
472
|
+
color: highlight;
|
|
473
|
+
|
|
474
|
+
svg {
|
|
475
|
+
color: highlight;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
440
478
|
}
|
|
441
479
|
}
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/* Makes it easier for user to use FileItem in semantic lists */
|
|
2
|
-
.navds-file-upload {
|
|
3
|
-
& :is(ul, li) {
|
|
4
|
-
list-style: none;
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
1
|
/* --------------------------- FileUpload Dropzone -------------------------- */
|
|
11
2
|
.navds-dropzone__area {
|
|
12
3
|
--__axc-dropzone-background: var(--ax-bg-input);
|
|
@@ -154,6 +145,14 @@
|
|
|
154
145
|
}
|
|
155
146
|
|
|
156
147
|
/* ----------------------------- FileUpload Item ---------------------------- */
|
|
148
|
+
.navds-file-upload :is(ul, li),
|
|
149
|
+
ul:has(> li.navds-file-item),
|
|
150
|
+
li.navds-file-item {
|
|
151
|
+
list-style: none;
|
|
152
|
+
margin: 0;
|
|
153
|
+
padding: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
157
156
|
.navds-file-item__inner {
|
|
158
157
|
background-color: var(--ax-bg-raised);
|
|
159
158
|
border: 1px solid var(--ax-border-subtleA);
|
|
@@ -176,6 +175,7 @@
|
|
|
176
175
|
border-radius: var(--ax-border-radius-full);
|
|
177
176
|
min-height: 2.5rem;
|
|
178
177
|
min-width: 2.5rem;
|
|
178
|
+
margin-top: var(--ax-spacing-05);
|
|
179
179
|
display: grid;
|
|
180
180
|
place-content: center;
|
|
181
181
|
transition: background-color 250ms cubic-bezier(0, 0.3, 0.15, 1);
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
padding: var(--ax-spacing-4);
|
|
76
76
|
background: var(--ax-bg-info-moderateA);
|
|
77
77
|
border-radius: var(--ax-border-radius-large);
|
|
78
|
+
border: 1px solid var(--ax-border-info-subtleA);
|
|
78
79
|
|
|
79
80
|
& .navds-form-summary__answer {
|
|
80
81
|
border-color: var(--ax-border-info-subtleA);
|