@digigov/css 1.0.0-rc → 1.0.0-rc.1

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 (69) hide show
  1. package/defaultTheme/footer.json +5 -5
  2. package/defaultTheme/typography.json +22 -2
  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 +3 -0
  13. package/src/base/postcss.config.js +23 -22
  14. package/src/base/tailwind.config.js +19 -15
  15. package/src/components/accessibility-menu.css +8 -3
  16. package/src/components/accordion.css +67 -13
  17. package/src/components/admin-header.css +27 -1
  18. package/src/components/admin-layout.css +6 -0
  19. package/src/components/autocomplete.css +12 -9
  20. package/src/components/bottom-info.css +2 -1
  21. package/src/components/button.css +86 -27
  22. package/src/components/card.css +30 -15
  23. package/src/components/checkboxes.css +56 -10
  24. package/src/components/chip.css +35 -15
  25. package/src/components/copy-to-clipboard.css +52 -30
  26. package/src/components/drawer.css +17 -26
  27. package/src/components/dropdown.css +52 -52
  28. package/src/components/filter.css +71 -63
  29. package/src/components/footer.css +29 -23
  30. package/src/components/form.css +70 -47
  31. package/src/components/header.css +86 -32
  32. package/src/components/hidden.css +3 -0
  33. package/src/components/index.css +3 -0
  34. package/src/components/kitchensink.css +2 -2
  35. package/src/components/layout.css +21 -22
  36. package/src/components/loader.css +11 -22
  37. package/src/components/masthead.css +78 -0
  38. package/src/components/misc.css +17 -41
  39. package/src/components/modal.css +10 -3
  40. package/src/components/nav.css +93 -126
  41. package/src/components/notification-banner.css +32 -10
  42. package/src/components/pagination.css +38 -24
  43. package/src/components/panel.css +4 -4
  44. package/src/components/phase-banner.css +1 -7
  45. package/src/components/postcss.config.js +15 -16
  46. package/src/components/radios.css +34 -25
  47. package/src/components/stack.css +66 -0
  48. package/src/components/stepnav.css +34 -10
  49. package/src/components/summary-list.css +22 -15
  50. package/src/components/svg-icons.css +2 -62
  51. package/src/components/table.css +75 -56
  52. package/src/components/tabs.css +19 -0
  53. package/src/components/tailwind.config.js +12 -6
  54. package/src/components/task-list.css +28 -15
  55. package/src/components/timeline.css +21 -6
  56. package/src/components/typography.css +104 -63
  57. package/src/components/warning-text.css +23 -0
  58. package/src/fonts.css +1 -1
  59. package/src/index.css +0 -2
  60. package/src/pages/admin-filtering-data.js +1 -1
  61. package/src/pages/dropdown.js +2 -2
  62. package/src/pages/form.js +1 -1
  63. package/src/pages/index.js +12 -10
  64. package/src/utilities/index.css +142 -22
  65. package/src/utilities/postcss.config.js +15 -16
  66. package/src/utilities/tailwind.config.js +10 -1
  67. package/src/utilities/utilities.css +158 -34
  68. package/tailwind.config.js +20 -27
  69. package/themes.plugin.js +95 -100
@@ -15,23 +15,15 @@
15
15
  &:focus-within {
16
16
  @apply outline-none;
17
17
  }
