@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
|
@@ -1,280 +1,206 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
margin-bottom: var(--heading-xl-margin-bottom);
|
|
6
|
-
font-weight: var(--heading-xl-font-weight);
|
|
1
|
+
@import './typography.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-heading-xl {
|
|
4
|
+
@apply util-heading-xl util-heading-xl-text;
|
|
7
5
|
letter-spacing: var(--heading-xl-letter-spacing);
|
|
8
6
|
}
|
|
9
|
-
.
|
|
10
|
-
@apply mx-0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
.ds-heading-lg {
|
|
8
|
+
@apply util-heading-lg-text mx-0;
|
|
9
|
+
letter-spacing: var(--heading-lg-letter-spacing);
|
|
10
|
+
}
|
|
11
|
+
.ds-heading-md {
|
|
12
|
+
@apply util-heading-md-text mx-0;
|
|
13
|
+
letter-spacing: var(--heading-lg-letter-spacing);
|
|
14
|
+
}
|
|
15
|
+
.ds-heading-sm {
|
|
16
|
+
@apply util-heading-sm-text mx-0;
|
|
15
17
|
letter-spacing: var(--heading-lg-letter-spacing);
|
|
16
18
|
}
|
|
17
|
-
.
|
|
18
|
-
@apply mx-0;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
letter-spacing: var(--heading-md-letter-spacing);
|
|
24
|
-
}
|
|
25
|
-
.govgr-heading-sm {
|
|
26
|
-
@apply mx-0;
|
|
27
|
-
font-size: var(--heading-sm-font-size);
|
|
28
|
-
line-height: var(--heading-sm-line-height);
|
|
29
|
-
margin-bottom: var(--heading-sm-margin-bottom);
|
|
30
|
-
font-weight: var(--heading-sm-font-weight);
|
|
31
|
-
letter-spacing: var(--heading-sm-letter-spacing);
|
|
32
|
-
}
|
|
33
|
-
.govgr-heading-xs {
|
|
34
|
-
@apply mx-0;
|
|
35
|
-
font-size: var(--heading-xs-font-size);
|
|
36
|
-
line-height: var(--heading-xs-line-height);
|
|
37
|
-
margin-bottom: var(--heading-xs-margin-bottom);
|
|
38
|
-
font-weight: var(--heading-xs-font-weight);
|
|
39
|
-
letter-spacing: var(--heading-xs-letter-spacing);
|
|
40
|
-
}
|
|
41
|
-
.govgr-heading--break-words {
|
|
19
|
+
.ds-heading-xs {
|
|
20
|
+
@apply util-heading-xs-text mx-0;
|
|
21
|
+
letter-spacing: var(--heading-lg-letter-spacing);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ds-heading--break-words {
|
|
42
25
|
@apply break-words;
|
|
43
26
|
}
|
|
44
|
-
.
|
|
45
|
-
@apply
|
|
46
|
-
color: var(--caption-xl-color);
|
|
47
|
-
font-size: var(--caption-xl-font-size);
|
|
48
|
-
line-height: var(--caption-xl-line-height);
|
|
49
|
-
margin-bottom: var(--caption-xl-margin-bottom);
|
|
50
|
-
font-weight: var(--caption-xl-font-weight);
|
|
27
|
+
.ds-caption-xl {
|
|
28
|
+
@apply util-caption-xl util-caption-xl-text block;
|
|
51
29
|
letter-spacing: var(--heading-xl-letter-spacing);
|
|
52
30
|
}
|
|
53
|
-
.
|
|
54
|
-
@apply
|
|
55
|
-
|
|
56
|
-
font-size: var(--caption-lg-font-size);
|
|
57
|
-
line-height: var(--caption-lg-line-height);
|
|
58
|
-
margin-bottom: var(--caption-lg-margin-bottom);
|
|
59
|
-
font-weight: var(--caption-lg-font-weight);
|
|
60
|
-
letter-spacing: var(--caption-lg-letter-spacing);
|
|
61
|
-
}
|
|
62
|
-
.govgr-caption-md {
|
|
63
|
-
@apply block mx-0 font-normal;
|
|
64
|
-
color: var(--caption-md-color);
|
|
65
|
-
font-size: var(--caption-md-font-size);
|
|
66
|
-
line-height: var(--caption-md-line-height);
|
|
67
|
-
margin-bottom: var(--caption-md-margin-bottom);
|
|
68
|
-
font-weight: var(--caption-md-font-weight);
|
|
69
|
-
letter-spacing: var(--caption-md-letter-spacing);
|
|
70
|
-
}
|
|
71
|
-
.govgr-body {
|
|
72
|
-
font-size: var(--body-font-size);
|
|
73
|
-
line-height: var(--body-line-height);
|
|
74
|
-
margin-bottom: var(--body-margin-bottom);
|
|
75
|
-
color: var(--body-color);
|
|
76
|
-
letter-spacing: var(--body-letter-spacing);
|
|
77
|
-
}
|
|
78
|
-
.govgr-body-lg {
|
|
79
|
-
font-size: var(--body-lg-font-size);
|
|
80
|
-
line-height: var(--body-lg-line-height);
|
|
31
|
+
.ds-caption-lg {
|
|
32
|
+
@apply util-caption-lg util-caption-lg-text block;
|
|
33
|
+
letter-spacing: var(--heading-xl-letter-spacing);
|
|
81
34
|
}
|
|
82
|
-
.
|
|
83
|
-
|
|
84
|
-
|
|
35
|
+
.ds-caption-md {
|
|
36
|
+
@apply util-caption-md util-caption-md-text block;
|
|
37
|
+
letter-spacing: var(--heading-xl-letter-spacing);
|
|
85
38
|
}
|
|
86
|
-
.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
39
|
+
.ds-hint {
|
|
40
|
+
@apply util-hint-text;
|
|
41
|
+
&.ds-hint--lg {
|
|
42
|
+
@apply util-hint-lg-text;
|
|
43
|
+
}
|
|
44
|
+
&.ds-hint--sm {
|
|
45
|
+
@apply util-hint-sm-text;
|
|
46
|
+
}
|
|
47
|
+
&.ds-hint--break-words {
|
|
48
|
+
@apply break-words;
|
|
49
|
+
}
|
|
92
50
|
}
|
|
93
|
-
.
|
|
94
|
-
|
|
51
|
+
.ds-background-dark,
|
|
52
|
+
.ds-masthead--primary {
|
|
53
|
+
.ds-hint {
|
|
95
54
|
@apply opacity-70 text-white print:text-base-content;
|
|
96
55
|
}
|
|
97
56
|
}
|
|
98
|
-
.
|
|
57
|
+
.ds-code {
|
|
99
58
|
@apply text-sm sm:text-base bg-base-100;
|
|
59
|
+
&.ds-code--attr {
|
|
60
|
+
@apply text-info;
|
|
61
|
+
}
|
|
62
|
+
&.ds-code--string {
|
|
63
|
+
@apply text-success;
|
|
64
|
+
}
|
|
65
|
+
&.ds-code--keyword {
|
|
66
|
+
@apply text-warning;
|
|
67
|
+
}
|
|
68
|
+
&.ds-code--name {
|
|
69
|
+
@apply text-tertiary;
|
|
70
|
+
}
|
|
100
71
|
}
|
|
101
|
-
.
|
|
102
|
-
@apply text-info;
|
|
103
|
-
}
|
|
104
|
-
.govgr-code--string {
|
|
105
|
-
@apply text-success;
|
|
106
|
-
}
|
|
107
|
-
.govgr-code--keyword {
|
|
108
|
-
@apply text-warning;
|
|
109
|
-
}
|
|
110
|
-
.govgr-code--name {
|
|
111
|
-
@apply text-tertiary;
|
|
112
|
-
}
|
|
113
|
-
.govgr-\!-font-size-14 {
|
|
72
|
+
.ds-\!-font-size-14 {
|
|
114
73
|
@apply text-xs md:text-sm !important;
|
|
115
74
|
}
|
|
116
|
-
.
|
|
75
|
+
.ds-\!-font-size-16 {
|
|
117
76
|
@apply text-sm md:text-base !important;
|
|
118
77
|
}
|
|
119
|
-
.
|
|
78
|
+
.ds-\!-font-size-19 {
|
|
120
79
|
@apply text-base md:text-lg !important;
|
|
121
80
|
}
|
|
122
|
-
.
|
|
81
|
+
.ds-\!-font-size-24 {
|
|
123
82
|
@apply text-xl md:text-2xl !important;
|
|
124
83
|
}
|
|
125
|
-
.
|
|
84
|
+
.ds-\!-font-size-30 {
|
|
126
85
|
@apply text-2xl md:text-3xl !important;
|
|
127
86
|
}
|
|
128
|
-
.
|
|
87
|
+
.ds-\!-font-size-36 {
|
|
129
88
|
@apply text-3xl md:text-4xl !important;
|
|
130
89
|
}
|
|
131
|
-
.
|
|
90
|
+
.ds-\!-font-size-48 {
|
|
132
91
|
@apply text-4xl md:text-5xl !important;
|
|
133
92
|
}
|
|
134
|
-
.
|
|
93
|
+
.ds-\!-font-size-72 {
|
|
135
94
|
@apply text-6xl md:text-7xl !important;
|
|
136
95
|
}
|
|
137
|
-
.
|
|
96
|
+
.ds-\!-font-weight-regular {
|
|
138
97
|
@apply font-normal !important;
|
|
139
98
|
}
|
|
140
|
-
.
|
|
99
|
+
.ds-\!-font-weight-bold {
|
|
141
100
|
@apply font-bold !important;
|
|
142
101
|
}
|
|
143
|
-
.
|
|
102
|
+
.ds-list {
|
|
144
103
|
@apply list-none list-outside mt-4;
|
|
104
|
+
@apply md:mb-8 mb-4 text-base-content;
|
|
145
105
|
font-size: var(--list-font-size);
|
|
146
106
|
line-height: var(--list-line-height);
|
|
147
|
-
|
|
148
|
-
|
|
107
|
+
&.ds-list--bullet {
|
|
108
|
+
@apply list-disc list-outside pl-4;
|
|
109
|
+
}
|
|
110
|
+
&.ds-list--number {
|
|
111
|
+
@apply list-decimal list-outside pl-6;
|
|
112
|
+
}
|
|
113
|
+
&.ds-list--horizontal {
|
|
114
|
+
@apply flex flex-wrap gap-x-6 gap-y-3;
|
|
115
|
+
&.ds-list--spaced {
|
|
116
|
+
@apply gap-x-10 gap-y-5;
|
|
117
|
+
}
|
|
118
|
+
.ds-list__item {
|
|
119
|
+
@apply w-full sm:w-auto;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
.ds-list__item {
|
|
149
123
|
@apply mb-2;
|
|
150
124
|
&:last-child {
|
|
151
125
|
@apply mb-0;
|
|
152
126
|
}
|
|
153
127
|
}
|
|
154
128
|
}
|
|
155
|
-
.
|
|
129
|
+
.ds-list__item > .ds-list--bullet:nth-child(1) {
|
|
156
130
|
list-style: circle inside none;
|
|
157
131
|
}
|
|
158
|
-
.
|
|
159
|
-
> .govgr-list
|
|
160
|
-
> .govgr-list__item
|
|
161
|
-
> .govgr-list--bullet:nth-child(1) {
|
|
132
|
+
.ds-list__item > .ds-list > .ds-list__item > .ds-list--bullet:nth-child(1) {
|
|
162
133
|
@apply list-disc;
|
|
163
134
|
}
|
|
164
|
-
.
|
|
165
|
-
> .
|
|
166
|
-
> .
|
|
135
|
+
.ds-list__item
|
|
136
|
+
> .ds-list:not(.ds-list--bullet, .ds-list--number):nth-child(1)
|
|
137
|
+
> .ds-list__item {
|
|
167
138
|
@apply pl-10;
|
|
168
139
|
}
|
|
169
|
-
.
|
|
140
|
+
.ds-list__item > .ds-list {
|
|
170
141
|
@apply mb-0 mt-2;
|
|
171
142
|
}
|
|
172
|
-
.
|
|
173
|
-
@apply list-disc list-outside pl-4;
|
|
174
|
-
}
|
|
175
|
-
.govgr-list--number {
|
|
176
|
-
@apply list-decimal list-outside pl-6;
|
|
177
|
-
}
|
|
178
|
-
.govgr-list--spaced:not(.govgr-list--horizontal) > .govgr-list__item {
|
|
143
|
+
.ds-list--spaced:not(.ds-list--horizontal) > .ds-list__item {
|
|
179
144
|
@apply mb-4;
|
|
180
145
|
&:last-child {
|
|
181
146
|
@apply mb-0;
|
|
182
147
|
}
|
|
183
148
|
}
|
|
184
|
-
.govgr-list--horizontal {
|
|
185
|
-
@apply flex flex-wrap gap-x-6 gap-y-3;
|
|
186
|
-
.govgr-list__item {
|
|
187
|
-
@apply w-full sm:w-auto;
|
|
188
|
-
}
|
|
189
|
-
&.govgr-list--spaced {
|
|
190
|
-
@apply gap-x-10 gap-y-5;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
149
|
@media (min-width: 768px) {
|
|
194
|
-
.
|
|
150
|
+
.ds-list--col-2 {
|
|
195
151
|
column-count: 2;
|
|
196
152
|
}
|
|
197
|
-
.
|
|
153
|
+
.ds-list--col-3 {
|
|
198
154
|
column-count: 2;
|
|
199
155
|
}
|
|
200
156
|
}
|
|
201
|
-
.
|
|
202
|
-
@apply
|
|
203
|
-
}
|
|
204
|
-
.govgr-blockquote {
|
|
205
|
-
@apply mb-4 mt-8 md:mb-8 p-4 border-l-8 border-base-500 text-base-content;
|
|
206
|
-
font-size: var(--blockquote-font-size);
|
|
207
|
-
line-height: var(--blockquote-line-height);
|
|
208
|
-
&.govgr-blockquote--dense, .govgr-dense & {
|
|
209
|
-
@apply mt-3 md:mb-6 p-3 border-l-6;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
.govgr-body {
|
|
213
|
-
font-size: var(--body-font-size);
|
|
214
|
-
line-height: var(--body-line-height);
|
|
215
|
-
margin-bottom: var(--body-margin-bottom);
|
|
216
|
-
color: var(--body-color);
|
|
157
|
+
.ds-body {
|
|
158
|
+
@apply util-body-text;
|
|
217
159
|
letter-spacing: var(--body-letter-spacing);
|
|
160
|
+
&.ds-body--lg {
|
|
161
|
+
@apply util-body-lg-text;
|
|
162
|
+
}
|
|
163
|
+
&.ds-body--sm {
|
|
164
|
+
@apply util-body-sm-text;
|
|
165
|
+
}
|
|
166
|
+
.ds-code {
|
|
167
|
+
@apply p-2 bg-base-200;
|
|
168
|
+
}
|
|
218
169
|
}
|
|
219
|
-
.govgr-body-lg {
|
|
220
|
-
font-size: var(--body-lg-font-size);
|
|
221
|
-
line-height: var(--body-lg-line-height);
|
|
222
|
-
}
|
|
223
|
-
.govgr-body-sm {
|
|
224
|
-
font-size: var(--body-sm-font-size);
|
|
225
|
-
line-height: var(--body-sm-line-height);
|
|
226
|
-
}
|
|
227
|
-
.govgr-hint {
|
|
228
|
-
font-size: var(--hint-font-size);
|
|
229
|
-
line-height: var(--hint-line-height);
|
|
230
|
-
margin-bottom: var(--hint-margin-bottom);
|
|
231
|
-
color: var(--hint-color);
|
|
232
|
-
letter-spacing: var(--hint-letter-spacing);
|
|
233
|
-
}
|
|
234
|
-
.govgr-hint--break-words {
|
|
235
|
-
@apply break-words;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
170
|
|
|
239
|
-
.
|
|
240
|
-
@apply
|
|
241
|
-
color: var(--link-color);
|
|
242
|
-
padding: var(--link-padding);
|
|
243
|
-
font-size: var(--link-font-size);
|
|
244
|
-
line-height: var(--link-line-height);
|
|
171
|
+
.ds-link {
|
|
172
|
+
@apply util-link util-link-text cursor-pointer;
|
|
245
173
|
letter-spacing: var(--link-letter-spacing);
|
|
246
174
|
&:hover {
|
|
247
175
|
text-decoration-thickness: 2px;
|
|
248
176
|
color: var(--link-color-hover);
|
|
249
177
|
}
|
|
250
178
|
&:focus {
|
|
251
|
-
color: var(--link-color-active);
|
|
252
|
-
background-color: var(--color-focus);
|
|
253
179
|
box-shadow:
|
|
254
180
|
0 -2px var(--color-focus),
|
|
255
181
|
0 4px var(--color-base-content);
|
|
182
|
+
|
|
256
183
|
text-decoration: none !important;
|
|
257
184
|
outline: none;
|
|
258
185
|
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
.
|
|
263
|
-
.
|
|
264
|
-
.
|
|
265
|
-
.
|
|
266
|
-
|
|
186
|
+
&.ds-link--no-underline {
|
|
187
|
+
@apply no-underline hover:underline;
|
|
188
|
+
}
|
|
189
|
+
.ds-heading-xl &,
|
|
190
|
+
.ds-heading-lg &,
|
|
191
|
+
.ds-heading-md &,
|
|
192
|
+
.ds-heading-sm &,
|
|
193
|
+
.ds-body &,
|
|
194
|
+
.ds-hint &,
|
|
195
|
+
.ds-footer__list & {
|
|
267
196
|
font-size: inherit;
|
|
268
197
|
}
|
|
269
198
|
}
|
|
270
|
-
.govgr-link--no-underline {
|
|
271
|
-
@apply no-underline hover:underline;
|
|
272
|
-
}
|
|
273
199
|
|
|
274
|
-
.
|
|
200
|
+
.ds-back-link {
|
|
201
|
+
@apply w-fit text-base-content underline flex items-center mb-4 cursor-pointer;
|
|
275
202
|
font-size: var(--back-link-font-size);
|
|
276
203
|
letter-spacing: var(--back-link-letter-spacing);
|
|
277
|
-
@apply w-fit text-base-content underline flex items-center mb-4 cursor-pointer;
|
|
278
204
|
&:hover {
|
|
279
205
|
text-decoration-thickness: 2px;
|
|
280
206
|
}
|
|
@@ -288,73 +214,88 @@
|
|
|
288
214
|
}
|
|
289
215
|
}
|
|
290
216
|
|
|
291
|
-
.
|
|
292
|
-
.govgr-link {
|
|
293
|
-
@apply bg-base-content p-1 text-focus underline m-1;
|
|
294
|
-
}
|
|
217
|
+
.ds-highlight-links {
|
|
295
218
|
&.dark {
|
|
296
|
-
.
|
|
219
|
+
.ds-link {
|
|
297
220
|
@apply bg-base-300;
|
|
298
221
|
}
|
|
299
222
|
}
|
|
223
|
+
.ds-link {
|
|
224
|
+
@apply bg-base-content p-1 text-focus underline m-1;
|
|
225
|
+
}
|
|
300
226
|
}
|
|
301
|
-
.
|
|
227
|
+
.ds-visually-hidden {
|
|
302
228
|
@apply absolute m-0 p-0 overflow-hidden border-0 whitespace-nowrap !important;
|
|
303
229
|
width: 1px !important;
|
|
304
230
|
height: 1px !important;
|
|
305
231
|
clip: rect(0 0 0 0) !important;
|
|
306
|
-
-webkit-clip-path: inset(50%) !important;
|
|
307
232
|
clip-path: inset(50%) !important;
|
|
308
233
|
}
|
|
309
234
|
@media print {
|
|
310
|
-
.
|
|
235
|
+
.ds-body .ds-link[href^='#']::after {
|
|
311
236
|
display: none;
|
|
312
237
|
}
|
|
313
|
-
.
|
|
238
|
+
.ds-link[href^="http://"]:after, .ds-link[href^="https://"]:after
|
|
314
239
|
{
|
|
315
|
-
content:
|
|
240
|
+
content: ' (' attr(href) ')';
|
|
316
241
|
font-size: 80%;
|
|
317
242
|
}
|
|
318
|
-
.
|
|
319
|
-
|
|
243
|
+
.ds-body {
|
|
244
|
+
.ds-link {
|
|
245
|
+
word-wrap: break-word;
|
|
246
|
+
}
|
|
320
247
|
}
|
|
321
|
-
.
|
|
248
|
+
.ds-link {
|
|
322
249
|
@apply text-base-content;
|
|
323
250
|
}
|
|
324
251
|
}
|
|
325
252
|
|
|
326
253
|
/* overrides */
|
|
327
254
|
|
|
328
|
-
.
|
|
329
|
-
.
|
|
330
|
-
fill: var(--color
|
|
255
|
+
.ds-hint {
|
|
256
|
+
.ds-svg-icon {
|
|
257
|
+
fill: var(--hint-color);
|
|
331
258
|
}
|
|
259
|
+
}
|
|
260
|
+
.ds-link {
|
|
332
261
|
&:hover {
|
|
333
|
-
.
|
|
262
|
+
.ds-svg-icon {
|
|
334
263
|
fill: var(--color-link-hover);
|
|
335
264
|
}
|
|
336
265
|
}
|
|
337
266
|
&:focus {
|
|
338
|
-
.
|
|
267
|
+
.ds-svg-icon {
|
|
339
268
|
fill: var(--color-link-active);
|
|
340
269
|
}
|
|
341
270
|
}
|
|
271
|
+
.ds-svg-icon {
|
|
272
|
+
fill: var(--color-link);
|
|
273
|
+
}
|
|
342
274
|
}
|
|
343
|
-
button.
|
|
344
|
-
.
|
|
275
|
+
button.ds-link {
|
|
276
|
+
.ds-svg-icon {
|
|
345
277
|
@apply ml-1;
|
|
346
278
|
}
|
|
347
279
|
}
|
|
348
|
-
.
|
|
349
|
-
.
|
|
350
|
-
fill: var(--color-base-content);
|
|
280
|
+
.ds-back-link {
|
|
281
|
+
.ds-svg-icon--caret {
|
|
351
282
|
@apply md:w-4 md:h-4 w-3 h-3 inline-block mr-2;
|
|
283
|
+
fill: var(--color-base-content);
|
|
352
284
|
}
|
|
353
285
|
}
|
|
354
|
-
|
|
355
|
-
.govgr-code-block__container {
|
|
286
|
+
.ds-code-block__container {
|
|
356
287
|
@apply p-4 bg-base-200 border border-base-300 w-full;
|
|
288
|
+
& > pre {
|
|
289
|
+
@apply bg-transparent p-0 m-0;
|
|
290
|
+
font: inherit;
|
|
291
|
+
color: inherit;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
.ds-table__cell {
|
|
295
|
+
& > code {
|
|
296
|
+
@apply border-none;
|
|
297
|
+
}
|
|
357
298
|
}
|
|
358
|
-
.
|
|
299
|
+
.ds-code-block__content {
|
|
359
300
|
@apply text-sm sm:text-base;
|
|
360
301
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
@import './typography.common.css';
|
|
2
|
+
|
|
3
|
+
/* Heading */
|
|
4
|
+
.ds-heading-xl {
|
|
5
|
+
@apply util-heading-xl;
|
|
6
|
+
}
|
|
7
|
+
.ds-heading-xl {
|
|
8
|
+
@apply util-heading-xl;
|
|
9
|
+
}
|
|
10
|
+
.ds-heading-xl {
|
|
11
|
+
@apply util-heading-xl;
|
|
12
|
+
}
|
|
13
|
+
.ds-heading-xl__text {
|
|
14
|
+
@apply util-heading-xl-text;
|
|
15
|
+
}
|
|
16
|
+
.ds-heading-lg__text {
|
|
17
|
+
@apply util-heading-lg-text;
|
|
18
|
+
}
|
|
19
|
+
.ds-heading-md__text {
|
|
20
|
+
@apply util-heading-md-text;
|
|
21
|
+
}
|
|
22
|
+
.ds-heading-sm__text {
|
|
23
|
+
@apply util-heading-sm-text;
|
|
24
|
+
}
|
|
25
|
+
.ds-heading-xs__text {
|
|
26
|
+
@apply util-heading-xs-text;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Paragraph */
|
|
30
|
+
.ds-body__text {
|
|
31
|
+
@apply util-body-text;
|
|
32
|
+
}
|
|
33
|
+
.ds-body--lg__text {
|
|
34
|
+
@apply util-body-lg-text;
|
|
35
|
+
}
|
|
36
|
+
.ds-body--sm__text {
|
|
37
|
+
@apply util-body-sm-text;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Hint */
|
|
41
|
+
.ds-hint {
|
|
42
|
+
@apply util-hint;
|
|
43
|
+
}
|
|
44
|
+
.ds-hint__text {
|
|
45
|
+
@apply util-hint-text;
|
|
46
|
+
}
|
|
47
|
+
.ds-hint--lg__text {
|
|
48
|
+
@apply util-hint-lg-text;
|
|
49
|
+
}
|
|
50
|
+
.ds-hint--sm__text {
|
|
51
|
+
@apply util-hint-sm-text;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Link */
|
|
55
|
+
.ds-link {
|
|
56
|
+
@apply util-link focus:border-b-4 border-b-base-content;
|
|
57
|
+
}
|
|
58
|
+
.ds-link__text {
|
|
59
|
+
@apply util-link-text pt-4 pb-1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* HeadingCaption */
|
|
63
|
+
.ds-caption-xl {
|
|
64
|
+
@apply util-caption-xl;
|
|
65
|
+
}
|
|
66
|
+
.ds-caption-xl__text {
|
|
67
|
+
@apply util-caption-xl-text;
|
|
68
|
+
}
|
|
69
|
+
.ds-caption-lg {
|
|
70
|
+
@apply util-caption-lg;
|
|
71
|
+
}
|
|
72
|
+
.ds-caption-lg__text {
|
|
73
|
+
@apply util-caption-lg-text;
|
|
74
|
+
}
|
|
75
|
+
.ds-caption-md {
|
|
76
|
+
@apply util-caption-md;
|
|
77
|
+
}
|
|
78
|
+
.ds-caption-md__text {
|
|
79
|
+
@apply util-caption-md-text;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ds-list {
|
|
83
|
+
@apply util-list;
|
|
84
|
+
}
|
|
85
|
+
.ds-list__item {
|
|
86
|
+
@apply util-list-item;
|
|
87
|
+
}
|
|
88
|
+
.ds-list--bullet {
|
|
89
|
+
@apply util-list-bullet;
|
|
90
|
+
}
|
|
91
|
+
.ds-list--number {
|
|
92
|
+
@apply util-list-number;
|
|
93
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* stylelint-disable digigov/enforce-class-selector-namespace */
|
|
2
|
+
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
@layer utilities {
|
|
6
|
+
.util-warning-text {
|
|
7
|
+
@apply flex pb-0;
|
|
8
|
+
}
|
|
9
|
+
.util-warning-text-text {
|
|
10
|
+
font-size: var(--warning-text-font-size);
|
|
11
|
+
}
|
|
12
|
+
.util-warning-text__icon {
|
|
13
|
+
@apply md:min-h-10 w-10 h-10 rounded-3xl bg-base-content
|
|
14
|
+
print:bg-white print:border-2 print:border-base-content;
|
|
15
|
+
}
|
|
16
|
+
.util-warning-text__icon-text {
|
|
17
|
+
@apply text-base-content-invert font-bold leading-10 text-center
|
|
18
|
+
print:text-base-content;
|
|
19
|
+
}
|
|
20
|
+
.util-warning-text__assistive {
|
|
21
|
+
@apply absolute w-px h-px m-0 p-0 border-0 overflow-hidden !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
.
|
|
2
|
-
font-size: var(--warning-text-font-size);
|
|
1
|
+
.ds-warning-text {
|
|
3
2
|
@apply flex py-4 px-0;
|
|
4
|
-
|
|
3
|
+
font-size: var(--warning-text-font-size);
|
|
4
|
+
&.ds-warning-text--dense,
|
|
5
|
+
.ds-dense & {
|
|
6
|
+
.ds-warning-text__icon {
|
|
7
|
+
@apply mr-4 md:mr-5;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
.ds-warning-text__icon {
|
|
5
11
|
@apply text-base-content-invert font-bold bg-base-content text-3xl leading-10 text-center
|
|
6
12
|
rounded-3xl md:min-h-10 min-w-10 h-fit mr-6 mt-1
|
|
7
13
|
print:bg-white print:border-2 print:border-base-content print:text-base-content;
|
|
8
14
|
}
|
|
9
|
-
.
|
|
15
|
+
.ds-warning-text__content {
|
|
10
16
|
@apply flex items-center;
|
|
11
17
|
}
|
|
12
|
-
.
|
|
18
|
+
.ds-warning-text__assistive {
|
|
13
19
|
@apply absolute w-px h-px m-0 p-0 border-0 overflow-hidden whitespace-nowrap !important;
|
|
14
20
|
clip: rect(0 0 0 0) !important;
|
|
15
|
-
-webkit-clip-path: inset(50%) !important;
|
|
16
21
|
clip-path: inset(50%) !important;
|
|
17
22
|
}
|
|
18
|
-
&.govgr-warning-text--dense, .govgr-dense & {
|
|
19
|
-
.govgr-warning-text__icon {
|
|
20
|
-
@apply mr-4 md:mr-5;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
23
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import './warning-text.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-warning-text {
|
|
4
|
+
@apply util-warning-text flex-row items-center mb-4;
|
|
5
|
+
}
|
|
6
|
+
.ds-warning-text__content {
|
|
7
|
+
@apply flex-1 flex;
|
|
8
|
+
}
|
|
9
|
+
.ds-warning-text__content__text {
|
|
10
|
+
/* @apply util-warning-text-text font-bold text-base-content flex-1; */
|
|
11
|
+
@apply text-base-content font-bold p-0 m-0;
|
|
12
|
+
font-size: var(--warning-text-font-size);
|
|
13
|
+
}
|
|
14
|
+
.ds-warning-text__icon {
|
|
15
|
+
@apply util-warning-text__icon mr-4;
|
|
16
|
+
}
|
|
17
|
+
.ds-warning-text__icon__text {
|
|
18
|
+
@apply util-warning-text__icon-text text-2xl;
|
|
19
|
+
}
|
|
20
|
+
.ds-warning-text__assistive {
|
|
21
|
+
@apply util-warning-text__assistive;
|
|
22
|
+
}
|