@digigov/css 1.0.0-88820b1e → 1.0.0-8b33e4c8

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 (65) hide show
  1. package/defaultTheme/back-to-top.json +27 -0
  2. package/defaultTheme/index.js +1 -0
  3. package/dist/base/index.css +1 -3
  4. package/dist/base.js +1 -1
  5. package/dist/components.js +1 -1
  6. package/dist/digigov.css +3 -5
  7. package/dist/utilities/index.css +1 -1
  8. package/dist/utilities.js +1 -1
  9. package/index.js +1 -1
  10. package/package.json +6 -7
  11. package/postcss.config.js +15 -14
  12. package/src/base/index.css +4 -0
  13. package/src/base/postcss.config.js +23 -22
  14. package/src/base/tailwind.config.js +19 -15
  15. package/src/components/accordion.css +19 -12
  16. package/src/components/admin-header.css +26 -0
  17. package/src/components/autocomplete.css +12 -9
  18. package/src/components/back-to-top.css +29 -0
  19. package/src/components/bottom-info.css +2 -1
  20. package/src/components/button.css +82 -33
  21. package/src/components/card.css +30 -15
  22. package/src/components/checkboxes.css +55 -12
  23. package/src/components/chip.css +31 -11
  24. package/src/components/copy-to-clipboard.css +28 -13
  25. package/src/components/drawer.css +62 -10
  26. package/src/components/dropdown.css +100 -75
  27. package/src/components/filter.css +67 -38
  28. package/src/components/footer.css +13 -7
  29. package/src/components/form.css +56 -29
  30. package/src/components/header.css +84 -30
  31. package/src/components/hidden.css +3 -0
  32. package/src/components/index.css +3 -1
  33. package/src/components/layout.css +51 -18
  34. package/src/components/loader.css +5 -16
  35. package/src/components/masthead.css +78 -0
  36. package/src/components/misc.css +17 -41
  37. package/src/components/modal.css +10 -0
  38. package/src/components/nav.css +93 -126
  39. package/src/components/notification-banner.css +14 -3
  40. package/src/components/pagination.css +40 -23
  41. package/src/components/panel.css +1 -0
  42. package/src/components/phase-banner.css +0 -6
  43. package/src/components/postcss.config.js +15 -16
  44. package/src/components/radios.css +32 -19
  45. package/src/components/stack.css +18 -18
  46. package/src/components/stepnav.css +24 -6
  47. package/src/components/summary-list.css +22 -15
  48. package/src/components/svg-icons.css +2 -62
  49. package/src/components/table.css +34 -40
  50. package/src/components/tabs.css +33 -1
  51. package/src/components/tailwind.config.js +12 -6
  52. package/src/components/task-list.css +28 -14
  53. package/src/components/timeline.css +21 -6
  54. package/src/components/typography.css +86 -68
  55. package/src/components/warning-text.css +23 -0
  56. package/src/fonts.css +1 -1
  57. package/src/index.css +0 -2
  58. package/src/pages/dropdown.js +2 -2
  59. package/src/utilities/index.css +121 -1
  60. package/src/utilities/postcss.config.js +15 -16
  61. package/src/utilities/tailwind.config.js +10 -1
  62. package/src/utilities/utilities.css +136 -13
  63. package/tailwind.config.js +19 -30
  64. package/themes.plugin.js +95 -100
  65. package/src/components/accessibility-menu.css +0 -71
