@digigov/css 2.0.0-6e3977bc → 2.0.0-76ec20a0

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 (122) 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 +13 -13
  9. package/postcss.config.js +4 -4
  10. package/src/base/index.css +1 -0
  11. package/src/base/index.native.css +0 -0
  12. package/src/base/postcss.config.js +11 -10
  13. package/src/base/tailwind.config.js +4 -11
  14. package/src/components/accordion.common.css +29 -0
  15. package/src/components/accordion.css +10 -7
  16. package/src/components/accordion.native.css +27 -0
  17. package/src/components/autocomplete.css +1 -3
  18. package/src/components/blockquote.common.css +11 -11
  19. package/src/components/blockquote.css +6 -6
  20. package/src/components/blockquote.native.css +4 -1
  21. package/src/components/breadcrumbs.css +1 -1
  22. package/src/components/button.css +1 -1
  23. package/src/components/button.native.css +6 -7
  24. package/src/components/card.common.css +30 -30
  25. package/src/components/card.css +1 -1
  26. package/src/components/checkboxes.common.css +13 -13
  27. package/src/components/checkboxes.native.css +2 -3
  28. package/src/components/chip.common.css +19 -0
  29. package/src/components/chip.css +5 -4
  30. package/src/components/chip.native.css +15 -0
  31. package/src/components/code.css +11 -10
  32. package/src/components/copy-to-clipboard.css +1 -1
  33. package/src/components/copy-to-clipboard.native.css +2 -4
  34. package/src/components/details.common.css +23 -23
  35. package/src/components/details.native.css +8 -0
  36. package/src/components/drawer.css +21 -4
  37. package/src/components/dropdown.common.css +20 -20
  38. package/src/components/dropdown.native.css +10 -11
  39. package/src/components/fillable.css +1 -1
  40. package/src/components/filter.css +75 -26
  41. package/src/components/footer.css +8 -7
  42. package/src/components/form.common.css +75 -76
  43. package/src/components/form.css +7 -4
  44. package/src/components/form.native.css +102 -53
  45. package/src/components/header.common.css +32 -33
  46. package/src/components/header.css +9 -13
  47. package/src/components/header.native.css +5 -10
  48. package/src/components/kitchensink.css +2 -2
  49. package/src/components/layout.common.css +2 -2
  50. package/src/components/layout.css +1 -1
  51. package/src/components/layout.native.css +1 -0
  52. package/src/components/loader.common.css +7 -0
  53. package/src/components/loader.css +3 -1
  54. package/src/components/loader.native.css +5 -0
  55. package/src/components/modal.common.css +16 -0
  56. package/src/components/modal.css +19 -15
  57. package/src/components/modal.native.css +18 -0
  58. package/src/components/nav.common.css +18 -18
  59. package/src/components/nav.native.css +4 -6
  60. package/src/components/notification-banner.common.css +2 -2
  61. package/src/components/notification-banner.css +20 -2
  62. package/src/components/pagination.css +19 -3
  63. package/src/components/panel.common.css +26 -26
  64. package/src/components/panel.native.css +8 -2
  65. package/src/components/phase-banner.common.css +1 -1
  66. package/src/components/phase-banner.native.css +0 -1
  67. package/src/components/postcss.config.js +7 -6
  68. package/src/components/radios.common.css +1 -1
  69. package/src/components/radios.native.css +2 -3
  70. package/src/components/skeleton.common.css +20 -0
  71. package/src/components/skeleton.css +7 -10
  72. package/src/components/skeleton.native.css +53 -0
  73. package/src/components/stack.common.css +67 -0
  74. package/src/components/stack.css +23 -21
  75. package/src/components/stack.native.css +68 -0
  76. package/src/components/stepnav.css +2 -2
  77. package/src/components/summary-list.common.css +6 -3
  78. package/src/components/summary-list.css +10 -7
  79. package/src/components/summary-list.native.css +5 -1
  80. package/src/components/svg-icons.common.css +1 -1
  81. package/src/components/svg-icons.native.css +2 -3
  82. package/src/components/table.css +25 -12
  83. package/src/components/tabs.css +1 -0
  84. package/src/components/task-list.css +12 -7
  85. package/src/components/test.css +2 -2
  86. package/src/components/timeline.css +8 -7
  87. package/src/components/typography.common.css +2 -7
  88. package/src/components/typography.css +5 -17
  89. package/src/components/typography.native.css +31 -0
  90. package/src/components/warning-text.common.css +1 -1
  91. package/src/components/warning-text.css +9 -6
  92. package/src/index.native.css +7 -1
  93. package/src/utilities/gap.css +141 -0
  94. package/src/utilities/index.css +6 -3
  95. package/src/utilities/index.native.css +6 -2
  96. package/src/utilities/layout.css +1 -1
  97. package/src/utilities/layout.native.css +1 -1
  98. package/src/utilities/margin.css +4299 -0
  99. package/src/utilities/padding.css +4299 -0
  100. package/src/utilities/postcss.config.js +7 -6
  101. package/src/utilities/print.css +1 -1
  102. package/src/utilities/utilities.css +3 -2378
  103. package/tailwind.config.js +102 -106
  104. package/theming.js +121 -0
  105. package/defaultTheme/accordion.json +0 -16
  106. package/defaultTheme/back-to-top.json +0 -27
  107. package/defaultTheme/brandConfig.json +0 -147
  108. package/defaultTheme/breadcrumbs.json +0 -8
  109. package/defaultTheme/button.json +0 -94
  110. package/defaultTheme/card.json +0 -23
  111. package/defaultTheme/form.json +0 -132
  112. package/defaultTheme/globals.json +0 -81
  113. package/defaultTheme/index.js +0 -27
  114. package/defaultTheme/layout.json +0 -55
  115. package/defaultTheme/misc.json +0 -68
  116. package/defaultTheme/panel.json +0 -48
  117. package/defaultTheme/phase-banner.json +0 -8
  118. package/defaultTheme/radios.json +0 -8
  119. package/defaultTheme/summary-list.json +0 -8
  120. package/defaultTheme/typography.json +0 -295
  121. package/src/utilities/spacing.css +0 -2133
  122. package/themes.plugin.js +0 -148
