@digigov/css 2.0.0-6e3977bc → 2.0.0-834daea4

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.
Files changed (80) hide show
  1. package/dist/base/index.css +1 -1
  2. package/dist/base.js +1 -1
  3. package/dist/components.js +1 -1
  4. package/dist/digigov.css +3 -3
  5. package/dist/utilities/index.css +1 -1
  6. package/dist/utilities.js +1 -1
  7. package/index.js +99 -69
  8. package/package.json +10 -10
  9. package/postcss.config.js +4 -4
  10. package/src/base/index.css +1 -0
  11. package/src/base/postcss.config.js +11 -10
  12. package/src/base/tailwind.config.js +4 -11
  13. package/src/components/accordion.css +5 -1
  14. package/src/components/blockquote.common.css +2 -2
  15. package/src/components/breadcrumbs.css +1 -1
  16. package/src/components/button.common.css +1 -1
  17. package/src/components/button.css +2 -2
  18. package/src/components/button.native.css +2 -3
  19. package/src/components/card.common.css +1 -1
  20. package/src/components/code.css +5 -6
  21. package/src/components/details.common.css +1 -1
  22. package/src/components/drawer.css +18 -1
  23. package/src/components/dropdown.common.css +1 -1
  24. package/src/components/fillable.css +1 -1
  25. package/src/components/filter.css +35 -6
  26. package/src/components/form.css +1 -1
  27. package/src/components/kitchensink.css +2 -2
  28. package/src/components/layout.css +2 -2
  29. package/src/components/loader.common.css +7 -0
  30. package/src/components/loader.css +3 -1
  31. package/src/components/loader.native.css +5 -0
  32. package/src/components/modal.common.css +17 -0
  33. package/src/components/modal.css +20 -16
  34. package/src/components/modal.native.css +18 -0
  35. package/src/components/notification-banner.common.css +1 -1
  36. package/src/components/pagination.css +19 -3
  37. package/src/components/panel.common.css +1 -1
  38. package/src/components/phase-banner.common.css +1 -1
  39. package/src/components/postcss.config.js +7 -6
  40. package/src/components/stack.common.css +67 -0
  41. package/src/components/stack.css +23 -21
  42. package/src/components/stack.native.css +68 -0
  43. package/src/components/stepnav.css +2 -3
  44. package/src/components/summary-list.common.css +4 -2
  45. package/src/components/table.css +8 -8
  46. package/src/components/tabs.css +1 -0
  47. package/src/components/task-list.css +12 -7
  48. package/src/components/timeline.css +16 -15
  49. package/src/components/typography.common.css +1 -6
  50. package/src/components/typography.css +3 -3
  51. package/src/components/warning-text.common.css +1 -1
  52. package/src/components/warning-text.css +4 -1
  53. package/src/index.native.css +4 -1
  54. package/src/utilities/gap.css +141 -0
  55. package/src/utilities/index.css +4 -1
  56. package/src/utilities/index.native.css +5 -1
  57. package/src/utilities/margin.css +4299 -0
  58. package/src/utilities/padding.css +4299 -0
  59. package/src/utilities/postcss.config.js +7 -6
  60. package/src/utilities/utilities.css +3 -2377
  61. package/tailwind.config.js +102 -106
  62. package/theming.js +121 -0
  63. package/defaultTheme/accordion.json +0 -16
  64. package/defaultTheme/back-to-top.json +0 -27
  65. package/defaultTheme/brandConfig.json +0 -147
  66. package/defaultTheme/breadcrumbs.json +0 -8
  67. package/defaultTheme/button.json +0 -94
  68. package/defaultTheme/card.json +0 -23
  69. package/defaultTheme/form.json +0 -132
  70. package/defaultTheme/globals.json +0 -81
  71. package/defaultTheme/index.js +0 -27
  72. package/defaultTheme/layout.json +0 -55
  73. package/defaultTheme/misc.json +0 -68
  74. package/defaultTheme/panel.json +0 -48
  75. package/defaultTheme/phase-banner.json +0 -8
  76. package/defaultTheme/radios.json +0 -8
  77. package/defaultTheme/summary-list.json +0 -8
  78. package/defaultTheme/typography.json +0 -295
  79. package/src/utilities/spacing.css +0 -2133
  80. package/themes.plugin.js +0 -148
