@digigov/css 1.3.0-dcbd7ded → 2.0.0-7d9a8d86

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 (73) hide show
  1. package/defaultTheme/accordion.json +8 -0
  2. package/defaultTheme/brandConfig.json +10 -0
  3. package/defaultTheme/button.json +9 -0
  4. package/defaultTheme/card.json +11 -0
  5. package/defaultTheme/form.json +15 -0
  6. package/defaultTheme/globals.json +11 -1
  7. package/defaultTheme/index.js +1 -1
  8. package/defaultTheme/layout.json +55 -0
  9. package/defaultTheme/misc.json +20 -0
  10. package/defaultTheme/panel.json +5 -0
  11. package/defaultTheme/typography.json +8 -8
  12. package/dist/base/index.css +1 -1
  13. package/dist/base.js +1 -1
  14. package/dist/components.js +1 -1
  15. package/dist/digigov.css +3 -3
  16. package/dist/utilities/index.css +1 -1
  17. package/dist/utilities.js +1 -1
  18. package/package.json +7 -3
  19. package/src/base/base.css +1 -1
  20. package/src/base/index.css +5 -5
  21. package/src/components/accordion.css +56 -53
  22. package/src/components/admin-header.css +3 -3
  23. package/src/components/admin-layout.css +8 -8
  24. package/src/components/autocomplete.css +89 -46
  25. package/src/components/back-to-top.css +3 -4
  26. package/src/components/bottom-info.css +2 -1
  27. package/src/components/breadcrumbs.css +8 -6
  28. package/src/components/button.css +49 -48
  29. package/src/components/card.css +55 -47
  30. package/src/components/checkboxes.css +20 -23
  31. package/src/components/chip.css +28 -29
  32. package/src/components/components.css +2 -2
  33. package/src/components/copy-to-clipboard.css +27 -26
  34. package/src/components/details.css +11 -9
  35. package/src/components/dev-theme.css +2 -3
  36. package/src/components/drawer.css +46 -47
  37. package/src/components/dropdown.css +29 -26
  38. package/src/components/experimental.css +12 -12
  39. package/src/components/fillable.css +4 -4
  40. package/src/components/filter.css +9 -14
  41. package/src/components/footer.css +35 -21
  42. package/src/components/form.css +34 -24
  43. package/src/components/full-page-background.css +1 -1
  44. package/src/components/header.css +24 -32
  45. package/src/components/hidden.css +6 -6
  46. package/src/components/index.css +46 -47
  47. package/src/components/kitchensink.css +33 -33
  48. package/src/components/layout.css +34 -36
  49. package/src/components/loader.css +28 -28
  50. package/src/components/masthead.css +56 -55
  51. package/src/components/misc.css +13 -15
  52. package/src/components/modal.css +10 -12
  53. package/src/components/nav.css +69 -65
  54. package/src/components/notification-banner.css +18 -16
  55. package/src/components/pagination.css +29 -30
  56. package/src/components/panel.css +9 -8
  57. package/src/components/phase-banner.css +5 -5
  58. package/src/components/radios.css +24 -21
  59. package/src/components/skiplink.css +2 -2
  60. package/src/components/stack.css +63 -63
  61. package/src/components/stepnav.css +33 -29
  62. package/src/components/summary-list.css +16 -16
  63. package/src/components/svg-icons.css +78 -74
  64. package/src/components/table.css +154 -175
  65. package/src/components/tabs.css +40 -38
  66. package/src/components/task-list.css +18 -18
  67. package/src/components/timeline.css +4 -3
  68. package/src/components/typography.css +93 -103
  69. package/src/components/warning-text.css +7 -7
  70. package/src/pages/index.js +1 -1
  71. package/src/utilities/index.css +1234 -164
  72. package/src/utilities/utilities.css +451 -42
  73. package/defaultTheme/footer.json +0 -8
@@ -68,47 +68,44 @@
68
68
  font-weight: var(--caption-md-font-weight);
69
69
  letter-spacing: var(--caption-md-letter-spacing);
