@digigov/css 0.32.0 → 0.33.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/css",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "Digigov CSS - Tailwind CSS Components",
5
5
  "author": "GRNET Devs <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
@@ -49,12 +49,12 @@
49
49
  "tailwindcss": "2.2.6",
50
50
  "nodemon": "2.0.7",
51
51
  "next": "10.0.9",
52
- "@digigov/postcss-banner": "0.3.22",
52
+ "@digigov/postcss-banner": "0.3.23",
53
53
  "rimraf": "3.0.2",
54
54
  "postcss-js": "4.0.0",
55
55
  "postcss-load-config": "3.1.4",
56
56
  "publint": "0.1.8",
57
- "@digigov/cli": "0.6.5"
57
+ "@digigov/cli": "0.6.6"
58
58
  },
59
59
  "scripts": {
60
60
  "preutilities": "DIGIGOV_CSS_BUILD=TRUE postcss --config src/utilities src/utilities/index.css --base src --dir dist",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "@fontsource/roboto": "4.4.0",
77
- "@digigov/cli-build-tailwind": "0.9.0",
77
+ "@digigov/cli-build-tailwind": "0.9.1",
78
78
  "publint": "0.1.8"
79
79
  }
80
80
  }
@@ -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
- @apply no-underline text-xl font-semibold
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 {
@@ -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
- @apply text-lg flex items-center;
23
+
24
+ @apply flex items-center;
23
25
  }
24
26
  .govgr-warning-text__assistive {
25
27
  position: absolute !important;
@@ -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:31px !important;
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-xl text-base-content
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 font-semibold text-base-content !important;
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
  }
@@ -5,6 +5,7 @@
5
5
  @apply border-gray300 border-b;
6
6
  }
7
7
  .govgr-phase-banner__content {
8
+ font-size: var(--phase-banner__content-font-size);
8
9
  @apply table;
9
10
  }
10
11
  .govgr-phase-banner__content__tag {
@@ -13,7 +13,8 @@
13
13
  }
14
14
  }
15
15
  .govgr-radios__label {
16
- @apply inline-block py-1 px-2 cursor-pointer text-lg;
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
@@ -1,7 +1,7 @@
1
1
  .govgr-summary-list {
2
+ font-size: var(--summary-list-font-size);
2
3
  @apply m-0 mb-6 sm:mb-8 w-full
3
- sm:table sm:w-full sm:table-fixed text-lg
4
- ;
4
+ sm:table sm:w-full sm:table-fixed;
5
5
  .govgr-btn {
6
6
  @apply m-0 inline-flex;
7
7
  }
@@ -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
- width: fit-content;
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 {