18
- .govgr-svg-icon {
19
- @apply h-4 w-4 inline transition-all;
20
- }
21
- }
22
- .govgr-background-dark,
23
- .govgr-masthead--primary {
24
- .govgr-btn {
25
- @apply border-white hover:border-white border-2 shadow-none;
26
- }
27
- .govgr-btn-primary {
28
- @apply print:border-0 print:border-b-2 print:border-success print:text-base-content print:bg-white print:shadow-none;
29
- }
30
- .govgr-btn-secondary {
31
- @apply print:border-0 print:border-b-2 print:border-base-500 print:text-base-content print:bg-white print:shadow-none;
32
- }
33
- .govgr-btn-warning {
34
- @apply print:border-0 print:border-b-2 print:border-error print:text-base-content print:bg-white print:shadow-none;
18
+ &.govgr-btn--dense, .govgr-dense & {
19
+ --btn-padding: 0.375rem 0.75rem;
20
+ @apply min-h-8;
21
+ &:focus {
22
+ -webkit-box-shadow: 0 0 0 2px var(--color-white),
23
+ 0 0 0 5px var(--color-base-content), 0 0 0 8px var(--color-focus);
24
+ box-shadow: 0 0 0 2px var(--color-white),
25
+ 0 0 0 5px var(--color-base-content), 0 0 0 8px var(--color-focus);
26
+ }
35
27
  }
36
28
  }
37
29
  .govgr-btn-primary {
@@ -52,14 +44,6 @@
52
44
  .govgr-btn-cta {
53
45
  @apply py-4 print:pr-2;
54
46
  font-size: var(--btn-cta-font-size);
55
- .govgr-svg-icon--arrow {
56
- @apply w-5 h-5 inline-block ml-2 mr-2 transition-all;
57
- }
58
- &:hover {
59
- .govgr-svg-icon--arrow {
60
- @apply ml-4 mr-0;
61
- }
62
- }
63
47
  }
64
48
  .govgr-btn-secondary {
65
49
  -webkit-box-shadow: 0 2px 0 var(--color-base-500);
@@ -77,7 +61,7 @@
77
61
  }
78
62
  }
79
63
  .govgr-btn-warning {
80
- webkit-box-shadow: 0 2px 0 var(--color-base-content);
64
+ -webkit-box-shadow: 0 2px 0 var(--color-base-content);
81
65
  box-shadow: 0 2px 0 var(--color-base-content);
82
66
  @apply hover:no-underline
83
67
  print:border-2 print:border-error print:shadow-none;
@@ -93,10 +77,85 @@
93
77
  }
94
78
  }
95
79
  .govgr-btn--disabled {
96
- @apply opacity-50 hover:bg-opacity-50 cursor-not-allowed
80
+ @apply opacity-50 hover:bg-opacity-50
97
81
  print:text-base-400 print:border-opacity-50;
82
+ @apply cursor-not-allowed !important;
98
83
  }
99
84
  .govgr-svg-icon--caret {
100
85
  fill: var(--color-base-content);
101
86
  @apply w-4 h-4 inline-block;
102
87
  }
88
+ .govgr-close-btn {
89
+ @apply flex flex-nowrap text-right w-max float-right items-center;
90
+ }
91
+
92
+ /* overrides */
93
+
94
+ .govgr-btn {
95
+ .govgr-svg-icon {
96
+ @apply h-4 w-4 inline transition-all;
97
+ }
98
+ }
99
+ .govgr-btn-primary,
100
+ .govgr-btn-warning {
101
+ .govgr-svg-icon {
102
+ fill: var(--color-white);
103
+ }
104
+ .govgr-svg-icon--more-vert {
105
+ @apply h-6 w-6 md:h-8 md:w-8;
106
+ }
107
+ }
108
+ .govgr-btn-cta {
109
+ .govgr-svg-icon--arrow {
110
+ @apply w-5 h-5 inline-block ml-2 mr-2 transition-all;
111
+ }
112
+ &:hover {
113
+ .govgr-svg-icon--arrow {
114
+ @apply ml-4 mr-0;
115
+ }
116
+ }
117
+ }
118
+ .govgr-btn-secondary {
119
+ .govgr-svg-icon {
120
+ fill: var(--color-base-content);
121
+ }
122
+ .govgr-svg-icon--more-vert {
123
+ @apply h-6 w-6;
124
+ }
125
+ }
126
+ .govgr-close-btn {
127
+ .govgr-svg-icon--close {
128
+ @apply w-5 h-5 float-right;
129
+ @apply ml-1 !important;
130
+ fill: var(--color-link);
131
+ }
132
+ &:focus {
133
+ .govgr-svg-icon--close {
134
+ fill: var(--color-link-active);
135
+ }
136
+ }
137
+ &:hover {
138
+ .govgr-svg-icon--close {
139
+ fill: var(--color-link-hover);
140
+ }
141
+ }
142
+ }
143
+ @media print {
144
+ .govgr-btn {
145
+ .govgr-circular-progress--secondary {
146
+ .govgr-circular-progress__circle--1,
147
+ .govgr-circular-progress__circle--2 {
148
+ stroke: var(--color-base-content);
149
+ }
150
+ }
151
+ }
152
+ }
153
+ @media print {
154
+ .govgr-btn-primary,
155
+ .govgr-btn-warning,
156
+ .govgr-btn-secondary {
157
+ .govgr-svg-icon {
158
+ fill: var(--color-base-content);
159
+ }
160
+ }
161
+ }
@@ -1,17 +1,29 @@
1
1
  .govgr-card {
2
2
  @apply mb-7 text-base-content;
3
+ &.govgr-card--dense, .gov-dense & {
4
+ @apply mb-5;
5
+ .govgr-card__body {
6
+ @apply gap-2 md:gap-3;
7
+ }
8
+ }
3
9
  }
