@digigov/css 0.32.1 → 0.33.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.
- package/defaultTheme/accordion.json +8 -0
- package/defaultTheme/breadcrumbs.json +8 -0
- package/defaultTheme/index.js +17 -11
- package/defaultTheme/misc.json +8 -0
- package/defaultTheme/phase-banner.json +8 -0
- package/defaultTheme/radios.json +8 -0
- package/defaultTheme/summary-list.json +8 -0
- package/defaultTheme/typography.json +14 -5
- package/dist/base/index.css +3 -3
- package/dist/base.js +1 -1
- package/dist/components.js +1 -1
- package/dist/digigov.css +4 -4
- package/package.json +1 -1
- package/src/components/accordion.css +5 -1
- package/src/components/breadcrumbs.css +2 -1
- package/src/components/dropdown.css +1 -1
- package/src/components/form.css +9 -3
- package/src/components/misc.css +4 -2
- package/src/components/nav.css +9 -11
- package/src/components/phase-banner.css +1 -0
- package/src/components/radios.css +2 -1
- package/src/components/summary-list.css +2 -2
- package/src/components/table.css +16 -0
- package/src/components/typography.css +4 -3
package/package.json
CHANGED
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
@apply border-t;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
+
.govgr-accordion__section--no-border {
|
|
12
|
+
@apply border-0 !important;
|
|
13
|
+
}
|
|
11
14
|
.govgr-accordion__section-summary {
|
|
12
15
|
@apply py-4 pr-8 hover:bg-gray50 transition ease-in-out cursor-pointer;
|
|
13
16
|
list-style: none;
|
|
@@ -35,7 +38,8 @@
|
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
40
|
.govgr-accordion__section-heading {
|
|
38
|
-
|
|
41
|
+
font-size: var(--accordion__section-heading-font-size);
|
|
42
|
+
@apply no-underline font-semibold
|
|
39
43
|
mb-0 transition-all justify-between cursor-pointer;
|
|
40
44
|
&:active {
|
|
41
45
|
@apply ring-link-visited;
|
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
clear: both;
|
|
11
11
|
}
|
|
12
12
|
.govgr-breadcrumbs__list-item {
|
|
13
|
+
font-size: var(--breadcrumbs__list-item-font-size);
|
|
13
14
|
@apply inline-block relative mb-1 ml-2 pl-4 float-left;
|
|
14
15
|
&::before {
|
|
15
16
|
content: "";
|
|
16
|
-
@apply block absolute top-2 bottom-0 left-0 w-3 h-3 mx-auto my-0 bg-contain bg-no-repeat bg-center;
|
|
17
|
+
@apply block absolute top-2 bottom-0 left-0 md:w-3 md:h-3 w-2 h-2 mx-auto my-0 bg-contain bg-no-repeat bg-center;
|
|
17
18
|
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>" );
|
|
18
19
|
}
|
|
19
20
|
&:first-child {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
.govgr-dropdown__content {
|
|
47
47
|
@apply border border-gray200 p-4 bg-white border-t-0
|
|
48
|
-
max-w-xs w-max absolute transition z-1 mr-4 -mt-4;
|
|
48
|
+
max-w-xs w-max min-w-full absolute transition z-1 mr-4 -mt-4;
|
|
49
49
|
-webkit-box-box-shadow: 0 2px 8px var(--color-shadow200), 0 -2px 0 var(--color-gray300);
|
|
50
50
|
box-shadow: 0 2px 8px var(--color-shadow200), 0 -2px 0 var(--color-gray300);
|
|
51
51
|
*:last-child {
|
package/src/components/form.css
CHANGED
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
.govgr-radios__input:disabled,
|
|
153
153
|
.govgr-radios__input:disabled::before,
|
|
154
154
|
.govgr-radios__input:disabled:checked:before {
|
|
155
|
-
@apply bg-
|
|
155
|
+
@apply bg-gray100 cursor-not-allowed;
|
|
156
156
|
}
|
|
157
157
|
.govgr-input:disabled,
|
|
158
158
|
.govgr-textarea:disabled,
|
|
@@ -160,6 +160,12 @@
|
|
|
160
160
|
.govgr-radios__input:disabled::before {
|
|
161
161
|
@apply border-gray500 text-gray600;
|
|
162
162
|
}
|
|
163
|
-
.govgr-checkboxes__input:disabled:checked:after,
|
|
164
|
-
|
|
163
|
+
.govgr-checkboxes__input:disabled:checked:after,
|
|
164
|
+
.govgr-radios__input:disabled:checked:after {
|
|
165
|
+
@apply opacity-40;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.govgr-radios__label--disabled,
|
|
169
|
+
.govgr-checkboxes__label--disabled {
|
|
170
|
+
@apply opacity-40;
|
|
165
171
|
}
|
package/src/components/misc.css
CHANGED
|
@@ -12,14 +12,16 @@
|
|
|
12
12
|
@apply border-5 border-error mb-6 md:mb-8 p-4 md:p-5;
|
|
13
13
|
}
|
|
14
14
|
.govgr-warning-text {
|
|
15
|
+
font-size: var(--warning-text-font-size);
|
|
15
16
|
@apply flex pl-0 pr-0;
|
|
16
17
|
.govgr-warning-text__icon {
|
|
17
18
|
@apply text-white font-bold bg-base-content text-3xl leading-10 text-center
|
|
18
|
-
rounded-3xl min-h-10 min-w-10 h-fit mr-6 mt-1
|
|
19
|
+
rounded-3xl md:min-h-10 min-w-10 h-fit mr-6 mt-1
|
|
19
20
|
print:bg-white print:border-2 print:border-base-content print:text-base-content;
|
|
20
21
|
}
|
|
21
22
|
.govgr-warning-text__text {
|
|
22
|
-
|
|
23
|
+
|
|
24
|
+
@apply flex items-center;
|
|
23
25
|
}
|
|
24
26
|
.govgr-warning-text__assistive {
|
|
25
27
|
position: absolute !important;
|
package/src/components/nav.css
CHANGED
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
z-30 sm:z-auto
|
|
79
79
|
opacity-100 right-0 top-0 sm:top-auto overflow-x-scroll sm:overflow-visible;
|
|
80
80
|
.govgr-horizontal-nav{
|
|
81
|
-
@apply sm:border-b-0 static w-full z-1;
|
|
81
|
+
@apply sm:mt-2 sm:border-b-0 static w-full z-1;
|
|
82
82
|
@apply block overflow-x-visible !important;
|
|
83
83
|
.govgr-nav-horizontal__container {
|
|
84
84
|
@apply sm:border-b-0;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
.govgr-nav-horizontal--border{
|
|
98
|
-
@apply sm:border-b sm:border-base150
|
|
98
|
+
@apply sm:border-b sm:border-base150;
|
|
99
99
|
}
|
|
100
100
|
.govgr-nav-horizontal__container{
|
|
101
101
|
@apply sm:border-b border-base150;
|
|
@@ -112,14 +112,13 @@
|
|
|
112
112
|
@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
|
|
113
113
|
flex flex-wrap flex-col sm:flex-row;
|
|
114
114
|
.govgr-section-break{
|
|
115
|
-
margin-top:
|
|
115
|
+
margin-top:41px !important;
|
|
116
116
|
@apply sm:flex !important;
|
|
117
117
|
@apply xs:hidden sm:p-0 absolute left-0 right-0;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
.govgr-horizontal-nav__list-item {
|
|
121
|
-
@apply text-
|
|
122
|
-
xs:py-1 sm:text-base sm:gap-x-6;
|
|
121
|
+
@apply text-base-content xs:py-1 sm:gap-x-6;
|
|
123
122
|
}
|
|
124
123
|
.govgr-horizontal-nav__list-item-link:focus {
|
|
125
124
|
@apply bg-focus text-base-content outline-none;
|
|
@@ -138,7 +137,7 @@
|
|
|
138
137
|
@apply md:no-underline hover:underline !important;
|
|
139
138
|
}
|
|
140
139
|
.govgr-horizontal-nav__list-item-link--active,.govgr-horizontal-nav__list-item-btn--active {
|
|
141
|
-
@apply
|
|
140
|
+
@apply text-base-content !important;
|
|
142
141
|
>.govgr-svg-icon {
|
|
143
142
|
fill: var(--color-base-content) !important;
|
|
144
143
|
}
|
|
@@ -148,10 +147,6 @@
|
|
|
148
147
|
.govgr-vertical-nav__list {
|
|
149
148
|
@apply w-full m-0 max-w-5xl static xs:px-3
|
|
150
149
|
flex flex-wrap flex-col;
|
|
151
|
-
.govgr-section-break{
|
|
152
|
-
margin-top:31px !important;
|
|
153
|
-
@apply xs:hidden absolute left-0 right-0;
|
|
154
|
-
}
|
|
155
150
|
}
|
|
156
151
|
.govgr-vertical-nav__list-item {
|
|
157
152
|
@apply text-base-content
|
|
@@ -177,10 +172,13 @@
|
|
|
177
172
|
.govgr-vertical-nav__item {
|
|
178
173
|
@apply w-full p-2 !important;
|
|
179
174
|
}
|
|
175
|
+
.govgr-vertical-nav__item--active {
|
|
176
|
+
@apply font-semibold !important;
|
|
177
|
+
}
|
|
180
178
|
/* ---------- --- */
|
|
181
179
|
|
|
182
180
|
.govgr-nav-list__menu{
|
|
183
|
-
@apply flex sm:order-2 sm:left-0 sm:right-0 sm:relative sm:bg-white z-1 w-full;
|
|
181
|
+
@apply flex sm:order-2 sm:left-0 sm:right-0 sm:relative sm:mt-3 sm:bg-white z-1 w-full;
|
|
184
182
|
.govgr-main-wrapper {
|
|
185
183
|
@apply xs:gap-y-2;
|
|
186
184
|
}
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
.govgr-radios__label {
|
|
16
|
-
|
|
16
|
+
font-size: var(--radios__label-font-size);
|
|
17
|
+
@apply inline-block py-1 px-2 cursor-pointer;
|
|
17
18
|
}
|
|
18
19
|
.govgr-radios__input {
|
|
19
20
|
@apply absolute z-1 left-0.5 -top-1 m-0 rounded-3xl
|
package/src/components/table.css
CHANGED
|
@@ -66,6 +66,12 @@
|
|
|
66
66
|
.govgr-table__row {
|
|
67
67
|
@apply bg-white;
|
|
68
68
|
}
|
|
69
|
+
.govgr-table__row--warning {
|
|
70
|
+
@apply border-l-4 border-warning;
|
|
71
|
+
.govgr-table__cell:first-child{
|
|
72
|
+
@apply pl-2;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
69
75
|
.govgr-table__cell{
|
|
70
76
|
.govgr-btn {
|
|
71
77
|
@apply mb-0;
|
|
@@ -119,6 +125,16 @@
|
|
|
119
125
|
.govgr-table__header--numeric, .govgr-table__cell--numeric {
|
|
120
126
|
@apply text-right;
|
|
121
127
|
}
|
|
128
|
+
.govgr-table__body--vertical-top {
|
|
129
|
+
.govgr-table__cell {
|
|
130
|
+
@apply align-top;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
.govgr-table__body--vertical-bottom {
|
|
134
|
+
.govgr-table__cell {
|
|
135
|
+
@apply align-bottom;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
122
138
|
.govgr-table__cell--numeric {
|
|
123
139
|
@apply font-normal;
|
|
124
140
|
font-feature-settings: normal;
|
|
@@ -152,6 +152,7 @@
|
|
|
152
152
|
@apply focus:text-link-active underline cursor-pointer;
|
|
153
153
|
color: var(--link-color);
|
|
154
154
|
padding: var(--link-padding);
|
|
155
|
+
font-size: var(--link-font-size);
|
|
155
156
|
&:hover {
|
|
156
157
|
text-decoration-thickness: 2px;
|
|
157
158
|
color: var(--link-color-hover);
|
|
@@ -189,8 +190,8 @@
|
|
|
189
190
|
}
|
|
190
191
|
}
|
|
191
192
|
.govgr-back-link {
|
|
192
|
-
|
|
193
|
-
@apply text-base-content underline flex items-center mb-4 cursor-pointer;
|
|
193
|
+
font-size: var(--back-link-font-size);
|
|
194
|
+
@apply w-fit text-base-content underline flex items-center mb-4 cursor-pointer;
|
|
194
195
|
&:hover {
|
|
195
196
|
text-decoration-thickness: 2px;
|
|
196
197
|
}
|
|
@@ -202,7 +203,7 @@
|
|
|
202
203
|
}
|
|
203
204
|
.govgr-caret--left {
|
|
204
205
|
fill:var(--color-base-content);
|
|
205
|
-
@apply w-4 h-4 inline-block mr-2;
|
|
206
|
+
@apply md:w-4 md:h-4 w-3 h-3 inline-block mr-2;
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
209
|
.govgr-masthead--primary {
|