@digigov/css 0.38.2 → 0.39.0-ac772edc

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.38.2",
3
+ "version": "0.39.0-ac772edc",
4
4
  "description": "Digigov CSS - Tailwind CSS Components",
5
5
  "author": "GRNET Devs <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
@@ -49,7 +49,7 @@
49
49
  "tailwindcss": "2.2.6",
50
50
  "nodemon": "2.0.7",
51
51
  "next": "10.0.9",
52
- "@digigov/postcss-banner": "0.3.24",
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",
@@ -75,4 +75,7 @@
75
75
  @apply mb-0;
76
76
  }
77
77
  }
78
+ .govgr-accordion__section-summary--secondary {
79
+ @apply bg-base-200;
80
+ }
78
81
  }
@@ -4,6 +4,12 @@
4
4
  flex-wrap: wrap;
5
5
  min-height: 100vh;
6
6
  }
7
+ .govgr-admin-top-section--secondary {
8
+ @apply bg-base-200 px-2 py-1;
9
+ }
10
+ .govgr-admin-top-section--border {
11
+ @apply border border-base-300 px-2 py-1;
12
+ }
7
13
  .govgr-admin-width-container {
8
14
  @apply px-4 py-8 m-0 w-full mx-auto;
9
15
  flex: 1 1 0%;
@@ -16,6 +22,24 @@
16
22
  }
17
23
  .govgr-admin-side-content {
18
24
  @apply lg:col-span-4 md:col-span-5 print:order-1;
25
+ .govgr-accordion__section {
26
+ @apply border-b-0;
27
+ &:first-child {
28
+ @apply border-t-0;
29
+ }
30
+ }
31
+ .govgr-accordion__section-button {
32
+ &::after {
33
+ content: "+";
34
+ @apply text-2xl text-base-content float-right relative -right-6;
35
+ }
36
+ }
37
+ .govgr-accordion__section-summary {
38
+ @apply pb-2 pt-2 pl-2 border-b border-base-400;
39
+ }
40
+ .govgr-heading-m {
41
+ @apply text-xl;
42
+ }
19
43
  }
20
44
  .govgr-admin-grid-column-1 {
21
45
  @apply md:col-span-1;
@@ -102,8 +102,13 @@
102
102
  margin-right: '-1px';
103
103
  }
104
104
 
105
- .govgr-autocomplete__option--no-results {
106
- @apply text-current cursor-not-allowed;
105
+
106
+ .govgr-autocomplete__option--empty {
107
+ @apply cursor-default;
108
+ @apply bg-base-100 text-base-content !important;
109
+ &:hover{
110
+ border-color: var(--color-base-400);
111
+ }
107
112
  }
108
113
 
109
114
  .govgr-autocomplete__hint,
@@ -50,9 +50,6 @@
50
50
  .govgr-checkboxes__hint {
51
51
  @apply px-2 mb-2;
52
52
  }
53
- .govgr-checkboxes__divider, .govgr-radios__divider {
54
- @apply text-lg text-center w-10 mb-4;
55
- }
56
53
  .govgr-checkboxes__conditional, .govgr-radios__conditional {
57
54
  @apply border-l-4 border-base-500 ml-4 pl-6;
58
55
  }
@@ -0,0 +1,51 @@
1
+ .govgr-chip--heading {
2
+ @apply font-bold md:text-base text-sm pb-4;
3
+ }
4
+ .govgr-chips {
5
+ @apply flex flex-wrap list-none gap-x-2;
6
+ .govgr-chip .govgr-chip__content {
7
+ @apply mr-0;
8
+ }
9
+ }
10
+ .govgr-chips--horizontal {
11
+ @apply md:flex md:flex-row md:flex-wrap;
12
+ }
13
+ .govgr-chip {
14
+ @apply list-none;
15
+ .govgr-chip__content {
16
+ @apply bg-base-100 text-base-content lg:text-base text-sm border-2 border-base-content
17
+ inline-flex items-center px-2 py-1 mr-2 mb-2 rounded shadow;
18
+ .govgr-close-icon {
19
+ @apply w-4 h-4 ml-3;
20
+ }
21
+ &[role="button"] {
22
+ &:hover {
23
+ @apply shadow-lg text-base-content-invert bg-base-900 border-base-900 transition;
24
+ .govgr-close-icon {
25
+ fill: var(--color-base-content-invert);
26
+ }
27
+ }
28
+ &:focus {
29
+ outline: 3px solid var(--color-focus);
30
+ outline-offset: 0;
31
+ -webkit-box-shadow: inset 0 0 0 2px;
32
+ box-shadow: inset 0 0 0 2px;
33
+ }
34
+ }
35
+ }
36
+ }
37
+ .govgr-chip--deletable {
38
+ .govgr-chip__content {
39
+ &:hover {
40
+ @apply shadow-lg transition;
41
+ }
42
+ .govgr-close-icon {
43
+ &:hover {
44
+ @apply cursor-pointer;
45
+ }
46
+ }
47
+ }
48
+ }
49
+ .govgr-chip__key-value {
50
+ @apply font-bold mr-2;
51
+ }
@@ -95,38 +95,6 @@
95
95
  @apply m-0 h-full;
96
96
  }