@@ -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,5 +1,5 @@
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
5
  @apply mb-4 md:mb-8;
@@ -151,7 +151,7 @@
151
151
  -0.1em 0 0 var(--color-white);
152
152
  }
153
153
  .ds-nav-step__accordion__content {
154
- @apply md:pt-2 mb-6 pt-1 mx-0;
154
+ @apply md:pt-2 mb-4 md:mb-8 pt-1 mx-0;
155
155
  > *:last-child {
156
156
  @apply mb-0;
157
157
  }
@@ -3,13 +3,16 @@
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 sm: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 border-b border-base-300 print:flex print:flex-row print:flex-nowrap;
13
+ }
14
+ .util-summary-list__row--no-border {
15
+ @apply border-0;
13
16
  }
14
17
  .util-summary-list__key {
15
18
  @apply mb-1 sm:w-3/12;
@@ -23,7 +26,7 @@
23
26
  .util-summary-list__actions {
24
27
  @apply sm:w-3/12 sm:pr-0 sm:text-right;
25
28
  }
26
-
29
+
27
30
  .util-summary-list__key--sm-3 {
28
31
  @apply sm:w-3/12;
29
32
  }
@@ -4,13 +4,16 @@
4
4
  .ds-summary-list {
5
5
  @apply util-summary-list sm:table sm:table-fixed util-summary-list-text;
6
6
  &.ds-summary-list--no-border {
7
- > .ds-summary-list__row:last-child {
8
- @apply border-b-0 pb-0 mb-0;
7
+ > .ds-summary-list__row {
8
+ @apply border-0 pb-0;
9
+ &:last-child {
10
+ @apply mb-0;
11
+ }
9
12
  }
10
13
  .ds-summary-list__key,
11
14
  .ds-summary-list__value,
12
15
  .ds-summary-list__actions {
13
- @apply sm:border-0 pb-2;
16
+ @apply border-0 pb-0 sm:pb-2;
14
17
  }
15
18
  }
16
19
  &.ds-summary-list--no-last-border {
@@ -26,12 +29,12 @@
26
29
  }
27
30
 
28
31
  .ds-summary-list__row {
29
- @apply block util-summary-list__row;
32
+ @apply util-summary-list__row sm:flex block pb-4 mb-4 sm:pb-0 sm:mb-0 sm:border-0;
30
33
  &.ds-summary-list__row--no-border {
31
34
  .ds-summary-list__key,
32
35
  .ds-summary-list__value,
33
36
  .ds-summary-list__actions {
34
- @apply sm:border-0 pb-2;
37
+ @apply border-0 pb-0 sm:pb-2;
35
38
  }
36
39
  }
37
40
  }
@@ -118,7 +121,6 @@
118
121
  @apply sm:flex-1;
119
122
  }
120
123
 
121
-
122
124
  /* When there is only one child */
123
125
  .ds-summary-list__key:only-child,
124
126
  .ds-summary-list__value:only-child,
@@ -127,7 +129,8 @@
127
129
  }
128
130
  .ds-summary-list__key,
129
131
  .ds-summary-list__value {
130
- @apply break-words;
132
+ /* @apply break-all break-words; */
133
+ overflow-wrap: anywhere;
131
134
  }
132
135
  .ds-summary-list__key,
133
136
  .ds-summary-list__value,
@@ -8,7 +8,11 @@
8
8
  @apply util-summary-list-text;
9
9
  }
