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