@digigov/css 2.0.0-rc.2 → 2.0.0-rc.21
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/dist/base/index.css +1 -1
- package/dist/base.js +1 -1
- package/dist/components.js +1 -1
- package/dist/digigov.css +3 -3
- package/dist/utilities/index.css +1 -1
- package/dist/utilities.js +1 -1
- package/index.js +99 -69
- package/package.json +14 -10
- package/postcss.config.js +4 -3
- package/src/base/base.css +1 -1
- package/src/base/index.css +6 -5
- package/src/base/postcss.config.js +11 -10
- package/src/base/tailwind.config.js +4 -11
- package/src/components/accordion.css +61 -54
- package/src/components/admin-header.css +2 -19
- package/src/components/admin-layout.css +13 -22
- package/src/components/autocomplete.css +89 -46
- package/src/components/back-to-top.css +3 -4
- 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 +2 -1
- package/src/components/breadcrumbs.css +17 -8
- package/src/components/button.common.css +62 -0
- package/src/components/button.css +57 -71
- package/src/components/button.native.css +56 -0
- package/src/components/card.common.css +33 -0
- package/src/components/card.css +65 -52
- package/src/components/card.native.css +29 -0
- package/src/components/checkboxes.common.css +16 -0
- package/src/components/checkboxes.css +26 -31
- package/src/components/checkboxes.native.css +28 -0
- package/src/components/chip.css +28 -29
- package/src/components/code.css +127 -0
- package/src/components/components.css +2 -2
- package/src/components/copy-to-clipboard.css +27 -26
- package/src/components/copy-to-clipboard.native.css +28 -0
- package/src/components/details.common.css +26 -0
- package/src/components/details.css +14 -15
- package/src/components/details.native.css +26 -0
- package/src/components/dev-theme.css +2 -3
- package/src/components/drawer.css +47 -48
- package/src/components/dropdown.common.css +23 -0
- package/src/components/dropdown.css +57 -48
- package/src/components/dropdown.native.css +28 -0
- package/src/components/experimental.css +12 -12
- package/src/components/fillable.css +5 -5
- package/src/components/filter.css +15 -20
- package/src/components/footer.css +35 -21
- package/src/components/form.common.css +82 -0
- package/src/components/form.css +87 -49
- package/src/components/form.native.css +133 -0
- package/src/components/full-page-background.css +1 -1
- package/src/components/header.common.css +36 -0
- package/src/components/header.css +44 -43
- package/src/components/header.native.css +34 -0
- package/src/components/hidden.css +17 -17
- package/src/components/index.css +49 -47
- package/src/components/kitchensink.css +33 -33
- package/src/components/layout.common.css +36 -0
- package/src/components/layout.css +41 -42
- package/src/components/layout.native.css +39 -0
- package/src/components/loader.css +28 -28
- package/src/components/masthead.css +56 -55
- package/src/components/misc.css +37 -15
- package/src/components/modal.common.css +17 -0
- package/src/components/modal.css +31 -20
- package/src/components/modal.native.css +18 -0
- package/src/components/nav.common.css +22 -0
- package/src/components/nav.css +72 -67
- package/src/components/nav.native.css +41 -0
- package/src/components/notification-banner.common.css +46 -0
- package/src/components/notification-banner.css +23 -19
- package/src/components/notification-banner.native.css +42 -0
- package/src/components/pagination.css +30 -31
- package/src/components/panel.common.css +30 -0
- package/src/components/panel.css +10 -18
- package/src/components/panel.native.css +20 -0
- package/src/components/phase-banner.common.css +23 -0
- package/src/components/phase-banner.css +11 -10
- package/src/components/phase-banner.native.css +31 -0
- package/src/components/postcss.config.js +7 -6
- package/src/components/radios.common.css +16 -0
- package/src/components/radios.css +27 -30
- package/src/components/radios.native.css +24 -0
- package/src/components/skeleton.css +85 -0
- package/src/components/skiplink.css +2 -2
- package/src/components/stack.css +63 -63
- package/src/components/stepnav.css +35 -32
- package/src/components/summary-list.common.css +92 -0
- package/src/components/summary-list.css +101 -27
- package/src/components/summary-list.native.css +93 -0
- package/src/components/svg-icons.common.css +56 -0
- package/src/components/svg-icons.css +78 -80
- package/src/components/svg-icons.native.css +55 -0
- package/src/components/table.css +163 -182
- package/src/components/tabs.css +52 -67
- package/src/components/task-list.css +28 -23
- package/src/components/test.css +7 -0
- package/src/components/timeline.css +20 -18
- package/src/components/typography.common.css +135 -0
- package/src/components/typography.css +98 -189
- package/src/components/typography.native.css +97 -0
- package/src/components/warning-text.common.css +23 -0
- package/src/components/warning-text.css +11 -8
- package/src/components/warning-text.native.css +22 -0
- package/src/index.native.css +21 -0
- package/src/pages/index.js +1 -1
- package/src/utilities/gap.css +141 -0
- package/src/utilities/index.css +6 -1655
- package/src/utilities/index.native.css +6 -0
- package/src/utilities/layout.css +231 -0
- package/src/utilities/layout.native.css +278 -0
- package/src/utilities/margin.css +4299 -0
- package/src/utilities/padding.css +4299 -0
- package/src/utilities/postcss.config.js +7 -6
- package/src/utilities/print.css +11 -0
- package/src/utilities/utilities.css +3 -1660
- package/tailwind.config.js +101 -104
- package/theming.js +121 -0
- package/defaultTheme/accordion.json +0 -8
- package/defaultTheme/back-to-top.json +0 -27
- package/defaultTheme/brandConfig.json +0 -135
- package/defaultTheme/breadcrumbs.json +0 -8
- package/defaultTheme/button.json +0 -81
- package/defaultTheme/card.json +0 -12
- package/defaultTheme/footer.json +0 -8
- package/defaultTheme/form.json +0 -15
- package/defaultTheme/globals.json +0 -71
- package/defaultTheme/index.js +0 -27
- package/defaultTheme/misc.json +0 -48
- package/defaultTheme/panel.json +0 -43
- package/defaultTheme/phase-banner.json +0 -8
- package/defaultTheme/radios.json +0 -8
- package/defaultTheme/summary-list.json +0 -8
- package/defaultTheme/typography.json +0 -295
- 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/themes.plugin.js +0 -148
|
@@ -1,119 +1,79 @@
|
|
|
1
|
+
@import './typography.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-heading-xl {
|
|
2
|
-
@apply
|
|
3
|
-
font-size: var(--heading-xl-font-size);
|
|
4
|
-
line-height: var(--heading-xl-line-height);
|
|
5
|
-
margin-bottom: var(--heading-xl-margin-bottom);
|
|
6
|
-
font-weight: var(--heading-xl-font-weight);
|
|
4
|
+
@apply util-heading-xl util-heading-xl-text;
|
|
7
5
|
letter-spacing: var(--heading-xl-letter-spacing);
|
|
6
|
+
margin-bottom: var(--heading-xl-margin-bottom);
|
|
8
7
|
}
|
|
9
8
|
.ds-heading-lg {
|
|
10
|
-
@apply mx-0;
|
|
11
|
-
font-size: var(--heading-lg-font-size);
|
|
12
|
-
line-height: var(--heading-lg-line-height);
|
|
13
|
-
margin-bottom: var(--heading-lg-margin-bottom);
|
|
14
|
-
font-weight: var(--heading-lg-font-weight);
|
|
9
|
+
@apply util-heading-lg-text mx-0;
|
|
15
10
|
letter-spacing: var(--heading-lg-letter-spacing);
|
|
11
|
+
margin-bottom: var(--heading-lg-margin-bottom);
|
|
16
12
|
}
|
|
17
13
|
.ds-heading-md {
|
|
18
|
-
@apply mx-0;
|
|
19
|
-
|
|
20
|
-
line-height: var(--heading-md-line-height);
|
|
14
|
+
@apply util-heading-md-text mx-0;
|
|
15
|
+
letter-spacing: var(--heading-lg-letter-spacing);
|
|
21
16
|
margin-bottom: var(--heading-md-margin-bottom);
|
|
22
|
-
font-weight: var(--heading-md-font-weight);
|
|
23
|
-
letter-spacing: var(--heading-md-letter-spacing);
|
|
24
17
|
}
|
|
25
18
|
.ds-heading-sm {
|
|
26
|
-
@apply mx-0;
|
|
27
|
-
|
|
28
|
-
line-height: var(--heading-sm-line-height);
|
|
19
|
+
@apply util-heading-sm-text mx-0;
|
|
20
|
+
letter-spacing: var(--heading-lg-letter-spacing);
|
|
29
21
|
margin-bottom: var(--heading-sm-margin-bottom);
|
|
30
|
-
font-weight: var(--heading-sm-font-weight);
|
|
31
|
-
letter-spacing: var(--heading-sm-letter-spacing);
|
|
32
22
|
}
|
|
33
23
|
.ds-heading-xs {
|
|
34
|
-
@apply mx-0;
|
|
35
|
-
|
|
36
|
-
line-height: var(--heading-xs-line-height);
|
|
24
|
+
@apply util-heading-xs-text mx-0;
|
|
25
|
+
letter-spacing: var(--heading-lg-letter-spacing);
|
|
37
26
|
margin-bottom: var(--heading-xs-margin-bottom);
|
|
38
|
-
font-weight: var(--heading-xs-font-weight);
|
|
39
|
-
letter-spacing: var(--heading-xs-letter-spacing);
|
|
40
27
|
}
|
|
28
|
+
|
|
41
29
|
.ds-heading--break-words {
|
|
42
30
|
@apply break-words;
|
|
43
31
|
}
|
|
44
32
|
.ds-caption-xl {
|
|
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);
|
|
33
|
+
@apply util-caption-xl util-caption-xl-text block;
|
|
51
34
|
letter-spacing: var(--heading-xl-letter-spacing);
|
|
52
35
|
}
|
|
53
36
|
.ds-caption-lg {
|
|
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);
|
|
37
|
+
@apply util-caption-lg util-caption-lg-text block;
|
|
38
|
+
letter-spacing: var(--heading-lg-letter-spacing);
|
|
61
39
|
}
|
|
62
40
|
.ds-caption-md {
|
|
63
|
-
@apply
|
|
64
|
-
|
|
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
|
-
.ds-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
|
-
.ds-body {
|
|
79
|
-
.ds-code{
|
|
80
|
-
@apply p-2 bg-base-200;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
.ds-body-lg {
|
|
84
|
-
font-size: var(--body-lg-font-size);
|
|
85
|
-
line-height: var(--body-lg-line-height);
|
|
86
|
-
}
|
|
87
|
-
.ds-body-sm {
|
|
88
|
-
font-size: var(--body-sm-font-size);
|
|
89
|
-
line-height: var(--body-sm-line-height);
|
|
41
|
+
@apply util-caption-md util-caption-md-text block;
|
|
42
|
+
letter-spacing: var(--heading-md-letter-spacing);
|
|
90
43
|
}
|
|
91
44
|
.ds-hint {
|
|
92
|
-
|
|
93
|
-
line-height: var(--hint-line-height);
|
|
94
|
-
margin-bottom: var(--hint-margin-bottom);
|
|
95
|
-
color: var(--hint-color);
|
|
45
|
+
@apply util-hint util-hint-text;
|
|
96
46
|
letter-spacing: var(--hint-letter-spacing);
|
|
47
|
+
&.ds-hint--lg {
|
|
48
|
+
@apply util-hint-lg-text;
|
|
49
|
+
}
|
|
50
|
+
&.ds-hint--sm {
|
|
51
|
+
@apply util-hint-sm-text;
|
|
52
|
+
}
|
|
53
|
+
&.ds-hint--break-words {
|
|
54
|
+
@apply break-words;
|
|
55
|
+
}
|
|
97
56
|
}
|
|
98
|
-
.ds-background-dark,
|
|
57
|
+
.ds-background-dark,
|
|
58
|
+
.ds-masthead--primary {
|
|
99
59
|
.ds-hint {
|
|
100
60
|
@apply opacity-70 text-white print:text-base-content;
|
|
101
61
|
}
|
|
102
62
|
}
|
|
103
63
|
.ds-code {
|
|
104
64
|
@apply text-sm sm:text-base bg-base-100;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
65
|
+
&.ds-code--attr {
|
|
66
|
+
@apply text-info;
|
|
67
|
+
}
|
|
68
|
+
&.ds-code--string {
|
|
69
|
+
@apply text-success;
|
|
70
|
+
}
|
|
71
|
+
&.ds-code--keyword {
|
|
72
|
+
@apply text-warning;
|
|
73
|
+
}
|
|
74
|
+
&.ds-code--name {
|
|
75
|
+
@apply text-tertiary;
|
|
76
|
+
}
|
|
117
77
|
}
|
|
118
78
|
.ds-\!-font-size-14 {
|
|
119
79
|
@apply text-xs md:text-sm !important;
|
|
@@ -143,13 +103,27 @@
|
|
|
143
103
|
@apply font-normal !important;
|
|
144
104
|
}
|
|
145
105
|
.ds-\!-font-weight-bold {
|
|
146
|
-
@apply font-bold
|
|
106
|
+
@apply util-font-weight-bold-text;
|
|
147
107
|
}
|
|
148
108
|
.ds-list {
|
|
149
|
-
@apply list-none list-outside
|
|
109
|
+
@apply list-none list-outside mb-4 md:mb-8 text-base-content;
|
|
150
110
|
font-size: var(--list-font-size);
|
|
151
111
|
line-height: var(--list-line-height);
|
|
152
|
-
|
|
112
|
+
&.ds-list--bullet {
|
|
113
|
+
@apply list-disc list-outside pl-4;
|
|
114
|
+
}
|
|
115
|
+
&.ds-list--number {
|
|
116
|
+
@apply list-decimal list-outside pl-6;
|
|
117
|
+
}
|
|
118
|
+
&.ds-list--horizontal {
|
|
119
|
+
@apply flex flex-wrap gap-x-6 gap-y-3;
|
|
120
|
+
&.ds-list--spaced {
|
|
121
|
+
@apply gap-x-10 gap-y-5;
|
|
122
|
+
}
|
|
123
|
+
.ds-list__item {
|
|
124
|
+
@apply w-full sm:w-auto;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
153
127
|
.ds-list__item {
|
|
154
128
|
@apply mb-2;
|
|
155
129
|
&:last-child {
|
|
@@ -160,25 +134,16 @@
|
|
|
160
134
|
.ds-list__item > .ds-list--bullet:nth-child(1) {
|
|
161
135
|
list-style: circle inside none;
|
|
162
136
|
}
|
|
163
|
-
.ds-list__item
|
|
164
|
-
> .ds-list
|
|
165
|
-
> .ds-list__item
|
|
166
|
-
> .ds-list--bullet:nth-child(1) {
|
|
137
|
+
.ds-list__item > .ds-list > .ds-list__item > .ds-list--bullet:nth-child(1) {
|
|
167
138
|
@apply list-disc;
|
|
168
139
|
}
|
|
169
140
|
.ds-list__item
|
|
170
|
-
> .ds-list:not(.ds-list--bullet
|
|
141
|
+
> .ds-list:not(.ds-list--bullet, .ds-list--number):nth-child(1)
|
|
171
142
|
> .ds-list__item {
|
|
172
143
|
@apply pl-10;
|
|
173
144
|
}
|
|
174
145
|
.ds-list__item > .ds-list {
|
|
175
|
-
@apply mb-0
|
|
176
|
-
}
|
|
177
|
-
.ds-list--bullet {
|
|
178
|
-
@apply list-disc list-outside pl-4;
|
|
179
|
-
}
|
|
180
|
-
.ds-list--number {
|
|
181
|
-
@apply list-decimal list-outside pl-6;
|
|
146
|
+
@apply mb-0;
|
|
182
147
|
}
|
|
183
148
|
.ds-list--spaced:not(.ds-list--horizontal) > .ds-list__item {
|
|
184
149
|
@apply mb-4;
|
|
@@ -186,15 +151,6 @@
|
|
|
186
151
|
@apply mb-0;
|
|
187
152
|
}
|
|
188
153
|
}
|
|
189
|
-
.ds-list--horizontal {
|
|
190
|
-
@apply flex flex-wrap gap-x-6 gap-y-3;
|
|
191
|
-
.ds-list__item {
|
|
192
|
-
@apply w-full sm:w-auto;
|
|
193
|
-
}
|
|
194
|
-
&.ds-list--spaced {
|
|
195
|
-
@apply gap-x-10 gap-y-5;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
154
|
@media (min-width: 768px) {
|
|
199
155
|
.ds-list--col-2 {
|
|
200
156
|
column-count: 2;
|
|
@@ -203,91 +159,53 @@
|
|
|
203
159
|
column-count: 2;
|
|
204
160
|
}
|
|
205
161
|
}
|
|
206
|
-
.ds-list {
|
|
207
|
-
@apply md:mb-8 mb-4 text-base-content;
|
|
208
|
-
}
|
|
209
|
-
.ds-blockquote {
|
|
210
|
-
@apply mb-4 mt-8 md:mb-8 p-4 border-l-8 border-base-500 text-base-content;
|
|
211
|
-
font-size: var(--blockquote-font-size);
|
|
212
|
-
line-height: var(--blockquote-line-height);
|
|
213
|
-
&.ds-blockquote--dense, .ds-dense & {
|
|
214
|
-
@apply mt-3 md:mb-6 p-3 border-l-6;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
162
|
.ds-body {
|
|
218
|
-
|
|
219
|
-
line-height: var(--body-line-height);
|
|
220
|
-
margin-bottom: var(--body-margin-bottom);
|
|
221
|
-
color: var(--body-color);
|
|
163
|
+
@apply util-body-text;
|
|
222
164
|
letter-spacing: var(--body-letter-spacing);
|
|
165
|
+
&.ds-body--lg {
|
|
166
|
+
@apply util-body-lg-text;
|
|
167
|
+
}
|
|
168
|
+
&.ds-body--sm {
|
|
169
|
+
@apply util-body-sm-text;
|
|
170
|
+
}
|
|
171
|
+
.ds-code {
|
|
172
|
+
@apply p-1 bg-base-200;
|
|
173
|
+
}
|
|
223
174
|
}
|
|
224
|
-
.ds-body-lg {
|
|
225
|
-
font-size: var(--body-lg-font-size);
|
|
226
|
-
line-height: var(--body-lg-line-height);
|
|
227
|
-
}
|
|
228
|
-
.ds-body-sm {
|
|
229
|
-
font-size: var(--body-sm-font-size);
|
|
230
|
-
line-height: var(--body-sm-line-height);
|
|
231
|
-
}
|
|
232
|
-
.ds-hint {
|
|
233
|
-
font-size: var(--hint-font-size);
|
|
234
|
-
line-height: var(--hint-line-height);
|
|
235
|
-
margin-bottom: var(--hint-margin-bottom);
|
|
236
|
-
color: var(--hint-color);
|
|
237
|
-
letter-spacing: var(--hint-letter-spacing);
|
|
238
|
-
}
|
|
239
|
-
.ds-hint-lg {
|
|
240
|
-
font-size: var(--hint-lg-font-size);
|
|
241
|
-
line-height: var(--hint-lg-line-height);
|
|
242
|
-
}
|
|
243
|
-
.ds-hint-sm {
|
|
244
|
-
font-size: var(--hint-sm-font-size);
|
|
245
|
-
line-height: var(--hint-sm-line-height);
|
|
246
|
-
}
|
|
247
|
-
.ds-hint--break-words {
|
|
248
|
-
@apply break-words;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
175
|
|
|
252
176
|
.ds-link {
|
|
253
|
-
@apply focus:text-link-active
|
|
254
|
-
color: var(--link-color);
|
|
255
|
-
padding: var(--link-padding);
|
|
256
|
-
font-size: var(--link-font-size);
|
|
257
|
-
line-height: var(--link-line-height);
|
|
177
|
+
@apply focus:text-link-active util-link util-link-text cursor-pointer;
|
|
258
178
|
letter-spacing: var(--link-letter-spacing);
|
|
259
179
|
&:hover {
|
|
260
180
|
text-decoration-thickness: 2px;
|
|
261
181
|
color: var(--link-color-hover);
|
|
262
182
|
}
|
|
263
183
|
&:focus {
|
|
264
|
-
color: var(--link-color-active);
|
|
265
|
-
background-color: var(--color-focus);
|
|
266
184
|
box-shadow:
|
|
267
185
|
0 -2px var(--color-focus),
|
|
268
186
|
0 4px var(--color-base-content);
|
|
187
|
+
|
|
269
188
|
text-decoration: none !important;
|
|
270
189
|
outline: none;
|
|
271
190
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
.ds-heading-
|
|
191
|
+
&.ds-link--no-underline {
|
|
192
|
+
@apply no-underline hover:underline;
|
|
193
|
+
}
|
|
194
|
+
.ds-heading-xl &,
|
|
195
|
+
.ds-heading-lg &,
|
|
196
|
+
.ds-heading-md &,
|
|
197
|
+
.ds-heading-sm &,
|
|
276
198
|
.ds-body &,
|
|
277
199
|
.ds-hint &,
|
|
278
|
-
.ds-footer__list &
|
|
279
|
-
{
|
|
200
|
+
.ds-footer__list & {
|
|
280
201
|
font-size: inherit;
|
|
281
202
|
}
|
|
282
203
|
}
|
|
283
|
-
.ds-link--no-underline {
|
|
284
|
-
@apply no-underline hover:underline;
|
|
285
|
-
}
|
|
286
204
|
|
|
287
205
|
.ds-back-link {
|
|
206
|
+
@apply w-fit text-base-content underline flex items-center mb-4 cursor-pointer;
|
|
288
207
|
font-size: var(--back-link-font-size);
|
|
289
208
|
letter-spacing: var(--back-link-letter-spacing);
|
|
290
|
-
@apply w-fit text-base-content underline flex items-center mb-4 cursor-pointer;
|
|
291
209
|
&:hover {
|
|
292
210
|
text-decoration-thickness: 2px;
|
|
293
211
|
}
|
|
@@ -302,34 +220,35 @@
|
|
|
302
220
|
}
|
|
303
221
|
|
|
304
222
|
.ds-highlight-links {
|
|
305
|
-
.ds-link {
|
|
306
|
-
@apply bg-base-content p-1 text-focus underline m-1;
|
|
307
|
-
}
|
|
308
223
|
&.dark {
|
|
309
224
|
.ds-link {
|
|
310
225
|
@apply bg-base-300;
|
|
311
226
|
}
|
|
312
227
|
}
|
|
228
|
+
.ds-link {
|
|
229
|
+
@apply bg-base-content p-1 text-focus underline m-1;
|
|
230
|
+
}
|
|
313
231
|
}
|
|
314
232
|
.ds-visually-hidden {
|
|
315
233
|
@apply absolute m-0 p-0 overflow-hidden border-0 whitespace-nowrap !important;
|
|
316
234
|
width: 1px !important;
|
|
317
235
|
height: 1px !important;
|
|
318
236
|
clip: rect(0 0 0 0) !important;
|
|
319
|
-
-webkit-clip-path: inset(50%) !important;
|
|
320
237
|
clip-path: inset(50%) !important;
|
|
321
238
|
}
|
|
322
239
|
@media print {
|
|
323
|
-
.ds-body .ds-link[href^=
|
|
240
|
+
.ds-body .ds-link[href^='#']::after {
|
|
324
241
|
display: none;
|
|
325
242
|
}
|
|
326
243
|
.ds-link[href^="http://"]:after, .ds-link[href^="https://"]:after
|
|
327
244
|
{
|
|
328
|
-
content:
|
|
245
|
+
content: ' (' attr(href) ')';
|
|
329
246
|
font-size: 80%;
|
|
330
247
|
}
|
|
331
|
-
.ds-body
|
|
332
|
-
|
|
248
|
+
.ds-body {
|
|
249
|
+
.ds-link {
|
|
250
|
+
word-wrap: break-word;
|
|
251
|
+
}
|
|
333
252
|
}
|
|
334
253
|
.ds-link {
|
|
335
254
|
@apply text-base-content;
|
|
@@ -337,15 +256,13 @@
|
|
|
337
256
|
}
|
|
338
257
|
|
|
339
258
|
/* overrides */
|
|
259
|
+
|
|
340
260
|
.ds-hint {
|
|
341
261
|
.ds-svg-icon {
|
|
342
262
|
fill: var(--hint-color);
|
|
343
263
|
}
|
|
344
264
|
}
|
|
345
265
|
.ds-link {
|
|
346
|
-
.ds-svg-icon {
|
|
347
|
-
fill: var(--color-link);
|
|
348
|
-
}
|
|
349
266
|
&:hover {
|
|
350
267
|
.ds-svg-icon {
|
|
351
268
|
fill: var(--color-link-hover);
|
|
@@ -356,6 +273,9 @@
|
|
|
356
273
|
fill: var(--color-link-active);
|
|
357
274
|
}
|
|
358
275
|
}
|
|
276
|
+
.ds-svg-icon {
|
|
277
|
+
fill: var(--color-link);
|
|
278
|
+
}
|
|
359
279
|
}
|
|
360
280
|
button.ds-link {
|
|
361
281
|
.ds-svg-icon {
|
|
@@ -364,23 +284,12 @@ button.ds-link {
|
|
|
364
284
|
}
|
|
365
285
|
.ds-back-link {
|
|
366
286
|
.ds-svg-icon--caret {
|
|
367
|
-
fill: var(--color-base-content);
|
|
368
287
|
@apply md:w-4 md:h-4 w-3 h-3 inline-block mr-2;
|
|
288
|
+
fill: var(--color-base-content);
|
|
369
289
|
}
|
|
370
290
|
}
|
|
371
|
-
.ds-
|
|
372
|
-
@apply p-4 bg-base-200 border border-base-300 w-full;
|
|
373
|
-
& > pre {
|
|
374
|
-
@apply bg-transparent p-0 m-0;
|
|
375
|
-
font: inherit;
|
|
376
|
-
color: inherit;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
.ds-table__cell{
|
|
291
|
+
.ds-table__cell {
|
|
380
292
|
& > code {
|
|
381
293
|
@apply border-none;
|
|
382
294
|
}
|
|
383
295
|
}
|
|
384
|
-
.ds-code-block__content {
|
|
385
|
-
@apply text-sm sm:text-base;
|
|
386
|
-
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* stylelint-disable digigov/nest-related-rules */
|
|
2
|
+
@import './typography.common.css';
|
|
3
|
+
|
|
4
|
+
.ds-\!-font-weight-bold__text {
|
|
5
|
+
@apply util-font-weight-bold-text;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* Heading */
|
|
9
|
+
.ds-heading-xl {
|
|
10
|
+
@apply util-heading-xl;
|
|
11
|
+
}
|
|
12
|
+
.ds-heading-xl__text {
|
|
13
|
+
@apply util-heading-xl-text;
|
|
14
|
+
margin-bottom: var(--heading-xl-margin-bottom);
|
|
15
|
+
}
|
|
16
|
+
.ds-heading-lg__text {
|
|
17
|
+
@apply util-heading-lg-text;
|
|
18
|
+
margin-bottom: var(--heading-lg-margin-bottom);
|
|
19
|
+
}
|
|
20
|
+
.ds-heading-md__text {
|
|
21
|
+
@apply util-heading-md-text;
|
|
22
|
+
margin-bottom: var(--heading-md-margin-bottom);
|
|
23
|
+
}
|
|
24
|
+
.ds-heading-sm__text {
|
|
25
|
+
@apply util-heading-sm-text;
|
|
26
|
+
margin-bottom: var(--heading-sm-margin-bottom);
|
|
27
|
+
}
|
|
28
|
+
.ds-heading-xs__text {
|
|
29
|
+
@apply util-heading-xs-text;
|
|
30
|
+
margin-bottom: var(--heading-xs-margin-bottom);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Paragraph */
|
|
34
|
+
.ds-body__text {
|
|
35
|
+
@apply util-body-text;
|
|
36
|
+
}
|
|
37
|
+
.ds-body--lg__text {
|
|
38
|
+
@apply util-body-lg-text;
|
|
39
|
+
}
|
|
40
|
+
.ds-body--sm__text {
|
|
41
|
+
@apply util-body-sm-text;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Hint */
|
|
45
|
+
.ds-hint {
|
|
46
|
+
@apply util-hint flex flex-row;
|
|
47
|
+
}
|
|
48
|
+
.ds-hint__text {
|
|
49
|
+
@apply util-hint-text;
|
|
50
|
+
}
|
|
51
|
+
.ds-hint--lg__text {
|
|
52
|
+
@apply util-hint-lg-text;
|
|
53
|
+
}
|
|
54
|
+
.ds-hint--sm__text {
|
|
55
|
+
@apply util-hint-sm-text;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Link */
|
|
59
|
+
.ds-link {
|
|
60
|
+
@apply util-link focus:border-b-4 border-b-base-content;
|
|
61
|
+
}
|
|
62
|
+
.ds-link__text {
|
|
63
|
+
@apply util-link-text;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* HeadingCaption */
|
|
67
|
+
.ds-caption-xl {
|
|
68
|
+
@apply util-caption-xl;
|
|
69
|
+
}
|
|
70
|
+
.ds-caption-xl__text {
|
|
71
|
+
@apply util-caption-xl-text;
|
|
72
|
+
}
|
|
73
|
+
.ds-caption-lg {
|
|
74
|
+
@apply util-caption-lg;
|
|
75
|
+
}
|
|
76
|
+
.ds-caption-lg__text {
|
|
77
|
+
@apply util-caption-lg-text;
|
|
78
|
+
}
|
|
79
|
+
.ds-caption-md {
|
|
80
|
+
@apply util-caption-md;
|
|
81
|
+
}
|
|
82
|
+
.ds-caption-md__text {
|
|
83
|
+
@apply util-caption-md-text;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.ds-list {
|
|
87
|
+
@apply util-list;
|
|
88
|
+
}
|
|
89
|
+
.ds-list__item {
|
|
90
|
+
@apply util-list-item;
|
|
91
|
+
}
|
|
92
|
+
.ds-list--bullet {
|
|
93
|
+
@apply util-list-bullet;
|
|
94
|
+
}
|
|
95
|
+
.ds-list--number {
|
|
96
|
+
@apply util-list-number;
|
|
97
|
+
}
|
|
@@ -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 mb-4 md:mb-8;
|
|
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,26 @@
|
|
|
1
|
+
@import './warning-text.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-warning-text {
|
|
4
|
+
@apply util-warning-text p-0;
|
|
2
5
|
font-size: var(--warning-text-font-size);
|
|
3
|
-
|
|
6
|
+
&.ds-warning-text--dense,
|
|
7
|
+
.ds-dense & {
|
|
8
|
+
@apply mb-3 md:mb-6;
|
|
9
|
+
.ds-warning-text__icon {
|
|
10
|
+
@apply mr-4 md:mr-5;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
4
13
|
.ds-warning-text__icon {
|
|
5
14
|
@apply text-base-content-invert font-bold bg-base-content text-3xl leading-10 text-center
|
|
6
15
|
rounded-3xl md:min-h-10 min-w-10 h-fit mr-6 mt-1
|
|
7
16
|
print:bg-white print:border-2 print:border-base-content print:text-base-content;
|
|
8
17
|
}
|
|
9
|
-
.ds-warning-
|
|
18
|
+
.ds-warning-text__content {
|
|
10
19
|
@apply flex items-center;
|
|
11
20
|
}
|
|
12
21
|
.ds-warning-text__assistive {
|
|
13
22
|
@apply absolute w-px h-px m-0 p-0 border-0 overflow-hidden whitespace-nowrap !important;
|
|
14
23
|
clip: rect(0 0 0 0) !important;
|
|
15
|
-
-webkit-clip-path: inset(50%) !important;
|
|
16
24
|
clip-path: inset(50%) !important;
|
|
17
25
|
}
|
|
18
|
-
&.ds-warning-text--dense, .ds-dense & {
|
|
19
|
-
.ds-warning-text__icon {
|
|
20
|
-
@apply mr-4 md:mr-5;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
26
|
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@import './utilities/index.native';
|
|
2
|
+
@import './components/button.native';
|
|
3
|
+
@import './components/copy-to-clipboard.native';
|
|
4
|
+
@import './components/layout.native';
|
|
5
|
+
@import './components/header.native';
|
|
6
|
+
@import './components/typography.native';
|
|
7
|
+
@import './components/card.native';
|
|
8
|
+
@import './components/blockquote.native';
|
|
9
|
+
@import './components/summary-list.native';
|
|
10
|
+
@import './components/details.native';
|
|
11
|
+
@import './components/dropdown.native';
|
|
12
|
+
@import './components/notification-banner.native';
|
|
13
|
+
@import './components/nav.native';
|
|
14
|
+
@import './components/phase-banner.native';
|
|
15
|
+
@import './components/svg-icons.native';
|
|
16
|
+
@import './components/panel.native';
|
|
17
|
+
@import './components/warning-text.native';
|
|
18
|
+
@import './components/form.native';
|
|
19
|
+
@import './components/checkboxes.native';
|
|
20
|
+
@import './components/radios.native';
|
|
21
|
+
@import './components/modal.native';
|
package/src/pages/index.js
CHANGED
|
@@ -397,7 +397,7 @@ export default function Home() {
|
|
|
397
397
|
<a className="ds-footer__link" href="#3">Σύνδεσμος 3</a>
|
|
398
398
|
</li>
|
|
399
399
|
</ul>
|
|
400
|
-
<div className="ds-
|
|
400
|
+
<div className="ds-footer__content__logos">
|
|
401
401
|
<img className="ds-footer__logo" src="/img/government-logo2.svg" alt="government logo" />
|
|
402
402
|
<img className="ds-footer__logo" src="/img/government-logo2.svg" alt="government logo" />
|
|
403
403
|
</div>
|