@digigov/css 2.0.0-a32ad9b2 → 2.0.0-a594a958

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,4 +1,5 @@
1
1
  .ds-tabs {
2
+ @apply mb-4 md:mb-8;
2
3
  scroll-behavior: smooth;
3
4
  &.ds-tabs--dense,
4
5
  .ds-dense & {
@@ -31,20 +32,22 @@
31
32
  @apply relative px-4 py-1 md:py-2 m-0 shadow-none cursor-pointer text-link
32
33
  md:float-left md:border md:border-base-300 md:bg-base-300 md:rounded-t-sm md:mr-2 md:text-base-content
33
34
  print:hidden;
35
+ transition: 0.2s ease-in-out padding-right, padding-left;
34
36
  word-break: break-word;
35
37
  &.ds-tabs__list-item-selected {
36
- @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;
37
- margin-bottom: -1px;
38
+ @apply no-underline md:border-base-400 md:border bg-base-100 md:border-b-0 md:px-5 md:pt-3 md:pb-5 md:-mt-1 md:mb-[-1px];
39
+ transition: 0.2s ease-in-out padding-right, padding-left;
38
40
  &:hover {
39
41
  text-decoration-thickness: 2px;
40
42
  }
41
43
  }
42
44
  }
43
45
  .ds-tabs__tab {
44
- @apply text-lg no-underline hover:underline;
46
+ @apply no-underline hover:underline;
47
+ font-size: var(--tabs__tab-font-size);
48
+ line-height: var(--tabs__tab-line-height);
45
49
  &::before {
46
- @apply absolute top-0 left-0 text-base-content;
47
- @apply md:content-[''] !important;
50
+ @apply absolute top-0 left-0 text-base-content md:!content-[''];
48
51
  content: '_';
49
52
  }
50
53
  &:focus {
@@ -1,20 +1,26 @@
1
1
  .ds-task-list {
2
- @apply mb-4 pl-6 pb-2;
2
+ @apply mb-4 md:mb-8 pl-6 pb-2;
3
+ &.ds-task-list--dense,
4
+ .ds-dense & {
5
+ .ds-task-list__item {
6
+ @apply mb-3 md:mb-6;
7
+ }
8
+ }
3
9
  }
4
10
  .ds-task-list__item {
5
- @apply mb-8 md:mb-10;
11
+ @apply mb-10 md:mb-12;
6
12
  }
7
13
  .ds-task-list__heading {
8
- @apply md:text-3xl text-2xl font-bold mx-0 md:mb-4 mb-2;
14
+ @apply text-2xl md:text-3xl font-bold mx-0 mb-3 md:mb-6;
9
15
  &.ds-task-list__heading--md {
10
- @apply md:text-2xl text-xl md:mb-4 mb-2;
16
+ @apply text-xl md:text-2xl mb-2 md:mb-4;
11
17
  }
12
18
  &.ds-task-list__heading--sm {
13
- @apply md:text-lg text-base md:mb-3 mb-1;
19
+ @apply text-base md:text-lg mb-1 md:mb-3;
14
20
  }
15
21
  }
16
22
  .ds-task-list__content {
17
- @apply mb-4;
23
+ @apply mb-2 md:mb-4;
18
24
  }
19
25
  .ds-task-list__content__tag {
20
26
  @apply px-2 py-1 mr-2 inline-block font-sans text-sm uppercase tracking-widest print:border-2 print:bg-white print:mr-4;
@@ -33,7 +39,6 @@
33
39
 
34
40
  .ds-task-list--dense {
35
41
  .ds-task-list__item {
36
- @apply mb-4 md:mb-6;
37
42
  .ds-summary-list {
38
43
  @apply mb-4 md:mb-6;
39
44
  }
@@ -1,10 +1,10 @@
1
1
  .ds-timeline {
2
- @apply mb-4 pl-6 pb-2 border-l-4 border-secondary;
2
+ @apply mb-4 md:mb-8 pl-6 pb-2 border-l-4 border-secondary;
3
3
  &.ds-timeline--dense,
4
4
  .ds-dense & {
5
5
  @apply pb-0 border-l-3;
6
6
  .ds-timeline__item {
7
- @apply mb-4 md:mb-6;
7
+ @apply mb-3 md:mb-6;
8
8
  }
9
9
  .ds-timeline__heading {
10
10
  @apply mb-2;
@@ -20,7 +20,7 @@
20
20
  @apply mb-10 md:mb-12;
21
21
  }
22
22
  .ds-timeline__heading {
23
- @apply md:text-3xl text-2xl font-bold mx-0 md:mb-4 mb-2 relative;
23
+ @apply text-2xl md:text-3xl font-bold mx-0 mb-3 md:mb-6 relative;
24
24
  &::before {
25
25
  @apply block absolute top-4 -left-6 w-4
26
26
  border-b-4 border-secondary;
@@ -28,22 +28,22 @@
28
28
  }
29
29
  }
30
30
  .ds-timeline__heading-md {
31
- @apply md:text-2xl text-xl md:mb-4 mb-2;
31
+ @apply text-xl md:text-2xl mb-2 md:mb-4;
32
32
  &::before {
33
33
  @apply top-3 w-3;
34
34
  }
35
35
  }
36
36
  .ds-timeline__heading-sm {
37
- @apply md:text-lg text-base md:mb-3 mb-1;
37
+ @apply text-base md:text-lg mb-1 md:mb-3;
38
38
  &::before {
39
39
  @apply top-2.5 w-3;
40
40
  }
41
41
  }
42
42
  .ds-timeline__content {
43
- @apply mb-4;
43
+ @apply mb-2 md:mb-4;
44
44
  }
45
45
  .ds-timeline__actions {
46
- @apply flex flex-wrap items-center gap-4 mb-6;
46
+ @apply flex flex-wrap items-center gap-4 mb-0;
47
47
  }
48
48
 
49
49
  /* overrides */
@@ -54,6 +54,7 @@
54
54
  }
55
55
  }
56
56
  .ds-timeline__actions {
57
+ .ds-btn-group,
57
58
  .ds-btn,
58
59
  .ds-link {
59
60
  @apply mb-0;
@@ -112,7 +112,7 @@
112
112
 
113
113
  /* List */
114
114
  .util-list {
115
- @apply md:mb-8 mb-4 mt-4 text-base-content;
115
+ @apply mb-4 md:mb-8 mt-4 text-base-content;
116
116
  }
117
117
  .util-list-bullet {
118
118
  @apply pl-4;
@@ -179,8 +179,19 @@
179
179
  &.ds-link--no-underline {
180
180
  @apply no-underline hover:underline;
181
181
  }
182
+ &.ds-link--disabled {
183
+ @apply cursor-not-allowed !important;
184
+ color: var(--color-base-content);
185
+ &:hover {
186
+ color: var(--color-base-content);
187
+ }
188
+ }
182
189
  &.ds-link-warning {
190
+ @apply focus:text-link-active;
183
191
  color: var(--color-error-text);
192
+ &:hover {
193
+ color: var(--color-error-hover);
194
+ }
184
195
  }
185
196
  .ds-heading-xl &,
186
197
  .ds-heading-lg &,
@@ -4,7 +4,7 @@
4
4
 
5
5
  @layer utilities {
6
6
  .util-warning-text {
7
- @apply flex;
7
+ @apply flex mb-4 md:mb-8;
8
8
  }
9
9
  .util-warning-text-text {
10
10
  font-size: var(--warning-text-font-size);
@@ -5,6 +5,7 @@
5
5
  font-size: var(--warning-text-font-size);
6
6
  &.ds-warning-text--dense,
7
7
  .ds-dense & {
8
+ @apply mb-3 md:mb-6;
8
9
  .ds-warning-text__icon {
9
10
  @apply mr-4 md:mr-5;
10
11
  }