@digigov/css 1.0.0-8ae63a77 → 1.0.0-ab30975f

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,5 +1,14 @@
1
1
  .govgr-notification-banner {
2
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
+ }
3
12
  }
4
13
  .govgr-notification-banner--info {
5
14
  @apply bg-info border-info;
@@ -9,7 +18,7 @@
9
18
  .govgr-notification-banner__link {
10
19
  &:link:not(:focus) {
11
20
  @apply text-success;
12
- }
21
+ }
13
22
  }
14
23
  }
15
24
  .govgr-notification-banner--error {
@@ -46,7 +55,9 @@
46
55
  }
47
56
  &:focus {
48
57
  background-color: var(--color-focus);
49
- 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);
50
61
  text-decoration: none;
51
62
  outline: none;
52
63
  }
@@ -55,4 +66,4 @@
55
66
  .govgr-notification-banner__link {
56
67
  font-size: inherit;
57
68
  }
58
- }
69
+ }
@@ -68,5 +68,8 @@
68
68
  .govgr-link {
69
69
  pointer-events: none;
70
70
  @apply text-base-800;
71
+ .govgr-svg-icon {
72
+ fill: var(--color-base-800);
73
+ }
71
74
  }
72
75
  }
@@ -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,16 @@
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;
@@ -47,3 +59,10 @@
47
59
  @apply min-w-max mx-2;
48
60
  }
49
61
  }
62
+ .govgr-radios {
63
+ &.govgr-radios--dense, .govgr-dense & {
64
+ .govgr-field {
65
+ @apply mb-4 md:mb-6;
66
+ }
67
+ }
68
+ }
@@ -24,7 +24,7 @@
24
24
  height: calc(100% - 2rem);
25
25
  }
26
26
  &:after {
27
- @apply absolute z-/1 w-0 h-full bg-base-100 left-0 top-8 border-2 border-base-400 border-r-0 border-t-0 border-b-0 md:border-l-3;
27
+ @apply absolute z-0 w-0 h-full bg-base-100 left-0 top-8 border-2 border-base-400 border-r-0 border-t-0 border-b-0 md:border-l-3;
28
28
  content: "";
29
29
  margin-left: calc(0.75rem + 1px);
30
30
  }
@@ -46,13 +46,12 @@
46
46
  }
47
47
  .govgr-svg-icon--burger {
48
48
  fill: var(--color-base-content);
49
- /* @apply w-8 h-8 float-right cursor-pointer transition-all */
50
- @apply transition-all focus:bg-focus;
49
+ @apply transition-transform focus:bg-focus;
51
50
  @apply cursor-pointer;
52
51
  #govgr-svg-icon--burger__line-1,
53
52
  #govgr-svg-icon--burger__line-2,
54
53
  #govgr-svg-icon--burger__line-3 {
55
- @apply transition-all;
54
+ @apply transition-transform;
56
55
  }
57
56
  #govgr-svg-icon--burger__line-1 {
58
57
  x: 2px;
@@ -15,7 +15,7 @@
15
15
  @apply md:float-left md:border md:border-base-300 md:bg-base-300 md:rounded-t-sm md:mr-2;
16
16
  @apply print:hidden;
17
17
  &.govgr-tabs__list-item-selected {
18
- @apply no-underline md:border-base-400 md:border bg-base-100 md:border-b-0 md:px-5 md:pb-4 md:-mt-1 md:pt-4;
18
+ @apply no-underline md:border-base-400 md:border bg-base-100 md:border-b-0 md:px-5 md:py-4 md:-mt-1;
19
19
  margin-bottom: -1px;
20
20
  &:hover {
21
21
  text-decoration-thickness: 2px;
@@ -46,4 +46,36 @@
46
46
  @apply block;
47
47
  }
48
48
  }
49
+ &.govgr-tabs--dense, .govgr-dense & {
50
+ .govgr-tabs__list {
51
+ .govgr-tabs__list-item {
52
+ @apply px-3 py-1;
53
+ &.govgr-tabs__list-item-selected {
54
+ @apply md:px-4 md:pb-3 md:pt-2;
55
+ }
56
+ }
57
+ }
58
+ .govgr-tabs__panel {
59
+ @apply pb-2 pt-3;
60
+ }
61
+ }
62
+ }
63
+
64
+ .govgr-tabs--vertical {
65
+ .govgr-tabs__panel {
66
+ @apply min-h-full pt-4 pl-6;
67
+ }
68
+ .govgr-tabs__list {
69
+ .govgr-tabs__list-item {
70
+ @apply w-full rounded-none mb-1 md:bg-base-200 border-base-200;
71
+ width: calc(100% - 0.25rem);
72
+ &.govgr-tabs__list-item-selected {
73
+ @apply md:border-b md:border-r-0 mb-1 mt-0 px-4 py-2;
74
+ /* margin-right: -1px; */
75
+ width: calc(100% + 1px);
76
+ /* margin-top: 0px; */
77
+ }
78
+ }
79
+ }
80
+
49
81
  }
@@ -38,6 +38,9 @@
38
38
  font-weight: var(--heading-xs-font-weight);
39
39
  letter-spacing: var(--heading-xs-letter-spacing);
40
40
  }