@@ -0,0 +1,5 @@
1
+ @import './loader.common.css';
2
+
3
+ .ds-loader {
4
+ @apply util-loader;
5
+ }
@@ -0,0 +1,17 @@
1
+ @tailwind utilities;
2
+
3
+ @layer utilities {
4
+ .util-modal {
5
+ @apply bg-base-100 p-6 border border-solid border-base-500;
6
+ }
7
+ .util-modal__body {
8
+ @apply gap-6 -my-4;
9
+ }
10
+ .util-modal__content-text {
11
+ @apply text-base lg:text-xl text-lg;
12
+ }
13
+ .util-modal__action {
14
+ @apply flex flex-wrap items-center gap-4;
15
+ }
16
+
17
+ }
@@ -1,43 +1,47 @@
1
- .ds-modal {
1
+ @import './modal.common.css';
2
+
3
+ .ds-modal-container {
2
4
  @apply hidden justify-center items-center content-center text-left
3
- mb-7 text-base-content bg-opacity-50 bg-base-700
5
+ text-base-content bg-opacity-50 bg-base-700
4
6
  fixed z-50 left-0 top-0 w-full h-full overflow-auto;
5
7
 
6
- &.ds-modal--open {
8
+ &.ds-modal-container--open {
7
9
  @apply flex;
8
10
  }
9
11
 
10
- &.ds-modal--dense,
12
+ &.ds-modal-container--dense,
11
13
  &.ds-dense & {
12
- .ds-modal__body {
14
+ .ds-modal {
13
15
  @apply px-4 py-0;
14
16
  }
15
- .ds-modal__container {
17
+ .ds-modal__body {
16
18
  @apply gap-4 my-0;
17
19
  }
18
20
  }
19
21
  }
20
- .ds-modal__body {
21
- @apply w-full max-w-md md:max-w-lg lg:max-w-4xl
22
- h-fit md:h-auto overflow-y-auto
23
- bg-base-100
24
- border border-solid border-base-500 p-6;
22
+ .ds-modal {
23
+ @apply util-modal w-full max-w-md md:max-w-lg lg:max-w-4xl
24
+ h-fit md:h-auto overflow-y-auto;
25
25
  max-height: 95vh;
26
26
  }
27
- .ds-modal__container {
28
- @apply grid gap-6 -my-4;
27
+ .ds-modal__body {
28
+ @apply grid util-modal__body;
29
29
  .ds-modal__action {
30
30
  @apply mb-0;
31
31
  }
32
- >.ds-heading-xs, >.ds-heading-sm, >.ds-heading-md, >.ds-heading-lg, >.ds-heading-xl {
32
+ > .ds-heading-xs,
33
+ > .ds-heading-sm,
34
+ > .ds-heading-md,
35
+ > .ds-heading-lg,
36
+ > .ds-heading-xl {
33
37
  @apply mb-0;
34
38
  }
35
39
  }
36
40
  .ds-modal__content {
37
- @apply text-base lg:text-xl text-lg;
41
+ @apply util-modal__content-text;
38
42
  }
39
43
  .ds-modal__action {
40
- @apply flex flex-wrap items-center gap-4;
44
+ @apply util-modal__action;
41
45
  .ds-link,
42
46
  .ds-btn {
43
47
  @apply mb-0;
@@ -0,0 +1,18 @@
1
+ @import './modal.common.css';
2
+
3
+ .ds-modal-container {
4
+ @apply absolute justify-center items-center top-0 left-0 right-0 bottom-0;
5
+ background-color: rgba(var(--color-black-rgb), 0.5);
6
+ }
7
+ .ds-modal {
8
+ @apply util-modal__body;
9
+ }
10
+ .ds-modal__body {
11
+ @apply util-modal__container;
12
+ }
13
+ .ds-modal__content__text {
14
+ @apply util-modal__content-text;
15
+ }
16
+ .ds-modal__action {
17
+ @apply util-modal__action flex-row;
18
+ }
@@ -5,7 +5,7 @@
5
5
 
6
6
  @layer utilities {
7
7
  .util-notification-banner {
8
- @apply border-5 mb-6 md:mb-8 print:bg-white;
8
+ @apply border-5 mb-4 md:mb-8 print:bg-white;
9
9
 
10
10
  /* border-radius: var(--notification-banner-border-radius); */
11
11
  }
@@ -1,5 +1,6 @@
1
1
  .ds-pagination {
2
- @apply flex flex-wrap items-center justify-items-center justify-between;
2
+ @apply flex flex-wrap items-center justify-items-center justify-between
3
+ gap-y-2 md:gap-y-4 gap-x-6 mb-4 md:mb-8;
3
4
  &.ds-pagination--sm {
4
5
  .ds-pagination__label,
5
6
  .ds-pagination__item--current {
@@ -17,7 +18,7 @@
17
18
  @apply text-base-content md:leading-normal;
18
19
  }
19
20
  .ds-pagination__list {
20
- @apply flex items-center;
21
+ @apply flex items-center flex-wrap;
21
22
  }
22
23
  .ds-pagination__item {
23
24
  @apply inline-block p-2 m-0;
@@ -32,6 +33,14 @@
32
33
  @apply font-bold;
33
34
  }
34
35
  }
36
+ @media (max-width: 639.9px) {
37
+ .ds-pagination__item {
38
+ @apply py-0;
39
+ &.ds-pagination__item--current {
40
+ @apply flex items-center justify-center min-h-12 min-w-12;
41
+ }
42
+ }
43
+ }
35
44
 
36
45
  /* overrides */
37
46
 
@@ -69,6 +78,13 @@
69
78
  }
70
79
  }
71
80
  .ds-link {
72
- @apply flex items-center no-underline;
81
+ @apply flex items-center justify-center no-underline;
82
+ }
83
+ }
84
+ @media (max-width: 639.9px) {
85
+ .ds-pagination__item {
86
+ .ds-link {
87
+ @apply min-h-12 min-w-12;
88
+ }
73
89
  }
74
90
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  @layer utilities {
4
4
  .util-panel {
5
- @apply mb-4 p-8 border-5 border-transparent
5
+ @apply mb-4 md:mb-8 p-8 border-5 border-transparent
6
6
  print:p-4 print:border-4 print:text-base-content print:bg-white;
7
7
  border-radius: var(--panel-border-radius);
8
8
  }
@@ -5,7 +5,7 @@
5
5
 
6
6
  @layer utilities {
7
7
  .util-phase-banner {
8
- @apply py-2 mb-4;
8
+ @apply py-2 mb-4 md:mb-8;
9
9
  }
10
10
  .util-phase-banner--underline {
11
11
  @apply border-b border-base-500;
@@ -1,13 +1,14 @@
1
1
  /** @type {import('postcss-load-config').Config} */
2
2
  const config = {
3
3
  plugins: [
4
- require("postcss-import"),
5
- require("tailwindcss/nesting"),
6
- require("tailwindcss")("./src/components/tailwind.config.js"),
7
- require("autoprefixer"),
8
- require("cssnano")({
4
+ require('postcss-import'),
5
+ require('tailwindcss/nesting'),
6
+ require('tailwindcss')('./src/components/tailwind.config.js'),
7
+ require('autoprefixer'),
8
+ require('postcss-sort-media-queries'),
9
+ require('cssnano')({
9
10
  preset: [
10
- "default",
11
+ 'default',
11
12
  {
12
13
  mergeRules: false,
13
14
  },
@@ -0,0 +1,67 @@
1
+ @tailwind utilities;
2
+
3
+ @layer utilities {
4
+ .util-stack {
5
+ @apply flex flex-col flex-wrap;
6
+ }
7
+ .util-stack--row {
8
+ @apply flex-row;
9
+ }
10
+ .util-stack--reverse-row {
11
+ @apply flex-row-reverse;
12
+ }
13
+ .util-stack--col-reverse {
14
+ @apply flex-col-reverse;
15
+ }
16
+ .util-stack--nowrap {
17
+ @apply flex-nowrap;
18
+ }
19
+ .util-stack--justify-flex-start {
20
+ @apply justify-start;
21
+ }
22
+ .util-stack--justify-flex-end {
23
+ @apply justify-end;
24
+ }
25
+ .util-stack--justify-center {
26
+ @apply justify-center;
27
+ }
28
+ .util-stack--justify-space-between {
29
+ @apply justify-between;
30
+ }
31
+ .util-stack--justify-space-around {
32
+ @apply justify-around;
33
+ }
34
+ .util-stack--justify-space-evenly {
35
+ @apply justify-evenly;
36
+ }
37
+ .util-stack--align-stretch {
38
+ @apply items-stretch;
39
+ }
40
+ .util-stack--align-flex-start {
41
+ @apply items-start;
42
+ }
43
+ .util-stack--align-flex-end {
44
+ @apply items-end;
45
+ }
46
+ .util-stack--align-center {
47
+ @apply items-center;
48
+ }
49
+ .util-stack--align-baseline {
50
+ @apply items-baseline;
51
+ }
52
+ .util-stack--content-flex-start {
53
+ @apply content-start;
54
+ }
55
+ .util-stack--content-flex-end {
56
+ @apply content-end;
57
+ }
58
+ .util-stack--content-center {
59
+ @apply content-center;
60
+ }
61
+ .util-stack--content-space-between {
62
+ @apply content-between;
63
+ }
64
+ .util-stack--content-space-around {
65
+ @apply content-around;
66
+ }
67
+ }
@@ -1,64 +1,66 @@
1
+ @import './stack.common.css';
2
+
1
3
  .ds-stack {
2
- @apply flex flex-col flex-wrap;
4
+ @apply util-stack;
3
5
  &.ds-stack--row {
4
- @apply flex-row;
6
+ @apply util-stack--row;
5
7
  }
6
8
  &.ds-stack--reverse-row {
7
- @apply flex-row-reverse;
9
+ @apply util-stack--reverse-row;
8
10
  }
9
11
  &.ds-stack--col-reverse {
10
- @apply flex-col-reverse;
12
+ @apply util-stack--col-reverse;
11
13
  }
12
14
  &.ds-stack--nowrap {
13
- @apply flex-nowrap;
15
+ @apply util-stack--nowrap;
14
16
  }
15
17
  &.ds-stack--justify-flex-start {
16
- @apply justify-start;
18
+ @apply util-stack--justify-flex-start;
17
19
  }
18
20
  &.ds-stack--justify-flex-end {
19
- @apply justify-end;
21
+ @apply util-stack--justify-flex-end;
20
22
  }
21
23
  &.ds-stack--justify-center {
22
- @apply justify-center;
24
+ @apply util-stack--justify-center;
23
25
  }
24
26
  &.ds-stack--justify-space-between {
25
- @apply justify-between;
27
+ @apply util-stack--justify-space-between;
26
28
  }
27
29
  &.ds-stack--justify-space-around {
28
- @apply justify-around;
30
+ @apply util-stack--justify-space-around;
29
31
  }
30
32
  &.ds-stack--justify-space-evenly {
31
- @apply justify-evenly;
33
+ @apply util-stack--justify-space-evenly;
32
34
  }
33
35
  &.ds-stack--align-stretch {
34
- @apply items-stretch;
36
+ @apply util-stack--align-stretch;
35
37
  }
36
38
  &.ds-stack--align-flex-start {
37
- @apply items-start;
39
+ @apply util-stack--align-flex-start;
38
40
  }
39
41
  &.ds-stack--align-flex-end {
40
- @apply items-end;
42
+ @apply util-stack--align-flex-end;
41
43
  }
42
44
  &.ds-stack--align-center {
43
- @apply items-center;
45
+ @apply util-stack--align-center;
44
46
  }
45
47
  &.ds-stack--align-baseline {
46
- @apply items-baseline;
48
+ @apply util-stack--align-baseline;
47
49
  }
48
50
  &.ds-stack--content-flex-start {
49
- @apply content-start;
51
+ @apply util-stack--content-flex-start;
50
52
  }
51
53
  &.ds-stack--content-flex-end {
52
- @apply content-end;
54
+ @apply util-stack--content-flex-end;
53
55
  }
54
56
  &.ds-stack--content-center {
55
- @apply content-center;
57
+ @apply util-stack--content-center;
56
58
  }
57
59
  &.ds-stack--content-space-between {
58
- @apply content-between;
60
+ @apply util-stack--content-space-between;
59
61
  }
60
62
  &.ds-stack--content-space-around {
61
- @apply content-around;
63
+ @apply util-stack--content-space-around;
62
64
  }
63
65
  &.ds-stack--content-space-evenly {
64
66
  @apply content-evenly;
@@ -0,0 +1,68 @@
1
+ @import './stack.common.css';
2
+
3
+ .ds-stack {
4
+ @apply util-stack;
5
+ }
6
+ .ds-stack--row {
7
+ @apply util-stack--row;
8
+ }
9
+ .ds-stack--reverse-row {
10
+ @apply util-stack--reverse-row;
11
+ }
12
+ .ds-stack--col-reverse {
13
+ @apply util-stack--col-reverse;
14
+ }
15
+ .ds-stack--nowrap {
16
+ @apply util-stack--nowrap;
17
+ }
18
+ .ds-stack--justify-flex-start {
19
+ @apply util-stack--justify-flex-start;
20
+ }
21
+ .ds-stack--justify-flex-end {
22
+ @apply util-stack--justify-flex-end;
23
+ }
24
+ .ds-stack--justify-center {
25
+ @apply util-stack--justify-center;
26
+ }
27
+ .ds-stack--justify-space-between {
28
+ @apply util-stack--justify-space-between;
29
+ }
30
+ .ds-stack--justify-space-around {
31
+ @apply util-stack--justify-space-around;
32
+ }
33
+ .ds-stack--justify-space-evenly {
34
+ @apply util-stack--justify-space-evenly;
35
+ }
36
+ .ds-stack--align-stretch {
37
+ @apply util-stack--align-stretch;
38
+ }
39
+ .ds-stack--align-flex-start {
40
+ @apply util-stack--align-flex-start;
41
+ }
42
+ .ds-stack--align-flex-end {
43
+ @apply util-stack--align-flex-end;
44
+ }
45
+ .ds-stack--align-center {
46
+ @apply util-stack--align-center;
47
+ }
48
+ .ds-stack--align-baseline {
49
+ @apply util-stack--align-baseline;
50
+ }
51
+ .ds-stack--content-flex-start {
52
+ @apply util-stack--content-flex-start;
53
+ }
54
+ .ds-stack--content-flex-end {
55
+ @apply util-stack--content-flex-end;
56
+ }
57
+ .ds-stack--content-center {
58
+ @apply util-stack--content-center;
59
+ }
60
+ .ds-stack--content-space-between {
61
+ @apply util-stack--content-space-between;
62
+ }
63
+ .ds-stack--content-space-around {
64
+ @apply util-stack--content-space-around;
65
+ }
66
+ .ds-stack--content-space-evenly {
67
+ justify-content: 'space-evenly';
68
+ }
@@ -1,8 +1,7 @@
1
1
  .ds-step-nav {
2
- @apply mb-8 md:mb-12;
2
+ @apply mb-4 md:mb-8;
3
3
  &.ds-step-nav--dense,
4
4
  .ds-dense & {
5
- @apply mb-4 md:mb-8;
6
5
  .ds-step-nav__circle {
7
6
  @apply md:w-8 md:h-8;
8
7
  margin-left: 0.1rem;
@@ -151,7 +150,7 @@
151
150
  -0.1em 0 0 var(--color-white);
152
151
  }
153
152
  .ds-nav-step__accordion__content {
154
- @apply md:pt-2 mb-6 pt-1 mx-0;
153
+ @apply md:pt-2 mb-4 md:mb-8 pt-1 mx-0;
155
154
  > *:last-child {
156
155
  @apply mb-0;
157
156
  }
@@ -3,13 +3,15 @@
3
3
 
4
4
  @layer utilities {
5
5
  .util-summary-list {
6
- @apply m-0 mb-6 sm:mb-8 w-full sm:w-full;
6
+ @apply m-0 mb-4 md:mb-8 w-full sm:w-full;
7
7
  }
8
8
  .util-summary-list-text {
9
9
  font-size: var(--summary-list-font-size);
10
10
  }
11
11
  .util-summary-list__row {
12
- @apply sm:flex pb-4 mb-4 border-b border-solid border-base-300 sm:pb-0 sm:mb-0 sm:border-0 print:flex print:flex-row print:flex-nowrap;
12
+ @apply sm:flex pb-4 mb-4 border-b border-solid border-base-300
13
+ sm:pb-0 sm:mb-0 sm:border-0
14
+ print:flex print:flex-row print:flex-nowrap;
13
15
  }
14
16
  .util-summary-list__key {
15
17
  @apply mb-1 sm:w-3/12;
@@ -1,20 +1,20 @@
1
1
  .ds-table__caption {
2
- @apply table-caption text-left font-bold;
2
+ @apply table-caption text-left font-bold mx-0 antialiased;
3
3
  &.ds-table__caption--sm {
4
- @apply md:text-2xl text-lg font-bold mx-0 md:mb-6 mb-4 antialiased;
4
+ @apply text-lg md:text-xl mb-3 md:mb-5;
5
5
  }
6
6
  &.ds-table__caption--md {
7
- @apply md:text-3xl text-xl font-bold mx-0 md:mb-8 mb-6 antialiased;
7
+ @apply text-xl md:text-2xl mb-6 md:mb-8;
8
8
  }
9
9
  &.ds-table__caption--lg {
10
- @apply md:text-4xl text-2xl font-bold mx-0 md:mb-9 mb-7 antialiased;
10
+ @apply text-2xl md:text-4xl mb-8 md:mb-10;
11
11
  }
12
12
  &.ds-table__caption--xl {
13
- @apply md:text-5xl md:leading-tight text-3xl leading-tight font-bold mx-0 md:mb-10 mb-8 max-w-2xl antialiased;
13
+ @apply text-3xl md:text-5xl md:leading-tight leading-tight mb-8 md:mb-10 max-w-2xl;
14
14
  }
15
15
  }
16
16
  .ds-table-container {
17
- @apply w-full overflow-x-auto md:mb-10 mb-6;
17
+ @apply w-full overflow-x-auto mb-4 md:mb-8;
18
18
  &.ds-table-container--border {
19
19
  @apply border border-base-300 p-2;
20
20
  }
@@ -23,8 +23,8 @@
23
23
  }
24
24
  }
25
25
  .ds-table {
26
- @apply w-full border-collapse table;
27
- @apply md:mb-10 mb-6 text-base-content md:text-lg text-base font-normal antialiased;
26
+ @apply w-full border-collapse table
27
+ mb-4 md:mb-8 text-base-content text-base md:text-lg font-normal antialiased;
28
28
  border-spacing: 0;
29
29
  &.ds-table--vertical-lines {
30
30
  .ds-table__cell,
@@ -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 & {
@@ -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,30 +20,30 @@
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;
27
27
  content: '';
28
28
  }
29
- }
30
- .ds-timeline__heading-md {
31
- @apply md:text-2xl text-xl md:mb-4 mb-2;
32
- &::before {
33
- @apply top-3 w-3;
29
+ &.ds-timeline__heading--md {
30
+ @apply text-xl md:text-2xl mb-2 md:mb-4;
31
+ &::before {
32
+ @apply top-3 w-3;
33
+ }
34
34
  }
35
- }
36
- .ds-timeline__heading-sm {
37
- @apply md:text-lg text-base md:mb-3 mb-1;
38
- &::before {
39
- @apply top-2.5 w-3;
35
+ &.ds-timeline__heading--sm {
36
+ @apply text-base md:text-lg mb-1 md:mb-3;
37
+ &::before {
38
+ @apply top-2.5 w-3;
39
+ }
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;
@@ -51,7 +51,7 @@
51
51
  }
52
52
  .util-link {
53
53
  @apply focus:bg-focus;
54
- padding: var(--link-padding);
54
+ padding: var(--link-padding-y) var(--link-padding-x);
55
55
  }
56
56
  .util-link-text {
57
57
  /* @apply focus:text-link-active underline; */
@@ -59,9 +59,6 @@
59
59
  color: var(--link-color);
60
60
  font-size: var(--link-font-size);
61
61
  line-height: var(--link-line-height);
62
- /* &:focus {
63
- text-decoration: none !important;
64
- } */
65
62
  }
66
63
 
67
64
  .util-caption-xl {
@@ -115,8 +112,6 @@
115
112
 
116
113
  /* List */
117
114
  .util-list {
118
- @apply mt-4;
119
-
120
115
  @apply md:mb-8 mb-4 text-base-content;
121
116
  }
122
117
  .util-list-bullet {
@@ -106,8 +106,7 @@
106
106
  @apply util-font-weight-bold-text;
107
107
  }
108
108
  .ds-list {
109
- @apply list-none list-outside mt-4;
110
- @apply md:mb-8 mb-4 text-base-content;
109
+ @apply list-none list-outside mb-4 md:mb-8 text-base-content;
111
110
  font-size: var(--list-font-size);
112
111
  line-height: var(--list-line-height);
113
112
  &.ds-list--bullet {
@@ -147,7 +146,7 @@
147
146
  @apply pl-10;
148
147
  }
149
148
  .ds-list__item > .ds-list {
150
- @apply mb-0 mt-2;
149
+ @apply mb-0;
151
150
  }
152
151
  .ds-list--spaced:not(.ds-list--horizontal) > .ds-list__item {
153
152
  @apply mb-4;
@@ -282,6 +281,7 @@
282
281
  }
283
282
  }
284
283
  button.ds-link {
284
+ @apply text-left;
285
285
  .ds-svg-icon {
286
286
  @apply ml-1;
287
287
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  @layer utilities {
6
6
  .util-warning-text {
7
- @apply flex pb-0;
7
+ @apply flex pb-0 mb-4 md:mb-8;
8
8
  }
9
9
  .util-warning-text-text {
10
10
  font-size: var(--warning-text-font-size);