@digigov/css 1.2.0-fd2cea11 → 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.
Files changed (124) hide show
  1. package/defaultTheme/accordion.json +8 -0
  2. package/defaultTheme/brandConfig.json +14 -2
  3. package/defaultTheme/button.json +16 -3
  4. package/defaultTheme/card.json +16 -5
  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 +12 -12
  12. package/dist/base/index.css +3 -3
  13. package/dist/base.js +1 -1
  14. package/dist/components.js +1 -1
  15. package/dist/digigov.css +5 -5
  16. package/dist/utilities/index.css +1 -1
  17. package/dist/utilities.js +1 -1
  18. package/package.json +19 -14
  19. package/postcss.config.js +1 -0
  20. package/src/base/base.css +1 -1
  21. package/src/base/index.css +5 -5
  22. package/src/components/accordion.css +76 -73
  23. package/src/components/admin-header.css +7 -24
  24. package/src/components/admin-layout.css +13 -22
  25. package/src/components/autocomplete.css +106 -63
  26. package/src/components/back-to-top.css +7 -8
  27. package/src/components/blockquote.common.css +14 -0
  28. package/src/components/blockquote.css +9 -0
  29. package/src/components/blockquote.native.css +11 -0
  30. package/src/components/bottom-info.css +3 -2
  31. package/src/components/breadcrumbs.css +21 -12
  32. package/src/components/button.common.css +64 -0
  33. package/src/components/button.css +79 -95
  34. package/src/components/button.native.css +42 -0
  35. package/src/components/card.common.css +33 -0
  36. package/src/components/card.css +77 -64
  37. package/src/components/card.native.css +29 -0
  38. package/src/components/checkboxes.css +34 -37
  39. package/src/components/chip.css +36 -37
  40. package/src/components/components.css +2 -2
  41. package/src/components/copy-to-clipboard.css +39 -38
  42. package/src/components/details.common.css +26 -0
  43. package/src/components/details.css +17 -18
  44. package/src/components/details.native.css +26 -0
  45. package/src/components/dev-theme.css +3 -4
  46. package/src/components/drawer.css +58 -59
  47. package/src/components/dropdown.common.css +58 -0
  48. package/src/components/dropdown.css +81 -68
  49. package/src/components/dropdown.native.css +58 -0
  50. package/src/components/experimental.css +18 -18
  51. package/src/components/fillable.css +6 -6
  52. package/src/components/filter.css +58 -63
  53. package/src/components/footer.css +53 -39
  54. package/src/components/form.common.css +49 -0
  55. package/src/components/form.css +125 -113
  56. package/src/components/form.native.css +58 -0
  57. package/src/components/full-page-background.css +2 -2
  58. package/src/components/header.common.css +36 -0
  59. package/src/components/header.css +78 -77
  60. package/src/components/header.native.css +34 -0
  61. package/src/components/hidden.css +23 -23
  62. package/src/components/index.css +48 -47
  63. package/src/components/kitchensink.css +41 -41
  64. package/src/components/layout.common.css +8 -0
  65. package/src/components/layout.css +56 -56
  66. package/src/components/layout.native.css +5 -0
  67. package/src/components/loader.css +31 -31
  68. package/src/components/masthead.css +60 -59
  69. package/src/components/misc.css +43 -21
  70. package/src/components/modal.css +28 -21
  71. package/src/components/nav.common.css +25 -0
  72. package/src/components/nav.css +96 -89
  73. package/src/components/nav.native.css +38 -0
  74. package/src/components/notification-banner.common.css +46 -0
  75. package/src/components/notification-banner.css +32 -28
  76. package/src/components/notification-banner.native.css +42 -0
  77. package/src/components/pagination.css +40 -41
  78. package/src/components/panel.common.css +30 -0
  79. package/src/components/panel.css +12 -20
  80. package/src/components/panel.native.css +20 -0
  81. package/src/components/phase-banner.common.css +23 -0
  82. package/src/components/phase-banner.css +15 -14
  83. package/src/components/phase-banner.native.css +31 -0
  84. package/src/components/radios.css +33 -30
  85. package/src/components/skeleton.css +85 -0
  86. package/src/components/skiplink.css +3 -3
  87. package/src/components/stack.css +64 -64
  88. package/src/components/stepnav.css +68 -64
  89. package/src/components/summary-list.common.css +25 -0
  90. package/src/components/summary-list.css +59 -47
  91. package/src/components/summary-list.native.css +27 -0
  92. package/src/components/svg-icons.common.css +56 -0
  93. package/src/components/svg-icons.css +79 -75
  94. package/src/components/svg-icons.native.css +55 -0
  95. package/src/components/table.css +189 -208
  96. package/src/components/tabs.css +52 -68
  97. package/src/components/task-list.css +31 -31
  98. package/src/components/test.css +7 -0
  99. package/src/components/timeline.css +19 -18
  100. package/src/components/typography.common.css +137 -0
  101. package/src/components/typography.css +159 -226
  102. package/src/components/typography.native.css +93 -0
  103. package/src/components/warning-text.common.css +23 -0
  104. package/src/components/warning-text.css +11 -11
  105. package/src/components/warning-text.native.css +22 -0
  106. package/src/index.native.css +17 -0
  107. package/src/pages/headings/service-heading.js +9 -9
  108. package/src/pages/index.js +201 -201
  109. package/src/utilities/grid.css +221 -0
  110. package/src/utilities/grid.native.css +274 -0
  111. package/src/utilities/index.css +3 -585
  112. package/src/utilities/index.native.css +2 -0
  113. package/src/utilities/print.css +11 -0
  114. package/src/utilities/spacing.css +2133 -0
  115. package/src/utilities/utilities.css +1647 -531
  116. package/tailwind.config.js +2 -2
  117. package/themes.plugin.js +1 -1
  118. package/defaultTheme/footer.json +0 -8
  119. package/src/pages/admin-filtering-data.js +0 -160
  120. package/src/pages/admin.js +0 -61
  121. package/src/pages/dropdown.js +0 -249
  122. package/src/pages/form.js +0 -400
  123. package/src/pages/pagination.js +0 -124
  124. package/src/pages/table.js +0 -308
