@digigov/css 1.0.0-blabla-test → 1.0.0-e322b0cc

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 +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 +67 -13
  16. package/src/components/admin-header.css +27 -1
  17. package/src/components/admin-layout.css +6 -0
  18. package/src/components/autocomplete.css +12 -9
  19. package/src/components/bottom-info.css +2 -1
  20. package/src/components/button.css +99 -32
  21. package/src/components/card.css +30 -15
  22. package/src/components/checkboxes.css +56 -10
  23. package/src/components/chip.css +35 -15
  24. package/src/components/copy-to-clipboard.css +52 -30
  25. package/src/components/drawer.css +58 -27
  26. package/src/components/dropdown.css +96 -71
  27. package/src/components/filter.css +71 -63
  28. package/src/components/footer.css +29 -23
  29. package/src/components/form.css +70 -47
  30. package/src/components/header.css +86 -32
  31. package/src/components/hidden.css +3 -0
  32. package/src/components/index.css +3 -1
  33. package/src/components/kitchensink.css +2 -2
  34. package/src/components/layout.css +25 -25
  35. package/src/components/loader.css +11 -22
  36. package/src/components/masthead.css +78 -0
  37. package/src/components/misc.css +17 -41
  38. package/src/components/modal.css +10 -3
  39. package/src/components/nav.css +93 -126
  40. package/src/components/notification-banner.css +32 -10
  41. package/src/components/pagination.css +41 -24
  42. package/src/components/panel.css +5 -4
  43. package/src/components/phase-banner.css +1 -7
  44. package/src/components/postcss.config.js +15 -16
  45. package/src/components/radios.css +34 -25
  46. package/src/components/stack.css +66 -0
  47. package/src/components/stepnav.css +34 -10
  48. package/src/components/summary-list.css +22 -15
  49. package/src/components/svg-icons.css +2 -62
  50. package/src/components/table.css +43 -47
  51. package/src/components/tabs.css +33 -1
  52. package/src/components/tailwind.config.js +12 -6
  53. package/src/components/task-list.css +28 -15
  54. package/src/components/timeline.css +21 -6
  55. package/src/components/typography.css +98 -64
  56. package/src/components/warning-text.css +23 -0
  57. package/src/fonts.css +1 -1
  58. package/src/index.css +0 -2
  59. package/src/pages/admin-filtering-data.js +1 -1
  60. package/src/pages/dropdown.js +2 -2
  61. package/src/pages/form.js +1 -1
  62. package/src/pages/index.js +12 -10
  63. package/src/utilities/index.css +142 -22
  64. package/src/utilities/postcss.config.js +15 -16
  65. package/src/utilities/tailwind.config.js +10 -1
  66. package/src/utilities/utilities.css +158 -34
  67. package/tailwind.config.js +18 -30
  68. package/themes.plugin.js +95 -100
  69. package/src/components/accessibility-menu.css +0 -71
