@digigov/css 1.1.1 → 1.2.0-mobile
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/defaultTheme/accordion.json +8 -0
- package/defaultTheme/brandConfig.json +14 -2
- package/defaultTheme/button.json +16 -3
- package/defaultTheme/card.json +16 -5
- package/defaultTheme/form.json +15 -0
- package/defaultTheme/globals.json +11 -1
- package/defaultTheme/index.js +1 -1
- package/defaultTheme/layout.json +55 -0
- package/defaultTheme/misc.json +20 -0
- package/defaultTheme/panel.json +5 -0
- package/defaultTheme/typography.json +26 -6
- package/dist/base/index.css +3 -3
- package/dist/base.js +1 -1
- package/dist/components.js +1 -1
- package/dist/digigov.css +5 -5
- package/dist/utilities/index.css +1 -1
- package/dist/utilities.js +1 -1
- package/package.json +19 -14
- package/postcss.config.js +1 -0
- package/src/base/base.css +1 -1
- package/src/base/index.css +5 -5
- package/src/components/accordion.css +76 -73
- package/src/components/admin-header.css +7 -24
- package/src/components/admin-layout.css +13 -22
- package/src/components/autocomplete.css +106 -64
- package/src/components/back-to-top.css +7 -8
- package/src/components/blockquote.common.css +14 -0
- package/src/components/blockquote.css +9 -0
- package/src/components/blockquote.native.css +11 -0
- package/src/components/bottom-info.css +3 -2
- package/src/components/breadcrumbs.css +21 -12
- package/src/components/button.common.css +64 -0
- package/src/components/button.css +81 -94
- package/src/components/button.native.css +42 -0
- package/src/components/card.common.css +33 -0
- package/src/components/card.css +77 -64
- package/src/components/card.native.css +29 -0
- package/src/components/checkboxes.css +34 -37
- package/src/components/chip.css +36 -37
- package/src/components/components.css +2 -2
- package/src/components/copy-to-clipboard.css +39 -38
- package/src/components/details.common.css +26 -0
- package/src/components/details.css +17 -18
- package/src/components/details.native.css +26 -0
- package/src/components/dev-theme.css +3 -4
- package/src/components/drawer.css +58 -59
- package/src/components/dropdown.common.css +58 -0
- package/src/components/dropdown.css +81 -68
- package/src/components/dropdown.native.css +58 -0
- package/src/components/experimental.css +18 -18
- package/src/components/fillable.css +6 -6
- package/src/components/filter.css +58 -63
- package/src/components/footer.css +53 -39
- package/src/components/form.common.css +49 -0
- package/src/components/form.css +125 -113
- package/src/components/form.native.css +58 -0
- package/src/components/full-page-background.css +2 -2
- package/src/components/header.common.css +36 -0
- package/src/components/header.css +78 -77
- package/src/components/header.native.css +34 -0
- package/src/components/hidden.css +23 -23
- package/src/components/index.css +48 -47
- package/src/components/kitchensink.css +41 -41
- package/src/components/layout.common.css +8 -0
- package/src/components/layout.css +56 -56
- package/src/components/layout.native.css +5 -0
- package/src/components/loader.css +31 -31
- package/src/components/masthead.css +60 -59
- package/src/components/misc.css +43 -21
- package/src/components/modal.css +28 -21
- package/src/components/nav.common.css +25 -0
- package/src/components/nav.css +96 -89
- package/src/components/nav.native.css +38 -0
- package/src/components/notification-banner.common.css +46 -0
- package/src/components/notification-banner.css +32 -28
- package/src/components/notification-banner.native.css +42 -0
- package/src/components/pagination.css +40 -41
- package/src/components/panel.common.css +30 -0
- package/src/components/panel.css +12 -20
- package/src/components/panel.native.css +20 -0
- package/src/components/phase-banner.common.css +23 -0
- package/src/components/phase-banner.css +15 -14
- package/src/components/phase-banner.native.css +31 -0
- package/src/components/radios.css +33 -30
- package/src/components/skeleton.css +85 -0
- package/src/components/skiplink.css +3 -3
- package/src/components/stack.css +64 -64
- package/src/components/stepnav.css +68 -64
- package/src/components/summary-list.common.css +25 -0
- package/src/components/summary-list.css +59 -47
- package/src/components/summary-list.native.css +27 -0
- package/src/components/svg-icons.common.css +56 -0
- package/src/components/svg-icons.css +79 -75
- package/src/components/svg-icons.native.css +55 -0
- package/src/components/table.css +189 -208
- package/src/components/tabs.css +52 -68
- package/src/components/task-list.css +31 -31
- package/src/components/test.css +7 -0
- package/src/components/timeline.css +19 -18
- package/src/components/typography.common.css +137 -0
- package/src/components/typography.css +159 -218
- package/src/components/typography.native.css +93 -0
- package/src/components/warning-text.common.css +23 -0
- package/src/components/warning-text.css +11 -11
- package/src/components/warning-text.native.css +22 -0
- package/src/index.native.css +17 -0
- package/src/pages/headings/service-heading.js +9 -9
- package/src/pages/index.js +201 -201
- package/src/utilities/grid.css +221 -0
- package/src/utilities/grid.native.css +274 -0
- package/src/utilities/index.css +3 -585
- package/src/utilities/index.native.css +2 -0
- package/src/utilities/print.css +11 -0
- package/src/utilities/spacing.css +2133 -0
- package/src/utilities/utilities.css +1647 -531
- package/tailwind.config.js +2 -2
- package/themes.plugin.js +1 -1
- package/defaultTheme/footer.json +0 -8
- package/src/pages/admin-filtering-data.js +0 -160
- package/src/pages/admin.js +0 -61
- package/src/pages/dropdown.js +0 -249
- package/src/pages/form.js +0 -400
- package/src/pages/pagination.js +0 -124
- package/src/pages/table.js +0 -308
package/src/components/form.css
CHANGED
|
@@ -1,219 +1,231 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
1
|
+
@import './form.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-form {
|
|
4
|
+
}
|
|
5
|
+
.ds-field {
|
|
3
6
|
@apply mb-8 md:mb-10;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
|
|
8
|
+
&.ds-field--error {
|
|
9
|
+
@apply border-l-5 border-error-text px-0 pl-4;
|
|
10
|
+
}
|
|
11
|
+
.ds-fieldset {
|
|
12
|
+
> .ds-field:last-child,
|
|
13
|
+
> .ds-btn:last-child {
|
|
7
14
|
@apply mb-0;
|
|
8
15
|
}
|
|
9
16
|
}
|
|
10
|
-
.
|
|
17
|
+
.ds-fieldset + .ds-btn {
|
|
11
18
|
@apply mt-4 md:mt-6;
|
|
12
19
|
}
|
|
13
20
|
}
|
|
14
|
-
.
|
|
15
|
-
> .
|
|
21
|
+
.ds-fieldset {
|
|
22
|
+
> .ds-field {
|
|
16
23
|
@apply mb-4 md:mb-6;
|
|
17
24
|
}
|
|
18
25
|
}
|
|
19
|
-
.
|
|
26
|
+
.ds-fieldset__legend {
|
|
20
27
|
@apply mb-4 !important;
|
|
21
28
|
}
|
|
22
|
-
.
|
|
23
|
-
@apply
|
|
24
|
-
font-size: var(--label-font-size);
|
|
25
|
-
line-height: var(--label-line-height);
|
|
26
|
-
letter-spacing: var(--label-letter-spacing);
|
|
29
|
+
.ds-label {
|
|
30
|
+
@apply util-label util-label-text;
|
|
27
31
|
}
|
|
28
|
-
.
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
.ds-input {
|
|
33
|
+
border-radius: var(--input-border-radius);
|
|
34
|
+
&.ds-input--width-20-char {
|
|
35
|
+
max-width: 41ex;
|
|
36
|
+
}
|
|
37
|
+
&.ds-input--width-10-char {
|
|
38
|
+
max-width: 23ex;
|
|
39
|
+
}
|
|
40
|
+
&.ds-input--width-5-char {
|
|
41
|
+
max-width: 10.8ex;
|
|
42
|
+
}
|
|
43
|
+
&.ds-input--width-4-char {
|
|
44
|
+
max-width: 9ex;
|
|
45
|
+
}
|
|
46
|
+
&.ds-input--width-3-char {
|
|
47
|
+
max-width: 7.2ex;
|
|
48
|
+
}
|
|
49
|
+
&.ds-input--width-2-char {
|
|
50
|
+
max-width: 5.4ex;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
.ds-textarea {
|
|
54
|
+
border-radius: var(--textarea-border-radius);
|
|
55
|
+
}
|
|
56
|
+
.ds-input,
|
|
57
|
+
.ds-select,
|
|
58
|
+
.ds-textarea {
|
|
31
59
|
@apply md:text-lg text-base w-full p-2 border-2 border-base-content bg-base-100;
|
|
32
60
|
text-indent: 2px;
|
|
33
61
|
&:focus {
|
|
34
62
|
outline: 4px solid var(--color-focus);
|
|
35
63
|
outline-offset: 0;
|
|
36
|
-
-webkit-box-shadow: inset 0 0 0 2px;
|
|
37
64
|
box-shadow: inset 0 0 0 2px;
|
|
38
65
|
}
|
|
39
66
|
}
|
|
40
|
-
|
|
41
|
-
.
|
|
42
|
-
.
|
|
43
|
-
.
|
|
44
|
-
|
|
67
|
+
/* stylelint-disable-next-line digigov/nest-related-rules */
|
|
68
|
+
.ds-input--dense,
|
|
69
|
+
.ds-dense .ds-input,
|
|
70
|
+
.ds-textarea--dense,
|
|
71
|
+
.ds-dense .ds-textarea,
|
|
72
|
+
.ds-select--dense,
|
|
73
|
+
.ds-dense .ds-select,
|
|
74
|
+
.ds-date-input--dense .ds-input,
|
|
75
|
+
.ds-dense .ds-date-input .ds-input {
|
|
45
76
|
@apply p-1;
|
|
46
77
|
&:focus {
|
|
47
|
-
-webkit-box-shadow: inset 0 0 0 1px;
|
|
48
78
|
box-shadow: inset 0 0 0 1px;
|
|
49
79
|
}
|
|
50
80
|
}
|
|
51
|
-
.
|
|
81
|
+
.ds-label-file {
|
|
52
82
|
@apply mb-0;
|
|
53
83
|
}
|
|
54
|
-
.
|
|
84
|
+
.ds-file-input {
|
|
55
85
|
@apply hidden;
|
|
56
86
|
}
|
|
57
|
-
.
|
|
87
|
+
.ds-uploaded-file {
|
|
58
88
|
@apply flex flex-wrap gap-x-4 mb-0;
|
|
59
89
|
}
|
|
60
|
-
.
|
|
90
|
+
.ds-date-input {
|
|
61
91
|
@apply flex flex-wrap gap-y-2;
|
|
62
|
-
&.
|
|
63
|
-
|
|
92
|
+
&.ds-date-input--dense,
|
|
93
|
+
.ds-dense & {
|
|
94
|
+
.ds-date-input__item {
|
|
64
95
|
@apply mr-2;
|
|
65
96
|
}
|
|
66
97
|
}
|
|
67
98
|
}
|
|
68
|
-
.
|
|
99
|
+
.ds-single-character-input {
|
|
69
100
|
@apply flex flex-wrap gap-y-2;
|
|
70
101
|
}
|
|
71
|
-
.
|
|
102
|
+
.ds-select {
|
|
72
103
|
@apply w-auto max-w-full;
|
|
104
|
+
border-radius: var(--select-border-radius);
|
|
73
105
|
}
|
|
74
|
-
.
|
|
75
|
-
.govgr-input--width-20-char {
|
|
76
|
-
max-width: 41ex;
|
|
77
|
-
}
|
|
78
|
-
.govgr-input--width-10-char {
|
|
79
|
-
max-width: 23ex;
|
|
106
|
+
.ds-select__option {
|
|
80
107
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
.govgr-input--width-4-char {
|
|
85
|
-
max-width: 9ex;
|
|
86
|
-
}
|
|
87
|
-
.govgr-input--width-3-char {
|
|
88
|
-
max-width: 7.2ex;
|
|
89
|
-
}
|
|
90
|
-
.govgr-input--width-2-char {
|
|
91
|
-
max-width: 5.4ex;
|
|
92
|
-
}
|
|
93
|
-
.govgr-single-character-input__item {
|
|
94
|
-
max-width: 4.4ex;
|
|
108
|
+
|
|
109
|
+
.ds-single-character-input__item {
|
|
95
110
|
@apply text-center px-0 mr-3;
|
|
111
|
+
max-width: 4.4ex;
|
|
96
112
|
}
|
|
97
|
-
.
|
|
113
|
+
.ds-date-input__item {
|
|
98
114
|
@apply mr-4;
|
|
99
115
|
}
|
|
100
|
-
.
|
|
101
|
-
.
|
|
102
|
-
.
|
|
103
|
-
.
|
|
104
|
-
.
|
|
105
|
-
.
|
|
116
|
+
.ds-\!-width-one-quarter,
|
|
117
|
+
.ds-\!-width-one-third,
|
|
118
|
+
.ds-\!-width-one-half,
|
|
119
|
+
.ds-\!-width-two-thirds,
|
|
120
|
+
.ds-\!-width-three-quarters,
|
|
121
|
+
.ds-\!-width-full {
|
|
106
122
|
width: 100% !important;
|
|
107
123
|
}
|
|
108
124
|
@screen sm {
|
|
109
|
-
.
|
|
125
|
+
.ds-\!-width-one-quarter {
|
|
110
126
|
width: 25% !important;
|
|
111
127
|
}
|
|
112
|
-
.
|
|
128
|
+
.ds-\!-width-one-third {
|
|
113
129
|
width: 33.33% !important;
|
|
114
130
|
}
|
|
115
|
-
.
|
|
131
|
+
.ds-\!-width-one-half {
|
|
116
132
|
width: 50% !important;
|
|
117
133
|
}
|
|
118
|
-
.
|
|
134
|
+
.ds-\!-width-two-thirds {
|
|
119
135
|
width: 66.66% !important;
|
|
120
136
|
}
|
|
121
|
-
.
|
|
137
|
+
.ds-\!-width-three-quarters {
|
|
122
138
|
width: 75% !important;
|
|
123
139
|
}
|
|
124
|
-
.
|
|
140
|
+
.ds-\!-width-full {
|
|
125
141
|
width: 100% !important;
|
|
126
142
|
}
|
|
127
143
|
}
|
|
128
144
|
|
|
129
145
|
/* error handling */
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
@apply border-l-5 border-error px-0 pl-4;
|
|
133
|
-
}
|
|
134
|
-
.govgr-error-message {
|
|
135
|
-
@apply md:text-lg text-base block mb-4 text-error font-semibold;
|
|
146
|
+
.ds-error-message {
|
|
147
|
+
@apply md:text-lg text-base block mb-4 text-error-text font-semibold;
|
|
136
148
|
}
|
|
137
|
-
|
|
138
|
-
|
|
149
|
+
/* stylelint-disable-next-line digigov/nest-related-rules */
|
|
150
|
+
.ds-input--error {
|
|
151
|
+
@apply border-error-text border-3;
|
|
139
152
|
&:focus {
|
|
140
153
|
outline: 4px solid var(--color-focus);
|
|
141
154
|
outline-offset: 0;
|
|
142
|
-
|
|
143
|
-
box-shadow: inset 0 0 0 1px var(--color-error);
|
|
155
|
+
box-shadow: inset 0 0 0 1px var(--color-error-text);
|
|
144
156
|
}
|
|
145
157
|
}
|
|
146
158
|
|
|
147
159
|
/* disabled inputs */
|
|
148
160
|
|
|
149
|
-
.
|
|
150
|
-
.
|
|
151
|
-
.
|
|
152
|
-
.
|
|
153
|
-
.
|
|
154
|
-
.
|
|
155
|
-
.
|
|
156
|
-
.
|
|
157
|
-
.
|
|
161
|
+
.ds-input:disabled,
|
|
162
|
+
.ds-textarea:disabled,
|
|
163
|
+
.ds-select:disabled,
|
|
164
|
+
.ds-checkboxes__input:disabled,
|
|
165
|
+
.ds-checkboxes__input:disabled::before,
|
|
166
|
+
.ds-checkboxes__input:disabled:checked::before,
|
|
167
|
+
.ds-radios__input:disabled,
|
|
168
|
+
.ds-radios__input:disabled::before,
|
|
169
|
+
.ds-radios__input:disabled:checked::before {
|
|
158
170
|
@apply bg-base-300 cursor-not-allowed;
|
|
159
171
|
}
|
|
160
|
-
.
|
|
161
|
-
.
|
|
162
|
-
.
|
|
163
|
-
.
|
|
172
|
+
.ds-input:disabled,
|
|
173
|
+
.ds-textarea:disabled,
|
|
174
|
+
.ds-checkboxes__input:disabled::before,
|
|
175
|
+
.ds-radios__input:disabled::before {
|
|
164
176
|
@apply border-base-700 text-base-800;
|
|
165
177
|
}
|
|
166
|
-
.
|
|
167
|
-
.
|
|
178
|
+
.ds-checkboxes__input:disabled:checked::after,
|
|
179
|
+
.ds-radios__input:disabled:checked::after {
|
|
168
180
|
@apply opacity-40;
|
|
169
181
|
}
|
|
170
|
-
.
|
|
171
|
-
.
|
|
182
|
+
.ds-radios__label--disabled,
|
|
183
|
+
.ds-checkboxes__label--disabled {
|
|
172
184
|
@apply opacity-40;
|
|
173
185
|
}
|
|
174
|
-
.
|
|
186
|
+
.ds-choice-divider-text {
|
|
175
187
|
@apply text-lg text-center min-w-10 w-max mb-4;
|
|
176
188
|
}
|
|
177
189
|
|
|
178
190
|
/* overrides */
|
|
179
191
|
|
|
180
|
-
.
|
|
181
|
-
|
|
182
|
-
@apply mb-4;
|
|
183
|
-
}
|
|
184
|
-
&.govgr-grid {
|
|
192
|
+
.ds-form {
|
|
193
|
+
&.ds-grid {
|
|
185
194
|
@apply grid gap-4;
|
|
186
|
-
.
|
|
195
|
+
.ds-fieldset {
|
|
187
196
|
@apply grid gap-4;
|
|
188
|
-
:not(.
|
|
197
|
+
:not(.ds-field) {
|
|
189
198
|
@apply col-span-12;
|
|
190
199
|
}
|
|
191
200
|
}
|
|
192
|
-
:not(.
|
|
201
|
+
:not(.ds-field) {
|
|
193
202
|
@apply col-span-12;
|
|
194
203
|
}
|
|
195
204
|
}
|
|
205
|
+
.ds-body {
|
|
206
|
+
@apply mb-4;
|
|
207
|
+
}
|
|
196
208
|
}
|
|
197
|
-
.
|
|
198
|
-
.
|
|
199
|
-
.
|
|
200
|
-
.
|
|
201
|
-
.
|
|
202
|
-
.
|
|
203
|
-
.
|
|
204
|
-
.
|
|
209
|
+
.ds-label {
|
|
210
|
+
.ds-heading-xs,
|
|
211
|
+
.ds-heading-sm,
|
|
212
|
+
.ds-heading-md,
|
|
213
|
+
.ds-heading-lg,
|
|
214
|
+
.ds-heading-xl,
|
|
215
|
+
.ds-hint,
|
|
216
|
+
.ds-error-message {
|
|
205
217
|
@apply mb-0;
|
|
206
218
|
}
|
|
207
219
|
}
|
|
208
|
-
.
|
|
209
|
-
.
|
|
220
|
+
.ds-uploaded-file {
|
|
221
|
+
.ds-link {
|
|
210
222
|
@apply h-fit text-lg;
|
|
211
223
|
}
|
|
212
224
|
}
|
|
213
|
-
.
|
|
225
|
+
.ds-dashed--border {
|
|
214
226
|
@apply border-dashed border-2 border-base-300 p-10 w-fit;
|
|
215
227
|
}
|
|
216
228
|
|
|
217
|
-
.
|
|
229
|
+
.ds-image--ratio {
|
|
218
230
|
@apply w-auto h-auto max-h-80 max-w-sm;
|
|
219
231
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@import './typography.native.css';
|
|
2
|
+
@import './form.common.css';
|
|
3
|
+
|
|
4
|
+
.ds-field {
|
|
5
|
+
@apply util-field;
|
|
6
|
+
}
|
|
7
|
+
.ds-field--error {
|
|
8
|
+
@apply util-field--error;
|
|
9
|
+
}
|
|
10
|
+
.ds-label {
|
|
11
|
+
@apply util-label;
|
|
12
|
+
}
|
|
13
|
+
.ds-label__text {
|
|
14
|
+
@apply util-label-text;
|
|
15
|
+
}
|
|
16
|
+
.ds-input {
|
|
17
|
+
@apply util-input;
|
|
18
|
+
/* height: 100; */
|
|
19
|
+
}
|
|
20
|
+
.ds-input--error {
|
|
21
|
+
@apply util-input--error;
|
|
22
|
+
}
|
|
23
|
+
.ds-input--width-20-char {
|
|
24
|
+
@apply util-input--width-20-char;
|
|
25
|
+
}
|
|
26
|
+
.ds-input--width-10-char {
|
|
27
|
+
@apply util-input--width-10-char;
|
|
28
|
+
}
|
|
29
|
+
.ds-input--width-5-char {
|
|
30
|
+
@apply util-input--width-5-char;
|
|
31
|
+
}
|
|
32
|
+
.ds-input--width-4-char {
|
|
33
|
+
@apply util-input--width-4-char;
|
|
34
|
+
}
|
|
35
|
+
.ds-input--width-3-char {
|
|
36
|
+
@apply util-input--width-3-char;
|
|
37
|
+
}
|
|
38
|
+
.ds-input--width-2-char {
|
|
39
|
+
@apply util-input--width-2-char;
|
|
40
|
+
}
|
|
41
|
+
.ds-textarea {
|
|
42
|
+
@apply util-textarea;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
.ds-textarea__wrapper--focus {
|
|
47
|
+
border-width: 4px;
|
|
48
|
+
border-color: var(--color-focus);
|
|
49
|
+
}
|
|
50
|
+
.ds-label {
|
|
51
|
+
@apply mb-0 flex gap-y-3 flex-row flex-wrap;
|
|
52
|
+
}
|
|
53
|
+
.ds-label__text {
|
|
54
|
+
@apply util-label-text;
|
|
55
|
+
letter-spacing: 1;
|
|
56
|
+
font-size: 1rem;
|
|
57
|
+
line-height: 1rem;
|
|
58
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@tailwind utilities;
|
|
2
|
+
|
|
3
|
+
@layer utilities {
|
|
4
|
+
.util-header {
|
|
5
|
+
@apply relative border-b-8 print:border-b-2 border-tertiary print:bg-white;
|
|
6
|
+
border: var(--header-border);
|
|
7
|
+
}
|
|
8
|
+
.util-header__content {
|
|
9
|
+
@apply px-4 py-2 mx-auto max-w-5xl w-full flex justify-between items-center flex-wrap sm:flex-nowrap
|
|
10
|
+
print:px-0 gap-3;
|
|
11
|
+
}
|
|
12
|
+
.util-header__section {
|
|
13
|
+
@apply flex justify-start flex-wrap items-center
|
|
14
|
+
print:gap-1;
|
|
15
|
+
}
|
|
16
|
+
.util-header__logo {
|
|
17
|
+
@apply h-12 print:hidden;
|
|
18
|
+
}
|
|
19
|
+
.util-header__logo-inverted {
|
|
20
|
+
@apply h-12 hidden print:block;
|
|
21
|
+
}
|
|
22
|
+
.util-header__secondary-logo {
|
|
23
|
+
@apply h-10 print:hidden;
|
|
24
|
+
}
|
|
25
|
+
.util-header__title {
|
|
26
|
+
@apply align-middle;
|
|
27
|
+
}
|
|
28
|
+
.util-header__title-text {
|
|
29
|
+
@apply font-bold text-2xl leading-10 tracking-wide no-underline hover:no-underline
|
|
30
|
+
print:text-base-content;
|
|
31
|
+
color: var(--header__title-color);
|
|
32
|
+
}
|
|
33
|
+
.util-header-nav-menu__content {
|
|
34
|
+
@apply flex justify-start items-center print:gap-1;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@import './header.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-header {
|
|
4
|
+
@apply util-header;
|
|
5
|
+
background: var(--header-background);
|
|
6
|
+
border-width: var(--header-border-width);
|
|
4
7
|
}
|
|
5
|
-
.
|
|
6
|
-
@apply
|
|
7
|
-
print:px-0 gap-3;
|
|
8
|
+
.ds-header__content {
|
|
9
|
+
@apply util-header__content;
|
|
8
10
|
}
|
|
9
|
-
.
|
|
10
|
-
@apply
|
|
11
|
-
|
|
11
|
+
.ds-header__section {
|
|
12
|
+
@apply util-header__section gap-x-4 gap-y-2;
|
|
13
|
+
&:last-child:not(:first-child) {
|
|
14
|
+
@apply flex-1 justify-end sm:flex-none sm:justify-start;
|
|
15
|
+
}
|
|
12
16
|
}
|
|
13
|
-
.
|
|
17
|
+
.ds-header__logo {
|
|
18
|
+
@apply util-header__logo;
|
|
14
19
|
print-color-adjust: exact !important;
|
|
15
20
|
-webkit-print-color-adjust: exact !important;
|
|
16
|
-
@apply h-12 print:hidden;
|
|
17
21
|
}
|
|
18
|
-
.
|
|
19
|
-
@apply
|
|
22
|
+
.ds-header__logo-inverted {
|
|
23
|
+
@apply util-header__logo-inverted;
|
|
20
24
|
}
|
|
21
|
-
.
|
|
22
|
-
@apply
|
|
25
|
+
.ds-header__secondary-logo {
|
|
26
|
+
@apply util-header__secondary-logo;
|
|
23
27
|
}
|
|
24
|
-
.
|
|
25
|
-
box-shadow:
|
|
26
|
-
-webkit-box-shadow: 0px 0px 0px 4px var(--color-focus);
|
|
27
|
-
-moz-box-shadow: 0px 0px 0px 4px var(--color-focus);
|
|
28
|
+
.ds-header__link:focus {
|
|
29
|
+
box-shadow: 0 0 0 4px var(--color-focus);
|
|
28
30
|
outline: none;
|
|
29
31
|
text-decoration: none;
|
|
30
32
|
}
|
|
31
|
-
.
|
|
32
|
-
@apply
|
|
33
|
-
w-auto align-middle hover:no-underline
|
|
34
|
-
print:text-base-content;
|
|
33
|
+
.ds-header__title {
|
|
34
|
+
@apply util-header__title util-header__title-text w-auto;
|
|
35
35
|
&:hover {
|
|
36
|
-
@apply text-white;
|
|
36
|
+
/* @apply text-white; */
|
|
37
|
+
color: var(--header__title-color-hover);
|
|
37
38
|
}
|
|
38
39
|
&:focus {
|
|
39
40
|
text-decoration: none;
|
|
@@ -41,93 +42,93 @@
|
|
|
41
42
|
outline-offset: 4px;
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
|
-
.
|
|
45
|
-
@apply
|
|
45
|
+
.ds-header-nav-menu__content {
|
|
46
|
+
@apply util-header-nav-menu__content gap-x-4 gap-y-2;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
/* overrides */
|
|
49
50
|
|
|
50
|
-
.
|
|
51
|
-
.
|
|
52
|
-
.
|
|
53
|
-
> .
|
|
54
|
-
> .
|
|
55
|
-
@apply
|
|
51
|
+
.ds-header {
|
|
52
|
+
.ds-header__content,
|
|
53
|
+
.ds-header__section {
|
|
54
|
+
> .ds-link,
|
|
55
|
+
> .ds-dropdown .ds-dropdown__button.ds-link {
|
|
56
|
+
@apply focus:text-link-active print:text-base-content;
|
|
57
|
+
color: var(--color-header-text);
|
|
58
|
+
}
|
|
59
|
+
> .ds-skeleton {
|
|
60
|
+
@apply bg-primary-100 w-80 max-w-xs;
|
|
61
|
+
&.ds-skeleton--animate {
|
|
62
|
+
&::after {
|
|
63
|
+
background: linear-gradient(
|
|
64
|
+
90deg,
|
|
65
|
+
transparent,
|
|
66
|
+
rgba(255, 255, 255, 0.05),
|
|
67
|
+
transparent
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
56
71
|
}
|
|
57
72
|
}
|
|
58
|
-
.
|
|
73
|
+
.ds-dropdown {
|
|
59
74
|
@apply print:hidden;
|
|
60
75
|
}
|
|
61
|
-
.
|
|
76
|
+
.ds-dropdown__button {
|
|
62
77
|
@apply sm:w-max;
|
|
63
78
|
}
|
|
64
|
-
.
|
|
65
|
-
.govgr-svg-icon {
|
|
66
|
-
fill: var(--color-white);
|
|
67
|
-
}
|
|
79
|
+
.ds-link {
|
|
68
80
|
&:hover {
|
|
69
|
-
.
|
|
70
|
-
fill: var(--color-
|
|
81
|
+
.ds-svg-icon {
|
|
82
|
+
fill: var(--color-header-text-hover);
|
|
71
83
|
}
|
|
72
84
|
}
|
|
73
85
|
&:focus {
|
|
74
|
-
.
|
|
86
|
+
.ds-svg-icon {
|
|
75
87
|
fill: var(--color-link-active);
|
|
76
88
|
}
|
|
77
89
|
}
|
|
78
|
-
|
|
79
|
-
.govgr-phase-banner__text {
|
|
80
|
-
@apply text-white print:text-base-content;
|
|
81
|
-
}
|
|
82
|
-
.govgr-link {
|
|
83
|
-
.govgr-svg-icon {
|
|
90
|
+
.ds-svg-icon {
|
|
84
91
|
fill: var(--color-white);
|
|
85
92
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
&:focus {
|
|
92
|
-
.govgr-svg-icon {
|
|
93
|
-
fill: var(--color-link-active);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
93
|
+
}
|
|
94
|
+
.ds-phase-banner__text {
|
|
95
|
+
@apply print:text-base-content;
|
|
96
|
+
color: var(--color-header-text);
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
|
-
.
|
|
99
|
-
.
|
|
99
|
+
.ds-header__section {
|
|
100
|
+
.ds-phase-banner {
|
|
100
101
|
@apply mb-0;
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
|
-
.
|
|
104
|
-
.
|
|
105
|
-
.
|
|
106
|
-
> .
|
|
107
|
-
fill: var(--color-white);
|
|
104
|
+
.ds-header-nav-menu__content,
|
|
105
|
+
.ds-header__content,
|
|
106
|
+
.ds-header__section {
|
|
107
|
+
> .ds-svg-icon--burger {
|
|
108
108
|
@apply float-right focus:bg-focus;
|
|
109
|
+
fill: var(--color-header-text);
|
|
109
110
|
}
|
|
110
|
-
> .
|
|
111
|
+
> .ds-close-btn {
|
|
111
112
|
@apply sm:hidden;
|
|
112
|
-
.
|
|
113
|
-
fill: var(--color-
|
|
113
|
+
.ds-svg-icon--close {
|
|
114
|
+
fill: var(--color-header-text) !important;
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
|
-
> .
|
|
117
|
-
> .
|
|
118
|
-
> .
|
|
119
|
-
> .
|
|
117
|
+
> .ds-nav__list {
|
|
118
|
+
> .ds-nav__list-item {
|
|
119
|
+
> .ds-nav__list-item-link,
|
|
120
|
+
> .ds-nav__list-item-btn {
|
|
120
121
|
&:not(:focus) {
|
|
121
|
-
|
|
122
|
+
color: var(--color-header-text);
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
|
-
> .
|
|
125
|
-
> .
|
|
125
|
+
> .ds-nav__list-item-link--active,
|
|
126
|
+
> .ds-nav__list-item-btn--active {
|
|
126
127
|
&:not(:focus) {
|
|
127
|
-
|
|
128
|
+
color: var(--color-header-text) !important;
|
|
128
129
|
}
|
|
129
|
-
.
|
|
130
|
-
fill: var(--color-
|
|
130
|
+
.ds-svg-icon {
|
|
131
|
+
fill: var(--color-header-text);
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@import './header.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-header {
|
|
4
|
+
@apply util-header;
|
|
5
|
+
background-color: var(--header-background);
|
|
6
|
+
border-top-width: var(--header-border-top-width);
|
|
7
|
+
border-bottom-width: var(--header-border-bottom-width);
|
|
8
|
+
border-left-width: var(--header-border-left-width);
|
|
9
|
+
border-right-width: var(--header-border-right-width);
|
|
10
|
+
}
|
|
11
|
+
.ds-header__content {
|
|
12
|
+
@apply util-header__content;
|
|
13
|
+
}
|
|
14
|
+
.ds-header__section {
|
|
15
|
+
@apply util-header__section flex-row;
|
|
16
|
+
}
|
|
17
|
+
.ds-header__logo {
|
|
18
|
+
@apply util-header__logo;
|
|
19
|
+
}
|
|
20
|
+
.ds-header__logo-inverted {
|
|
21
|
+
@apply util-header__logo-inverted;
|
|
22
|
+
}
|
|
23
|
+
.ds-header__secondary-logo {
|
|
24
|
+
@apply util-header__secondary-logo;
|
|
25
|
+
}
|
|
26
|
+
.ds-header__title {
|
|
27
|
+
@apply util-header__title;
|
|
28
|
+
}
|
|
29
|
+
.ds-header__title__text {
|
|
30
|
+
@apply util-header__title-text ;
|
|
31
|
+
}
|
|
32
|
+
.ds-header-nav-menu__content {
|
|
33
|
+
@apply util-header-nav-menu__content;
|
|
34
|
+
}
|