@@ -1,288 +1,206 @@
1
- .govgr-heading-xl {
2
- @apply mx-0 max-w-2xl;
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);
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
- .govgr-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);
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
- .govgr-heading-md {
18
- @apply mx-0;
19
- font-size: var(--heading-md-font-size);
20
- line-height: var(--heading-md-line-height);
21
- margin-bottom: var(--heading-md-margin-bottom);
22
- font-weight: var(--heading-md-font-weight);
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
- .govgr-caption-xl {
45
- @apply block mx-0 font-normal;
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
- .govgr-caption-lg {
54
- @apply block mx-0 font-normal;
55
- color: var(--caption-lg-color);
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
- .govgr-body-sm {
83
- font-size: var(--body-sm-font-size);
84
- line-height: var(--body-sm-line-height);
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
- .govgr-hint {
87
- font-size: var(--hint-font-size);
88
- line-height: var(--hint-line-height);
89
- margin-bottom: var(--hint-margin-bottom);
90
- color: var(--hint-color);
91
- letter-spacing: var(--hint-letter-spacing);
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
- .govgr-background-dark, .govgr-masthead--primary {
94
- .govgr-hint {
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
- .govgr-code {
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
- .govgr-code--attr {
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
- .govgr-\!-font-size-16 {
75
+ .ds-\!-font-size-16 {
117
76
  @apply text-sm md:text-base !important;
118
77
  }
119
- .govgr-\!-font-size-19 {
78
+ .ds-\!-font-size-19 {
120
79
  @apply text-base md:text-lg !important;
121
80
  }
122
- .govgr-\!-font-size-24 {
81
+ .ds-\!-font-size-24 {
123
82
  @apply text-xl md:text-2xl !important;
124
83
  }
125
- .govgr-\!-font-size-30 {
84
+ .ds-\!-font-size-30 {
126
85
  @apply text-2xl md:text-3xl !important;
127
86
  }
128
- .govgr-\!-font-size-36 {
87
+ .ds-\!-font-size-36 {
129
88
  @apply text-3xl md:text-4xl !important;
130
89
  }
131
- .govgr-\!-font-size-48 {
90
+ .ds-\!-font-size-48 {
132
91
  @apply text-4xl md:text-5xl !important;
133
92
  }
134
- .govgr-\!-font-size-72 {
93
+ .ds-\!-font-size-72 {
135
94
  @apply text-6xl md:text-7xl !important;
136
95
  }
137
- .govgr-\!-font-weight-regular {
96
+ .ds-\!-font-weight-regular {
138
97
  @apply font-normal !important;
139
98
  }
140
- .govgr-\!-font-weight-bold {
99
+ .ds-\!-font-weight-bold {
141
100
  @apply font-bold !important;
142
101
  }
143
- .govgr-list {
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
- letter-spacing: var(--list-letter-spacing);
148
- .govgr-list__item {
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
- .govgr-list__item > .govgr-list--bullet:nth-child(1) {
129
+ .ds-list__item > .ds-list--bullet:nth-child(1) {
156
130
  list-style: circle inside none;
157
131
  }
158
- .govgr-list__item
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
- .govgr-list__item
165
- > .govgr-list:not(.govgr-list--bullet):not(.govgr-list--number):nth-child(1)
166
- > .govgr-list__item {
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
- .govgr-list__item > .govgr-list {
140
+ .ds-list__item > .ds-list {
170
141
  @apply mb-0 mt-2;
171
142
  }
172
- .govgr-list--bullet {
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
- .govgr-list--col-2 {
150
+ .ds-list--col-2 {
195
151
  column-count: 2;
196
152
  }
197
- .govgr-list--col-3 {
153
+ .ds-list--col-3 {
198
154
  column-count: 2;
199
155
  }
200
156
  }
201
- .govgr-list {
202
- @apply md:mb-8 mb-4 text-base-content;
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);
218
- }
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-lg {
235
- font-size: var(--hint-lg-font-size);
236
- line-height: var(--hint-lg-line-height);
237
- }
238
- .govgr-hint-sm {
239
- font-size: var(--hint-sm-font-size);
240
- line-height: var(--hint-sm-line-height);
241
- }
242
- .govgr-hint--break-words {
243
- @apply break-words;
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
+ }
244
169
  }
245
170
 
246
-
247
- .govgr-link {
248
- @apply focus:text-link-active underline cursor-pointer;
249
- color: var(--link-color);
250
- padding: var(--link-padding);
251
- font-size: var(--link-font-size);
252
- line-height: var(--link-line-height);
171
+ .ds-link {
172
+ @apply util-link util-link-text cursor-pointer;
253
173
  letter-spacing: var(--link-letter-spacing);
254
174
  &:hover {
255
175
  text-decoration-thickness: 2px;
256
176
  color: var(--link-color-hover);
257
177
  }
258
178
  &:focus {
259
- color: var(--link-color-active);
260
- background-color: var(--color-focus);
261
179
  box-shadow:
262
180
  0 -2px var(--color-focus),
263
181
  0 4px var(--color-base-content);
182
+
264
183
  text-decoration: none !important;
265
184
  outline: none;
266
185
  }
267
- .govgr-heading-xl & ,
268
- .govgr-heading-lg & ,
269
- .govgr-heading-md & ,
270
- .govgr-heading-sm & ,
271
- .govgr-body &,
272
- .govgr-hint &,
273
- .govgr-footer__list &
274
- {
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 & {
275
196
  font-size: inherit;
276
197
  }
277
198
  }
278
- .govgr-link--no-underline {
279
- @apply no-underline hover:underline;
280
- }
281
199
 
282
- .govgr-back-link {
200
+ .ds-back-link {
201
+ @apply w-fit text-base-content underline flex items-center mb-4 cursor-pointer;
283
202
  font-size: var(--back-link-font-size);
284
203
  letter-spacing: var(--back-link-letter-spacing);
285
- @apply w-fit text-base-content underline flex items-center mb-4 cursor-pointer;
286
204
  &:hover {
287
205
  text-decoration-thickness: 2px;
288
206
  }
@@ -296,73 +214,88 @@
296
214
  }
297
215
  }
298
216
 
299
- .govgr-highlight-links {
300
- .govgr-link {
301
- @apply bg-base-content p-1 text-focus underline m-1;
302
- }
217
+ .ds-highlight-links {
303
218
  &.dark {
304
- .govgr-link {
219
+ .ds-link {
305
220
  @apply bg-base-300;
306
221
  }
307
222
  }
223
+ .ds-link {
224
+ @apply bg-base-content p-1 text-focus underline m-1;
225
+ }
308
226
  }
309
- .govgr-visually-hidden {
227
+ .ds-visually-hidden {
310
228
  @apply absolute m-0 p-0 overflow-hidden border-0 whitespace-nowrap !important;
311
229
  width: 1px !important;
312
230
  height: 1px !important;
313
231
  clip: rect(0 0 0 0) !important;
314
- -webkit-clip-path: inset(50%) !important;
315
232
  clip-path: inset(50%) !important;
316
233
  }
317
234
  @media print {
318
- .govgr-body .govgr-link[href^="#"]:after {
235
+ .ds-body .ds-link[href^='#']::after {
319
236
  display: none;
320
237
  }
321
- .govgr-link[href^="http://"]:after, .govgr-link[href^="https://"]:after
238
+ .ds-link[href^="http://"]:after, .ds-link[href^="https://"]:after
322
239
  {
323
- content: " (" attr(href) ")";
240
+ content: ' (' attr(href) ')';
324
241
  font-size: 80%;
325
242
  }
326
- .govgr-body .govgr-link {
327
- word-wrap: break-word;
243
+ .ds-body {
244
+ .ds-link {
245
+ word-wrap: break-word;
246
+ }
328
247
  }
329
- .govgr-link {
248
+ .ds-link {
330
249
  @apply text-base-content;
331
250
  }
332
251
  }
333
252
 
334
253
  /* overrides */
335
254
 
336
- .govgr-link {
337
- .govgr-svg-icon {
338
- fill: var(--color-link);
255
+ .ds-hint {
256
+ .ds-svg-icon {
257
+ fill: var(--hint-color);
339
258
  }
259
+ }
260
+ .ds-link {
340
261
  &:hover {
341
- .govgr-svg-icon {
262
+ .ds-svg-icon {
342
263
  fill: var(--color-link-hover);
343
264
  }
344
265
  }
345
266
  &:focus {
346
- .govgr-svg-icon {
267
+ .ds-svg-icon {
347
268
  fill: var(--color-link-active);
348
269
  }
349
270
  }
271
+ .ds-svg-icon {
272
+ fill: var(--color-link);
273
+ }
350
274
  }
351
- button.govgr-link {
352
- .govgr-svg-icon {
275
+ button.ds-link {
276
+ .ds-svg-icon {
353
277
  @apply ml-1;
354
278
  }
355
279
  }
356
- .govgr-back-link {
357
- .govgr-svg-icon--caret {
358
- fill: var(--color-base-content);
280
+ .ds-back-link {
281
+ .ds-svg-icon--caret {
359
282
  @apply md:w-4 md:h-4 w-3 h-3 inline-block mr-2;
283
+ fill: var(--color-base-content);
360
284
  }
361
285
  }
362
-
363
- .govgr-code-block__container {
286
+ .ds-code-block__container {
364
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
+ }
365
298
  }
366
- .govgr-code-block__content {
299
+ .ds-code-block__content {
367
300
  @apply text-sm sm:text-base;
368
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
- .govgr-warning-text {
2
- font-size: var(--warning-text-font-size);
1
+ .ds-warning-text {
3
2
  @apply flex py-4 px-0;
4
- .govgr-warning-text__icon {
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
- .govgr-warning-text__text {
15
+ .ds-warning-text__content {
10
16
  @apply flex items-center;
11
17
  }
12
- .govgr-warning-text__assistive {
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
+ }