70
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-lg {
79
- font-size: var(--body-lg-font-size);
80
- line-height: var(--body-lg-line-height);
81
- }
82
- .ds-body-sm {
83
- font-size: var(--body-sm-font-size);
84
- line-height: var(--body-sm-line-height);
85
- }
86
71
  .ds-hint {
87
72
  font-size: var(--hint-font-size);
88
73
  line-height: var(--hint-line-height);
89
74
  margin-bottom: var(--hint-margin-bottom);
90
75
  color: var(--hint-color);
91
76
  letter-spacing: var(--hint-letter-spacing);
77
+ &.ds-hint--lg {
78
+ font-size: var(--hint-lg-font-size);
79
+ line-height: var(--hint--lg-line-height);
80
+ }
81
+ &.ds-hint--sm {
82
+ font-size: var(--hint--sm-font-size);
83
+ line-height: var(--hint--sm-line-height);
84
+ }
85
+ &.ds-hint--break-words {
86
+ @apply break-words;
87
+ }
92
88
  }
93
- .ds-background-dark, .ds-masthead--primary {
89
+ .ds-background-dark,
90
+ .ds-masthead--primary {
94
91
  .ds-hint {
95
92
  @apply opacity-70 text-white print:text-base-content;
96
93
  }
97
94
  }
98
95
  .ds-code {
99
96
  @apply text-sm sm:text-base bg-base-100;
100
- }
101
- .ds-code--attr {
102
- @apply text-info;
103
- }
104
- .ds-code--string {
105
- @apply text-success;
106
- }
107
- .ds-code--keyword {
108
- @apply text-warning;
109
- }
110
- .ds-code--name {
111
- @apply text-tertiary;
97
+ &.ds-code--attr {
98
+ @apply text-info;
99
+ }
100
+ &.ds-code--string {
101
+ @apply text-success;
102
+ }
103
+ &.ds-code--keyword {
104
+ @apply text-warning;
105
+ }
106
+ &.ds-code--name {
107
+ @apply text-tertiary;
108
+ }
112
109
  }
113
110
  .ds-\!-font-size-14 {
114
111
  @apply text-xs md:text-sm !important;
@@ -142,9 +139,25 @@
142
139
  }
143
140
  .ds-list {
144
141
  @apply list-none list-outside mt-4;
142
+ @apply md:mb-8 mb-4 text-base-content;
145
143
  font-size: var(--list-font-size);
146
144
  line-height: var(--list-line-height);
147
145
  letter-spacing: var(--list-letter-spacing);
146
+ &.ds-list--bullet {
147
+ @apply list-disc list-outside pl-4;
148
+ }
149
+ &.ds-list--number {
150
+ @apply list-decimal list-outside pl-6;
151
+ }
152
+ &.ds-list--horizontal {
153
+ @apply flex flex-wrap gap-x-6 gap-y-3;
154
+ &.ds-list--spaced {
155
+ @apply gap-x-10 gap-y-5;
156
+ }
157
+ .ds-list__item {
158
+ @apply w-full sm:w-auto;
159
+ }
160
+ }
148
161
  .ds-list__item {
149
162
  @apply mb-2;
150
163
  &:last-child {
@@ -155,41 +168,23 @@
155
168
  .ds-list__item > .ds-list--bullet:nth-child(1) {
156
169
  list-style: circle inside none;
157
170
  }
158
- .ds-list__item
159
- > .ds-list
160
- > .ds-list__item
161
- > .ds-list--bullet:nth-child(1) {
171
+ .ds-list__item > .ds-list > .ds-list__item > .ds-list--bullet:nth-child(1) {
162
172
  @apply list-disc;
163
173
  }
164
174
  .ds-list__item
165
- > .ds-list:not(.ds-list--bullet):not(.ds-list--number):nth-child(1)
175
+ > .ds-list:not(.ds-list--bullet, .ds-list--number):nth-child(1)
166
176
  > .ds-list__item {
167
177
  @apply pl-10;
168
178
  }
169
179
  .ds-list__item > .ds-list {
170
180
  @apply mb-0 mt-2;
171
181
  }
172
- .ds-list--bullet {
173
- @apply list-disc list-outside pl-4;
174
- }
175
- .ds-list--number {
176
- @apply list-decimal list-outside pl-6;
177
- }
178
182
  .ds-list--spaced:not(.ds-list--horizontal) > .ds-list__item {
179
183
  @apply mb-4;
180
184
  &:last-child {
181
185
  @apply mb-0;
182
186
  }
183
187
  }
184
- .ds-list--horizontal {
185
- @apply flex flex-wrap gap-x-6 gap-y-3;
186
- .ds-list__item {
187
- @apply w-full sm:w-auto;
188
- }
189
- &.ds-list--spaced {
190
- @apply gap-x-10 gap-y-5;
191
- }
192
- }
193
188
  @media (min-width: 768px) {
194
189
  .ds-list--col-2 {
195
190
  column-count: 2;
@@ -198,16 +193,14 @@
198
193
  column-count: 2;
199
194
  }
200
195
  }
201
- .ds-list {
202
- @apply md:mb-8 mb-4 text-base-content;
203
- }
204
196
  .ds-blockquote {
205
197
  @apply mb-4 mt-8 md:mb-8 p-4 border-l-8 border-base-500 text-base-content;
206
198
  font-size: var(--blockquote-font-size);
207
199
  line-height: var(--blockquote-line-height);
208
- &.ds-blockquote--dense, .ds-dense & {
200
+ &.ds-blockquote--dense,
201
+ .ds-dense & {
209
202
  @apply mt-3 md:mb-6 p-3 border-l-6;
210
- }
203
+ }
211
204
  }
212
205
  .ds-body {
213
206
  font-size: var(--body-font-size);
@@ -215,34 +208,18 @@
215
208
  margin-bottom: var(--body-margin-bottom);
216
209
  color: var(--body-color);
217
210
  letter-spacing: var(--body-letter-spacing);
211
+ &.ds-body--lg {
212
+ font-size: var(--body--lg-font-size);
213
+ line-height: var(--body--lg-line-height);
214
+ }
215
+ &.ds-body--sm {
216
+ font-size: var(--body--sm-font-size);
217
+ line-height: var(--body--sm-line-height);
218
+ }
219
+ .ds-code {
220
+ @apply p-2 bg-base-200;
221
+ }
218
222
  }
219
- .ds-body-lg {
220
- font-size: var(--body-lg-font-size);
221
- line-height: var(--body-lg-line-height);
222
- }
223
- .ds-body-sm {
224
- font-size: var(--body-sm-font-size);
225
- line-height: var(--body-sm-line-height);
226
- }
227
- .ds-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
- .ds-hint-lg {
235
- font-size: var(--hint-lg-font-size);
236
- line-height: var(--hint-lg-line-height);
237
- }
238
- .ds-hint-sm {
239
- font-size: var(--hint-sm-font-size);
240
- line-height: var(--hint-sm-line-height);
241
- }
242
- .ds-hint--break-words {
243
- @apply break-words;
244
- }
245
-
246
223
 
247
224
  .ds-link {
248
225
  @apply focus:text-link-active underline cursor-pointer;
@@ -264,25 +241,24 @@
264
241
  text-decoration: none !important;
265
242
  outline: none;
266
243
  }
267
- .ds-heading-xl & ,
268
- .ds-heading-lg & ,
269
- .ds-heading-md & ,
270
- .ds-heading-sm & ,
244
+ &.ds-link--no-underline {
245
+ @apply no-underline hover:underline;
246
+ }
247
+ .ds-heading-xl &,
248
+ .ds-heading-lg &,
249
+ .ds-heading-md &,
250
+ .ds-heading-sm &,
271
251
  .ds-body &,
272
252
  .ds-hint &,
273
- .ds-footer__list &
274
- {
253
+ .ds-footer__list & {
275
254
  font-size: inherit;
276
255
  }
277
256
  }
278
- .ds-link--no-underline {
279
- @apply no-underline hover:underline;
280
- }
281
257
 
282
258
  .ds-back-link {
259
+ @apply w-fit text-base-content underline flex items-center mb-4 cursor-pointer;
283
260
  font-size: var(--back-link-font-size);
284
261
  letter-spacing: var(--back-link-letter-spacing);
285
- @apply w-fit text-base-content underline flex items-center mb-4 cursor-pointer;
286
262
  &:hover {
287
263
  text-decoration-thickness: 2px;
288
264
  }
@@ -297,34 +273,35 @@
297
273
  }
298
274
 
299
275
  .ds-highlight-links {
300
- .ds-link {
301
- @apply bg-base-content p-1 text-focus underline m-1;
302
- }
303
276
  &.dark {
304
277
  .ds-link {
305
278
  @apply bg-base-300;
306
279
  }
307
280
  }
281
+ .ds-link {
282
+ @apply bg-base-content p-1 text-focus underline m-1;
283
+ }
308
284
  }
309
285
  .ds-visually-hidden {
310
286
  @apply absolute m-0 p-0 overflow-hidden border-0 whitespace-nowrap !important;
311
287
  width: 1px !important;
312
288
  height: 1px !important;
313
289
  clip: rect(0 0 0 0) !important;
314
- -webkit-clip-path: inset(50%) !important;
315
290
  clip-path: inset(50%) !important;
316
291
  }
317
292
  @media print {
318
- .ds-body .ds-link[href^="#"]:after {
293
+ .ds-body .ds-link[href^='#']::after {
319
294
  display: none;
320
295
  }
321
296
  .ds-link[href^="http://"]:after, .ds-link[href^="https://"]:after
322
297
  {
323
- content: " (" attr(href) ")";
298
+ content: ' (' attr(href) ')';
324
299
  font-size: 80%;
325
300
  }
326
- .ds-body .ds-link {
327
- word-wrap: break-word;
301
+ .ds-body {
302
+ .ds-link {
303
+ word-wrap: break-word;
304
+ }
328
305
  }
329
306
  .ds-link {
330
307
  @apply text-base-content;
@@ -332,11 +309,12 @@
332
309
  }
333
310
 
334
311
  /* overrides */
335
-
336
- .ds-link {
312
+ .ds-hint {
337
313
  .ds-svg-icon {
338
- fill: var(--color-link);
314
+ fill: var(--hint-color);
339
315
  }
316
+ }
317
+ .ds-link {
340
318
  &:hover {
341
319
  .ds-svg-icon {
342
320
  fill: var(--color-link-hover);
@@ -347,6 +325,9 @@
347
325
  fill: var(--color-link-active);
348
326
  }
349
327
  }
328
+ .ds-svg-icon {
329
+ fill: var(--color-link);
330
+ }
350
331
  }
351
332
  button.ds-link {
352
333
  .ds-svg-icon {
@@ -355,13 +336,22 @@ button.ds-link {
355
336
  }
356
337
  .ds-back-link {
357
338
  .ds-svg-icon--caret {
358
- fill: var(--color-base-content);
359
339
  @apply md:w-4 md:h-4 w-3 h-3 inline-block mr-2;
340
+ fill: var(--color-base-content);
360
341
  }
361
342
  }
362
-
363
343
  .ds-code-block__container {
364
344
  @apply p-4 bg-base-200 border border-base-300 w-full;
345
+ & > pre {
346
+ @apply bg-transparent p-0 m-0;
347
+ font: inherit;
348
+ color: inherit;
349
+ }
350
+ }
351
+ .ds-table__cell {
352
+ & > code {
353
+ @apply border-none;
354
+ }
365
355
  }
366
356
  .ds-code-block__content {
367
357
  @apply text-sm sm:text-base;
@@ -1,6 +1,12 @@
1
1
  .ds-warning-text {
2
- font-size: var(--warning-text-font-size);
3
2
  @apply flex py-4 px-0;
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
+ }
4
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
@@ -12,12 +18,6 @@
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
- &.ds-warning-text--dense, .ds-dense & {
19
- .ds-warning-text__icon {
20
- @apply mr-4 md:mr-5;
21
- }
22
- }
23
23
  }
@@ -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-footer__content--logos">
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>