4
10
  .govgr-card--border {
5
11
  @apply border-2 border-base-content p-6;
6
12
  &.govgr-card--border-light {
7
13
  @apply border;
8
14
  }
15
+ &.govgr-card--dense, .govgr-dense & {
16
+ @apply p-4 pt-3;
17
+ }
9
18
  }
10
19
  .govgr-card--border-top {
11
20
  @apply border-t border-base-300 pt-4;
12
21
  &.govgr-card--border-dark {
13
22
  @apply border-t-3;
14
23
  }
24
+ &.govgr-card--dense, .govgr-dense & {
25
+ @apply p-3;
26
+ }
15
27
  }
16
28
  .govgr-card--divider {
17
29
  @apply border-b border-base-300 pb-4 mb-4;
@@ -22,7 +34,7 @@
22
34
  &:after {
23
35
  content: "";
24
36
  transition: all 0.1s ease;
25
- @apply w-5 h-5 bg-contain bg-no-repeat bg-center absolute right-2 top-2 z-/1;
37
+ @apply w-5 h-5 bg-contain bg-no-repeat bg-center absolute right-2 top-2;
26
38
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-hidden='true'> <path d='M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z' /> </svg>");
27
39
  }
28
40
  &:hover {
@@ -35,14 +47,6 @@
35
47
  .govgr-card__heading {
36
48
  @apply md:text-xl text-lg tracking-wide;
37
49
  @apply leading-8 !important;
38
-
39
- .govgr-link {
40
- /* Clickable area will be at all the card with 'after' */
41
- &::after {
42
- content: "";
43
- @apply block absolute top-0 bottom-0 right-0 left-0;
44
- }
45
- }
46
50
  }
47
51
  }
48
52
  .govgr-card--border-light {
@@ -66,10 +70,6 @@
66
70
  }
67
71
  .govgr-card__action {
68
72
  @apply flex flex-wrap items-center gap-y-4 mt-auto;
69
- .govgr-link,
70
- .govgr-btn {
71
- @apply mb-0;
72
- }
73
73
  }
74
74
  @media print {
75
75
  /* When govgr-card__action is empty at print, content at :after limits its height. */
@@ -77,8 +77,23 @@
77
77
  content: "";
78
78
  }
79
79
  }