97
97
  }
98
- .govgr-chip--heading {
99
- @apply font-bold md:text-base text-sm pb-4;
100
- }
101
- .govgr-chip--horizontal {
102
- @apply md:flex md:flex-row md:flex-wrap;
103
- }
104
- .govgr-chips {
105
- @apply flex flex-wrap list-none;
106
- }
107
- .govgr-chip {
108
- @apply bg-base-100 text-base-content lg:text-base text-sm border-2 border-base-content
109
- inline-flex items-center px-2 py-1 mr-2 mb-2 rounded shadow;
110
- .govgr-close-icon {
111
- @apply w-4 h-4 ml-3;
112
- }
113
- &:hover {
114
- @apply shadow-lg text-base-content-invert bg-base-900 border-base-900 transition;
115
- .govgr-close-icon {
116
- fill: var(--color-base-content-invert);
117
- }
118
- }
119
- &:focus {
120
- outline: 3px solid var(--color-focus);
121
- outline-offset: 0;
122
- -webkit-box-shadow: inset 0 0 0 2px;
123
- box-shadow: inset 0 0 0 2px;
124
- }
125
- }
126
- .govgr-chip__key-value {
127
- @apply font-bold mr-2;
128
- }
129
-
130
98
  .govgr-input__search-btn {
131
99
  @apply shadow-none !important;
132
100
  @apply
@@ -176,3 +176,6 @@
176
176
  .govgr-checkboxes__label--disabled {
177
177
  @apply opacity-40;
178
178
  }
179
+ .govgr-choice-divider {
180
+ @apply text-lg text-center w-10 mb-4;
181
+ }
@@ -3,6 +3,7 @@
3
3
  @import "./autocomplete.css";
4
4
  @import "./button.css";
5
5
  @import "./bottom-info.css";
6
+ @import "./chip.css";
6
7
  @import "./form.css";
7
8
  @import "./checkboxes.css";
8
9
  @import "./dropdown.css";
@@ -211,7 +211,7 @@
211
211
  @apply flex flex-wrap;
212
212
  }
213
213
  .govgr-vertical-nav__item {
214
- @apply w-full p-2 !important;
214
+ @apply w-full pt-2 pb-2 !important;
215
215
  }
216
216
  .govgr-vertical-nav__item--active {
217
217
  @apply font-semibold !important;
@@ -1,19 +1,35 @@
1
1
  .govgr-pagination {
2
- @apply flex flex-wrap items-center justify-items-center justify-between md:text-base text-sm;
2
+ @apply flex flex-wrap items-center justify-items-center justify-between;
3
+ .govgr-pagination__label {
4
+ @apply md:text-lg text-base;
5
+ }
3
6
  .govgr-label {
4
- @apply text-base-content md:text-base md:leading-normal text-sm flex-row items-center gap-2;
7
+ @apply text-base-content md:leading-normal flex-row items-center gap-2 md:text-lg text-base;
8
+ }
9
+ .govgr-pagination__item--current {
10
+ @apply md:text-lg text-base;
5
11
  }
6
12
  .govgr-select {
7
13
  text-indent: 0px;
8
- @apply flex text-base-content md:text-base md:leading-normal text-sm border;
14
+ @apply flex text-base-content md:leading-normal border md:text-lg text-base;
9
15
  &:focus {
10
16
  -webkit-box-shadow: inset 0 0 0 1px;
11
17
  box-shadow: inset 0 0 0 1px;
12
18
  }
13
19
  }
14
20
  }
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
+ }
29
+ }
30
+ }
15
31
  .govgr-pagination__label {
16
- @apply text-base-content md:text-base md:leading-normal text-sm;
32
+ @apply text-base-content md:leading-normal;
17
33
  }
18
34
  .govgr-pagination__list {
19
35
  @apply flex items-center;
@@ -171,14 +171,15 @@
171
171
  font-size: var(--link-font-size);
172
172
  line-height: var(--link-line-height);
173
173
  letter-spacing: var(--link-letter-spacing);
174
- &:hover:not(:focus) {
174
+ &:hover {
175
175
  text-decoration-thickness: 2px;
176
176
  color: var(--link-color-hover);
177
177
  }
178
178
  &:focus {
179
+ color: var(--link-color-active);
179
180
  background-color: var(--color-focus);
180
181
  box-shadow: 0 -2px var(--color-focus), 0 4px var(--color-base-content);
181
- text-decoration:none;
182
+ text-decoration:none !important;
182
183
  outline: none;
183
184
  }
184
185
  }
@@ -207,6 +208,7 @@
207
208
  }
208
209
  }
209
210
  }
211
+
210
212
  .govgr-back-link {
211
213
  font-size: var(--back-link-font-size);
212
214
  letter-spacing: var(--back-link-letter-spacing);