@@ -1,16 +1,79 @@
1
1
  .govgr-dropdown {
2
2
  @apply w-fit relative;
3
+ &.govgr-dropdown--up {
4
+ .govgr-dropdown__content {
5
+ @apply mb-4 border border-b-0 bottom-full;
6
+ -webkit-box-box-shadow:
7
+ 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
8
+ 0 2px 0 var(--color-base-500);
9
+ box-shadow:
10
+ 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
11
+ 0 2px 0 var(--color-base-500);
12
+ }
13
+ }
14
+ &.govgr-dropdown--right {
15
+ .govgr-dropdown__content {
16
+ @apply right-0 mr-0 ml-4;
17
+ }
18
+ }
19
+ &.govgr-dropdown--disabled {
20
+ @apply cursor-not-allowed;
21
+ .govgr-dropdown__button {
22
+ pointer-events: none;
23
+ user-select: none;
24
+ opacity: 0.5;
25
+ }
26
+ }
27
+ &.govgr-dropdown--dense,
28
+ .govgr-dense & {
29
+ .govgr-dropdown__content {
30
+ @apply p-2;
31
+ }
32
+ }
33
+ .govgr-dropdown__button {
34
+ @apply w-fit print:text-base-content;
35
+ &::marker {
36
+ font-size: 0px;
37
+ }
38
+ }
39
+ .govgr-dropdown__button.govgr-link + .govgr-dropdown__content {
40
+ @apply mt-4 print:text-base-content;
41
+ }
42
+ .govgr-btn-group .govgr-btn + .govgr-dropdown__content {
43
+ @apply mt-4;
44
+ }
45
+ .govgr-dropdown__content {
46
+ @apply border border-base-400 p-4 bg-base-100 border-t-0
47
+ max-w-xs w-max min-w-full absolute transition z-3 mr-4 -mt-4;
48
+ -webkit-box-box-shadow:
49
+ 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
50
+ 0 -2px 0 var(--color-base-500);
51
+ box-shadow:
52
+ 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
53
+ 0 -2px 0 var(--color-base-500);
54
+ *:last-child {
55
+ @apply mb-0;
56
+ }
57
+ }
58
+ .govgr-dropdown__content--full-width {
59
+ @apply min-w-full;
60
+ }
61
+ }
62
+
63
+ /* overrides */
64
+
65
+ .govgr-dropdown {
3
66
  &[open] {
4
- .govgr-dropdown__button--arrow {
5
- .govgr-svg-icon--arrow {
67
+ .govgr-dropdown__button--chevron {
68
+ .govgr-svg-icon--chevron {
6
69
  @apply transform -rotate-180;
7
70
  }
8
71
  }
9
72
  .govgr-dropdown__button {
10
- &.govgr-btn-primary {
73
+ &.govgr-btn-primary {
11
74
  background-color: var(--btn-primary-background-color-hover);
12
75
  color: var(--btn-primary-color-hover);
13
- }
76
+ }
14
77
  &.govgr-btn-secondary {
15
78
  background-color: var(--btn-secondary-background-color-hover);
16
79
  color: var(--btn-secondary-color-hover);
@@ -21,87 +84,49 @@
21
84
  }
22
85
  }
23
86
  }
24
- .govgr-dropdown__button--arrow {
25
- .govgr-svg-icon--arrow {
87
+ .govgr-dropdown__button--chevron {
88
+ .govgr-svg-icon--chevron {
26
89
  @apply transition duration-300;
27
90
  }
28
91
  }
29
- }
30
- .govgr-dropdown--up {
31
- .govgr-dropdown__content {
32
- @apply mb-4 border border-b-0 bottom-full;
33
- -webkit-box-box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3), 0 2px 0 var(--color-base-500);
34
- box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3), 0 2px 0 var(--color-base-500);
92
+ .govgr-dropdown__button {
93
+ .govgr-svg-icon {
94
+ @apply w-5 h-6 md:h-8;
95
+ @apply print:hidden;
96
+ }
97
+ &.govgr-link {
98
+ @apply inline-flex gap-1 items-center;
99
+ }
35
100
  }
36
- }
37
- .govgr-dropdown--right {
38
101
  .govgr-dropdown__content {
39
- @apply right-0 mr-0 ml-4 text-right;
40
102
  .govgr-field {
41
- @apply text-left;
103
+ @apply mb-4;
104
+ }
105
+ .govgr-section-break {
106
+ @apply -mx-4 w-auto;
107
+ }
108
+ > .govgr-nav__list {
109
+ @apply w-auto -mx-4 flex-col;
110
+ .govgr-nav__list-item {
111
+ @apply border-b border-base-300 py-2 px-4;
112
+ &:last-child {
113
+ @apply border-0;
114
+ }
115
+ &:focus {
116
+ @apply border-focus;
117
+ }
118
+ }
42
119
  }
43
120
  }
44
- }
45
- .govgr-dropdown--disabled {
46
- @apply cursor-not-allowed;
47
- .govgr-dropdown__button {
48
- pointer-events: none;
49
- user-select: none;
50
- opacity: 0.5;
51
- }
52
- }
53
- .govgr-dropdown__button {
54
- @apply w-fit print:text-base-content;
55
- &::marker {
56
- font-size: 0px;
57
- }
58
- .govgr-svg-icon {
59
- @apply w-5 h-6 md:h-8;
60
- @apply print:hidden;
61
- }
62
- &.govgr-link {
63
- @apply inline-flex gap-1 items-center;
64
- }
65
- }
66
- .govgr-dropdown__button.govgr-link + .govgr-dropdown__content {
67
- @apply mt-4 print:text-base-content;
68
- }
69
- .govgr-btn-group .govgr-btn + .govgr-dropdown__content {
70
- @apply mt-4;
71
- }
72
- .govgr-dropdown__content {
73
- @apply border border-base-400 p-4 bg-base-100 border-t-0
74
- max-w-xs w-max min-w-full absolute transition z-1 mr-4 -mt-4;
75
- -webkit-box-box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3), 0 -2px 0 var(--color-base-500);
76
- box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3), 0 -2px 0 var(--color-base-500);
77
- *:last-child {
78
- @apply mb-0;
79
- }
80
- .govgr-field {
81
- @apply mb-4;
82
- }
83
- .govgr-section-break {
84
- @apply -mx-4 w-auto;
85
- }
86
- .govgr-vertical-nav {
87
- @apply -mx-4 flex-col;
88
- .govgr-vertical-nav__item {
89
- @apply border-b border-base-300 py-2 px-4;
90
- &:last-child {
91
- @apply border-0;
121
+ &.govgr-dropdown--dense,
122
+ .govgr-dense & {
123
+ .govgr-dropdown__content {
124
+ .govgr-section-break {
125
+ @apply -mx-2 w-auto;
92
126
  }
93
- .govgr-link {
94
- @apply text-base-content no-underline
95
- hover:underline;
127
+ > .govgr-nav__list {
128
+ @apply w-auto -mx-2 flex-col;
96
129
  }
97
130
  }
98
131
  }
99
132
  }
100
- .govgr-header, .govgr-admin-header {
101
- .govgr-dropdown__button.govgr-link {
102
- @apply text-lg text-white focus:text-base-content print:text-base-800;
103
- }
104
- .govgr-dropdown {
105
- @apply print:hidden;
106
- }
107
- }
@@ -1,32 +1,29 @@
1
1
  .govgr-filter {
2
2
  @apply bg-base-100 fixed top-0 right-0 bottom-0 overflow-y-scroll z-40 w-4/5;
3
3
  box-shadow: 0 0 30px rgba(var(--color-base-900-rgb), 0.9);
4
- .govgr-select {
5
- @apply w-full;
6
- }
7
4
  }
8
5
  .govgr-filter {
9
6
  &.govgr-filter--position-relative-always {
10
- @apply block relative overflow-visible w-full shadow-none z-0 !important;
11
- &.govgr-filter--closed {
7
+ @apply block relative overflow-visible w-full shadow-none z-2 !important;
8
+ &.govgr-filter--closed {
12
9
  @apply block !important;
13
10
  }
14
11
  }
15
12
  &.govgr-filter--position-relative-sm {
16
- @apply sm:block sm:relative sm:overflow-visible sm:w-full sm:shadow-none sm:z-0 ;
17
- &.govgr-filter--closed {
13
+ @apply sm:block sm:relative sm:overflow-visible sm:w-full sm:shadow-none sm:z-2;
14
+ &.govgr-filter--closed {
18
15
  @apply sm:block;
19
16
  }
20
17
  }
21
18
  &.govgr-filter--position-relative-md {
22
- @apply md:block md:relative md:overflow-visible md:w-full md:shadow-none md:z-0 ;
23
- &.govgr-filter--closed {
19
+ @apply md:block md:relative md:overflow-visible md:w-full md:shadow-none md:z-2;
20
+ &.govgr-filter--closed {
24
21
  @apply md:block;
25
22
  }
26
23
  }
27
24
  &.govgr-filter--position-relative-lg {
28
- @apply lg:block lg:relative lg:overflow-visible lg:w-full lg:shadow-none lg:z-0 ;
29
- &.govgr-filter--closed {
25
+ @apply lg:block lg:relative lg:overflow-visible lg:w-full lg:shadow-none lg:z-2;
26
+ &.govgr-filter--closed {
30
27
  @apply lg:block;
31
28
  }
32
29
  }
@@ -44,59 +41,41 @@
44
41
  @apply flex gap-4 flex-col;
45
42
  align-items: stretch;
46
43
  @apply md:flex-row md:flex-wrap;
47
- .govgr-field {
48
- @apply mb-0;
49
- }
50
- .govgr-label, .govgr-btn {
51
- @apply mb-0;
52
- }
53
44
  }
54
45
  @media (min-width: 768px) {
55
46
  .govgr-filter__options--horizontal {
56
47
  align-items: flex-end;
57
48
  }
58
49
  }
59
- .govgr-filter__heading, .govgr-filter__selected, .govgr-filter__options {
50
+ .govgr-filter__heading,
51
+ .govgr-filter__selected,
52
+ .govgr-filter__options {
60
53
  @apply p-0;
61
54
  }
62
55
  .govgr-filter__heading {
63
56
  @apply mb-4;
64
- .govgr-close-btn, .govgr-heading-sm, .govgr-heading-md, .govgr-heading-lg, .govgr-heading-xl {
65
- @apply m-0;
66
- }
67
57
  }
68
58
  .govgr-filter__selected {
69
59
  @apply bg-base-200 p-4 m-0 rounded;
70
60
  }
71
61
  .govgr-filter__selected-heading {
72
62
  @apply flex flex-wrap sm:flex-nowrap mb-4 md:mb-6 justify-between gap-x-2;
73
- .govgr-link, .govgr-heading-sm, .govgr-heading-md, .govgr-heading-lg, .govgr-heading-xl {
74
- @apply m-0 h-full;
75
- }
76
63
  }
77
64
  .govgr-input__search-btn {
78
65
  @apply shadow-none !important;
79
- @apply
80
- border-b-2 border-base-content rounded-none
66
+ @apply border-b-2 border-base-content rounded-none
81
67
  px-4 py-2 w-min m-0 ml-3
82
68
  flex gap-2
83
69
  hover:bg-success-hover active:bg-success-hover hover:no-underline;
84
- .govgr-svg-icon--search {
85
- fill: var(--color-white);
86
- @apply w-7 h-7;
87
- }
88
70
  }
89
71
  .govgr-search {
90
72
  @apply flex w-full max-w-3xl;
91
73
  }
92
74
  .govgr-results__action-bar {
93
- @apply py-2 mb-8 flex flex-wrap justify-start gap-4 items-baseline;
94
- > * {
95
- @apply mb-0;
96
- }
97
- .govgr-field {
98
- @apply flex items-baseline gap-2;
99
- }
75
+ @apply py-2 mb-8 flex flex-wrap justify-start gap-4 items-baseline;
76
+ > * {
77
+ @apply mb-0;
78
+ }
100
79
  }
101
80
  .govgr-results__heading {
102
81
  @apply flex flex-wrap justify-between items-baseline gap-x-2;
@@ -106,4 +85,54 @@
106
85
  }
107
86
  .govgr-link-filters {
108
87
  @apply block md:hidden;
109
- }
88
+ }
89
+
90
+ /* overrides */
91
+
92
+ .govgr-filter {
93
+ @apply bg-base-100 fixed top-0 right-0 bottom-0 overflow-y-scroll z-40 w-4/5;
94
+ box-shadow: 0 0 30px rgba(var(--color-base-900-rgb), 0.9);
95
+ .govgr-select {
96
+ @apply w-full;
97
+ }
98
+ }
99
+ .govgr-filter__options--horizontal {
100
+ .govgr-field {
101
+ @apply mb-0;
102
+ }
103
+ .govgr-label,
104
+ .govgr-btn {
105
+ @apply mb-0;
106
+ }
107
+ }
108
+ .govgr-filter__heading {
109
+ .govgr-close-btn,
110
+ .govgr-heading-xs,
111
+ .govgr-heading-sm,
112
+ .govgr-heading-md,
113
+ .govgr-heading-lg,
114
+ .govgr-heading-xl {
115
+ @apply m-0;
116
+ }
117
+ }
118
+ .govgr-filter__selected-heading {
119
+ .govgr-link,
120
+ .govgr-heading-xs,
121
+ .govgr-heading-sm,
122
+ .govgr-heading-md,
123
+ .govgr-heading-lg,
124
+ .govgr-heading-xl {
125
+ @apply m-0 h-full;
126
+ }
127
+ }
128
+ .govgr-input__search-btn {
129
+ .govgr-svg-icon--search {
130
+ fill: var(--color-white);
131
+ @apply w-7 h-7;
132
+ }
133
+ }
134
+ .govgr-results__action-bar {
135
+ .govgr-field {
136
+ @apply flex items-baseline gap-2;
137
+ }
138
+ }
@@ -2,12 +2,6 @@
2
2
  @apply border-0 border-solid font-normal text-base py-4 md:py-8
3
3
  border-t-4 border-tertiary text-base-800 bg-base-200 w-full
4
4
  print:py-2 print:bg-white print:border-t-2;
5
- .govgr-section-break {
6
- @apply print:hidden;
7
- }
8
- .govgr-link {
9
- @apply print:text-base-content;
10
- }
11
5
  }
12
6
  .govgr-footer__info {
13
7
  @apply w-full flex flex-1 flex-wrap md:flex-nowrap items-end justify-between box-border;
@@ -49,6 +43,7 @@
49
43
  @apply underline ;
50
44
  &:hover {
51
45
  text-decoration-thickness: 2px;
46
+ color: var(--color-base-800);
52
47
  }
53
48
  &:focus {
54
49
  background-color: var(--color-focus) !important;
@@ -87,4 +82,15 @@
87
82
  .govgr-footer__list-item {}
88
83
  .govgr-footer__heading {
89
84
  @apply mb-4 pb-4 border-b border-base-300;
90
- }
85
+ }
86
+
87
+ /* overrides */
88
+
89
+ .govgr-footer {
90
+ .govgr-section-break {
91
+ @apply print:hidden;
92
+ }
93
+ .govgr-link {
94
+ @apply print:text-base-content;
95
+ }
96
+ }
@@ -1,20 +1,4 @@
1
- .govgr-form {
2
- .govgr-body {
3
- @apply mb-4;
4
- }
5
- &.govgr-grid {
6
- @apply grid gap-4;
7
- .govgr-fieldset {
8
- @apply grid gap-4;
9
- :not(.govgr-field) {
10
- @apply col-span-12;
11
- }
12
- }
13
- :not(.govgr-field) {
14
- @apply col-span-12;
15
- }
16
- }
17
- }
1
+ .govgr-form {}
18
2
  .govgr-field {
19
3
  @apply mb-8 md:mb-10;
20
4
  .govgr-fieldset {
@@ -40,14 +24,6 @@
40
24
  font-size: var(--label-font-size);
41
25
  line-height: var(--label-line-height);
42
26
  letter-spacing: var(--label-letter-spacing);
43
- .govgr-heading-sm,
44
- .govgr-heading-md,
45
- .govgr-heading-lg,
46
- .govgr-heading-xl,
47
- .govgr-hint,
48
- .govgr-error-message {
49
- @apply mb-0;
50
- }
51
27
  }
52
28
  .govgr-input,
53
29
  .govgr-select,
@@ -61,6 +37,17 @@
61
37
  box-shadow: inset 0 0 0 2px;
62
38
  }
63
39
  }
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
+ {
45
+ @apply p-1;
46
+ &:focus {
47
+ -webkit-box-shadow: inset 0 0 0 1px;
48
+ box-shadow: inset 0 0 0 1px;
49
+ }
50
+ }
64
51
  .govgr-label-file {
65
52
  @apply mb-0;
66
53
  }
@@ -69,17 +56,22 @@
69
56
  }
70
57
  .govgr-uploaded-file {
71
58
  @apply flex flex-wrap gap-x-4 mb-0;
72
- .govgr-link {
73
- @apply h-fit text-lg;
59
+ }
60
+ .govgr-date-input {
61
+ @apply flex flex-wrap gap-y-2;
62
+ &.govgr-date-input--dense, .govgr-dense & {
63
+ .govgr-date-input__item {
64
+ @apply mr-2;
65
+ }
74
66
  }
75
67
  }
76
- .govgr-date-input,
77
68
  .govgr-single-character-input {
78
69
  @apply flex flex-wrap gap-y-2;
79
70
  }
80
71
  .govgr-select {
81
72
  @apply w-auto max-w-full;
82
73
  }
74
+ .govgr-select__option {}
83
75
  .govgr-input--width-20-char {
84
76
  max-width: 41ex;
85
77
  }
@@ -175,7 +167,6 @@
175
167
  .govgr-radios__input:disabled:checked:after {
176
168
  @apply opacity-40;
177
169
  }
178
-
179
170
  .govgr-radios__label--disabled,
180
171
  .govgr-checkboxes__label--disabled {
181
172
  @apply opacity-40;
@@ -183,3 +174,39 @@
183
174
  .govgr-choice-divider-text {
184
175
  @apply text-lg text-center min-w-10 w-max mb-4;
185
176
  }
177
+
178
+ /* overrides */
179
+
180
+ .govgr-form {
181
+ .govgr-body {
182
+ @apply mb-4;
183
+ }
184
+ &.govgr-grid {
185
+ @apply grid gap-4;
186
+ .govgr-fieldset {
187
+ @apply grid gap-4;
188
+ :not(.govgr-field) {
189
+ @apply col-span-12;
190
+ }
191
+ }
192
+ :not(.govgr-field) {
193
+ @apply col-span-12;
194
+ }
195
+ }
196
+ }
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 {
205
+ @apply mb-0;
206
+ }
207
+ }
208
+ .govgr-uploaded-file {
209
+ .govgr-link {
210
+ @apply h-fit text-lg;
211
+ }
212
+ }
@@ -1,11 +1,6 @@
1
1
  .govgr-header {
2
- @apply bg-primary border-b-8 print:border-b-2 border-tertiary;
3
- @apply print:bg-white;
2
+ @apply relative bg-primary border-b-8 print:border-b-2 border-tertiary print:bg-white;
4
3
  border-bottom-style: solid;
5
- .govgr-svg-icon--burger {
6
- fill: var(--color-base-content);
7
- @apply float-right cursor-pointer;
8
- }
9
4
  }
10
5
  .govgr-header__content {
11
6
  @apply px-4 py-2 mx-auto max-w-5xl w-full flex justify-between items-center
@@ -16,8 +11,9 @@
16
11
  print:gap-1;
17
12
  }
18
13
  .govgr-header__logo {
14
+ print-color-adjust: exact !important;
19
15
  -webkit-print-color-adjust: exact !important;
20
- @apply h-12 print:hidden;
16
+ @apply max-h-12 print:hidden;
21
17
  }
22
18
  .govgr-header__logo-inverted {
23
19
  @apply h-12 hidden print:block;
@@ -48,34 +44,92 @@
48
44
  .govgr-header-nav-menu__content {
49
45
  @apply flex justify-start items-center gap-x-4 gap-y-2 print:gap-1;
50
46
  }
51
- .govgr-masthead {
52
- @apply print:border-2 print:bg-white print:border-tertiary-300 print:text-base-content;
53
- .govgr-grid-column-two-thirds > *:last-child {
54
- @apply mb-0;
47
+
48
+ /* overrides */
49
+
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;
56
+ }
55
57
  }
56
- .govgr-header__content {
57
- @apply flex-wrap;
58
+ .govgr-dropdown {
59
+ @apply print:hidden;
58
60
  }
59
- }
60
- .govgr-masthead--primary {
61
- @apply bg-tertiary text-white;
62
- .govgr-masthead__body {
63
- @apply text-white;
61
+ .govgr-dropdown__button {
62
+ @apply sm:w-max;
64
63
  }
65
- .govgr-body {
66
- @apply text-white;
64
+ .govgr-link {
65
+ .govgr-svg-icon {
66
+ fill: var(--color-white);
67
+ }
68
+ &:hover {
69
+ .govgr-svg-icon {
70
+ fill: var(--color-white);
71
+ }
72
+ }
73
+ &:focus {
74
+ .govgr-svg-icon {
75
+ fill: var(--color-link-active);
76
+ }
77
+ }
67
78
  }
68
- }
69
- .govgr-masthead--secondary {
70
- @apply border-b border-base-400 !important;
71
- @apply bg-base-200;
72
- .govgr-masthead__body {
73
- @apply text-base-content;
79
+ .govgr-phase-banner__text {
80
+ @apply text-white print:text-base-content;
81
+ }
82
+ .govgr-link {
83
+ .govgr-svg-icon {
84
+ fill: var(--color-white);
85
+ }
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
+ }
74
96
  }
75
97
  }
76
- .govgr-masthead__body {
77
- @apply md:mb-10 mb-6 md:text-lg text-base leading-7 print:text-base-content;
98
+ .govgr-header__section {
99
+ .govgr-phase-banner {
100
+ @apply mb-0;
101
+ }
78
102
  }
79
- .govgr-masthead__logo {
80
- @apply md:mb-6 mb-4 h-10;
103
+ .govgr-header-nav-menu__content,
104
+ .govgr-header__content,
105
+ .govgr-header__section {
106
+ > .govgr-svg-icon--burger {
107
+ fill: var(--color-white);
108
+ @apply float-right focus:bg-focus;
109
+ }
110
+ > .govgr-close-btn {
111
+ @apply sm:hidden;
112
+ .govgr-svg-icon--close {
113
+ fill: var(--color-link) !important;
114
+ }
115
+ }
116
+ > .govgr-nav__list {
117
+ > .govgr-nav__list-item {
118
+ > .govgr-nav__list-item-link,
119
+ > .govgr-nav__list-item-btn {
120
+ &:not(:focus) {
121
+ @apply text-white;
122
+ }
123
+ }
124
+ > .govgr-nav__list-item-link--active,
125
+ > .govgr-nav__list-item-btn--active {
126
+ &:not(:focus) {
127
+ @apply text-white !important;
128
+ }
129
+ .govgr-svg-icon {
130
+ fill: var(--color-white);
131
+ }
132
+ }
133
+ }
134
+ }
81
135
  }
@@ -1,3 +1,6 @@
1
+ .govgr-hidden {
2
+ @apply hidden;
3
+ }
1
4
  .govgr-hidden-xs--up {
2
5
  @apply xs:hidden;
3
6
  }
@@ -1,4 +1,3 @@
1
- @import "./accessibility-menu.css";
2
1
  @import "./accordion.css";
3
2
  @import "./autocomplete.css";
4
3
  @import "./button.css";
@@ -14,6 +13,7 @@
14
13
  @import "./layout.css";
15
14
  @import "./nav.css";
16
15
  @import "./typography.css";
16
+ @import "./back-to-top.css";
17
17
  @import "./table.css";
18
18
  @import "./filter.css";
19
19
  @import "./admin-layout.css";
@@ -22,6 +22,7 @@
22
22
  @import "./card.css";
23
23
  @import "./details.css";
24
24
  @import "./notification-banner.css";
25
+ @import "./masthead.css";
25
26
  @import "./panel.css";
26
27
  @import "./phase-banner.css";
27
28
  @import "./summary-list.css";
@@ -43,3 +44,4 @@
43
44
  @import "./dev-theme.css";
44
45
  @import "./kitchensink.css";
45
46
  @import "./hidden.css";
47
+ @import "./warning-text.css";