10
10
  .ds-summary-list__row {
11
- @apply util-summary-list__row gap-y-2;
11
+ @apply border-b border-base-300 pb-2 flex mb-2;
12
+ row-gap: 0.5rem;
13
+ }
14
+ .ds-summary-list__row--no-border {
15
+ @apply util-summary-list__row--no-border;
12
16
  }
13
17
  .ds-summary-list__key {
14
18
  @apply util-summary-list__key;
@@ -53,4 +53,4 @@
53
53
  .util-svg-icon--xl {
54
54
  @apply h-10 w-10 !important;
55
55
  }
56
- }
56
+ }
@@ -2,8 +2,7 @@
2
2
 
3
3
  .ds-svg-icon {
4
4
  @apply util-svg-icon;
5
- flex-direction:'row';
6
- flex-wrap:'wrap';
5
+ flex-flow: 'row' 'wrap';
7
6
  }
8
7
  .ds-svg-icon--base-content {
9
8
  @apply util-svg-icon--base-content;
@@ -52,4 +51,4 @@
52
51
  }
53
52
  .ds-svg-icon--xl {
54
53
  @apply util-svg-icon--xl;
55
- }
54
+ }
@@ -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 md:text-lg text-base font-normal antialiased;
28
28
  border-spacing: 0;
