@navikt/ds-css 7.3.1 → 7.4.1

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.
Files changed (71) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/darkside/accordion.darkside.css +198 -0
  3. package/darkside/action-menu.darkside.css +227 -0
  4. package/darkside/alert.darkside.css +113 -0
  5. package/darkside/baseline/theme.darkside.css +4 -2
  6. package/darkside/button.darkside.css +318 -4
  7. package/darkside/chat.darkside.css +120 -0
  8. package/darkside/chips.darkside.css +234 -0
  9. package/darkside/copybutton.darkside.css +226 -0
  10. package/darkside/date.darkside.css +344 -0
  11. package/darkside/dropdown.darkside.css +91 -0
  12. package/darkside/expansioncard.darkside.css +235 -0
  13. package/darkside/form/combobox.darkside.css +441 -0
  14. package/darkside/form/confirmation-panel.darkside.css +53 -0
  15. package/darkside/form/error-summary.darkside.css +55 -0
  16. package/darkside/form/fieldset.darkside.css +51 -0
  17. package/darkside/form/file-upload.darkside.css +230 -0
  18. package/darkside/form/form-progress.darkside.css +52 -0
  19. package/darkside/form/form-summary.darkside.css +78 -0
  20. package/darkside/form/form.darkside.css +61 -0
  21. package/darkside/form/index.css +16 -0
  22. package/darkside/form/radio-checkbox.darkside.css +356 -0
  23. package/darkside/form/search.darkside.css +228 -0
  24. package/darkside/form/select.darkside.css +115 -0
  25. package/darkside/form/switch.darkside.css +269 -0
  26. package/darkside/form/text-field.darkside.css +112 -0
  27. package/darkside/form/textarea.darkside.css +144 -0
  28. package/darkside/guide-panel.darkside.css +96 -0
  29. package/darkside/help-text.darkside.css +85 -0
  30. package/darkside/index copy.css +37 -0
  31. package/darkside/index.css +36 -1
  32. package/darkside/internalheader.darkside.css +105 -0
  33. package/darkside/link-panel.darkside.css +47 -0
  34. package/darkside/link.darkside.css +79 -0
  35. package/darkside/list.darkside.css +85 -0
  36. package/darkside/loader.darkside.css +119 -0
  37. package/darkside/modal.darkside.css +209 -0
  38. package/darkside/pagination.darkside.css +73 -0
  39. package/darkside/panel.darkside.css +10 -0
  40. package/darkside/popover.darkside.css +84 -0
  41. package/darkside/primitives/base.darkside.css +809 -0
  42. package/darkside/primitives/bleed.darkside.css +103 -0
  43. package/darkside/primitives/box.darkside.css +66 -0
  44. package/darkside/primitives/hgrid.darkside.css +80 -0
  45. package/darkside/primitives/index.css +36 -0
  46. package/darkside/primitives/page.darkside.css +63 -0
  47. package/darkside/primitives/responsive.darkside.css +59 -0
  48. package/darkside/primitives/stack.darkside.css +155 -0
  49. package/darkside/progress-bar.darkside.css +108 -0
  50. package/darkside/read-more.darkside.css +91 -0
  51. package/darkside/skeleton.darkside.css +67 -0
  52. package/darkside/stepper.darkside.css +308 -0
  53. package/darkside/table.darkside.css +286 -0
  54. package/darkside/tabs.darkside.css +154 -0
  55. package/darkside/tag.darkside.css +194 -0
  56. package/darkside/timeline.darkside.css +449 -0
  57. package/darkside/toggle-group.darkside.css +181 -0
  58. package/darkside/tooltip.darkside.css +81 -0
  59. package/darkside/typography.darkside.css +253 -0
  60. package/dist/component/form.css +4 -1
  61. package/dist/component/form.min.css +1 -1
  62. package/dist/component/index.css +6 -2
  63. package/dist/component/index.min.css +2 -2
  64. package/dist/components.css +6 -2
  65. package/dist/components.min.css +2 -2
  66. package/dist/global/tokens.css +1 -1
  67. package/dist/global/tokens.min.css +1 -1
  68. package/dist/index.css +6 -2
  69. package/dist/index.min.css +2 -2
  70. package/form/combobox.css +5 -1
  71. package/package.json +2 -2