80
- .govgr-grid {
81
- .govgr-card {
80
+
81
+ /* overrides */
82
+
83
+ .govgr-card--cta {
84
+ .govgr-card__heading {
85
+ .govgr-link {
86
+ /* Clickable area will be at all the card with 'after' */
87
+ &::after {
88
+ content: "";
89
+ @apply block absolute top-0 bottom-0 right-0 left-0;
90
+ }
91
+ }
92
+ }
93
+ }
94
+ .govgr-card__action {
95
+ .govgr-link,
96
+ .govgr-btn {
82
97
  @apply mb-0;
83
98
  }
84
99
  }
@@ -1,13 +1,43 @@
1
- .govgr-checkboxes {}
2
- .govgr-checkboxes--inline {
3
- @apply inline-flex flex-wrap;
1
+ .govgr-checkboxes {
2
+ &.govgr-checkboxes--dense,
3
+ .govgr-dense & {
4
+ .govgr-checkboxes__item {
5
+ @apply mb-2 pl-10 min-h-8;
6
+ &:last-child {
7
+ @apply mb-0;
8
+ }
9
+ }
10
+ .govgr-checkboxes__input {
11
+ @apply w-8 h-8 left-0.5 md:top-0.5;
12
+ &:before {
13
+ @apply w-8 h-8;
14
+ }
15
+ &:after {
16
+ top: 10px;
17
+ left: 7px;
18
+ width: 19px;
19
+ height: 10px;
20
+ @apply border-b-4 border-l-4;
21
+ }
22
+ &:focus {
23
+ &:before {
24
+ @apply border-3;
25
+ }
26
+ }
27
+ }
28
+ .govgr-field {
29
+ @apply mb-4 md:mb-6;
30
+ }
31
+ }
32
+ }
33
+ .govgr-checkboxes--horizontal {
34
+ @apply inline-flex flex-wrap items-baseline gap-4 md:gap-6;
4
35
  }
5
36
  .govgr-checkboxes__item {
6
- @apply block relative mb-4 pl-12;
7
- min-height: 40px;
8
- &:last-child {
9
- @apply mb-0;
10
- }
37
+ @apply block relative mb-4 pl-12 min-h-10;
38
+ &:last-child {
39
+ @apply mb-0;
40
+ }
11
41
  }
12
42
  .govgr-checkboxes__label {
13
43
  @apply inline-block py-1 px-2 cursor-pointer;
@@ -47,7 +77,23 @@
47
77
  @apply border-4;
48
78
  }
49
79
  }
50
- }
80
+ }
51
81
  .govgr-checkboxes__conditional {
52
- @apply border-l-4 border-base-500 ml-4 pl-6;
82
+ @apply border-l-4 border-base-500 ml-4 pl-6;
83
+ }
84
+
85
+ /* overrides */
86
+
87
+ .govgr-checkboxes--horizontal {
88
+ .govgr-choice-divider-text {
89
+ @apply min-w-max mx-2;
90
+ }
91
+ }
92
+ .govgr-checkboxes {
93
+ &.govgr-checkboxes--dense,
94
+ .govgr-dense & {
95
+ .govgr-field {
96
+ @apply mb-4 md:mb-6;
97
+ }
98
+ }
53
99
  }