@@ -1,123 +1,69 @@
1
- .govgr-header {
2
- @apply relative;
3
- .govgr-svg-icon--burger {
4
- fill: var(--color-white);
5
- @apply float-right focus:bg-focus;
6
- }
7
- .govgr-drawer__close-icon {
8
- @apply sm:hidden;
9
- .govgr-svg-icon--close {
10
- fill: var(--color-link) !important;
11
- }
12
- }
13
- .govgr-nav {
14
- @apply fixed;
15
- }
16
- .govgr-nav__list {
17
- @apply sm:flex !important;
18
- @apply sm:w-min xs:hidden m-0 max-w-5xl sm:mx-auto sm:gap-x-6 static sm:py-1 xs:px-3 sm:px-0
19
- flex flex-wrap flex-col sm:flex-row;
20
- }
21
- .govgr-nav__list-item {
22
- @apply text-base-content sm:mr-auto sm:ml-auto sm:text-center sm:underline mr-0 xs:px-2 xs:py-1 sm:gap-x-6;
23
- .govgr-svg-icon {
24
- fill: var(--color-white) !important;
25
- }
26
- }
1
+ .govgr-nav {
2
+ @apply relative block w-full h-auto bg-base-100 text-base-content;
3
+ /* .govgr-nav__list {
4
+ @apply px-3;
5
+ } */
27
6
  .govgr-nav__list-item-link,
28
7
  .govgr-nav__list-item-btn {
29
- @apply underline xs:text-white text-lg sm:flex !important;
30
- @apply xs:hidden items-center xs:gap-1;
31
- &:focus {
32
- @apply sm:bg-focus sm:text-link-active !important;
33
- .govgr-svg-icon {
34
- fill: var(--color-link-active) !important;
35
- }
36
- }
8
+ @apply md:no-underline !important;
37
9
  }
38
- .govgr-nav__list--active {
39
- @apply sm:bg-tertiary !important;
10
+ }
11
+ .govgr-nav--hidden {
12
+ @apply hidden;
13
+ }
14
+ .govgr-nav--drawer {
15
+ @apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4;
16
+ @apply shadow-thick !important;
17
+ .govgr-nav__list--horizontal {
18
+ @apply px-0;
40
19
  }
41
20
  }
42
- /* --- NAV --- */
43
- .govgr-nav {
44
- @apply sm:block !important;
45
- @apply xs:hidden w-3/4 sm:w-full h-full bg-base-100
46
- sm:h-auto sm:bg-base-100 xs:text-base-content
47
- z-30 sm:z-auto
48
- opacity-100 right-0 top-0 sm:top-auto overflow-x-scroll sm:overflow-visible;
21
+ .govgr-nav--drawer-smDown {
22
+ @apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4
23
+ sm:relative sm:block sm:w-full sm:h-auto sm:z-auto sm:top-auto sm:overflow-visible sm:p-0;
24
+ @apply shadow-thick sm:shadow-none !important;
25
+ .govgr-nav__list--horizontal {
26
+ @apply px-0 sm:px-4;
27
+ }
28
+ }
29
+ .govgr-nav--drawer-mdDown {
30
+ @apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4
31
+ md:relative md:block md:w-full md:h-auto md:z-auto md:top-auto md:overflow-visible md:p-0;
32
+ @apply shadow-thick md:shadow-none !important;
33
+ .govgr-nav__list--horizontal {
34
+ @apply px-0 md:px-4;
35
+ }
49
36
  }
50
- .govgr-nav--fixed {
51
- @apply fixed sm:relative;
37
+
38
+ .govgr-nav--drawer-lgDown {
39
+ @apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4
40
+ lg:relative lg:block lg:w-full lg:h-auto lg:z-auto lg:top-auto lg:overflow-visible lg:p-0;
41
+ @apply shadow-thick lg:shadow-none !important;
42
+ .govgr-nav__list--horizontal {
43
+ @apply px-0 lg:px-4;
44
+ }
52
45
  }
53
46
  .govgr-nav--border {
54
47
  @apply sm:border-b sm:border-base-400;
55
48
  }
56
- .govgr-nav--open {
57
- @apply xs:block;
58
- }
59
- .govgr-nav--hidden {
60
- @apply hidden !important;
49
+ .govgr-nav__list {
50
+ @apply w-full m-0 max-w-5xl static flex flex-wrap flex-col;
61
51
  }
62
- .govgr-nav__list-item {
63
- @apply text-base-content
64
- xs:py-1;
65
- }
66
- .govgr-nav--horizontal {
67
- .govgr-nav--horizontal {
68
- @apply sm:mt-2 sm:border-b-0 static w-full z-1 sm:order-1;
69
- @apply block overflow-x-visible;
70
- .govgr-nav__list {
71
- @apply sm:px-0 sm:pb-0 sm:ml-6 !important;
72
- }
73
- }
74
- .govgr-nav__list {
75
- @apply w-full m-0 max-w-5xl sm:mx-auto sm:gap-x-6 static sm:py-1 xs:px-3 sm:px-0
76
- flex flex-wrap flex-col sm:flex-row;
77
- .govgr-section-break {
78
- margin-top: 41px !important;
79
- @apply sm:flex !important;
80
- @apply xs:hidden sm:p-0 absolute left-0 right-0;
81
- }
82
- }
52
+ .govgr-nav__list--horizontal {
53
+ @apply sm:mx-auto sm:gap-x-6 sm:py-1 px-4 sm:flex-row;
83
54
  .govgr-nav__list-item {
84
55
  @apply sm:gap-x-6;
85
56
  }
86
- .govgr-drawer__close-icon {
87
- @apply sm:hidden mt-3;
88
- }
89
- .govgr-heading-md {
90
- @apply mb-0;
91
- }
92
57
  }
93
- .govgr-nav--vertical {
94
- .govgr-nav--vertical {
95
- @apply sm:mt-2 sm:border-b-0 static w-full z-1;
96
- @apply block overflow-x-visible;
97
- }
98
- .govgr-nav__list {
99
- @apply w-full m-0 max-w-5xl static xs:px-3
100
- flex flex-wrap flex-col;
101
- }
102
- .govgr-drawer__close-icon {
103
- @apply sm:hidden mt-3;
104
- }
105
- .govgr-heading-md {
106
- @apply mb-0;
107
- }
58
+ .govgr-nav__list--full-width {
59
+ @apply max-w-none;
108
60
  }
109
- .govgr-nav__list,
110
- .govgr-main-wrapper {
111
- .govgr-drawer__heading {
112
- @apply flex-row-reverse;
113
- }
61
+ .govgr-nav__list-item {
62
+ @apply text-base-content font-normal py-1;
114
63
  }
115
64
  .govgr-nav__list-item-link,
116
65
  .govgr-nav__list-item-btn {
117
- @apply md:no-underline !important;
118
- .govgr-svg-icon {
119
- @apply ml-0.5;
120
- }
66
+ @apply text-left;
121
67
  &:focus {
122
68
  @apply bg-focus text-base-content outline-none;
123
69
  box-shadow: 0 -2px var(--color-focus), 0 4px var(--color-base-content);
@@ -130,50 +76,71 @@
130
76
  .govgr-nav__list-item-btn--active {
131
77
  @apply text-base-content !important;
132
78
  @apply font-semibold;
133
- > .govgr-svg-icon {
134
- fill: var(--color-base-content) !important;
135
- }
136
79
  }
137
80
 
138
- /* --- NAV-MENU --- */
139
81
  .govgr-nav-menu {
140
- @apply flex z-1 w-full;
82
+ @apply flex w-full;
141
83
  }
142
84
  .govgr-nav-menu--hidden {
143
85
  @apply hidden;
144
86
  }
145
87
  .govgr-nav-menu--horizontal {
146
88
  @apply sm:order-2 sm:left-0 sm:right-0 sm:relative sm:mt-3 sm:bg-base-100;
147
- .govgr-main-wrapper {
148
- @apply xs:gap-y-2;
149
- }
150
89
  .govgr-nav-menu__content-list {
151
- @apply sm:grid-cols-2 sm:grid-rows-1 !important;
152
- @apply p-0 sm:grid grid-flow-row xs:grid-cols-1 xs:grid-rows-6;
90
+ @apply sm:grid-rows-1 sm:grid-cols-3;
91
+ }
92
+ .govgr-nav-menu__title {
93
+ @apply hidden sm:block;
94
+ + .govgr-nav-menu__content > .govgr-nav-menu__content-list {
95
+ @apply sm:grid-cols-2;
96
+ }
153
97
  }
154
98
  }
155
99
  .govgr-nav-menu--vertical {
156
- .govgr-nav-menu__content-list {
157
- @apply p-0 grid-flow-row xs:grid-cols-1 xs:grid-rows-6;
158
- }
159
- .govgr-nav-menu__container-title {
160
- @apply mt-3;
161
- }
162
- .govgr-nav-menu__container-title-heading {
100
+ .govgr-nav-menu__title {
163
101
  @apply hidden;
164
102
  }
103
+ .govgr-nav-menu__content-list {
104
+ @apply py-2 sm:py-4;
105
+ }
106
+ }
107
+ .govgr-nav-menu__content-list {
108
+ @apply p-0 grid grid-flow-row grid-cols-1;
165
109
  }
166
110
  .govgr-nav-menu__content-list-item {
167
- @apply relative pt-0 pb-5 pr-3 pl-0 box-border;
111
+ @apply relative pt-0 pb-5 pr-3 pl-0 box-border;
168
112
  }
169
113
 
170
- /* --- VERTICAL LIST --- */
171
- .govgr-vertical-nav {
172
- @apply flex flex-wrap;
114
+ /* overrides */
115
+
116
+ .govgr-nav {
117
+ .govgr-close-btn {
118
+ @apply mb-4;
119
+ }
120
+ .govgr-heading-md {
121
+ @apply mb-2 md:mb-0;
122
+ }
173
123
  }
174
- .govgr-vertical-nav__item {
175
- @apply w-full p-2 !important;
124
+ /* .govgr-nav__list,
125
+ .govgr-grid {
126
+ .govgr-drawer__heading {
127
+ @apply flex-row-reverse;
128
+ }
129
+ } */
130
+ .govgr-nav__list-item-link,
131
+ .govgr-nav__list-item-btn {
132
+ > .govgr-svg-icon {
133
+ @apply ml-1;
134
+ }
176
135
  }
177
- .govgr-vertical-nav__item--active {
178
- @apply font-semibold !important;
136
+ .govgr-nav__list-item-link--active,
137
+ .govgr-nav__list-item-btn--active {
138
+ > .govgr-svg-icon {
139
+ fill: var(--color-base-content) !important;
140
+ }
141
+ }
142
+ .govgr-nav-menu--horizontal {
143
+ .govgr-grid {
144
+ @apply gap-y-2;
145
+ }
179
146
  }
@@ -1,16 +1,34 @@
1
1
  .govgr-notification-banner {
2
- @apply bg-info border-5 border-info mb-6 md:mb-8 font-normal
3
- print:bg-base-100;
2
+ @apply border-5 mb-6 md:mb-8 font-normal print:bg-white;
3
+ &.govgr-notification-banner--dense, .govgr-dense & {
4
+ @apply border-4 mb-4 md:mb-5;
5
+ .govgr-notification-banner__title {
6
+ @apply px-2 sm:px-3 pb-1;
7
+ }
8
+ .govgr-notification-banner__content {
9
+ @apply p-3 md:p-4;
10
+ }
11
+ }
12
+ }
13
+ .govgr-notification-banner--info {
14
+ @apply bg-info border-info;
4
15
  }
5
16
  .govgr-notification-banner--success {
6
- @apply bg-success border-success
7
- print:bg-white;
17
+ @apply bg-success border-success;
8
18
  .govgr-notification-banner__link {
9
- &:link {
19
+ &:link:not(:focus) {
10
20
  @apply text-success;
11
21
  }
12
22
  }
13
23
  }
24
+ .govgr-notification-banner--error {
25
+ @apply bg-error border-error;
26
+ .govgr-notification-banner__link {
27
+ &:link:not(:focus) {
28
+ @apply text-error;
29
+ }
30
+ }
31
+ }
14
32
  .govgr-notification-banner__header {
15
33
  @apply text-white p-0 m-0 text-base md:text-lg
16
34
  print:border-b print:border-base-400 print:text-base-content print:pt-2;
@@ -27,11 +45,8 @@
27
45
  @apply mb-0;
28
46
  }
29
47
  }
30
- .govgr-notification-banner__heading {
31
- @apply p-0 m-0 mb-4 text-lg md:text-2xl font-bold;
32
- }
33
48
  .govgr-notification-banner__link {
34
- @apply underline;
49
+ @apply underline text-base md:text-lg;
35
50
  &:link {
36
51
  @apply text-link;
37
52
  }
@@ -40,8 +55,15 @@
40
55
  }
41
56
  &:focus {
42
57
  background-color: var(--color-focus);
43
- box-shadow: 0 -2px var(--color-focus), 0 4px var(--color-base-content);
58
+ box-shadow:
59
+ 0 -2px var(--color-focus),
60
+ 0 4px var(--color-base-content);
44
61
  text-decoration: none;
45
62
  outline: none;
46
63
  }
47
64
  }
65
+ .govgr-notification-banner__heading {
66
+ .govgr-notification-banner__link {
67
+ font-size: inherit;
68
+ }
69
+ }
@@ -3,31 +3,16 @@
3
3
  .govgr-pagination__label {
4
4
  @apply md:text-lg text-base;
5
5
  }
6
- .govgr-label {
7
- @apply text-base-content md:leading-normal flex-row items-center gap-2 md:text-lg text-base;
8
- }
9
6
  .govgr-pagination__item--current {
10
7
  @apply md:text-lg text-base;
11
8
  }
12
- .govgr-select {
13
- text-indent: 0px;
14
- @apply flex text-base-content md:leading-normal border md:text-lg text-base;
15
- &:focus {
16
- -webkit-box-shadow: inset 0 0 0 1px;
17
- box-shadow: inset 0 0 0 1px;
18
- }
19
- }
20
9
  }
21
- .govgr-pagination--size-sm {
22
- .govgr-pagination__label, .govgr-label, .govgr-select, .govgr-pagination__item--current {
23
- @apply md:text-base text-sm;
24
- }
25
- .govgr-pagination__list {
26
- .govgr-link{
27
- @apply md:text-base text-sm !important;
28
- }
10
+ .govgr-pagination--sm {
11
+ .govgr-pagination__label,
12
+ .govgr-pagination__item--current {
13
+ @apply md:text-base text-sm;
29
14
  }
30
- }
15
+ }
31
16
  .govgr-pagination__label {
32
17
  @apply text-base-content md:leading-normal;
33
18
  }
@@ -35,9 +20,6 @@
35
20
  @apply flex items-center;
36
21
  }
37
22
  .govgr-pagination__item {
38
- .govgr-link{
39
- @apply flex items-center no-underline;
40
- }
41
23
  @apply inline-block p-2 m-0;
42
24
  &:first-child {
43
25
  @apply pl-0;
@@ -50,9 +32,44 @@
50
32
  .govgr-pagination__item--dots {
51
33
  @apply font-bold;
52
34
  }
35
+
36
+ /* overrides */
37
+
38
+ .govgr-pagination {
39
+ .govgr-label {
40
+ @apply text-base-content md:leading-normal flex-row items-center gap-2 md:text-lg text-base;
41
+ }
42
+ .govgr-select {
43
+ text-indent: 0px;
44
+ @apply flex text-base-content md:leading-normal border md:text-lg text-base;
45
+ &:focus {
46
+ -webkit-box-shadow: inset 0 0 0 1px;
47
+ box-shadow: inset 0 0 0 1px;
48
+ }
49
+ }
50
+ }
51
+ .govgr-pagination--sm {
52
+ .govgr-label,
53
+ .govgr-select {
54
+ @apply md:text-base text-sm;
55
+ }
56
+ .govgr-pagination__list {
57
+ .govgr-link {
58
+ @apply md:text-base text-sm !important;
59
+ }
60
+ }
61
+ }
62
+ .govgr-pagination__item {
63
+ .govgr-link {
64
+ @apply flex items-center no-underline;
65
+ }
66
+ }
53
67
  .govgr-pagination__item--inactive {
54
68
  .govgr-link {
55
69
  pointer-events: none;
56
70
  @apply text-base-800;
71
+ .govgr-svg-icon {
72
+ fill: var(--color-base-800);
73
+ }
57
74
  }
58
- }
75
+ }
@@ -1,10 +1,10 @@
1
1
  .govgr-panel {
2
2
  @apply box-border mb-4 p-8 border-5 border-transparent text-center
3
- print:p-4;
3
+ print:p-4 text-white
4
+ print:border-4 print:text-base-content print:bg-white;
4
5
  }
5
- .govgr-panel--confirmation {
6
- @apply bg-success text-white
7
- print:border-4 print:border-success print:text-base-content print:bg-white;
6
+ .govgr-panel--success {
7
+ @apply bg-success print:border-success;
8
8
  }
9
9
  .govgr-panel__title {
10
10
  @apply mx-auto mt-0;
@@ -15,6 +15,7 @@
15
15
  letter-spacing: var(--panel__title-letter-spacing);
16
16
  }
17
17
  .govgr-panel__body {
18
+ @apply break-words;
18
19
  font-size: var(--panel__body-font-size);
19
20
  line-height:var(--panel__body-line-height);
20
21
  margin:var(--panel__body-margin);
@@ -1,4 +1,4 @@
1
- .govgr-phase-banner_header {
1
+ .govgr-phase-banner__header {
2
2
  @apply bg-focus top-0 z-30
3
3
  print:bg-white print:border-focus print:border-2 print:px-4;
4
4
  .govgr-phase-banner {
@@ -22,9 +22,3 @@
22
22
  .govgr-phase-banner__text {
23
23
  @apply table-cell text-base-content;
24
24
  }
25
- .govgr-header,
26
- .govgr-masthead--primary {
27
- .govgr-phase-banner__text {
28
- @apply text-white print:text-base-content;
29
- }
30
- }
@@ -1,20 +1,19 @@
1
- module.exports = {
1
+ /** @type {import('postcss-load-config').Config} */
2
+ const config = {
2
3
  plugins: [
3
- require('postcss-import'),
4
- require('tailwindcss')('./src/components/tailwind.config.js'),
5
- require('postcss-nested')({
6
- "bubble": [
7
- "screen"
8
- ]
9
- }),
10
- require('autoprefixer'),
11
- require('cssnano')({
12
- "preset": [
4
+ require("postcss-import"),
5
+ require("tailwindcss/nesting"),
6
+ require("tailwindcss")("./src/components/tailwind.config.js"),
7
+ require("autoprefixer"),
8
+ require("cssnano")({
9
+ preset: [
13
10
  "default",
14
11
  {
15
- "mergeRules": false
16
- }
17
- ]
12
+ mergeRules: false,
13
+ },
14
+ ],
18
15
  }),
19
- ]
20
- }
16
+ ],
17
+ };
18
+
19
+ module.exports = config;
@@ -1,17 +1,22 @@
1
- .govgr-radios {}
1
+ .govgr-radios {
2
+ &.govgr-radios--dense, govgr-dense & {
3
+ .govgr-radios__item {
4
+ @apply mb-2 pl-9 min-h-8;
5
+ }
6
+ .govgr-radios__input {
7
+ @apply left-0.5 top-0 w-8 h-8;
8
+ &:focus {
9
+ border-width: 3px;
10
+ }
11
+ }
12
+ }
13
+ }
2
14
  .govgr-radios__item {
3
15
  @apply block relative mb-4 pl-12;
4
16
  min-height: 40px;
5
17
  }
6
- .govgr-radios--inline {
7
- .govgr-radios__item {
8
- @apply sm:mr-6 sm:float-left sm:clear-none;
9
- }
10
- &::after {
11
- content: "";
12
- display: block;
13
- clear: both;
14
- }
18
+ .govgr-radios--horizontal {
19
+ @apply inline-flex flex-wrap items-baseline gap-4 md:gap-6;
15
20
  }
16
21
  .govgr-radios__item {
17
22
  @apply block relative mb-4 pl-12;
@@ -22,7 +27,7 @@
22
27
  @apply inline-block py-1 px-2 cursor-pointer;
23
28
  }
24
29
  .govgr-radios__input {
25
- @apply absolute z-1 left-0.5 -top-1 m-0 rounded-3xl
30
+ @apply absolute z-1 left-0.5 -top-1 m-0
26
31
  w-10 h-10 opacity-100 cursor-pointer
27
32
  bg-base-100;
28
33
  appearance: none;
@@ -30,17 +35,10 @@
30
35
  height: 40px;
31
36
  border: 2px solid currentColor;
32
37
  border-radius: 50%;
33
- &::before {
34
- content: "";
35
- @apply absolute bg-base-100 opacity-0 w-0 h-0;
36
- top: 6px;
37
- left: 6px;
38
- border: 12px solid currentColor;
39
- border-radius: 50%;
40
- }
41
38
  &:checked {
42
- &::before {
43
- @apply opacity-100;
39
+ box-shadow: inset 0 0 0px 6px var(--color-base-100), inset 0 0 0 20px var(--color-base-content);
40
+ &:focus {
41
+ box-shadow: 0 0 0 4px var(--color-focus), inset 0 0 0px 4px var(--color-base-100), inset 0 0 0 20px var(--color-base-content);
44
42
  }
45
43
  }
46
44
  &:focus {
@@ -48,12 +46,23 @@
48
46
  outline-offset: 1px;
49
47
  box-shadow: 0 0 0 4px var(--color-focus);
50
48
  border-width: 4px;
51
- &::before {
52
- top: 4px;
53
- left: 4px;
54
- }
55
49
  }
56
50
  }
57
51
  .govgr-radios__conditional {
58
52
  @apply border-l-4 border-base-500 ml-4 pl-6;
59
53
  }
54
+
55
+ /* overrides */
56
+
57
+ .govgr-radios--horizontal {
58
+ .govgr-choice-divider-text {
59
+ @apply min-w-max mx-2;
60
+ }
61
+ }
62
+ .govgr-radios {
63
+ &.govgr-radios--dense, .govgr-dense & {
64
+ .govgr-field {
65
+ @apply mb-4 md:mb-6;
66
+ }
67
+ }
68
+ }
@@ -0,0 +1,66 @@
1
+ .govgr-stack {
2
+ @apply flex flex-col flex-wrap;
3
+ }
4
+ .govgr-stack--row {
5
+ @apply flex-row;
6
+ }
7
+ .govgr-stack--reverse-row {
8
+ @apply flex-row-reverse;
9
+ }
10
+ .govgr-stack--col-reverse {
11
+ @apply flex-col-reverse;
12
+ }
13
+ .govgr-stack--nowrap {
14
+ @apply flex-nowrap;
15
+ }
16
+ .govgr-stack--justify-flex-start {
17
+ @apply justify-start;
18
+ }
19
+ .govgr-stack--justify-flex-end {
20
+ @apply justify-end;
21
+ }
22
+ .govgr-stack--justify-center {
23
+ @apply justify-center;
24
+ }
25
+ .govgr-stack--justify-space-between {
26
+ @apply justify-between;
27
+ }
28
+ .govgr-stack--justify-space-around {
29
+ @apply justify-around;
30
+ }
31
+ .govgr-stack--justify-space-evenly {
32
+ @apply justify-evenly;
33
+ }
34
+ .govgr-stack--align-stretch {
35
+ @apply items-stretch;
36
+ }
37
+ .govgr-stack--align-flex-start {
38
+ @apply items-start;
39
+ }
40
+ .govgr-stack--align-flex-end {
41
+ @apply items-end;
42
+ }
43
+ .govgr-stack--align-center {
44
+ @apply items-center;
45
+ }
46
+ .govgr-stack--align-baseline {
47
+ @apply items-baseline;
48
+ }
49
+ .govgr-stack--content-flex-start {
50
+ @apply content-start;
51
+ }
52
+ .govgr-stack--content-flex-end {
53
+ @apply content-end;
54
+ }
55
+ .govgr-stack--content-center {
56
+ @apply content-center;
57
+ }
58
+ .govgr-stack--content-space-between {
59
+ @apply content-between;
60
+ }
61
+ .govgr-stack--content-space-around {
62
+ @apply content-around;
63
+ }
64
+ .govgr-stack--content-space-evenly {
65
+ @apply content-evenly;
66
+ }