41
+ .govgr-heading--break-words {
42
+ @apply break-words;
43
+ }
41
44
  .govgr-caption-xl {
42
45
  @apply block mx-0 font-normal;
43
46
  color: var(--caption-xl-color);
@@ -180,6 +183,9 @@
180
183
  color: var(--hint-color);
181
184
  letter-spacing: var(--hint-letter-spacing);
182
185
  }
186
+ .govgr-hint--break-words {
187
+ @apply break-words;
188
+ }
183
189
 
184
190
  .govgr-\!-font-weight-regular {
185
191
  @apply font-normal !important;
@@ -290,6 +296,11 @@
290
296
  }
291
297
  }
292
298
  }
299
+ button.govgr-link {
300
+ .govgr-svg-icon {
301
+ @apply ml-1;
302
+ }
303
+ }
293
304
  .govgr-back-link {
294
305
  .govgr-svg-icon--caret {
295
306
  fill: var(--color-base-content);
@@ -1,7 +1,6 @@
1
1
  .govgr-warning-text {
2
2
  font-size: var(--warning-text-font-size);
3
- @apply p-4;
4
- @apply flex pt-4 pb-4 pl-0 pr-0;
3
+ @apply flex py-4 px-0;
5
4
  .govgr-warning-text__icon {
6
5
  @apply text-base-content-invert font-bold bg-base-content text-3xl leading-10 text-center
7
6
  rounded-3xl md:min-h-10 min-w-10 h-fit mr-6 mt-1
@@ -16,4 +15,9 @@
16
15
  -webkit-clip-path: inset(50%) !important;
17
16
  clip-path: inset(50%) !important;
18
17
  }
18
+ &.govgr-warning-text--dense, .govgr-dense & {
19
+ .govgr-warning-text__icon {
20
+ @apply mr-4 md:mr-5;
21
+ }
22
+ }
19
23
  }
@@ -166,11 +166,6 @@ module.exports = {
166
166
  boxShadow: {
167
167
  thick: "0 0 30px rgba(0, 0, 0, 0.6)",
168
168
  },
169
- borderColor: {
170
- // TODO: fix this invalid value in the future
171
- // Read more: https://gitlab.grnet.gr/devs/digigov/digigov-sdk/-/merge_requests/818
172
- DEFAULT: "reset",
173
- },
174
169
  },
175
170
  },
176
171
  plugins: [plugin(themesPlugin)],
@@ -1,76 +0,0 @@
1
- .govgr-accessibility-menu {}
2
- .govgr-accessibility-menu--left {
3
- .govgr-accessibility-menu__btn {
4
- @apply left-4;
5
- }
6
- .govgr-accessibility-menu__content {
7
- @apply left-0;
8
- }
9
- }
10
- .govgr-accessibility-menu--right {
11
- .govgr-accessibility-menu__btn {
12
- @apply right-4;
13
- }
14
- .govgr-accessibility-menu__content {
15
- @apply right-0;
16
- }
17
- }
18
- .govgr-accessibility-menu__btn {
19
- @apply absolute bottom-4 bg-base-300;
20
- @apply p-4 rounded-full !important;
21
- box-shadow: 0px 2px 5px rgba(var(--color-base-900-rgb), 0.3);
22
- &:hover {
23
- @apply bg-base-400;
24
- }
25
- }
26
- .govgr-accessibility-menu__content {
27
- @apply bg-base-200 absolute top-0 bottom-0 p-4 flex flex-col max-w-md;
28
- }
29
-
30
- .govgr-accessibility-menu__header {
31
- @apply inline-flex justify-between items-center mb-6 gap-2;
32
- }
33
- .govgr-accessibility-menu__header-btn {
34
- @apply flex flex-nowrap;
35
- }
36
- .govgr-accessibility-menu__body {
37
- @apply overflow-y-scroll p-3 flex-grow;
38
- }
39
- .govgr-accessibility-menu__list {
40
- @apply grid grid-cols-1 sm:grid-cols-2 gap-5;
41
- }
42
- .govgr-accessibility-menu__list-item {
43
- @apply col-span-1;
44
- }
45
- .govgr-accessibility-menu__option-btn {
46
- @apply flex flex-col gap-2;
47
- @apply bg-base-100 border-base-100 border-2;
48
- @apply w-full sm:w-fit leading-tight m-0 !important;
49
- padding: calc(1rem + 2px) !important;
50
- &:hover {
51
- @apply border-base-content;
52
- }
53
- }
54
- .govgr-accessibility-menu__option-btn--selected {
55
- @apply border-success border-4 text-success p-4 !important;
56
- .govgr-accessibility-menu__steps {
57
- @apply opacity-100;
58
- }
59
- }
60
- .govgr-accessibility-menu__steps {
61
- @apply flex flex-nowrap w-full gap-2 h-1 mt-2 opacity-0;
62
- }
63
- .govgr-accessibility-menu__step {
64
- @apply bg-base-300 w-full;
65
- }
66
- .govgr-accessibility-menu__step--active {
67
- @apply bg-success;
68
- }
69
-
70
- /* overrides */
71
-
72
- .govgr-accessibility-menu__option-btn--selected {
73
- .govgr-svg-icon {
74
- fill: var(--color-success) !important;
75
- }
76
- }