@@ -1,26 +1,20 @@
1
- .govgr-chip--heading {
2
- @apply font-bold md:text-base text-sm pb-4;
1
+ .govgr-chips {
2
+ @apply flex flex-wrap list-none gap-2;
3
+ .govgr-chip:last-child .govgr-chip__content {
4
+ @apply mr-0;
5
+ }
3
6
  }
4
7
  .govgr-chips--horizontal {
5
8
  @apply md:flex md:flex-row md:flex-wrap;
6
9
  }
7
- .govgr-chips {
8
- @apply flex flex-wrap list-none;
9
- }
10
10
  .govgr-chip {
11
11
  @apply list-none;
12
12
  .govgr-chip__content {
13
13
  @apply bg-base-100 text-base-content lg:text-base text-sm border-2 border-base-content
14
- inline-flex items-center px-2 py-1 mr-2 mb-2 rounded shadow;
15
- .govgr-svg-icon--close {
16
- @apply w-4 h-4 ml-3;
17
- }
14
+ inline-flex items-center px-2 py-1 rounded shadow;
18
15
  &[role="button"] {
19
16
  &:hover {
20
17
  @apply shadow-lg text-base-content-invert bg-base-900 border-base-900 transition;
21
- .govgr-svg-icon--close {
22
- fill: var(--color-base-content-invert);
23
- }
24
18
  }
25
19
  &:focus {
26
20
  outline: 3px solid var(--color-focus);
@@ -30,12 +24,41 @@
30
24
  }
31
25
  }
32
26
  }
27
+ &:last-child {
28
+ .govgr-chip__content {
29
+ @apply mr-0;
30
+ }
31
+ }
33
32
  }
34
33
  .govgr-chip--deletable {
35
34
  .govgr-chip__content {
36
35
  &:hover {
37
36
  @apply shadow-lg transition;
38
37
  }
38
+ }
39
+ }
40
+ .govgr-chip__key-value {
41
+ @apply font-bold mr-2;
42
+ }
43
+
44
+ /* overrides */
45
+
46
+ .govgr-chip {
47
+ .govgr-chip__content {
48
+ .govgr-svg-icon--close {
49
+ @apply w-4 h-4 ml-3;
50
+ }
51
+ &[role="button"] {
52
+ &:hover {
53
+ .govgr-svg-icon--close {
54
+ fill: var(--color-base-content-invert);
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
60
+ .govgr-chip--deletable {
61
+ .govgr-chip__content {
39
62
  .govgr-svg-icon--close {
40
63
  &:hover {
41
64
  @apply cursor-pointer;
@@ -43,6 +66,3 @@
43
66
  }
44
67
  }
45
68
  }
46
- .govgr-chip__key-value {
47
- @apply font-bold mr-2;
48
- }
@@ -1,44 +1,66 @@
1
- .govgr-copy-to-clipboard-root {
2
- @apply flex;
1
+ .govgr-copy-to-clipboard {
2
+ @apply flex w-fit;
3
3
  }
4
- .govgr-copy-to-clipboard-container {
4
+ .govgr-copy-to-clipboard__tooltip {
5
5
  @apply relative;
6
- & > button {
7
- @apply m-0;
6
+ .govgr-copy-to-clipboard__message {
7
+ @apply bg-success py-4 px-6 absolute mt-4 text-center z-50 w-fit md:w-max;
8
+ &::before {
9
+ content: "";
10
+ @apply w-4 h-4 border-t-8 border-l-8 border-success transform rotate-45
11
+ absolute -top-1;
12
+ transform: rotate(45deg);
13
+ }
8
14
  }
9
- }
10
- .govgr-copy-to-clipboard--banner {
11
- @apply bg-success bg-opacity-95 p-2 w-full fixed top-0 right-0 text-center;
12
- & > * {
13
- @apply text-white;
15
+ &.govgr-copy-to-clipboard__tooltip--dense, .govgr-dense & {
16
+ .govgr-copy-to-clipboard__message {
17
+ @apply py-2 px-4;
18
+ }
19
+ &::before {
20
+ @apply w-2 h-2;
21
+ }
14
22
  }
15
23
  }
16
- .govgr-copy-to-clipboard--tooltip {
17
- @apply bg-success p-4 absolute mt-4 text-center z-50 w-fit md:w-max;
18
- & > * {
19
- @apply text-white;
20
- }
21
- &::before {
22
- content: "";
23
- @apply w-4 h-4 border-t-8 border-l-8 border-success transform rotate-45
24
- absolute -top-1;
25
- transform: rotate(45deg);
24
+ .govgr-copy-to-clipboard__tooltip--right {
25
+ .govgr-copy-to-clipboard__message {
26
+ @apply right-0;
27
+ &::before {
28
+ content: "";
29
+ @apply right-4;
30
+ }
26
31
  }
27
32
  }
28
- .govgr-copy-to-clipboard--tooltip-right {
29
- @apply right-0;
30
- &::before {
31
- content: "";
32
- @apply right-4;
33
+ .govgr-copy-to-clipboard__tooltip--left {
34
+ .govgr-copy-to-clipboard__message {
35
+ @apply left-0;
36
+ &::before {
37
+ content: "";
38
+ @apply left-4;
39
+ }
33
40
  }
34
41
  }
35
- .govgr-copy-to-clipboard--tooltip-left {
36
- @apply left-0;
37
- &::before {
38
- content: "";
39
- @apply left-4;
42
+ .govgr-copy-to-clipboard__banner {
43
+ .govgr-copy-to-clipboard__message {
44
+ @apply bg-success bg-opacity-95 p-2 w-full fixed top-0 right-0 text-center;
40
45
  }
41
46
  }
47
+
42
48
  .govgr-copy-to-clipboard--hidden {
43
49
  @apply invisible w-0 h-0;
44
50
  }
51
+
52
+ /* overrides */
53
+
54
+ .govgr-copy-to-clipboard__tooltip {
55
+ & > .govgr-btn {
56
+ @apply m-0;
57
+ }
58
+ }
59
+ .govgr-copy-to-clipboard__tooltip,
60
+ .govgr-copy-to-clipboard__banner {
61
+ .govgr-copy-to-clipboard__message {
62
+ & > .govgr-body {
63
+ @apply text-white;
64
+ }
65
+ }
66
+ }
@@ -1,51 +1,42 @@
1
- .govgr-drawer{
1
+ .govgr-drawer {
2
2
  @apply border border-base-300 bg-base-100 p-4
3
3
  h-full max-h-screen min-h-screen overflow-y-scroll w-4/5 max-w-md
4
4
  fixed top-0 bottom-0 z-40;
5
5
  @apply shadow-thick !important;
6
6
  }
7
- .govgr-drawer--relative-sm{
7
+ .govgr-drawer--relative-sm {
8
8
  @apply sm:block sm:relative sm:w-full max-h-full shadow-thick sm:shadow-none !important;
9
9
  }
10
- .govgr-drawer--relative-md{
10
+ .govgr-drawer--relative-md {
11
11
  @apply md:block md:relative md:w-full max-h-full shadow-thick md:shadow-none !important;
12
12
  }
13
- .govgr-drawer--relative-lg{
13
+ .govgr-drawer--relative-lg {
14
14
  @apply lg:block lg:relative lg:w-full max-h-full shadow-thick lg:shadow-none !important;
15
15
  }
16
16
  .govgr-drawer--right {
17
17
  @apply right-0;
18
18
  }
19
19
  .govgr-drawer--left {
20
- @apply left-0 ;
20
+ @apply left-0;
21
21
  }
22
22
  .govgr-drawer--closed {
23
23
  @apply hidden;
24
24
  }
25
- .govgr-drawer__close-container {
26
- @apply flex-grow;
27
- }
28
- .govgr-drawer__close-icon {
29
- @apply flex flex-nowrap text-right w-max float-right items-center;
30
- .govgr-svg-icon--close {
31
- @apply w-5 h-5 z-30 float-right;
32
- @apply ml-1 !important;
33
- fill: var(--color-link);
34
- }
35
- &:focus {
36
- .govgr-svg-icon--close {
37
- fill: var(--color-link-active);
38
- }
39
- }
40
- &:hover {
41
- .govgr-svg-icon--close {
42
- fill: var(--color-link-hover);
43
- }
25
+ .govgr-drawer__heading {
26
+ @apply p-0 mb-4 flex justify-between align-baseline;
27
+ .govgr--drawer__close-icon {
28
+ @apply m-0;
44
29
  }
45
30
  }
31
+
32
+ /* overrides */
33
+
46
34
  .govgr-drawer__heading {
47
- @apply p-0 mb-4 flex justify-between align-baseline;
48
- .govgr--drawer__close-icon, .govgr-heading-sm, .govgr-heading-md, .govgr-heading-lg, .govgr-heading-xl {
35
+ .govgr-heading-xs,
36
+ .govgr-heading-sm,
37
+ .govgr-heading-md,
38
+ .govgr-heading-lg,
39
+ .govgr-heading-xl {
49
40
  @apply m-0;
50
41
  }
51
42
  }
@@ -1,31 +1,5 @@
1
1
  .govgr-dropdown {
2
2
  @apply w-fit relative;
3
- &[open] {
4
- .govgr-dropdown__button--arrow {
5
- .govgr-svg-icon--arrow {
6
- @apply transform -rotate-180;
7
- }
8
- }
9
- .govgr-dropdown__button {
10
- &.govgr-btn-primary {
11
- background-color: var(--btn-primary-background-color-hover);
12
- color: var(--btn-primary-color-hover);
13
- }
14
- &.govgr-btn-secondary {
15
- background-color: var(--btn-secondary-background-color-hover);
16
- color: var(--btn-secondary-color-hover);
17
- }
18
- &.govgr-btn-warning {
19
- background-color: var(--btn-warning-background-color-hover);
20
- color: var(--btn-warning-color-hover);
21
- }
22
- }
23
- }
24
- .govgr-dropdown__button--arrow {
25
- .govgr-svg-icon--arrow {
26
- @apply transition duration-300;
27
- }
28
- }
29
3
  }
30
4
  .govgr-dropdown--up {
31
5
  .govgr-dropdown__content {
@@ -36,10 +10,7 @@
36
10
  }
37
11
  .govgr-dropdown--right {
38
12
  .govgr-dropdown__content {
39
- @apply right-0 mr-0 ml-4 text-right;
40
- .govgr-field {
41
- @apply text-left;
42
- }
13
+ @apply right-0 mr-0 ml-4;
43
14
  }
44
15
  }
45
16
  .govgr-dropdown--disabled {
@@ -55,13 +26,6 @@
55
26
  &::marker {
56
27
  font-size: 0px;
57
28
  }
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
29
  }
66
30
  .govgr-dropdown__button.govgr-link + .govgr-dropdown__content {
67
31
  @apply mt-4 print:text-base-content;
@@ -71,37 +35,73 @@
71
35
  }
72
36
  .govgr-dropdown__content {
73
37
  @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;
38
+ max-w-xs w-max min-w-full absolute transition z-3 mr-4 -mt-4;
75
39
  -webkit-box-box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3), 0 -2px 0 var(--color-base-500);
76
40
  box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3), 0 -2px 0 var(--color-base-500);
77
41
  *:last-child {
78
42
  @apply mb-0;
79
43
  }
44
+ }
45
+ .govgr-dropdown__content--full-width {
46
+ @apply min-w-full;
47
+ }
48
+
49
+ /* overrides */
50
+
51
+ .govgr-dropdown {
52
+ &[open] {
53
+ .govgr-dropdown__button--arrow {
54
+ .govgr-svg-icon--arrow {
55
+ @apply transform -rotate-180;
56
+ }
57
+ }
58
+ .govgr-dropdown__button {
59
+ &.govgr-btn-primary {
60
+ background-color: var(--btn-primary-background-color-hover);
61
+ color: var(--btn-primary-color-hover);
62
+ }
63
+ &.govgr-btn-secondary {
64
+ background-color: var(--btn-secondary-background-color-hover);
65
+ color: var(--btn-secondary-color-hover);
66
+ }
67
+ &.govgr-btn-warning {
68
+ background-color: var(--btn-warning-background-color-hover);
69
+ color: var(--btn-warning-color-hover);
70
+ }
71
+ }
72
+ }
73
+ .govgr-dropdown__button--arrow {
74
+ .govgr-svg-icon--arrow {
75
+ @apply transition duration-300;
76
+ }
77
+ }
78
+ }
79
+ .govgr-dropdown__button {
80
+ .govgr-svg-icon {
81
+ @apply w-5 h-6 md:h-8;
82
+ @apply print:hidden;
83
+ }
84
+ &.govgr-link {
85
+ @apply inline-flex gap-1 items-center;
86
+ }
87
+ }
88
+ .govgr-dropdown__content {
80
89
  .govgr-field {
81
90
  @apply mb-4;
82
91
  }
83
92
  .govgr-section-break {
84
93
  @apply -mx-4 w-auto;
85
94
  }
86
- .govgr-vertical-nav {
87
- @apply -mx-4 flex-col;
88
- .govgr-vertical-nav__item {
95
+ >.govgr-nav__list {
96
+ @apply w-auto -mx-4 flex-col;
97
+ .govgr-nav__list-item {
89
98
  @apply border-b border-base-300 py-2 px-4;
90
99
  &:last-child {
91
100
  @apply border-0;
92
101
  }
93
- .govgr-link {
94
- @apply text-base-content no-underline
95
- hover:underline;
102
+ &:focus {
103
+ @apply border-focus;
96
104
  }
97
105
  }
98
106
  }
99
107
  }
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
- }