29
29
  &.ds-table--vertical-lines {
30
30
  .ds-table__cell,
@@ -81,9 +81,12 @@
81
81
  .ds-table__header,
82
82
  .ds-table__cell {
83
83
  &:last-child {
84
- @apply border-b-2;
85
- border-bottom-color: rgb(var(--color-base-content-rgb));
84
+ @apply border-b-2 border-b-base-content;
86
85
  }
86
+ }
87
+ .ds-table__header--numeric,
88
+ .ds-table__cell--numeric {
89
+ @apply text-left;
87
90
  }
88
91
  .ds-table__head {
89
92
  .ds-table__header {
@@ -98,6 +101,7 @@
98
101
  @apply block font-semibold mb-2;
99
102
  content: attr(data-label);
100
103
  }
104
+
101
105
  }
102
106
  &.ds-table--stacked-sm {
103
107
  @media (min-width: 640px) {
@@ -108,9 +112,13 @@
108
112
  .ds-table__header,
109
113
  .ds-table__cell {
110
114
  &:last-child {
111
- @apply border-b-2 sm:border-b border-b-base-content sm:border-b-base-300;
115
+ @apply xsOnly:border-b-2 xsOnly:border-b-base-content;
112
116
  }
113
117
  }
118
+ .ds-table__header--numeric,
119
+ .ds-table__cell--numeric {
120
+ @apply xsOnly:text-left;
121
+ }
114
122
  .ds-table__head {
115
123
  .ds-table__header {
116
124
  @apply hidden sm:table-cell;
@@ -134,9 +142,14 @@
134
142
  .ds-table__header,
135
143
  .ds-table__cell {
136
144
  &:last-child {
137
- @apply border-b-2 md:border-b border-b-base-content md:border-b-base-300;
145
+ @apply xsOnly:border-b-2 smOnly:border-b-2
146
+ xsOnly:border-b-base-content smOnly:border-b-base-content;
138
147
  }
139
148
  }
149
+ .ds-table__header--numeric,
150
+ .ds-table__cell--numeric {
151
+ @apply smOnly:text-left mdOnly:text-left;
152
+ }
140
153
  .ds-table__head {
141
154
  .ds-table__header {
142
155
  @apply hidden md: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
  }
@@ -3,5 +3,5 @@
3
3
  }
4
4
 
5
5
  .ds-button:focus {
6
- @apply ds-underline;
7
- }
6
+ @apply ds-underline;
7
+ }
@@ -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;
@@ -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,9 +112,7 @@
115
112
 
116
113
  /* List */
117
114
  .util-list {
118
- @apply mt-4;
119
-
120
- @apply md:mb-8 mb-4 text-base-content;
115
+ @apply mb-4 md:mb-8 mt-4 text-base-content;
121
116
  }
122
117
  .util-list-bullet {
123
118
  @apply pl-4;
@@ -60,21 +60,6 @@
60
60
  @apply opacity-70 text-white print:text-base-content;
61
61
  }
62
62
  }
63
- .ds-code {
64
- @apply text-sm sm:text-base bg-base-100;
65
- &.ds-code--attr {
66
- @apply text-info;
67
- }
68
- &.ds-code--string {
69
- @apply text-success;
70
- }
71
- &.ds-code--keyword {
72
- @apply text-warning;
73
- }
74
- &.ds-code--name {
75
- @apply text-tertiary;
76
- }
77
- }
78
63
  .ds-\!-font-size-14 {
79
64
  @apply text-xs md:text-sm !important;
80
65
  }
@@ -106,8 +91,7 @@
106
91
  @apply util-font-weight-bold-text;
107
92
  }
108
93
  .ds-list {
109
- @apply list-none list-outside mt-4;
110
- @apply md:mb-8 mb-4 text-base-content;
94
+ @apply list-none list-outside md:mb-8 mb-4 text-base-content;
111
95
  font-size: var(--list-font-size);
112
96
  line-height: var(--list-line-height);
113
97
  &.ds-list--bullet {
@@ -195,6 +179,9 @@
195
179
  &.ds-link--no-underline {
196
180
  @apply no-underline hover:underline;
197
181
  }
182
+ &.ds-link-warning {
183
+ color: var(--color-error-text);
184
+ }
198
185
  .ds-heading-xl &,
199
186
  .ds-heading-lg &,
200
187
  .ds-heading-md &,
@@ -282,6 +269,7 @@
282
269
  }
283
270
  }
284
271
  button.ds-link {
272
+ @apply text-left;
285
273
  .ds-svg-icon {
286
274
  @apply ml-1;
287
275
  }
@@ -12,33 +12,51 @@
12
12
  .ds-heading-xl__text {
13
13
  @apply util-heading-xl-text;
14
14
  margin-bottom: var(--heading-xl-margin-bottom);
15
+ line-height: calc(
16
+ var(--heading-xl-line-height) * var(--heading-xl-font-size)
17
+ );
15
18
  }
16
19
  .ds-heading-lg__text {
17
20
  @apply util-heading-lg-text;
18
21
  margin-bottom: var(--heading-lg-margin-bottom);
22
+ line-height: calc(
23
+ var(--heading-lg-line-height) * var(--heading-lg-font-size)
24
+ );
19
25
  }
20
26
  .ds-heading-md__text {
21
27
  @apply util-heading-md-text;
22
28
  margin-bottom: var(--heading-md-margin-bottom);
29
+ line-height: calc(
30
+ var(--heading-md-line-height) * var(--heading-md-font-size)
31
+ );
23
32
  }
24
33
  .ds-heading-sm__text {
25
34
  @apply util-heading-sm-text;
26
35
  margin-bottom: var(--heading-sm-margin-bottom);
36
+ line-height: calc(
37
+ var(--heading-sm-line-height) * var(--heading-sm-font-size)
38
+ );
27
39
  }
28
40
  .ds-heading-xs__text {
29
41
  @apply util-heading-xs-text;
30
42
  margin-bottom: var(--heading-xs-margin-bottom);
43
+ line-height: calc(
44
+ var(--heading-xs-line-height) * var(--heading-xs-font-size)
45
+ );
31
46
  }
32
47
 
33
48
  /* Paragraph */
34
49
  .ds-body__text {
35
50
  @apply util-body-text;
51
+ line-height: calc(var(--body-line-height) * var(--body-font-size));
36
52
  }
37
53
  .ds-body--lg__text {
38
54
  @apply util-body-lg-text;
55
+ line-height: calc(var(--body--lg-line-height) * var(--body--lg-font-size));
39
56
  }
40
57
  .ds-body--sm__text {
41
58
  @apply util-body-sm-text;
59
+ line-height: calc(var(--body__sm-line-height) * var(--body__sm-font-size));
42
60
  }
43
61
 
44
62
  /* Hint */
@@ -47,12 +65,15 @@
47
65
  }
48
66
  .ds-hint__text {
49
67
  @apply util-hint-text;
68
+ line-height: calc(var(--hint-line-height) * var(--hint-font-size));
50
69
  }
51
70
  .ds-hint--lg__text {
52
71
  @apply util-hint-lg-text;
72
+ line-height: calc(var(--hint--lg-line-height) * var(--hint--lg-font-size));
53
73
  }
54
74
  .ds-hint--sm__text {
55
75
  @apply util-hint-sm-text;
76
+ line-height: calc(var(--hint--sm-line-height) * var(--hint--sm-font-size));
56
77
  }
57
78
 
58
79
  /* Link */
@@ -61,6 +82,7 @@
61
82
  }
62
83
  .ds-link__text {
63
84
  @apply util-link-text;
85
+ line-height: calc(var(--link-line-height) * var(--link-font-size));
64
86
  }
65
87
 
66
88
  /* HeadingCaption */
@@ -69,18 +91,27 @@
69
91
  }
70
92
  .ds-caption-xl__text {
71
93
  @apply util-caption-xl-text;
94
+ line-height: calc(
95
+ var(--caption-xl-line-height) * var(--caption-xl-font-size)
96
+ );
72
97
  }
73
98
  .ds-caption-lg {
74
99
  @apply util-caption-lg;
75
100
  }
76
101
  .ds-caption-lg__text {
77
102
  @apply util-caption-lg-text;
103
+ line-height: calc(
104
+ var(--caption-lg-line-height) * var(--caption-lg-font-size)
105
+ );
78
106
  }
79
107
  .ds-caption-md {
80
108
  @apply util-caption-md;
81
109
  }
82
110
  .ds-caption-md__text {
83
111
  @apply util-caption-md-text;
112
+ line-height: calc(
113
+ var(--caption-md-line-height) * var(--caption-md-font-size)
114
+ );
84
115
  }
85
116
 
86
117
  .ds-list {
@@ -4,7 +4,7 @@
4
4
 
5
5
  @layer utilities {
6
6
  .util-warning-text {
7
- @apply flex pb-0;
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);