@digigov/css 0.29.15 → 0.30.1-navlist.alpha

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.
@@ -1,11 +1,44 @@
1
1
  .govgr-header {
2
+ @apply relative;
2
3
  .govgr-burger-icon {
3
4
  fill: var(--color-header-content) ;
4
5
  }
6
+ .govgr-drawer__close-icon{
7
+ @apply sm:hidden;
8
+ .govgr-close-icon {
9
+ fill: var(--color-link) !important;
10
+ }
11
+ }
12
+ .govgr-horizontal-nav__list{
13
+ @apply sm:flex !important;
14
+ @apply sm:w-min xs:hidden;
15
+ }
16
+ .govgr-horizontal-nav__list-item {
17
+ @apply sm:mr-auto sm:ml-auto sm:text-center sm:underline mr-0 xs:px-2;
18
+ .govgr-svg-icon {
19
+ fill: var(--color-white) !important;
20
+ }
21
+ }
22
+ .govgr-horizontal-nav__list-item-link, .govgr-horizontal-nav__list-item-btn{
23
+ @apply underline xs:text-white text-lg sm:flex !important;
24
+ @apply xs:hidden items-center xs:gap-1;
25
+ &:focus {
26
+ @apply sm:bg-focus sm:text-link-active !important;
27
+ .govgr-svg-icon {
28
+ fill: var(--color-link-active) !important;
29
+ }
30
+ }
31
+ }
32
+ .govgr-horizontal-nav__list--active{
33
+ @apply sm:bg-secondary600 !important;
34
+ }
5
35
  }
36
+ .govgr-burger-icon {
37
+ @apply cursor-pointer;
38
+ }
6
39
  .govgr-burger-icon {
7
40
  fill: var(--color-base-content) ;
8
- @apply w-8 h-8 float-right cursor-pointer transition-all z-30
41
+ @apply w-8 h-8 float-right cursor-pointer transition-all
9
42
  focus:bg-focus;
10
43
  #govgr-burger-icon__line-1, #govgr-burger-icon__line-2, #govgr-burger-icon__line-3 {
11
44
  @apply transition-all;
@@ -46,41 +79,75 @@
46
79
  transform-origin: 3px 16px
47
80
  }
48
81
  }
49
-
50
82
  /* --- HORIZONTAL --- */
51
83
  .govgr-horizontal-nav {
52
- @apply fixed w-3/4 sm:w-full h-full bg-secondary800 text-content-dark
53
- sm:relative sm:h-auto sm:bg-white sm:text-content
54
- z-30 sm:z-auto
55
- opacity-10 sm:opacity-100 sm:block transition-all duration-1000 sm:transition-none
56
- -right-3/4 sm:right-auto top-0 sm:top-auto overflow-x-scroll sm:overflow-visible
57
- border-b border-base150
58
- ;
84
+ @apply sm:block !important;
85
+ @apply xs:hidden fixed sm:relative w-3/4 sm:w-full h-full bg-white
86
+ sm:h-auto sm:bg-white xs:text-content
87
+ z-30 sm:z-auto sm:border-b sm:border-base150
88
+ opacity-100 right-0 top-0 sm:top-auto overflow-x-scroll sm:overflow-visible;
89
+ .govgr-horizontal-nav{
90
+ @apply sm:border-b-0 static w-full z-1;
91
+ @apply block overflow-x-visible !important;
92
+ .govgr-nav-horizontal__container {
93
+ @apply sm:border-b-0;
94
+ }
95
+ .govgr-horizontal-nav__list {
96
+ @apply sm:px-0 sm:pb-0 sm:ml-6 !important;
97
+ }
98
+ }
99
+ .govgr-drawer__close-icon {
100
+ @apply sm:hidden mt-3;
101
+ }
102
+ .govgr-heading-m{
103
+ @apply mb-0;
104
+ }
105
+ }
106
+ .govgr-nav-horizontal__container{
107
+ @apply sm:border-b border-base150;
59
108
  }