@@ -0,0 +1,269 @@
1
+ .navds-switch {
2
+ position: relative;
3
+ min-height: 3rem;
4
+ width: fit-content;
5
+ }
6
+
7
+ .navds-switch--right {
8
+ width: auto;
9
+ }
10
+
11
+ .navds-switch--small {
12
+ position: relative;
13
+ min-height: 2rem;
14
+ }
15
+
16
+ /* Input */
17
+ .navds-switch__input {
18
+ cursor: pointer;
19
+ position: absolute;
20
+ z-index: 1;
21
+ width: 3rem;
22
+ height: 3rem;
23
+ opacity: 0;
24
+ top: 0;
25
+ }
26
+
27
+ .navds-switch--small > .navds-switch__input {
28
+ height: 2rem;
29
+ top: 0;
30
+ }
31
+
32
+ /* Label */
33
+ .navds-switch__label-wrapper {
34
+ cursor: pointer;
35
+ color: var(--a-text-default);
36
+ }
37
+
38
+ .navds-switch__content {
39
+ display: flex;
40
+ flex-direction: column;
41
+ gap: 0.125rem;
42
+ padding: 0.75rem 0 0.75rem 3.25rem;
43
+ }
44
+
45
+ .navds-switch--right > .navds-switch__label-wrapper > .navds-switch__content {
46
+ padding: 0.75rem 3.25rem 0.75rem 0;
47
+ }
48
+
49
+ .navds-switch--small > .navds-switch__label-wrapper > .navds-switch__content {
50
+ padding: calc(var(--a-spacing-2) - var(--a-spacing-05)) 0 calc(var(--a-spacing-2) - var(--a-spacing-05)) 3.25rem;
51
+ }
52
+
53
+ .navds-switch--right.navds-switch--small > .navds-switch__label-wrapper > .navds-switch__content {
54
+ padding: calc(var(--a-spacing-2) - var(--a-spacing-05)) 3.25rem calc(var(--a-spacing-2) - var(--a-spacing-05)) 0;
55
+ }
56
+
57
+ .navds-switch--with-description,
58
+ .navds-switch--small > .navds-switch__label-wrapper > .navds-switch--with-description {
59
+ padding-bottom: 0;
60
+ }
61
+
62
+ .navds-switch__input:hover ~ .navds-switch__label-wrapper,
63
+ .navds-switch__label-wrapper:hover {
64
+ color: var(--ac-switch-action, var(--a-surface-action-selected));
65
+ }
66
+
67
+ .navds-switch__input:disabled:hover ~ .navds-switch__label-wrapper {
68
+ color: inherit;
69
+ }
70
+
71
+ /* Track */
72
+ .navds-switch__track {
73
+ width: 2.75rem;
74
+ height: 1.5rem;
75
+ background-color: var(--ac-switch-bg, var(--a-surface-neutral));
76
+ position: absolute;
77
+ top: var(--a-spacing-3);
78
+ left: 0;
79
+ border-radius: var(--a-border-radius-full);
80
+ transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
81
+ }
82
+
83
+ .navds-switch--small > .navds-switch__track {
84
+ top: var(--a-spacing-1);
85
+ }
86
+
87
+ .navds-switch--right > .navds-switch__input,
88
+ .navds-switch--right > .navds-switch__track {
89
+ right: 0;
90
+ left: auto;
91
+ }
92
+
93
+ .navds-switch__input:checked ~ .navds-switch__track {
94
+ background-color: var(--ac-switch-checked-bg, var(--a-surface-action-selected));
95
+ }
96
+
97
+ .navds-switch__input:hover ~ .navds-switch__track {
98
+ background-color: var(--ac-switch-hover-bg, var(--a-surface-neutral-hover));
99
+ }
100
+
101
+ .navds-switch__input:hover:checked ~ .navds-switch__track {
102
+ background-color: var(--ac-switch-checked-hover-bg, var(--a-surface-action-selected-hover));
103
+ }
104
+
105
+ .navds-switch__input:disabled ~ .navds-switch__track {
106
+ background-color: var(--ac-switch-bg, var(--a-surface-neutral));
107
+ }
108
+
109
+ .navds-switch__input:checked:disabled ~ .navds-switch__track {
110
+ background-color: var(--ac-switch-checked-bg, var(--a-border-action-selected));
111
+ }
112
+
113
+ .navds-switch__input:focus-visible ~ .navds-switch__track {
114
+ outline: 2px solid transparent;
115
+ outline-offset: 2px;
116
+ box-shadow:
117
+ 0 0 0 1px var(--a-surface-default),
118
+ var(--a-shadow-focus);
119
+ }
120
+
121
+ @supports not selector(:focus-visible) {
122
+ .navds-switch__input:focus ~ .navds-switch__track {
123
+ outline: 2px solid transparent;
124
+ box-shadow:
125
+ 0 0 0 1px var(--a-surface-default),
126
+ var(--a-shadow-focus);
127
+ }
128
+ }
129
+
130
+ /* Thumb */
131
+ .navds-switch__thumb {
132
+ background-color: var(--ac-switch-thumb-bg, var(--a-surface-default));
133
+ color: var(--ac-switch-thumb-icon, var(--a-icon-subtle));
134
+ border-radius: var(--a-border-radius-full);
135
+ width: 1.25rem;
136
+ height: 1.25rem;
137
+ position: absolute;
138
+ transform: translateX(0);
139
+ left: var(--a-spacing-05);
140
+ top: var(--a-spacing-05);
141
+ transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
142
+ display: flex;
143
+ align-items: center;
144
+ justify-content: center;
145
+ }
146
+
147
+ .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
148
+ transform: translateX(1.25rem);
149
+ color: var(--ac-switch-thumb-icon-checked, var(--a-icon-action-selected));
150
+ }
151
+
152
+ @media (hover: hover) and (pointer: fine) {
153
+ .navds-switch__input:hover ~ .navds-switch__track > .navds-switch__thumb {
154
+ transform: translateX(0.125rem);
155
+ }
156
+
157
+ .navds-switch__input:checked:hover ~ .navds-switch__track > .navds-switch__thumb {
158
+ transform: translateX(1.125rem);
159
+ }
160
+ }
161
+
162
+ .navds-switch__input:disabled:hover ~ .navds-switch__track > .navds-switch__thumb {
163
+ transform: translateX(0);
164
+ }
165
+
166
+ .navds-switch__input:checked:disabled:hover ~ .navds-switch__track > .navds-switch__thumb {
167
+ transform: translateX(1.25rem);
168
+ }
169
+
170
+ /* Disabled */
171
+ .navds-switch__input:disabled {
172
+ appearance: none;
173
+ }
174
+
175
+ .navds-switch--disabled:not(.navds-switch--loading) {
176
+ opacity: 0.3;
177
+ }
178
+
179
+ .navds-switch__input:disabled,
180
+ .navds-switch__input:disabled ~ .navds-switch__label-wrapper {
181
+ cursor: not-allowed;
182
+ }
183
+
184
+ /* Readonly */
185
+ .navds-switch--readonly > .navds-switch__track,
186
+ .navds-switch--readonly > .navds-switch__input:hover ~ .navds-switch__track,
187
+ .navds-switch--readonly > .navds-switch__input:checked ~ .navds-switch__track,
188
+ .navds-switch--readonly > .navds-switch__input:checked:hover ~ .navds-switch__track {
189
+ background-color: var(--a-surface-neutral-moderate);
190
+ }
191
+
192
+ .navds-switch--readonly > .navds-switch__label-wrapper,
193
+ .navds-switch--readonly > .navds-switch__input {
194
+ cursor: default;
195
+ }
196
+
197
+ .navds-switch--readonly > .navds-switch__input:hover ~ .navds-switch__label-wrapper,
198
+ .navds-switch--readonly .navds-switch__label-wrapper:hover {
199
+ color: var(--a-text-default);
200
+ }
201
+
202
+ .navds-switch--readonly .navds-switch__label {
203
+ display: inline-flex;
204
+ }
205
+
206
+ .navds-switch--readonly .navds-switch__thumb {
207
+ background-color: var(--a-surface-subtle);
208
+ box-shadow: 0 0 0 2px var(--a-border-default);
209
+ }
210
+
211
+ .navds-switch--readonly > .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
212
+ color: var(--a-icon-subtle);
213
+ }
214
+
215
+ @media (hover: hover) and (pointer: fine) {
216
+ .navds-switch--readonly > .navds-switch__input:hover ~ .navds-switch__track > .navds-switch__thumb {
217
+ transform: translateX(0);
218
+ }
219
+
220
+ .navds-switch--readonly > .navds-switch__input:checked:hover ~ .navds-switch__track > .navds-switch__thumb {
221
+ transform: translateX(1.25rem);
222
+ }
223
+ }
224
+
225
+ @media (forced-colors: active) {
226
+ .navds-switch__input:hover ~ .navds-switch__label-wrapper,
227
+ .navds-switch__label-wrapper:hover {
228
+ color: highlight;
229
+ }
230
+
231
+ .navds-switch__thumb,
232
+ .navds-switch--readonly .navds-switch__thumb {
233
+ background-color: fieldtext;
234
+ }
235
+
236
+ .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb,
237
+ .navds-switch--readonly .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
238
+ color: field;
239
+ }
240
+
241
+ .navds-switch__track {
242
+ width: calc(2.75rem + 4px);
243
+ height: calc(1.5rem + 4px);
244
+ top: var(--a-spacing-3);
245
+ border: 2px solid fieldtext;
246
+ }
247
+
248
+ .navds-switch__input:focus-visible ~ .navds-switch__track {
249
+ outline: 2px solid highlight;
250
+ outline-offset: 2px;
251
+ }
252
+
253
+ .navds-switch--disabled:not(.navds-switch--loading) {
254
+ opacity: 1;
255
+ }
256
+
257
+ .navds-switch--disabled:not(.navds-switch--loading) .navds-switch__thumb {
258
+ background-color: graytext;
259
+ }
260
+
261
+ .navds-switch--disabled:not(.navds-switch--loading) .navds-switch__track {
262
+ border-color: graytext;
263
+ }
264
+
265
+ .navds-switch--disabled:not(.navds-switch--loading) .navds-switch__label-wrapper,
266
+ .navds-switch--disabled:not(.navds-switch--loading) .navds-switch__label-wrapper:hover {
267
+ color: graytext !important;
268
+ }
269
+ }
@@ -0,0 +1,112 @@
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
+ .navds-text-field__input {
20
+ appearance: none;
21
+ padding: var(--a-spacing-2);
22
+ background-color: var(--ac-textfield-bg, var(--__ac-textfield-bg, var(--a-surface-default)));
23
+ border-radius: var(--a-border-radius-medium);
24
+ border: 1px solid var(--ac-textfield-border, var(--__ac-textfield-border, var(--a-border-default)));
25
+ min-height: 3rem;
26
+ width: 100%;
27
+ color: var(--ac-textfield-text, var(--__ac-textfield-text, var(--a-text-default)));
28
+ }
29
+
30
+ .navds-text-field__input[size] {
31
+ width: auto;
32
+ }
33
+
34
+ .navds-text-field__input::placeholder {
35
+ color: var(--ac-textfield-placeholder, var(--__ac-textfield-placeholder, var(--a-text-subtle)));
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
+ }
46
+
47
+ .navds-text-field__input:focus-visible {
48
+ outline: 2px solid transparent;
49
+ outline-offset: 2px;
50
+ box-shadow: var(--a-shadow-focus);
51
+ border-color: var(--ac-textfield-active-border, var(--a-border-action-selected));
52
+ }
53
+
54
+ @supports not selector(:focus-visible) {
55
+ .navds-text-field__input:focus {
56
+ outline: none;
57
+ box-shadow: var(--a-shadow-focus);
58
+ }
59
+ }
60
+
61
+ /**
62
+ Error handling
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
+ }
68
+
69
+ .navds-text-field--error > .navds-text-field__input:focus-visible:not(:hover, :disabled) {
70
+ box-shadow:
71
+ 0 0 0 1px var(--a-border-danger),
72
+ var(--a-shadow-focus);
73
+ }
74
+
75
+ @supports not selector(:focus-visible) {
76
+ .navds-text-field--error > .navds-text-field__input:focus:not(:hover, :disabled) {
77
+ box-shadow:
78
+ 0 0 0 1px var(--a-border-danger),
79
+ var(--a-shadow-focus);
80
+ }
81
+ }
82
+
83
+ /* Disabled handling */
84
+ .navds-text-field__input:disabled {
85
+ background-color: var(--ac-textfield-bg, var(--__ac-textfield-bg, var(--a-surface-default)));
86
+ border-color: var(--ac-textfield-border, var(--__ac-textfield-border, var(--a-border-default)));
87
+ box-shadow: none;
88
+ cursor: not-allowed;
89
+ }
90
+
91
+ .navds-text-field--readonly .navds-text-field__input {
92
+ background-color: var(--a-surface-subtle);
93
+ border-color: var(--a-border-subtle);
94
+ cursor: default;
95
+ }
96
+
97
+ /**
98
+ * Removes default search icon
99
+ */
100
+ .navds-text-field__input[type="search"]::-webkit-search-decoration,
101
+ .navds-text-field__input[type="search"]::-webkit-search-cancel-button,
102
+ .navds-text-field__input[type="search"]::-webkit-search-results-button,
103
+ .navds-text-field__input[type="search"]::-webkit-search-results-decoration {
104
+ -webkit-appearance: none;
105
+ }
106
+
107
+ @media (forced-colors: active) {
108
+ .navds-text-field__input {
109
+ background-color: field;
110
+ color: fieldtext;
111
+ }
112
+ }
@@ -0,0 +1,144 @@
1
+ [data-theme="dark"] {
2
+ --__ac-textarea-text: var(--a-text-on-inverted);
3
+ --__ac-textarea-bg: var(--a-transparent);
4
+ --__ac-textarea-border: var(--a-border-on-inverted);
5
+ --__ac-textarea-hover-border: var(--a-blue-200);
6
+ --__ac-textarea-placeholder: var(--a-gray-500);
7
+ --__ac-textarea-error-border: var(--a-red-300);
8
+ --__ac-textarea-counter-text: var(--a-gray-300);
9
+ --__ac-textarea-counter-error-text: var(--a-red-300);
10
+ }
11
+
12
+ [data-theme="light"] {
13
+ --__ac-textarea-text: initial;
14
+ --__ac-textarea-bg: initial;
15
+ --__ac-textarea-border: initial;
16
+ --__ac-textarea-hover-border: initial;
17
+ --__ac-textarea-placeholder: initial;
18
+ --__ac-textarea-error-border: initial;
19
+ --__ac-textarea-counter-text: initial;
20
+ --__ac-textarea-counter-error-text: initial;
21
+ }
22
+
23
+ .navds-textarea__input {
24
+ /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */
25
+ height: var(--__ac-textarea-height);
26
+ appearance: none;
27
+ padding: var(--a-spacing-2);
28
+ background-color: var(--ac-textarea-bg, var(--__ac-textarea-bg, var(--a-surface-default)));
29
+ border-radius: var(--a-border-radius-medium);
30
+ border: 1px solid var(--ac-textarea-border, var(--__ac-textarea-border, var(--a-border-default)));
31
+ resize: none;
32
+ width: 100%;
33
+ display: block;
34
+ color: var(--ac-textarea-text, var(--__ac-textarea-text, var(--a-text-default)));
35
+ }
36
+
37
+ .navds-textarea__input::placeholder {
38
+ color: var(--ac-textarea-placeholder, var(--__ac-textarea-placeholder, var(--a-text-subtle)));
39
+ }
40
+
41
+ .navds-textarea__input:hover {
42
+ border-color: var(--ac-textarea-hover-border, var(--__ac-textarea-hover-border, var(--a-border-action-hover)));
43
+ }
44
+
45
+ .navds-textarea__input:focus-visible {
46
+ outline: 2px solid transparent;
47
+ outline-offset: 2px;
48
+ box-shadow: var(--a-shadow-focus);
49
+ border-color: var(--ac-textarea-active-border, var(--a-border-action-selected));
50
+ }
51
+
52
+ @supports not selector(:focus-visible) {
53
+ .navds-textarea__input:focus {
54
+ outline: 2px solid transparent;
55
+ outline-offset: 2px;
56
+ box-shadow: var(--a-shadow-focus);
57
+ }
58
+ }
59
+
60
+ .navds-form-field--small .navds-textarea__input {
61
+ padding: var(--a-spacing-1-alt);
62
+ }
63
+
64
+ .navds-textarea__counter {
65
+ margin-top: -0.375rem;
66
+ color: var(--ac-textarea-counter-text, var(--__ac-textarea-counter-text, var(--a-text-subtle)));
67
+ }
68
+
69
+ .navds-textarea__counter--error {
70
+ color: var(--ac-textarea-counter-error-text, var(--__ac-textarea-counter-error-text, var(--a-text-danger)));
71
+ }
72
+
73
+ .navds-textarea__sr-counter {
74
+ display: none;
75
+ }
76
+
77
+ .navds-textarea__input:focus ~ .navds-textarea__sr-counter {
78
+ display: initial;
79
+ }
80
+
81
+ .navds-textarea--resize-both .navds-textarea__input {
82
+ resize: both;
83
+ border-end-end-radius: 0;
84
+ }
85
+
86
+ .navds-textarea--resize-horizontal .navds-textarea__input {
87
+ resize: horizontal;
88
+ border-end-end-radius: 0;
89
+ }
90
+
91
+ .navds-textarea--resize-vertical .navds-textarea__input {
92
+ resize: vertical;
93
+ border-end-end-radius: 0;
94
+ }
95
+
96
+ .navds-textarea--autoscrollbar,
97
+ .navds-textarea--autoscrollbar .navds-textarea__wrapper {
98
+ display: flex;
99
+ flex-direction: column;
100
+ overflow: hidden;
101
+
102
+ /* Makes the box-shadow visible even though overflow is hidden: */
103
+ padding: 3px;
104
+ margin: -3px;
105
+ }
106
+
107
+ .navds-textarea--autoscrollbar .navds-textarea__input {
108
+ scrollbar-gutter: stable; /* Needed to prevent scrollbar from appearing too early */
109
+ }
110
+
111
+ /**
112
+ Error handling
113
+ */
114
+ .navds-textarea--error .navds-textarea__input:not(:hover, :focus-visible, :disabled) {
115
+ box-shadow: 0 0 0 1px var(--ac-textarea-error-border, var(--__ac-textarea-error-border, var(--a-border-danger)));
116
+ border-color: var(--ac-textarea-error-border, var(--__ac-textarea-error-border, var(--a-border-danger)));
117
+ }
118
+
119
+ @supports not selector(:focus-visible) {
120
+ .navds-textarea--error .navds-textarea__input:not(:hover, :focus, :disabled) {
121
+ box-shadow: 0 0 0 1px var(--ac-textarea-error-border, var(--__ac-textarea-error-border, var(--a-border-danger)));
122
+ border-color: var(--ac-textarea-error-border, var(--__ac-textarea-error-border, var(--a-border-danger)));
123
+ }
124
+ }
125
+
126
+ .navds-textarea__input:disabled {
127
+ background-color: var(--ac-textarea-bg, var(--__ac-textarea-bg, var(--a-surface-default)));
128
+ border-color: var(--ac-textarea-border, var(--__ac-textarea-border, var(--a-border-default)));
129
+ box-shadow: none;
130
+ cursor: not-allowed;
131
+ }
132
+
133
+ .navds-textarea--readonly .navds-textarea__input {
134
+ background-color: var(--a-surface-subtle);
135
+ border-color: var(--a-border-subtle);
136
+ cursor: default;
137
+ }
138
+
139
+ @media (forced-colors: active) {
140
+ .navds-textarea__input {
141
+ background-color: field;
142
+ color: fieldtext;
143
+ }
144
+ }
@@ -0,0 +1,96 @@
1
+ .navds-guide-panel {
2
+ --__ac-guide-panel-guide-size: 4rem;
3
+
4
+ position: relative;
5
+ padding-top: calc(var(--__ac-guide-panel-guide-size) / 2);
6
+ }
7
+
8
+ .navds-guide {
9
+ background: var(--ac-guide-panel-illustration-bg, var(--a-surface-alt-3-subtle));
10
+ border: 2px solid var(--ac-guide-panel-border, var(--a-border-alt-3));
11
+ border-radius: var(--a-border-radius-full);
12
+ overflow: hidden;
13
+ position: absolute;
14
+ width: var(--__ac-guide-panel-guide-size);
15
+ height: var(--__ac-guide-panel-guide-size);
16
+ left: 50%;
17
+ transform: translate(-50%, -50%);
18
+ }
19
+
20
+ .navds-guide svg,
21
+ .navds-guide img {
22
+ height: 100%;
23
+ width: 100%;
24
+ }
25
+
26
+ .navds-guide-panel__content {
27
+ background-color: var(--ac-guide-panel-bg, var(--a-surface-default));
28
+ border: 2px solid var(--ac-guide-panel-border, var(--a-border-alt-3));
29
+ border-radius: var(--a-border-radius-large);
30
+ padding: var(--a-spacing-4);
31
+ padding-top: var(--a-spacing-12);
32
+ }
33
+
34
+ @media (min-width: 480px) {
35
+ .navds-guide-panel {
36
+ --__ac-guide-panel-guide-size: 6.25rem;
37
+ }
38
+
39
+ .navds-guide-panel__content {
40
+ padding: var(--a-spacing-8);
41
+ padding-top: 4.25rem;
42
+ }
43
+ }
44
+
45
+ /* not-poster */
46
+
47
+ .navds-guide-panel--not-poster {
48
+ padding-top: 0;
49
+ padding-left: calc(var(--__ac-guide-panel-guide-size) / 2);
50
+ }
51
+
52
+ .navds-guide-panel--not-poster .navds-guide {
53
+ left: 0;
54
+ top: var(--a-spacing-5);
55
+ transform: none;
56
+ }
57
+
58
+ .navds-guide-panel--not-poster .navds-guide-panel__content {
59
+ padding: var(--a-spacing-4);
60
+ padding-left: var(--a-spacing-10);
61
+ min-height: calc(var(--__ac-guide-panel-guide-size) + var(--a-spacing-5) + var(--a-spacing-5));
62
+ }
63
+
64
+ @media (min-width: 480px) {
65
+ .navds-guide-panel--not-poster {
66
+ --__ac-guide-panel-guide-size: 5rem;
67
+ }
68
+
69
+ .navds-guide-panel--not-poster .navds-guide-panel__content {
70
+ padding: var(--a-spacing-6);
71
+ padding-left: var(--a-spacing-14);
72
+ }
73
+ }
74
+
75
+ /* responsive-poster (on desktop) */
76
+
77
+ @media (min-width: 480px) {
78
+ .navds-guide-panel--responsive-poster {
79
+ --__ac-guide-panel-guide-size: 5rem;
80
+
81
+ padding-top: 0;
82
+ padding-left: calc(var(--__ac-guide-panel-guide-size) / 2);
83
+ }
84
+
85
+ .navds-guide-panel--responsive-poster .navds-guide {
86
+ left: 0;
87
+ top: var(--a-spacing-5);
88
+ transform: none;
89
+ }
90
+
91
+ .navds-guide-panel--responsive-poster .navds-guide-panel__content {
92
+ padding: var(--a-spacing-6);
93
+ padding-left: var(--a-spacing-14);
94
+ min-height: calc(var(--__ac-guide-panel-guide-size) + var(--a-spacing-5) + var(--a-spacing-5));
95
+ }
96
+ }
@@ -0,0 +1,85 @@
1
+ .navds-help-text__button {
2
+ margin: 0;
3
+ border: 0;
4
+ cursor: pointer;
5
+ background-color: transparent;
6
+ border-radius: var(--a-border-radius-full);
7
+ display: flex;
8
+ justify-content: center;
9
+ align-items: center;
10
+ color: var(--ac-help-text-button-color, var(--a-surface-action));
11
+ font-size: 1.25rem;
12
+ padding: calc(var(--a-spacing-1) / 2);
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
+ }
29
+ }
30
+
31
+ .navds-help-text__icon {
32
+ border-radius: var(--a-border-radius-full);
33
+ }
34
+
35
+ .navds-help-text__popover > .navds-popover__arrow {
36
+ background-color: var(--ac-help-text-popover-bg, var(--a-surface-info-subtle));
37
+ }
38
+
39
+ .navds-help-text__popover.navds-popover {
40
+ background-color: var(--ac-help-text-popover-bg, var(--a-surface-info-subtle));
41
+ max-width: min(65ch, calc(100vw - 1.5rem));
42
+
43
+ --ac-popover-border: var(--a-border-info);
44
+ }
45
+
46
+ .navds-help-text__icon--filled {
47
+ display: none;
48
+ }
49
+
50
+ .navds-help-text__button:where(:hover, :focus-visible, [aria-expanded="true"]) > .navds-help-text__icon {
51
+ display: none;
52
+ }
53
+
54
+ .navds-help-text__button:where(:hover, :focus-visible, [aria-expanded="true"]) > .navds-help-text__icon--filled {
55
+ display: inherit;
56
+ color: var(--ac-help-text-button-hover-color, var(--a-surface-action-hover));
57
+ }
58
+
59
+ .navds-help-text__button[aria-expanded="true"] > .navds-help-text__icon--filled {
60
+ color: var(--ac-help-text-button-active-color, var(--a-surface-action-active));
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
+ }
71
+ }
72
+
73
+ @media (forced-colors: active) {
74
+ .navds-help-text__button:where(:hover, :focus-visible, [aria-expanded="true"]) > .navds-help-text__icon {
75
+ display: inherit;
76
+ }
77
+
78
+ .navds-help-text__button:hover > .navds-help-text__icon {
79
+ color: highlight;
80
+ }
81
+
82
+ .navds-help-text__button:where(:hover, :focus-visible, [aria-expanded="true"]) > .navds-help-text__icon--filled {
83
+ display: none;
84
+ }
85
+ }