@navikt/ds-css 7.5.3 → 7.7.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/alert.darkside.css +2 -2
- package/darkside/button.darkside.css +134 -149
- package/darkside/chat.darkside.css +2 -2
- package/darkside/date.darkside.css +171 -232
- package/darkside/expansioncard.darkside.css +3 -9
- package/darkside/form/combobox.darkside.css +12 -20
- package/darkside/form/error-summary.darkside.css +2 -2
- package/darkside/form/file-upload.darkside.css +12 -13
- package/darkside/form/form-progress.darkside.css +1 -1
- package/darkside/form/form-summary.darkside.css +3 -2
- package/darkside/form/index.css +14 -16
- package/darkside/form/search.darkside.css +82 -160
- package/darkside/form/select.darkside.css +74 -68
- package/darkside/form/switch.darkside.css +125 -132
- package/darkside/form/text-field.darkside.css +2 -2
- package/darkside/form/textarea.darkside.css +36 -78
- package/darkside/help-text.darkside.css +0 -6
- package/darkside/index.css +23 -14
- package/darkside/internalheader.darkside.css +45 -49
- package/darkside/modal.darkside.css +7 -10
- package/darkside/popover.darkside.css +2 -5
- package/darkside/primitives/base.darkside.css +350 -350
- package/darkside/primitives/bleed.darkside.css +52 -52
- package/darkside/primitives/box.darkside.css +21 -21
- package/darkside/primitives/hgrid.darkside.css +28 -28
- package/darkside/primitives/index.css +7 -36
- package/darkside/primitives/page.darkside.css +6 -9
- package/darkside/primitives/stack.darkside.css +58 -58
- 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/darkside/toggle-group.darkside.css +52 -120
- 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,106 +1,138 @@
|
|
|
1
1
|
.navds-date {
|
|
2
|
-
padding: var(--
|
|
3
|
-
|
|
2
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-3);
|
|
3
|
+
|
|
4
|
+
.rdp-day_range_middle {
|
|
5
|
+
&.rdp-day_disabled {
|
|
6
|
+
color: var(--ax-text-default);
|
|
7
|
+
background: var(--ax-bg-neutral-moderateA);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&.rdp-day_selected {
|
|
11
|
+
background-color: var(--ax-bg-accent-moderateA);
|
|
12
|
+
box-shadow: inset 0 0 0 1px var(--ax-border-accent-subtleA);
|
|
13
|
+
color: var(--ax-text-default);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
4
16
|
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
17
|
+
.rdp-month,
|
|
18
|
+
&.rdp-month {
|
|
19
|
+
display: grid;
|
|
20
|
+
gap: var(--ax-spacing-5);
|
|
21
|
+
}
|
|
9
22
|
|
|
10
|
-
.navds-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
gap: var(--a-spacing-5);
|
|
14
|
-
}
|
|
23
|
+
.navds-date__caption-label {
|
|
24
|
+
text-transform: capitalize;
|
|
25
|
+
}
|
|
15
26
|
|
|
16
|
-
.
|
|
17
|
-
|
|
18
|
-
|
|
27
|
+
.rdp-head_cell {
|
|
28
|
+
text-transform: capitalize;
|
|
29
|
+
font-size: var(--ax-font-size-small);
|
|
30
|
+
}
|
|
19
31
|
|
|
20
|
-
.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
32
|
+
.rdp-button {
|
|
33
|
+
all: unset;
|
|
34
|
+
display: block;
|
|
35
|
+
width: 2.5rem;
|
|
36
|
+
height: 2.5rem;
|
|
37
|
+
text-align: center;
|
|
38
|
+
border-radius: var(--ax-border-radius-medium);
|
|
39
|
+
}
|
|
24
40
|
|
|
25
|
-
.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
justify-content: center;
|
|
30
|
-
width: 2rem;
|
|
31
|
-
height: 2rem;
|
|
32
|
-
border-radius: var(--a-border-radius-medium);
|
|
33
|
-
margin: var(--a-spacing-2);
|
|
34
|
-
color: var(--a-text-subtle);
|
|
35
|
-
}
|
|
41
|
+
.rdp-day_range_start {
|
|
42
|
+
border-radius: var(--ax-border-radius-xlarge) var(--ax-border-radius-medium) var(--ax-border-radius-medium)
|
|
43
|
+
var(--ax-border-radius-xlarge);
|
|
44
|
+
}
|
|
36
45
|
|
|
37
|
-
.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
color: var(--a-text-subtle);
|
|
42
|
-
font-size: var(--a-font-size-small);
|
|
43
|
-
}
|
|
46
|
+
.rdp-day_range_end:not(.rdp-day_range_start) {
|
|
47
|
+
border-radius: var(--ax-border-radius-medium) var(--ax-border-radius-xlarge) var(--ax-border-radius-xlarge)
|
|
48
|
+
var(--ax-border-radius-medium);
|
|
49
|
+
}
|
|
44
50
|
|
|
45
|
-
.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
box-shadow: none;
|
|
49
|
-
}
|
|
51
|
+
.rdp-day_range_start.rdp-day_range_end {
|
|
52
|
+
border-radius: var(--ax-border-radius-xlarge);
|
|
53
|
+
}
|
|
50
54
|
|
|
51
|
-
.navds-
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
.navds-date__field {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
width: 100%;
|
|
59
|
+
position: relative;
|
|
60
|
+
}
|
|
54
61
|
|
|
55
|
-
.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
border-radius: var(--a-border-radius-medium);
|
|
62
|
-
}
|
|
62
|
+
.rdp-day_selected,
|
|
63
|
+
.navds-monthpicker__month--selected {
|
|
64
|
+
color: var(--ax-text-accent-contrast);
|
|
65
|
+
background: var(--ax-bg-accent-strong-pressed);
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
63
68
|
|
|
64
|
-
.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
.rdp-day_disabled {
|
|
70
|
+
cursor: not-allowed;
|
|
71
|
+
text-decoration: line-through;
|
|
72
|
+
background-color: var(--ax-bg-neutral-moderateA);
|
|
73
|
+
color: var(--ax-text-subtle);
|
|
74
|
+
}
|
|
68
75
|
|
|
69
|
-
.
|
|
70
|
-
|
|
71
|
-
var(--
|
|
72
|
-
|
|
76
|
+
.rdp-button:where(:not(.rdp-day_selected, [disabled])):hover,
|
|
77
|
+
.navds-date__month-button:where(:not(.rdp-day_selected, [disabled])):hover {
|
|
78
|
+
background: var(--ax-bg-accent-moderate-hoverA);
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
}
|
|
73
81
|
|
|
74
|
-
.
|
|
75
|
-
|
|
76
|
-
|
|
82
|
+
.rdp-day_today {
|
|
83
|
+
position: relative;
|
|
84
|
+
|
|
85
|
+
&::before {
|
|
86
|
+
width: 6px;
|
|
87
|
+
height: 6px;
|
|
88
|
+
display: block;
|
|
89
|
+
background-color: var(--ax-text-accent);
|
|
90
|
+
border-radius: var(--ax-border-radius-full);
|
|
91
|
+
content: "";
|
|
92
|
+
position: absolute;
|
|
93
|
+
bottom: 5px;
|
|
94
|
+
left: 50%;
|
|
95
|
+
transform: translateX(-50%);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.rdp-day_selected:not(.rdp-day_range_middle),
|
|
99
|
+
&:active {
|
|
100
|
+
&::before {
|
|
101
|
+
background-color: var(--ax-text-accent-contrast);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
77
105
|
|
|
78
|
-
.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
106
|
+
.rdp-day_outside {
|
|
107
|
+
visibility: hidden;
|
|
108
|
+
pointer-events: none;
|
|
109
|
+
}
|
|
82
110
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
111
|
+
.navds-date__modal & {
|
|
112
|
+
padding: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.navds-date__modal-body > & {
|
|
116
|
+
padding: 0;
|
|
87
117
|
}
|
|
88
118
|
}
|
|
89
119
|
|
|
90
|
-
.navds-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
120
|
+
.navds-date__caption {
|
|
121
|
+
display: flex;
|
|
122
|
+
justify-content: space-between;
|
|
123
|
+
align-items: center;
|
|
124
|
+
gap: var(--ax-spacing-1);
|
|
125
|
+
padding-inline: var(--ax-spacing-1);
|
|
95
126
|
}
|
|
96
127
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
128
|
+
.navds-date__caption-button {
|
|
129
|
+
width: 2rem;
|
|
130
|
+
height: 2rem;
|
|
131
|
+
color: var(--ax-text-default);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.navds-date__caption__month .navds-select__container select {
|
|
135
|
+
text-transform: capitalize;
|
|
104
136
|
}
|
|
105
137
|
|
|
106
138
|
/* Monthpicker */
|
|
@@ -110,24 +142,10 @@
|
|
|
110
142
|
width: 3rem;
|
|
111
143
|
height: 3rem;
|
|
112
144
|
text-transform: capitalize;
|
|
113
|
-
border-radius: var(--
|
|
145
|
+
border-radius: var(--ax-border-radius-medium);
|
|
114
146
|
cursor: pointer;
|
|
115
147
|
}
|
|
116
148
|
|
|
117
|
-
.navds-date__month-button:focus-visible,
|
|
118
|
-
.navds-monthpicker__caption-button:focus-visible {
|
|
119
|
-
box-shadow: var(--a-shadow-focus);
|
|
120
|
-
z-index: 1;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
@supports not selector(:focus-visible) {
|
|
124
|
-
.navds-date__month-button:focus,
|
|
125
|
-
.navds-monthpicker__caption-button:focus {
|
|
126
|
-
box-shadow: var(--a-shadow-focus);
|
|
127
|
-
z-index: 1;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
149
|
.navds-date__year-label {
|
|
132
150
|
display: flex;
|
|
133
151
|
align-items: center;
|
|
@@ -137,86 +155,28 @@
|
|
|
137
155
|
.navds-date__standalone-wrapper {
|
|
138
156
|
height: fit-content;
|
|
139
157
|
width: fit-content;
|
|
140
|
-
}
|
|
141
158
|
|
|
142
|
-
.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.navds-date .rdp-day_selected,
|
|
157
|
-
.navds-monthpicker__month--selected {
|
|
158
|
-
color: var(--ac-date-selected-text, var(--a-text-on-action));
|
|
159
|
-
background: var(--ac-date-selected-bg, var(--a-surface-action-selected));
|
|
160
|
-
cursor: pointer;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.navds-date .rdp-day_disabled {
|
|
164
|
-
cursor: not-allowed;
|
|
165
|
-
text-decoration: line-through;
|
|
166
|
-
background-color: var(--ac-date-disabled-bg, var(--a-surface-neutral-subtle));
|
|
167
|
-
color: var(--ac-date-disabled-text, var(--a-text-subtle));
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.navds-date .rdp-button:where(:not(.rdp-day_selected, [disabled])):hover,
|
|
171
|
-
.navds-date__month-button:where(:not(.rdp-day_selected, [disabled])):hover {
|
|
172
|
-
background: var(--ac-date-hover-bg, var(--a-surface-action-subtle-hover));
|
|
173
|
-
cursor: pointer;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.navds-date .rdp-day_today {
|
|
177
|
-
box-shadow: 0 0 0 1px var(--ac-date-today-border, var(--a-border-action-selected));
|
|
178
|
-
text-decoration: underline;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.navds-date__caption {
|
|
182
|
-
display: flex;
|
|
183
|
-
justify-content: space-between;
|
|
184
|
-
align-items: center;
|
|
185
|
-
gap: var(--a-spacing-1);
|
|
186
|
-
padding-inline: var(--a-spacing-1);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.navds-date__caption-button,
|
|
190
|
-
.navds-date__caption-button:disabled,
|
|
191
|
-
.navds-date__caption-button:disabled:hover {
|
|
192
|
-
color: var(--ac-date-caption-text, var(--a-text-default));
|
|
159
|
+
.rdp-cell > button.rdp-day,
|
|
160
|
+
button.navds-date__month-button {
|
|
161
|
+
&:focus-visible {
|
|
162
|
+
outline: 2px solid var(--ax-border-focus);
|
|
163
|
+
outline-offset: 1px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&:active:not(:disabled) {
|
|
167
|
+
color: var(--ax-text-accent-contrast);
|
|
168
|
+
background-color: var(--ax-bg-accent-strong-pressed);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
193
171
|
}
|
|
194
172
|
|
|
195
173
|
.navds-date__field-input {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
.navds-form-field--small .navds-date__field-input {
|
|
200
|
-
padding-right: var(--a-spacing-8);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/* Error-handling */
|
|
204
|
-
.navds-date__field--error .navds-date__field-input:not(:hover, :disabled) {
|
|
205
|
-
border-color: var(--ac-date-input-error-border, var(--a-border-danger));
|
|
206
|
-
box-shadow: inset 0 0 0 1px var(--ac-date-input-error-border, var(--a-border-danger));
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.navds-date__field--error .navds-date__field-input:focus-visible:not(:hover, :disabled) {
|
|
210
|
-
box-shadow:
|
|
211
|
-
inset 0 0 0 1px var(--ac-date-input-error-border, var(--a-border-danger)),
|
|
212
|
-
var(--a-shadow-focus);
|
|
213
|
-
}
|
|
174
|
+
&.navds-text-field__input {
|
|
175
|
+
padding-right: var(--ax-spacing-12);
|
|
176
|
+
}
|
|
214
177
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
box-shadow:
|
|
218
|
-
inset 0 0 0 1px var(--ac-date-input-error-border, var(--a-border-danger)),
|
|
219
|
-
var(--a-shadow-focus);
|
|
178
|
+
.navds-form-field--small & {
|
|
179
|
+
padding-right: var(--ax-spacing-8);
|
|
220
180
|
}
|
|
221
181
|
}
|
|
222
182
|
|
|
@@ -225,74 +185,65 @@
|
|
|
225
185
|
right: 0.0625rem;
|
|
226
186
|
top: 50%;
|
|
227
187
|
transform: translateY(-50%);
|
|
228
|
-
color: var(--
|
|
188
|
+
color: var(--ax-text-default);
|
|
229
189
|
display: inline-flex;
|
|
230
190
|
cursor: pointer;
|
|
231
191
|
margin: 0;
|
|
232
192
|
text-decoration: none;
|
|
233
193
|
border: none;
|
|
234
194
|
background: none;
|
|
235
|
-
border-radius: calc(var(--
|
|
236
|
-
padding: var(--
|
|
195
|
+
border-radius: calc(var(--ax-border-radius-medium) - 1px);
|
|
196
|
+
padding: var(--ax-spacing-3);
|
|
237
197
|
align-items: center;
|
|
238
198
|
justify-content: center;
|
|
239
199
|
font-size: 1.5rem;
|
|
240
200
|
height: calc(100% - 0.125rem);
|
|
241
201
|
border-start-start-radius: 0;
|
|
242
202
|
border-end-start-radius: 0;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.navds-form-field--small .navds-date__field-button {
|
|
246
|
-
padding: var(--a-spacing-1);
|
|
247
|
-
}
|
|
248
203
|
|
|
249
|
-
.navds-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}
|
|
204
|
+
.navds-form-field--small & {
|
|
205
|
+
padding: var(--ax-spacing-1);
|
|
206
|
+
}
|
|
253
207
|
|
|
254
|
-
.navds-form-field--disabled
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}
|
|
208
|
+
.navds-form-field--disabled & {
|
|
209
|
+
opacity: 1;
|
|
210
|
+
cursor: not-allowed;
|
|
211
|
+
}
|
|
258
212
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
213
|
+
/* Readonly */
|
|
214
|
+
.navds-date__field--readonly & {
|
|
215
|
+
cursor: default;
|
|
216
|
+
}
|
|
264
217
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
outline: none;
|
|
268
|
-
box-shadow: var(--a-shadow-focus);
|
|
218
|
+
&:focus-visible {
|
|
219
|
+
outline-color: var(--ax-border-focus);
|
|
269
220
|
}
|
|
270
221
|
}
|
|
271
222
|
|
|
272
|
-
.navds-
|
|
273
|
-
|
|
223
|
+
.navds-date__field-wrapper {
|
|
224
|
+
display: inline-flex;
|
|
225
|
+
align-items: center;
|
|
226
|
+
position: relative;
|
|
227
|
+
width: fit-content;
|
|
274
228
|
}
|
|
275
229
|
|
|
276
|
-
.navds-
|
|
277
|
-
|
|
278
|
-
|
|
230
|
+
.navds-date__week-row {
|
|
231
|
+
display: flex;
|
|
232
|
+
align-items: center;
|
|
233
|
+
gap: var(--ax-spacing-05);
|
|
279
234
|
}
|
|
280
235
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
cursor: default;
|
|
284
|
-
color: var(--a-gray-500);
|
|
236
|
+
.navds-date__weeknumber {
|
|
237
|
+
--__axc-button-border-width: 1px;
|
|
285
238
|
}
|
|
286
239
|
|
|
287
|
-
.navds-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
240
|
+
.navds-date__weeknumber-number {
|
|
241
|
+
font-size: 0.875rem;
|
|
242
|
+
color: var(--ax-text-subtle);
|
|
291
243
|
|
|
292
|
-
.navds-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
gap: var(--a-spacing-05);
|
|
244
|
+
.navds-date__weeknumber:active & {
|
|
245
|
+
color: var(--ax-text-neutral-contrast);
|
|
246
|
+
}
|
|
296
247
|
}
|
|
297
248
|
|
|
298
249
|
.navds-date__week-wrapper {
|
|
@@ -303,37 +254,25 @@
|
|
|
303
254
|
margin: 0;
|
|
304
255
|
}
|
|
305
256
|
|
|
306
|
-
.navds-date__modal.navds-date {
|
|
307
|
-
padding: 0;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
257
|
.navds-date__modal-body {
|
|
311
258
|
display: flex;
|
|
312
259
|
flex-direction: column;
|
|
313
260
|
align-items: flex-end;
|
|
314
|
-
padding: var(--
|
|
315
|
-
gap: var(--
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.navds-date__modal-body > .navds-date {
|
|
319
|
-
padding: 0;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
.navds-date__popover:where(.navds-popover) {
|
|
323
|
-
border: none;
|
|
261
|
+
padding: var(--ax-spacing-4);
|
|
262
|
+
gap: var(--ax-spacing-2);
|
|
324
263
|
}
|
|
325
264
|
|
|
326
265
|
@media (min-width: 480px) {
|
|
327
266
|
.navds-date {
|
|
328
|
-
padding: var(--
|
|
267
|
+
padding: var(--ax-spacing-5) var(--ax-spacing-4);
|
|
329
268
|
}
|
|
330
269
|
|
|
331
270
|
.navds-date__modal-body {
|
|
332
|
-
padding: var(--
|
|
271
|
+
padding: var(--ax-spacing-6);
|
|
333
272
|
}
|
|
334
273
|
|
|
335
274
|
.navds-date__caption {
|
|
336
|
-
gap: var(--
|
|
275
|
+
gap: var(--ax-spacing-2);
|
|
337
276
|
}
|
|
338
277
|
|
|
339
278
|
.navds-date .rdp-button,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.navds-expansioncard {
|
|
2
2
|
--__axc-expansioncard-border-radius: calc(var(--ax-border-radius-xlarge) - 1px);
|
|
3
3
|
--__axc-expansioncard-padding-block: var(--ax-spacing-4);
|
|
4
|
-
--__axc-expansioncard-padding-inline: var(--ax-spacing-
|
|
4
|
+
--__axc-expansioncard-padding-inline: var(--ax-spacing-5);
|
|
5
5
|
|
|
6
6
|
border-radius: var(--ax-border-radius-xlarge);
|
|
7
7
|
background-color: var(--ax-bg-raised);
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
/* ------------------------ ExpansionCard Small-size ------------------------ */
|
|
18
18
|
.navds-expansioncard--small {
|
|
19
|
-
--__axc-expansioncard-padding-block: var(--ax-spacing-3);
|
|
20
19
|
--__axc-expansioncard-padding-inline: var(--ax-spacing-4);
|
|
20
|
+
--__axc-expansioncard-padding-block: var(--ax-spacing-3);
|
|
21
21
|
|
|
22
22
|
& > .navds-expansioncard__header .navds-expansioncard__title--small {
|
|
23
23
|
margin-top: var(--ax-spacing-05);
|
|
@@ -31,10 +31,6 @@
|
|
|
31
31
|
min-height: 2rem;
|
|
32
32
|
min-width: 2rem;
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
& .navds-expansioncard__content {
|
|
36
|
-
--__axc-expansioncard-padding-block: var(--ax-spacing-4);
|
|
37
|
-
}
|
|
38
34
|
}
|
|
39
35
|
|
|
40
36
|
/* -------------------------- ExpansionCard Header -------------------------- */
|
|
@@ -144,8 +140,6 @@
|
|
|
144
140
|
|
|
145
141
|
/* -------------------------- ExpansionCard Content ------------------------- */
|
|
146
142
|
.navds-expansioncard__content {
|
|
147
|
-
--__axc-expansioncard-padding-block: var(--ax-spacing-5);
|
|
148
|
-
|
|
149
143
|
border-end-end-radius: var(--__axc-expansioncard-border-radius);
|
|
150
144
|
border-end-start-radius: var(--__axc-expansioncard-border-radius);
|
|
151
145
|
padding-inline: var(--__axc-expansioncard-padding-inline);
|
|
@@ -161,7 +155,7 @@
|
|
|
161
155
|
&[data-open="true"] {
|
|
162
156
|
grid-template-rows: 1fr;
|
|
163
157
|
visibility: visible;
|
|
164
|
-
padding-block: var(--__axc-expansioncard-padding-block)
|
|
158
|
+
padding-block: var(--__axc-expansioncard-padding-block);
|
|
165
159
|
|
|
166
160
|
& .navds-expansioncard__content-inner {
|
|
167
161
|
opacity: 1;
|
|
@@ -120,7 +120,6 @@
|
|
|
120
120
|
& .navds-combobox__wrapper-inner {
|
|
121
121
|
border-color: var(--ax-border-danger);
|
|
122
122
|
box-shadow: 0 0 0 1px var(--ax-border-danger);
|
|
123
|
-
outline-offset: 3px;
|
|
124
123
|
|
|
125
124
|
&:has(.navds-combobox__input:focus-visible) {
|
|
126
125
|
border-color: var(--ax-border-danger);
|
|
@@ -129,7 +128,7 @@
|
|
|
129
128
|
}
|
|
130
129
|
|
|
131
130
|
.navds-combobox__selected-options {
|
|
132
|
-
gap:
|
|
131
|
+
gap: 0;
|
|
133
132
|
align-items: center;
|
|
134
133
|
|
|
135
134
|
& > li {
|
|
@@ -141,6 +140,10 @@
|
|
|
141
140
|
display: flex;
|
|
142
141
|
flex: 1;
|
|
143
142
|
}
|
|
143
|
+
|
|
144
|
+
&[data-type="multiple"] {
|
|
145
|
+
gap: var(--__axc-combobox-wrapper-inner-padding);
|
|
146
|
+
}
|
|
144
147
|
}
|
|
145
148
|
|
|
146
149
|
.navds-combobox__selected-options--no-bg {
|
|
@@ -162,7 +165,6 @@
|
|
|
162
165
|
border: none;
|
|
163
166
|
padding: 0;
|
|
164
167
|
margin: 0;
|
|
165
|
-
margin-left: var(--ax-spacing-1);
|
|
166
168
|
min-width: 10ch;
|
|
167
169
|
width: 100%;
|
|
168
170
|
height: var(--__axc-combobox-input-height);
|
|
@@ -172,6 +174,10 @@
|
|
|
172
174
|
outline: 0;
|
|
173
175
|
border: none;
|
|
174
176
|
}
|
|
177
|
+
|
|
178
|
+
.navds-combobox__selected-options > li:only-child > & {
|
|
179
|
+
margin-left: var(--ax-spacing-1);
|
|
180
|
+
}
|
|
175
181
|
}
|
|
176
182
|
|
|
177
183
|
.navds-combobox__input--hide-caret {
|
|
@@ -248,17 +254,14 @@
|
|
|
248
254
|
right: 0;
|
|
249
255
|
z-index: 10;
|
|
250
256
|
top: calc(100% + var(--ax-spacing-2));
|
|
251
|
-
border: 1px solid var(--ax-border-
|
|
257
|
+
border: 1px solid var(--ax-border-subtleA);
|
|
252
258
|
display: flex;
|
|
253
259
|
flex-direction: column;
|
|
254
260
|
border-radius: var(--ax-border-radius-large);
|
|
255
261
|
background-color: var(--ax-bg-raised);
|
|
256
262
|
color: var(--ax-text-default);
|
|
257
263
|
overscroll-behavior: contain;
|
|
258
|
-
box-shadow:
|
|
259
|
-
0 0 1px 0 rgb(7 9 13 / 0.02),
|
|
260
|
-
0 2px 5px 0 rgb(7 9 13 / 0.1),
|
|
261
|
-
0 10px 16px 0 rgb(7 9 13 / 0.12);
|
|
264
|
+
box-shadow: var(--ax-shadow-dialog);
|
|
262
265
|
|
|
263
266
|
& .navds-combobox__list-options {
|
|
264
267
|
overflow-y: auto;
|
|
@@ -269,18 +272,6 @@
|
|
|
269
272
|
display: none;
|
|
270
273
|
}
|
|
271
274
|
|
|
272
|
-
.navds-combobox__list_non-selectables {
|
|
273
|
-
position: sticky;
|
|
274
|
-
top: 0;
|
|
275
|
-
left: 0;
|
|
276
|
-
right: 0;
|
|
277
|
-
z-index: 1;
|
|
278
|
-
|
|
279
|
-
&:hover {
|
|
280
|
-
cursor: default;
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
275
|
.navds-combobox__list-item,
|
|
285
276
|
.navds-combobox__list-item--loading,
|
|
286
277
|
.navds-combobox__list-item--no-options,
|
|
@@ -295,6 +286,7 @@
|
|
|
295
286
|
border: 0;
|
|
296
287
|
margin-inline: var(--ax-spacing-2);
|
|
297
288
|
margin-block: var(--ax-spacing-1);
|
|
289
|
+
scroll-margin-block: 8px; /* outline + outline-offset + margin-block */
|
|
298
290
|
}
|
|
299
291
|
|
|
300
292
|
.navds-combobox__list-item--no-options {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.navds-error-summary {
|
|
2
2
|
background-color: var(--ax-bg-default);
|
|
3
|
-
padding: var(--ax-spacing-5);
|
|
3
|
+
padding: var(--ax-spacing-4) var(--ax-spacing-5);
|
|
4
4
|
border: 4px solid var(--ax-border-danger);
|
|
5
5
|
border-radius: var(--ax-border-radius-xlarge);
|
|
6
6
|
outline-offset: 2px;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.navds-error-summary--small {
|
|
21
|
-
padding: var(--ax-spacing-3);
|
|
21
|
+
padding: var(--ax-spacing-3) var(--ax-spacing-4);
|
|
22
22
|
|
|
23
23
|
& .navds-error-summary__heading {
|
|
24
24
|
scroll-margin-top: var(--ax-spacing-4);
|