60
- .govgr-horizontal-nav__container {
61
- @apply w-full m-0 max-w-5xl sm:mx-auto px-4 sm:px-4 sm:py-2
62
- flex flex-wrap flex-col sm:flex-row gap-4 sm:gap-2;
109
+ .govgr-horizontal-nav--open {
110
+ @apply xs:block;
63
111
  }
64
- .govgr-horizontal-nav--active {
65
- @apply block opacity-100 right-0;
66
- .govgr-horizontal-nav__container {
67
- @apply mt-24 sm:mt-auto;
112
+ .govgr-horizontal-nav__list,.govgr-main-wrapper {
113
+ .govgr-drawer__heading {
114
+ @apply flex-row-reverse;
68
115
  }
69
- .govgr-horizontal-nav__container {
70
- @apply py-4 md:py-1;
116
+ }
117
+ .govgr-horizontal-nav__list {
118
+ @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
119
+ flex flex-wrap flex-col sm:flex-row;
120
+ .govgr-section-break{
121
+ margin-top:31px !important;
122
+ @apply sm:flex !important;
123
+ @apply xs:hidden sm:p-0 absolute left-0 right-0;
71
124
  }
72
125
  }
73
- .govgr-horizontal-nav__item {
74
- @apply p-1 text-xl text-base-content
75
- sm:py-1 sm:px-1 sm:text-base
76
- no-underline hover:underline;
126
+ .govgr-horizontal-nav__list-item {
127
+ @apply text-xl text-base-content
128
+ xs:py-1 sm:text-base sm:gap-x-6;
77
129
  }
78
- .govgr-horizontal-nav__item:focus {
130
+ .govgr-horizontal-nav__list-item-link:focus {
79
131
  @apply bg-focus text-base-content outline-none;
80
132
  box-shadow: 0 -2px var(--color-focus), 0 4px var(--color-base-content);
81
133
  }
82
- .govgr-horizontal-nav__item-active, .govgr-vertical-nav__item--active {
83
- @apply font-semibold;
134
+ .govgr-horizontal-nav__list-item-btn{
135
+ .govgr-svg-icon{
136
+ @apply ml-0.5;
137
+ }
138
+ &:focus{
139
+ @apply bg-focus text-base-content outline-none;
140
+ box-shadow: 0 -2px var(--color-focus), 0 4px var(--color-base-content);
141
+ }
142
+ }
143
+ .govgr-horizontal-nav__list-item-link, .govgr-horizontal-nav__list-item-btn{
144
+ @apply md:no-underline hover:underline !important;
145
+ }
146
+ .govgr-horizontal-nav__list-item-link--active,.govgr-horizontal-nav__list-item-btn--active {
147
+ @apply font-semibold text-base-content !important;
148
+ >.govgr-svg-icon {
149
+ fill: var(--color-base-content) !important;
150
+ }
84
151
  }
85
152
 
86
153
  /* --- VERTICAL --- */
@@ -88,5 +155,24 @@
88
155
  @apply flex flex-wrap;
89
156
  }
90
157
  .govgr-vertical-nav__item {
91
- @apply w-full p-2;
158
+ @apply w-full p-2 !important;
92
159
  }
160
+ /* ---------- --- */
161
+ .govgr-nav-list__menu{
162
+ @apply flex sm:order-2 sm:left-0 sm:right-0 sm:relative sm:bg-white z-1 w-full;
163
+ &.govgr-main-wrapper {
164
+ @apply xs:gap-y-2;
165
+ };
166
+ }
167
+ .govgr-nav-list__menu-hidden {
168
+ @apply hidden;
169
+ }
170
+ .govgr-nav-list__content-list{
171
+ @apply sm:grid-cols-2 sm:grid-rows-1 !important;
172
+ @apply p-0 sm:grid grid-flow-row xs:grid-cols-1 xs:grid-rows-6;
173
+
174
+ }
175
+ .govgr-nav-list__content-list-item {
176
+ @apply relative pt-0 pb-5 pr-3 pl-0 box-border;
177
+ }
178
+
@@ -2,7 +2,7 @@
2
2
  @apply py-2 mb-4;
3
3
  }
4
4
  .govgr-phase-banner__underline {
5
- @apply border-base200 border-b;
5
+ @apply border-gray300 border-b;
6
6
  }
7
7
  .govgr-phase-banner__content {
8
8
  @apply table;
@@ -60,7 +60,7 @@
60
60
  @apply md:border-0 border-0;
61
61
  }
62
62
  .govgr-step-nav__accordion {
63
- @apply border-base150;
63
+ @apply border-gray200;
64
64
 
65
65
  &:first-child {
66
66
  @apply border-t-2;
@@ -99,7 +99,7 @@
99
99
  .govgr-table--zebra {
100
100
  .govgr-table__body {
101
101
  .govgr-table__row:nth-child(even) {
102
- @apply bg-base100 print:bg-white;
102
+ @apply bg-gray100 print:bg-white;
103
103
  }
104
104
  }
105
105
  }
@@ -12,7 +12,7 @@
12
12
  }
13
13
  .govgr-tabs__list-item {
14
14
  @apply relative px-4 py-2 m-0 shadow-none cursor-pointer;
15
- @apply md:float-left md:border md:border-base100 md:bg-base100 md:rounded-t-sm md:mr-2 ;
15
+ @apply md:float-left md:border md:border-gray100 md:bg-gray100 md:rounded-t-sm md:mr-2 ;
16
16
  @apply print:hidden;
17
17
  &.govgr-tabs__list-item-selected {
18
18
  @apply no-underline md:border-gray200 md:border bg-white md:border-b-0 md:px-5 md:pb-4 md:-mt-1 md:pt-4;
@@ -45,7 +45,7 @@
45
45
  }
46
46
  }
47
47
  .govgr-tabs__panel {
48
- @apply bg-white md:hidden block md:px-4 py-4 pt-8 md:border md:border-base150 mb-0
48
+ @apply bg-white md:hidden block md:px-4 py-4 pt-8 md:border md:border-gray200 mb-0
49
49
  print:block print:border-0 print:py-3;
50
50
  &.govgr-tabs__panel-visible {
51
51
  @apply block;
@@ -20,10 +20,10 @@
20
20
  }
21
21
  .govgr-summary-list__row:first-child {
22
22
  &>dt {
23
- @apply border-t-2 border-base150;
23
+ @apply border-t-2 border-gray200;
24
24
  }
25
25
  &>dd {
26
- @apply sm:border-t-2 sm:border-base150;
26
+ @apply sm:border-t-2 sm:border-gray200;
27
27
  }
28
28
  }
29
29
  .govgr-summary-list__key {
@@ -40,5 +40,5 @@
40
40
  @apply bg-secondary50 text-primary print:border-2 print:bg-white print:border-secondary600 print:text-secondary600 print:mr-4;
41
41
  }
42
42
  .govgr-tag__gray {
43
- @apply bg-base100 print:border-2 print:bg-white print:border-base300 print:text-base300 print:mr-4;
43
+ @apply bg-gray100 print:border-2 print:bg-white print:border-gray600 print:text-gray600 print:mr-4;
44
44
  }
@@ -1,23 +1,57 @@
1
1
  .govgr-heading-xl {
2
- @apply md:text-5xl md:leading-tight text-3xl leading-tight font-bold mx-0 md:mb-12 mb-8 max-w-2xl;
2
+ @apply mx-0 max-w-2xl;
3
+ font-size: var(--heading-xl-font-size);
4
+ line-height:var(--heading-xl-line-height);
5
+ margin-bottom:var(--heading-xl-margin-bottom);
6
+ font-weight: var(--heading-xl-font-weight);
3
7
  }
4
8
  .govgr-heading-l {
5
- @apply md:text-4xl text-2xl font-bold mx-0 md:mb-10 mb-8;
9
+ @apply mx-0;
10
+ font-size: var(--heading-l-font-size);
11
+ line-height:var(--heading-l-line-height);
12
+ margin-bottom:var(--heading-l-margin-bottom);
13
+ font-weight: var(--heading-l-font-weight);
6
14
  }
7
15
  .govgr-heading-m {
8
- @apply md:text-2xl text-xl font-bold mx-0 md:mb-8 mb-6;
16
+ @apply mx-0;
17
+ font-size: var(--heading-m-font-size);
18
+ line-height:var(--heading-m-line-height);
19
+ margin-bottom:var(--heading-m-margin-bottom);
20
+ font-weight: var(--heading-m-font-weight);
9
21
  }
10
22
  .govgr-heading-s {
11
- @apply md:text-lg text-base font-bold mx-0 md:mb-5 mb-3;
12
- }
23
+ @apply mx-0 ;
24
+ font-size: var(--heading-s-font-size);
25
+ line-height:var(--heading-s-line-height);
26
+ margin-bottom:var(--heading-s-margin-bottom);
27
+ font-weight: var(--heading-s-font-weight);
28
+ }
13
29
  .govgr-caption-xl {
14
- @apply block md:text-2xl text-xl mx-0 lg:mb-2 mb-1 text-base300 font-normal;
30
+ @apply block mx-0 font-normal;
31
+ color: var(--caption-xl-color);
32
+ font-size: var(--caption-xl-font-size);
33
+ line-height: var(--caption-xl-line-height);
34
+ margin-bottom: var(--caption-xl-margin-bottom);
35
+ font-weight: var(--caption-xl-font-weight);
36
+
15
37
  }
16
38
  .govgr-caption-l {
17
- @apply block md:text-xl text-lg mx-0 mb-0 text-base300 font-normal;
39
+ @apply block mx-0 font-normal;
40
+ color: var(--caption-l-color);
41
+ font-size: var(--caption-l-font-size);
42
+ line-height: var(--caption-l-line-height);
43
+ margin-bottom: var(--caption-l-margin-bottom);
44
+ font-weight: var(--caption-l-font-weight);
45
+
18
46
  }
19
47
  .govgr-caption-m {
20
- @apply block md:text-lg text-base mx-0 mb-0 text-base300 font-normal;
48
+ @apply block mx-0 font-normal;
49
+ color: var(--caption-m-color);
50
+ font-size: var(--caption-m-font-size);
51
+ line-height: var(--caption-m-line-height);
52
+ margin-bottom: var(--caption-m-margin-bottom);
53
+ font-weight: var(--caption-m-font-weight);
54
+
21
55
  }
22
56
  .govgr-\!-font-size-14 {
23
57
  @apply text-xs md:text-sm !important;
@@ -73,24 +107,35 @@
73
107
  .govgr-list--spaced>.govgr-list__item {
74
108
  @apply mb-4;
75
109
  }
76
- .govgr-body, .govgr-list, .govgr-blockquote {
77
- @apply md:mb-8 mb-4 text-base-content md:text-lg md:leading-normal text-base;
110
+ .govgr-list, .govgr-blockquote {
111
+ @apply md:mb-8 mb-4 text-base-content md:text-lg md:leading-normal text-base;
112
+ }
113
+ .govgr-body {
114
+ font-size: var(--body-font-size);
115
+ line-height: var(--body-line-height);
116
+ margin-bottom: var(--body-margin-bottom);
117
+ color: var(--body-color);
78
118
  }
79
119
  .govgr-body-l {
80
- @apply lg:text-2xl text-lg;
120
+ font-size: var(--body-l-font-size);
121
+ line-height: var(--body-l-line-height);
81
122
  }
82
123
  .govgr-body-s {
83
- @apply lg:text-base text-sm;
124
+ font-size: var(--body-s-font-size);
125
+ line-height: var(--body-s-line-height);
84
126
  }
85
127
  .govgr-hint-l {
86
- @apply mb-4 lg:text-2xl text-lg text-base300;
128
+ @apply mb-4 lg:text-2xl text-lg text-gray600;
87
129
  }
88
130
  .govgr-hint {
89
- @apply mb-4 md:text-lg text-base text-base300;
131
+ font-size: var(--hint-font-size);
132
+ line-height: var(--hint-line-height);
133
+ margin-bottom: var(--hint-margin-bottom);
134
+ color: var(--hint-color);
90
135
  }
91
136
  .govgr-hint-s {
92
- @apply mb-4 lg:text-base text-sm text-base300;
93
- }
137
+ @apply mb-4 lg:text-base text-sm text-gray600;
138
+ }
94
139
  .govgr-background-dark, .govgr-masthead {
95
140
  .govgr-hint {
96
141
  @apply opacity-70 text-white print:text-base-content;
@@ -103,9 +148,12 @@
103
148
  @apply font-bold !important;
104
149
  }
105
150
  .govgr-link {
106
- @apply text-link hover:text-link-hover focus:text-link-active underline cursor-pointer;
151
+ @apply focus:text-link-active underline cursor-pointer;
152
+ color: var(--link-color);
153
+ padding: var(--link-padding);
107
154
  &:hover {
108
155
  text-decoration-thickness: 2px;
156
+ color: var(--link-color-hover);
109
157
  }
110
158
  &:focus {
111
159
  background-color: var(--color-focus);
@@ -127,7 +175,7 @@
127
175
  }
128
176
  .govgr-background-dark, .govgr-masthead {
129
177
  .govgr-link {
130
- @apply text-white hover:text-white focus:text-white print:text-base-content;
178
+ @apply text-white hover:text-white focus:text-base-content print:text-base-content;
131
179
  &:hover {
132
180
  text-decoration-thickness: 2px;
133
181
  }
@@ -1,6 +1,6 @@
1
1
  .govgr-m-0 {
2
2
  @apply m-0 !important;
3
- }
3
+ }
4
4
  .govgr-m-1 {
5
5
  @apply m-1 !important;
6
6
  }
@@ -28,9 +28,18 @@
28
28
  .govgr-m-9 {
29
29
  @apply m-8 md:m-12 !important;
30
30
  }
31
+ .govgr-m-10 {
32
+ @apply m-9 md:m-14 !important;
33
+ }
34
+ .govgr-m-11 {
35
+ @apply m-10 md:m-16 !important;
36
+ }
37
+ .govgr-m-12 {
38
+ @apply m-11 md:m-20 !important;
39
+ }
31
40
  .govgr-mt-0 {
32
41
  @apply mt-0 !important;
33
- }
42
+ }
34
43
  .govgr-mt-1 {
35
44
  @apply mt-1 !important;
36
45
  }
@@ -58,9 +67,18 @@
58
67
  .govgr-mt-9 {
59
68
  @apply mt-8 md:mt-12 !important;
60
69
  }
70
+ .govgr-mt-10 {
71
+ @apply mt-9 md:mt-14 !important;
72
+ }
73
+ .govgr-mt-11 {
74
+ @apply mt-10 md:mt-16 !important;
75
+ }
76
+ .govgr-mt-12 {
77
+ @apply mt-11 md:mt-20 !important;
78
+ }
61
79
  .govgr-mb-0 {
62
80
  @apply mb-0 !important;
63
- }
81
+ }
64
82
  .govgr-mb-1 {
65
83
  @apply mb-1 !important;
66
84
  }
@@ -88,9 +106,18 @@
88
106
  .govgr-mb-9 {
89
107
  @apply mb-8 md:mb-12 !important;
90
108
  }
109
+ .govgr-mb-10 {
110
+ @apply mb-9 md:mb-14 !important;
111
+ }
112
+ .govgr-mb-11 {
113
+ @apply mb-10 md:mb-16 !important;
114
+ }
115
+ .govgr-mb-12 {
116
+ @apply mb-11 md:mb-20 !important;
117
+ }
91
118
  .govgr-ml-0 {
92
119
  @apply ml-0 !important;
93
- }
120
+ }
94
121
  .govgr-ml-1 {
95
122
  @apply ml-1 !important;
96
123
  }
@@ -118,9 +145,18 @@
118
145
  .govgr-ml-9 {
119
146
  @apply ml-8 md:ml-12 !important;
120
147
  }
148
+ .govgr-ml-10 {
149
+ @apply ml-9 md:ml-14 !important;
150
+ }
151
+ .govgr-ml-11 {
152
+ @apply ml-10 md:ml-16 !important;
153
+ }
154
+ .govgr-ml-12 {
155
+ @apply ml-11 md:ml-20 !important;
156
+ }
121
157
  .govgr-mr-0 {
122
158
  @apply mr-0 !important;
123
- }
159
+ }
124
160
  .govgr-mr-1 {
125
161
  @apply mr-1 !important;
126
162
  }
@@ -148,9 +184,18 @@
148
184
  .govgr-mr-9 {
149
185
  @apply mr-8 md:mr-12 !important;
150
186
  }
187
+ .govgr-mr-10 {
188
+ @apply mr-9 md:mr-14 !important;
189
+ }
190
+ .govgr-mr-11 {
191
+ @apply mr-10 md:mr-16 !important;
192
+ }
193
+ .govgr-mr-12 {
194
+ @apply mr-11 md:mr-20 !important;
195
+ }
151
196
  .govgr-p-0 {
152
197
  @apply p-0 !important;
153
- }
198
+ }
154
199
  .govgr-p-1 {
155
200
  @apply p-1 !important;
156
201
  }
@@ -178,9 +223,18 @@
178
223
  .govgr-p-9 {
179
224
  @apply p-8 md:p-12 !important;
180
225
  }
226
+ .govgr-p-10 {
227
+ @apply p-9 md:p-14 !important;
228
+ }
229
+ .govgr-p-11 {
230
+ @apply p-10 md:p-16 !important;
231
+ }
232
+ .govgr-p-12 {
233
+ @apply p-11 md:p-20 !important;
234
+ }
181
235
  .govgr-pt-0 {
182
236
  @apply pt-0 !important;
183
- }
237
+ }
184
238
  .govgr-pt-1 {
185
239
  @apply pt-1 !important;
186
240
  }
@@ -208,9 +262,18 @@
208
262
  .govgr-pt-9 {
209
263
  @apply pt-8 md:pt-12 !important;
210
264
  }
265
+ .govgr-pt-10 {
266
+ @apply pt-9 md:pt-14 !important;
267
+ }
268
+ .govgr-pt-11 {
269
+ @apply pt-10 md:pt-16 !important;
270
+ }
271
+ .govgr-pt-12 {
272
+ @apply pt-11 md:pt-20 !important;
273
+ }
211
274
  .govgr-pb-0 {
212
275
  @apply pb-0 !important;
213
- }
276
+ }
214
277
  .govgr-pb-1 {
215
278
  @apply pb-1 !important;
216
279
  }
@@ -238,9 +301,18 @@
238
301
  .govgr-pb-9 {
239
302
  @apply pb-8 md:pb-12 !important;
240
303
  }
304
+ .govgr-pb-10 {
305
+ @apply pb-9 md:pb-14 !important;
306
+ }
307
+ .govgr-pb-11 {
308
+ @apply pb-10 md:pb-16 !important;
309
+ }
310
+ .govgr-pb-12 {
311
+ @apply pb-11 md:pb-20 !important;
312
+ }
241
313
  .govgr-pl-0 {
242
314
  @apply pl-0 !important;
243
- }
315
+ }
244
316
  .govgr-pl-1 {
245
317
  @apply pl-1 !important;
246
318
  }
@@ -268,9 +340,18 @@
268
340
  .govgr-pl-9 {
269
341
  @apply pl-8 md:pl-12 !important;
270
342
  }
343
+ .govgr-pl-10 {
344
+ @apply pl-9 md:pl-14 !important;
345
+ }
346
+ .govgr-pl-11 {
347
+ @apply pl-10 md:pl-16 !important;
348
+ }
349
+ .govgr-pl-12 {
350
+ @apply pl-11 md:pl-20 !important;
351
+ }
271
352
  .govgr-pr-0 {
272
353
  @apply pr-0 !important;
273
- }
354
+ }
274
355
  .govgr-pr-1 {
275
356
  @apply pr-1 !important;
276
357
  }
@@ -298,6 +379,15 @@
298
379
  .govgr-pr-9 {
299
380
  @apply pr-8 md:pr-12 !important;
300
381
  }
382
+ .govgr-pr-10 {
383
+ @apply pr-9 md:pr-14 !important;
384
+ }
385
+ .govgr-pr-11 {
386
+ @apply pr-10 md:pr-16 !important;
387
+ }
388
+ .govgr-pr-12 {
389
+ @apply pr-11 md:pr-20 !important;
390
+ }
301
391
  .govgr-grid {
302
392
  @apply grid grid-cols-12;
303
393
  }
@@ -399,4 +489,10 @@
399
489
  }
400
490
  .govgr-print-hidden {
401
491
  @apply print:hidden !important;
492
+ }
493
+ .govgr-print-visible-block {
494
+ @apply print:block !important;
495
+ }
496
+ .govgr-print-visible-inline {
497
+ @apply print:inline !important;
402
498
  }