@digigov/css 2.0.0-0edebf87 → 2.0.0-13876dba
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/dist/base/index.css +1 -1
- package/dist/base.js +1 -1
- package/dist/components.js +1 -1
- package/dist/digigov.css +3 -3
- package/dist/utilities/index.css +1 -1
- package/dist/utilities.js +1 -1
- package/index.js +99 -69
- package/package.json +14 -14
- package/postcss.config.js +4 -3
- package/src/base/index.css +1 -0
- package/src/base/index.native.css +0 -0
- package/src/base/postcss.config.js +11 -10
- package/src/base/tailwind.config.js +4 -11
- package/src/components/accordion.common.css +29 -0
- package/src/components/accordion.css +9 -7
- package/src/components/accordion.native.css +27 -0
- package/src/components/admin-header.css +1 -19
- package/src/components/admin-layout.css +4 -6
- package/src/components/autocomplete.css +1 -3
- package/src/components/blockquote.common.css +14 -0
- package/src/components/blockquote.css +9 -0
- package/src/components/blockquote.native.css +14 -0
- package/src/components/breadcrumbs.css +9 -2
- package/src/components/button.common.css +62 -0
- package/src/components/button.css +13 -28
- package/src/components/button.native.css +55 -0
- package/src/components/card.common.css +33 -0
- package/src/components/card.css +19 -14
- package/src/components/card.native.css +29 -0
- package/src/components/checkboxes.common.css +16 -0
- package/src/components/checkboxes.css +6 -8
- package/src/components/checkboxes.native.css +27 -0
- package/src/components/chip.common.css +19 -0
- package/src/components/chip.css +5 -4
- package/src/components/chip.native.css +15 -0
- package/src/components/code.css +128 -0
- package/src/components/copy-to-clipboard.css +1 -1
- package/src/components/copy-to-clipboard.native.css +26 -0
- package/src/components/details.common.css +26 -0
- package/src/components/details.css +6 -9
- package/src/components/details.native.css +34 -0
- package/src/components/drawer.css +20 -3
- package/src/components/dropdown.common.css +23 -0
- package/src/components/dropdown.css +7 -9
- package/src/components/dropdown.native.css +27 -0
- package/src/components/filter.css +71 -22
- package/src/components/footer.css +8 -7
- package/src/components/form.common.css +81 -0
- package/src/components/form.css +62 -31
- package/src/components/form.native.css +182 -0
- package/src/components/header.common.css +35 -0
- package/src/components/header.css +12 -20
- package/src/components/header.native.css +29 -0
- package/src/components/hidden.css +11 -11
- package/src/components/index.css +2 -0
- package/src/components/kitchensink.css +2 -2
- package/src/components/layout.common.css +36 -0
- package/src/components/layout.css +12 -11
- package/src/components/layout.native.css +40 -0
- package/src/components/loader.common.css +7 -0
- package/src/components/loader.css +3 -1
- package/src/components/loader.native.css +5 -0
- package/src/components/masthead.css +1 -1
- package/src/components/modal.common.css +16 -0
- package/src/components/modal.css +19 -15
- package/src/components/modal.native.css +18 -0
- package/src/components/nav.common.css +22 -0
- package/src/components/nav.css +8 -7
- package/src/components/nav.native.css +39 -0
- package/src/components/notification-banner.common.css +46 -0
- package/src/components/notification-banner.css +27 -7
- package/src/components/notification-banner.native.css +42 -0
- package/src/components/pagination.css +19 -3
- package/src/components/panel.common.css +30 -0
- package/src/components/panel.css +6 -15
- package/src/components/panel.native.css +26 -0
- package/src/components/phase-banner.common.css +23 -0
- package/src/components/phase-banner.css +7 -6
- package/src/components/phase-banner.native.css +30 -0
- package/src/components/postcss.config.js +7 -6
- package/src/components/radios.common.css +16 -0
- package/src/components/radios.css +5 -11
- package/src/components/radios.native.css +23 -0
- package/src/components/skeleton.common.css +20 -0
- package/src/components/skeleton.css +7 -10
- package/src/components/skeleton.native.css +53 -0
- package/src/components/stack.common.css +67 -0
- package/src/components/stack.css +23 -21
- package/src/components/stack.native.css +68 -0
- package/src/components/summary-list.common.css +93 -0
- package/src/components/summary-list.css +90 -26
- package/src/components/summary-list.native.css +97 -0
- package/src/components/svg-icons.common.css +56 -0
- package/src/components/svg-icons.css +1 -1
- package/src/components/svg-icons.native.css +54 -0
- package/src/components/table.css +17 -4
- package/src/components/tabs.css +44 -62
- package/src/components/test.css +7 -0
- package/src/components/typography.common.css +135 -0
- package/src/components/typography.css +36 -108
- package/src/components/typography.native.css +128 -0
- package/src/components/warning-text.common.css +23 -0
- package/src/components/warning-text.css +9 -7
- package/src/components/warning-text.native.css +22 -0
- package/src/index.native.css +26 -0
- package/src/utilities/gap.css +141 -0
- package/src/utilities/index.css +6 -1655
- package/src/utilities/index.native.css +6 -0
- package/src/utilities/layout.css +231 -0
- package/src/utilities/layout.native.css +278 -0
- package/src/utilities/margin.css +4299 -0
- package/src/utilities/padding.css +4299 -0
- package/src/utilities/postcss.config.js +7 -6
- package/src/utilities/print.css +11 -0
- package/src/utilities/utilities.css +3 -1661
- package/tailwind.config.js +102 -105
- package/theming.js +121 -0
- package/defaultTheme/accordion.json +0 -16
- package/defaultTheme/back-to-top.json +0 -27
- package/defaultTheme/brandConfig.json +0 -145
- package/defaultTheme/breadcrumbs.json +0 -8
- package/defaultTheme/button.json +0 -90
- package/defaultTheme/card.json +0 -23
- package/defaultTheme/form.json +0 -30
- package/defaultTheme/globals.json +0 -81
- package/defaultTheme/index.js +0 -27
- package/defaultTheme/layout.json +0 -55
- package/defaultTheme/misc.json +0 -68
- package/defaultTheme/panel.json +0 -48
- package/defaultTheme/phase-banner.json +0 -8
- package/defaultTheme/radios.json +0 -8
- package/defaultTheme/summary-list.json +0 -8
- package/defaultTheme/typography.json +0 -295
- package/themes.plugin.js +0 -148
package/src/components/table.css
CHANGED
|
@@ -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
|
|
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
|
|
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;
|
package/src/components/tabs.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.ds-dense & {
|
|
5
5
|
.ds-tabs__list {
|
|
6
6
|
.ds-tabs__list-item {
|
|
7
|
-
@apply px-3 py-1;
|
|
7
|
+
@apply md:px-3 md:py-1;
|
|
8
8
|
&.ds-tabs__list-item-selected {
|
|
9
9
|
@apply md:px-4 md:pb-3 md:pt-2;
|
|
10
10
|
}
|
|
@@ -14,70 +14,52 @@
|
|
|
14
14
|
@apply pb-2 pt-3;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
17
|
+
}
|
|
18
|
+
.ds-tabs__title {
|
|
19
|
+
@apply block md:hidden;
|
|
20
|
+
}
|
|
21
|
+
.ds-tabs__list {
|
|
22
|
+
@apply list-none m-0 p-0
|
|
23
|
+
md:flex md:flex-nowrap md:w-full md:items-start;
|
|
24
|
+
&::after {
|
|
25
|
+
content: '';
|
|
26
|
+
display: block;
|
|
27
|
+
clear: both;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.ds-tabs__list-item {
|
|
31
|
+
@apply relative px-4 py-1 md:py-2 m-0 shadow-none cursor-pointer text-link
|
|
32
|
+
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
|
+
print:hidden;
|
|
34
|
+
word-break: break-word;
|
|
35
|
+
&.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
|
+
&:hover {
|
|
39
|
+
text-decoration-thickness: 2px;
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
|
-
|
|
38
|
-
|
|
42
|
+
}
|
|
43
|
+
.ds-tabs__tab {
|
|
44
|
+
@apply text-lg no-underline hover:underline;
|
|
45
|
+
&::before {
|
|
46
|
+
@apply absolute top-0 left-0 text-base-content;
|
|
47
|
+
@apply md:content-[''] !important;
|
|
48
|
+
content: '_';
|
|
39
49
|
}
|
|
40
|
-
|
|
41
|
-
@apply
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
.ds-tabs__list-item {
|
|
48
|
-
@apply relative px-4 py-2 m-0 shadow-none cursor-pointer;
|
|
49
|
-
@apply md:float-left md:border md:border-base-300 md:bg-base-300 md:rounded-t-sm md:mr-2;
|
|
50
|
-
@apply print:hidden;
|
|
51
|
-
&.ds-tabs__list-item-selected {
|
|
52
|
-
@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;
|
|
53
|
-
margin-bottom: -1px;
|
|
54
|
-
&:hover {
|
|
55
|
-
text-decoration-thickness: 2px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
.ds-tabs__tab {
|
|
60
|
-
@apply text-lg no-underline hover:underline focus:underline;
|
|
61
|
-
text-underline-offset: 0.1em;
|
|
62
|
-
&::after {
|
|
63
|
-
@apply absolute top-0 right-0 bottom-0 left-0;
|
|
64
|
-
content: '';
|
|
65
|
-
}
|
|
66
|
-
&:focus {
|
|
67
|
-
background-color: var(--color-focus);
|
|
68
|
-
outline: 3px solid transparent;
|
|
69
|
-
box-shadow: inset 0 0 0 3px var(--color-focus);
|
|
70
|
-
outline-offset: 0;
|
|
71
|
-
text-decoration-thickness: 0.2rem;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
50
|
+
&:focus {
|
|
51
|
+
@apply bg-focus underline text-link-active;
|
|
52
|
+
outline: 3px solid transparent;
|
|
53
|
+
box-shadow: inset 0 0 0 3px var(--color-focus);
|
|
54
|
+
outline-offset: 0;
|
|
55
|
+
text-decoration-thickness: 0.2rem;
|
|
74
56
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
57
|
+
}
|
|
58
|
+
.ds-tabs__panel {
|
|
59
|
+
@apply bg-base-100 md:hidden block md:px-4 py-4 pt-8 md:border md:border-base-400 mb-0
|
|
60
|
+
print:block print:border-0 print:py-3;
|
|
61
|
+
border-radius: var(--tabs__panel-border-radius);
|
|
62
|
+
&.ds-tabs__panel--visible {
|
|
63
|
+
@apply block;
|
|
82
64
|
}
|
|
83
65
|
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/* stylelint-disable digigov/enforce-class-selector-namespace */
|
|
2
|
+
@tailwind utilities;
|
|
3
|
+
|
|
4
|
+
@layer utilities {
|
|
5
|
+
.util-font-weight-bold-text {
|
|
6
|
+
@apply font-bold !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.util-heading-xl {
|
|
10
|
+
@apply mx-0 max-w-2xl;
|
|
11
|
+
}
|
|
12
|
+
.util-heading-xl-text {
|
|
13
|
+
font-size: var(--heading-xl-font-size);
|
|
14
|
+
line-height: var(--heading-xl-line-height);
|
|
15
|
+
font-weight: var(--heading-xl-font-weight);
|
|
16
|
+
}
|
|
17
|
+
.util-heading-lg-text {
|
|
18
|
+
font-size: var(--heading-lg-font-size);
|
|
19
|
+
line-height: var(--heading-lg-line-height);
|
|
20
|
+
font-weight: var(--heading-lg-font-weight);
|
|
21
|
+
}
|
|
22
|
+
.util-heading-md-text {
|
|
23
|
+
font-size: var(--heading-md-font-size);
|
|
24
|
+
line-height: var(--heading-md-line-height);
|
|
25
|
+
font-weight: var(--heading-md-font-weight);
|
|
26
|
+
}
|
|
27
|
+
.util-heading-sm-text {
|
|
28
|
+
font-size: var(--heading-sm-font-size);
|
|
29
|
+
line-height: var(--heading-sm-line-height);
|
|
30
|
+
font-weight: var(--heading-sm-font-weight);
|
|
31
|
+
}
|
|
32
|
+
.util-heading-xs-text {
|
|
33
|
+
font-size: var(--heading-xs-font-size);
|
|
34
|
+
line-height: var(--heading-xs-line-height);
|
|
35
|
+
font-weight: var(--heading-xs-font-weight);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.util-body-text {
|
|
39
|
+
font-size: var(--body-font-size);
|
|
40
|
+
line-height: var(--body-line-height);
|
|
41
|
+
margin-bottom: var(--body-margin-bottom);
|
|
42
|
+
color: var(--body-color);
|
|
43
|
+
}
|
|
44
|
+
.util-body-lg-text {
|
|
45
|
+
font-size: var(--body--lg-font-size);
|
|
46
|
+
line-height: var(--body--lg-line-height);
|
|
47
|
+
}
|
|
48
|
+
.util-body-sm-text {
|
|
49
|
+
font-size: var(--body--sm-font-size);
|
|
50
|
+
line-height: var(--body--sm-line-height);
|
|
51
|
+
}
|
|
52
|
+
.util-link {
|
|
53
|
+
@apply focus:bg-focus;
|
|
54
|
+
padding: var(--link-padding-y) var(--link-padding-x);
|
|
55
|
+
}
|
|
56
|
+
.util-link-text {
|
|
57
|
+
/* @apply focus:text-link-active underline; */
|
|
58
|
+
@apply underline;
|
|
59
|
+
color: var(--link-color);
|
|
60
|
+
font-size: var(--link-font-size);
|
|
61
|
+
line-height: var(--link-line-height);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.util-caption-xl {
|
|
65
|
+
@apply mx-0 font-normal;
|
|
66
|
+
}
|
|
67
|
+
.util-caption-xl-text {
|
|
68
|
+
color: var(--caption-xl-color);
|
|
69
|
+
font-size: var(--caption-xl-font-size);
|
|
70
|
+
margin-bottom: var(--caption-xl-margin-bottom);
|
|
71
|
+
font-weight: var(--caption-xl-font-weight);
|
|
72
|
+
line-height: var(--caption-xl-line-height);
|
|
73
|
+
}
|
|
74
|
+
.util-caption-lg {
|
|
75
|
+
@apply mx-0 font-normal;
|
|
76
|
+
}
|
|
77
|
+
.util-caption-lg-text {
|
|
78
|
+
color: var(--caption-lg-color);
|
|
79
|
+
font-size: var(--caption-lg-font-size);
|
|
80
|
+
margin-bottom: var(--caption-lg-margin-bottom);
|
|
81
|
+
font-weight: var(--caption-lg-font-weight);
|
|
82
|
+
line-height: var(--caption-lg-line-height);
|
|
83
|
+
}
|
|
84
|
+
.util-caption-md {
|
|
85
|
+
@apply mx-0 font-normal;
|
|
86
|
+
}
|
|
87
|
+
.util-caption-md-text {
|
|
88
|
+
color: var(--caption-md-color);
|
|
89
|
+
font-size: var(--caption-md-font-size);
|
|
90
|
+
margin-bottom: var(--caption-md-margin-bottom);
|
|
91
|
+
font-weight: var(--caption-md-font-weight);
|
|
92
|
+
line-height: var(--caption-md-line-height);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Hint */
|
|
96
|
+
.util-hint {
|
|
97
|
+
margin-bottom: var(--hint-margin-bottom);
|
|
98
|
+
}
|
|
99
|
+
.util-hint-text {
|
|
100
|
+
font-size: var(--hint-font-size);
|
|
101
|
+
line-height: var(--hint-line-height);
|
|
102
|
+
color: var(--hint-color);
|
|
103
|
+
}
|
|
104
|
+
.util-hint-lg-text {
|
|
105
|
+
font-size: var(--hint--lg-font-size);
|
|
106
|
+
line-height: var(--hint--lg-line-height);
|
|
107
|
+
}
|
|
108
|
+
.util-hint-sm-text {
|
|
109
|
+
font-size: var(--hint--sm-font-size);
|
|
110
|
+
line-height: var(--hint--sm-line-height);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* List */
|
|
114
|
+
.util-list {
|
|
115
|
+
@apply md:mb-8 mb-4 mt-4 text-base-content;
|
|
116
|
+
}
|
|
117
|
+
.util-list-bullet {
|
|
118
|
+
@apply pl-4;
|
|
119
|
+
}
|
|
120
|
+
.util-list-number {
|
|
121
|
+
@apply pl-4;
|
|
122
|
+
}
|
|
123
|
+
.util-list-horizontal {
|
|
124
|
+
@apply flex flex-wrap gap-x-6 gap-y-3;
|
|
125
|
+
}
|
|
126
|
+
.util-list-spaced {
|
|
127
|
+
@apply gap-x-10 gap-y-5;
|
|
128
|
+
}
|
|
129
|
+
.util-list-item {
|
|
130
|
+
@apply mb-2 last:mb-0;
|
|
131
|
+
}
|
|
132
|
+
.util-list-item-horizontal {
|
|
133
|
+
@apply w-full;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -1,86 +1,54 @@
|
|
|
1
|
+
@import './typography.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-heading-xl {
|
|
2
|
-
@apply
|
|
3
|
-
font-size: var(--heading-xl-font-size);
|
|
4
|
-
line-height: var(--heading-xl-line-height);
|
|
5
|
-
margin-bottom: var(--heading-xl-margin-bottom);
|
|
6
|
-
font-weight: var(--heading-xl-font-weight);
|
|
4
|
+
@apply util-heading-xl util-heading-xl-text;
|
|
7
5
|
letter-spacing: var(--heading-xl-letter-spacing);
|
|
6
|
+
margin-bottom: var(--heading-xl-margin-bottom);
|
|
8
7
|
}
|
|
9
8
|
.ds-heading-lg {
|
|
10
|
-
@apply mx-0;
|
|
11
|
-
font-size: var(--heading-lg-font-size);
|
|
12
|
-
line-height: var(--heading-lg-line-height);
|
|
13
|
-
margin-bottom: var(--heading-lg-margin-bottom);
|
|
14
|
-
font-weight: var(--heading-lg-font-weight);
|
|
9
|
+
@apply util-heading-lg-text mx-0;
|
|
15
10
|
letter-spacing: var(--heading-lg-letter-spacing);
|
|
11
|
+
margin-bottom: var(--heading-lg-margin-bottom);
|
|
16
12
|
}
|
|
17
13
|
.ds-heading-md {
|
|
18
|
-
@apply mx-0;
|
|
19
|
-
|
|
20
|
-
line-height: var(--heading-md-line-height);
|
|
14
|
+
@apply util-heading-md-text mx-0;
|
|
15
|
+
letter-spacing: var(--heading-lg-letter-spacing);
|
|
21
16
|
margin-bottom: var(--heading-md-margin-bottom);
|
|
22
|
-
font-weight: var(--heading-md-font-weight);
|
|
23
|
-
letter-spacing: var(--heading-md-letter-spacing);
|
|
24
17
|
}
|
|
25
18
|
.ds-heading-sm {
|
|
26
|
-
@apply mx-0;
|
|
27
|
-
|
|
28
|
-
line-height: var(--heading-sm-line-height);
|
|
19
|
+
@apply util-heading-sm-text mx-0;
|
|
20
|
+
letter-spacing: var(--heading-lg-letter-spacing);
|
|
29
21
|
margin-bottom: var(--heading-sm-margin-bottom);
|
|
30
|
-
font-weight: var(--heading-sm-font-weight);
|
|
31
|
-
letter-spacing: var(--heading-sm-letter-spacing);
|
|
32
22
|
}
|
|
33
23
|
.ds-heading-xs {
|
|
34
|
-
@apply mx-0;
|
|
35
|
-
|
|
36
|
-
line-height: var(--heading-xs-line-height);
|
|
24
|
+
@apply util-heading-xs-text mx-0;
|
|
25
|
+
letter-spacing: var(--heading-lg-letter-spacing);
|
|
37
26
|
margin-bottom: var(--heading-xs-margin-bottom);
|
|
38
|
-
font-weight: var(--heading-xs-font-weight);
|
|
39
|
-
letter-spacing: var(--heading-xs-letter-spacing);
|
|
40
27
|
}
|
|
28
|
+
|
|
41
29
|
.ds-heading--break-words {
|
|
42
30
|
@apply break-words;
|
|
43
31
|
}
|
|
44
32
|
.ds-caption-xl {
|
|
45
|
-
@apply
|
|
46
|
-
color: var(--caption-xl-color);
|
|
47
|
-
font-size: var(--caption-xl-font-size);
|
|
48
|
-
line-height: var(--caption-xl-line-height);
|
|
49
|
-
margin-bottom: var(--caption-xl-margin-bottom);
|
|
50
|
-
font-weight: var(--caption-xl-font-weight);
|
|
33
|
+
@apply util-caption-xl util-caption-xl-text block;
|
|
51
34
|
letter-spacing: var(--heading-xl-letter-spacing);
|
|
52
35
|
}
|
|
53
36
|
.ds-caption-lg {
|
|
54
|
-
@apply
|
|
55
|
-
|
|
56
|
-
font-size: var(--caption-lg-font-size);
|
|
57
|
-
line-height: var(--caption-lg-line-height);
|
|
58
|
-
margin-bottom: var(--caption-lg-margin-bottom);
|
|
59
|
-
font-weight: var(--caption-lg-font-weight);
|
|
60
|
-
letter-spacing: var(--caption-lg-letter-spacing);
|
|
37
|
+
@apply util-caption-lg util-caption-lg-text block;
|
|
38
|
+
letter-spacing: var(--heading-lg-letter-spacing);
|
|
61
39
|
}
|
|
62
40
|
.ds-caption-md {
|
|
63
|
-
@apply
|
|
64
|
-
|
|
65
|
-
font-size: var(--caption-md-font-size);
|
|
66
|
-
line-height: var(--caption-md-line-height);
|
|
67
|
-
margin-bottom: var(--caption-md-margin-bottom);
|
|
68
|
-
font-weight: var(--caption-md-font-weight);
|
|
69
|
-
letter-spacing: var(--caption-md-letter-spacing);
|
|
41
|
+
@apply util-caption-md util-caption-md-text block;
|
|
42
|
+
letter-spacing: var(--heading-md-letter-spacing);
|
|
70
43
|
}
|
|
71
44
|
.ds-hint {
|
|
72
|
-
|
|
73
|
-
line-height: var(--hint-line-height);
|
|
74
|
-
margin-bottom: var(--hint-margin-bottom);
|
|
75
|
-
color: var(--hint-color);
|
|
45
|
+
@apply util-hint util-hint-text;
|
|
76
46
|
letter-spacing: var(--hint-letter-spacing);
|
|
77
47
|
&.ds-hint--lg {
|
|
78
|
-
|
|
79
|
-
line-height: var(--hint--lg-line-height);
|
|
48
|
+
@apply util-hint-lg-text;
|
|
80
49
|
}
|
|
81
50
|
&.ds-hint--sm {
|
|
82
|
-
|
|
83
|
-
line-height: var(--hint--sm-line-height);
|
|
51
|
+
@apply util-hint-sm-text;
|
|
84
52
|
}
|
|
85
53
|
&.ds-hint--break-words {
|
|
86
54
|
@apply break-words;
|
|
@@ -92,21 +60,6 @@
|
|
|
92
60
|
@apply opacity-70 text-white print:text-base-content;
|
|
93
61
|
}
|
|
94
62
|
}
|
|
95
|
-
.ds-code {
|
|
96
|
-
@apply text-sm sm:text-base bg-base-100;
|
|
97
|
-
&.ds-code--attr {
|
|
98
|
-
@apply text-info;
|
|
99
|
-
}
|
|
100
|
-
&.ds-code--string {
|
|
101
|
-
@apply text-success;
|
|
102
|
-
}
|
|
103
|
-
&.ds-code--keyword {
|
|
104
|
-
@apply text-warning;
|
|
105
|
-
}
|
|
106
|
-
&.ds-code--name {
|
|
107
|
-
@apply text-tertiary;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
63
|
.ds-\!-font-size-14 {
|
|
111
64
|
@apply text-xs md:text-sm !important;
|
|
112
65
|
}
|
|
@@ -135,14 +88,12 @@
|
|
|
135
88
|
@apply font-normal !important;
|
|
136
89
|
}
|
|
137
90
|
.ds-\!-font-weight-bold {
|
|
138
|
-
@apply font-bold
|
|
91
|
+
@apply util-font-weight-bold-text;
|
|
139
92
|
}
|
|
140
93
|
.ds-list {
|
|
141
|
-
@apply list-none list-outside
|
|
142
|
-
@apply md:mb-8 mb-4 text-base-content;
|
|
94
|
+
@apply list-none list-outside md:mb-8 mb-4 text-base-content;
|
|
143
95
|
font-size: var(--list-font-size);
|
|
144
96
|
line-height: var(--list-line-height);
|
|
145
|
-
letter-spacing: var(--list-letter-spacing);
|
|
146
97
|
&.ds-list--bullet {
|
|
147
98
|
@apply list-disc list-outside pl-4;
|
|
148
99
|
}
|
|
@@ -163,6 +114,9 @@
|
|
|
163
114
|
&:last-child {
|
|
164
115
|
@apply mb-0;
|
|
165
116
|
}
|
|
117
|
+
> button.ds-link:only-child {
|
|
118
|
+
display: inline-flex;
|
|
119
|
+
}
|
|
166
120
|
}
|
|
167
121
|
}
|
|
168
122
|
.ds-list__item > .ds-list--bullet:nth-child(1) {
|
|
@@ -193,57 +147,41 @@
|
|
|
193
147
|
column-count: 2;
|
|
194
148
|
}
|
|
195
149
|
}
|
|
196
|
-
.ds-blockquote {
|
|
197
|
-
@apply mb-4 mt-8 md:mb-8 p-4 border-l-8 border-base-500 text-base-content;
|
|
198
|
-
font-size: var(--blockquote-font-size);
|
|
199
|
-
line-height: var(--blockquote-line-height);
|
|
200
|
-
&.ds-blockquote--dense,
|
|
201
|
-
.ds-dense & {
|
|
202
|
-
@apply mt-3 md:mb-6 p-3 border-l-6;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
150
|
.ds-body {
|
|
206
|
-
|
|
207
|
-
line-height: var(--body-line-height);
|
|
208
|
-
margin-bottom: var(--body-margin-bottom);
|
|
209
|
-
color: var(--body-color);
|
|
151
|
+
@apply util-body-text;
|
|
210
152
|
letter-spacing: var(--body-letter-spacing);
|
|
211
153
|
&.ds-body--lg {
|
|
212
|
-
|
|
213
|
-
line-height: var(--body--lg-line-height);
|
|
154
|
+
@apply util-body-lg-text;
|
|
214
155
|
}
|
|
215
156
|
&.ds-body--sm {
|
|
216
|
-
|
|
217
|
-
line-height: var(--body--sm-line-height);
|
|
157
|
+
@apply util-body-sm-text;
|
|
218
158
|
}
|
|
219
159
|
.ds-code {
|
|
220
|
-
@apply p-
|
|
160
|
+
@apply p-1 bg-base-200;
|
|
221
161
|
}
|
|
222
162
|
}
|
|
223
163
|
|
|
224
164
|
.ds-link {
|
|
225
|
-
@apply focus:text-link-active
|
|
226
|
-
color: var(--link-color);
|
|
227
|
-
padding: var(--link-padding);
|
|
228
|
-
font-size: var(--link-font-size);
|
|
229
|
-
line-height: var(--link-line-height);
|
|
165
|
+
@apply focus:text-link-active util-link util-link-text cursor-pointer text-left;
|
|
230
166
|
letter-spacing: var(--link-letter-spacing);
|
|
231
167
|
&:hover {
|
|
232
168
|
text-decoration-thickness: 2px;
|
|
233
169
|
color: var(--link-color-hover);
|
|
234
170
|
}
|
|
235
171
|
&:focus {
|
|
236
|
-
color: var(--link-color-active);
|
|
237
|
-
background-color: var(--color-focus);
|
|
238
172
|
box-shadow:
|
|
239
173
|
0 -2px var(--color-focus),
|
|
240
174
|
0 4px var(--color-base-content);
|
|
175
|
+
|
|
241
176
|
text-decoration: none !important;
|
|
242
177
|
outline: none;
|
|
243
178
|
}
|
|
244
179
|
&.ds-link--no-underline {
|
|
245
180
|
@apply no-underline hover:underline;
|
|
246
181
|
}
|
|
182
|
+
&.ds-link-warning {
|
|
183
|
+
color: var(--color-error-text);
|
|
184
|
+
}
|
|
247
185
|
.ds-heading-xl &,
|
|
248
186
|
.ds-heading-lg &,
|
|
249
187
|
.ds-heading-md &,
|
|
@@ -331,6 +269,7 @@
|
|
|
331
269
|
}
|
|
332
270
|
}
|
|
333
271
|
button.ds-link {
|
|
272
|
+
@apply text-left;
|
|
334
273
|
.ds-svg-icon {
|
|
335
274
|
@apply ml-1;
|
|
336
275
|
}
|
|
@@ -341,19 +280,8 @@ button.ds-link {
|
|
|
341
280
|
fill: var(--color-base-content);
|
|
342
281
|
}
|
|
343
282
|
}
|
|
344
|
-
.ds-code-block__container {
|
|
345
|
-
@apply p-4 bg-base-200 border border-base-300 w-full;
|
|
346
|
-
& > pre {
|
|
347
|
-
@apply bg-transparent p-0 m-0;
|
|
348
|
-
font: inherit;
|
|
349
|
-
color: inherit;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
283
|
.ds-table__cell {
|
|
353
284
|
& > code {
|
|
354
285
|
@apply border-none;
|
|
355
286
|
}
|
|
356
287
|
}
|
|
357
|
-
.ds-code-block__content {
|
|
358
|
-
@apply text-sm sm:text-base;
|
|
359
|
-
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* stylelint-disable digigov/nest-related-rules */
|
|
2
|
+
@import './typography.common.css';
|
|
3
|
+
|
|
4
|
+
.ds-\!-font-weight-bold__text {
|
|
5
|
+
@apply util-font-weight-bold-text;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* Heading */
|
|
9
|
+
.ds-heading-xl {
|
|
10
|
+
@apply util-heading-xl;
|
|
11
|
+
}
|
|
12
|
+
.ds-heading-xl__text {
|
|
13
|
+
@apply util-heading-xl-text;
|
|
14
|
+
margin-bottom: var(--heading-xl-margin-bottom);
|
|
15
|
+
line-height: calc(
|
|
16
|
+
var(--heading-xl-line-height) * var(--heading-xl-font-size)
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
.ds-heading-lg__text {
|
|
20
|
+
@apply util-heading-lg-text;
|
|
21
|
+
margin-bottom: var(--heading-lg-margin-bottom);
|
|
22
|
+
line-height: calc(
|
|
23
|
+
var(--heading-lg-line-height) * var(--heading-lg-font-size)
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
.ds-heading-md__text {
|
|
27
|
+
@apply util-heading-md-text;
|
|
28
|
+
margin-bottom: var(--heading-md-margin-bottom);
|
|
29
|
+
line-height: calc(
|
|
30
|
+
var(--heading-md-line-height) * var(--heading-md-font-size)
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
.ds-heading-sm__text {
|
|
34
|
+
@apply util-heading-sm-text;
|
|
35
|
+
margin-bottom: var(--heading-sm-margin-bottom);
|
|
36
|
+
line-height: calc(
|
|
37
|
+
var(--heading-sm-line-height) * var(--heading-sm-font-size)
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
.ds-heading-xs__text {
|
|
41
|
+
@apply util-heading-xs-text;
|
|
42
|
+
margin-bottom: var(--heading-xs-margin-bottom);
|
|
43
|
+
line-height: calc(
|
|
44
|
+
var(--heading-xs-line-height) * var(--heading-xs-font-size)
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Paragraph */
|
|
49
|
+
.ds-body__text {
|
|
50
|
+
@apply util-body-text;
|
|
51
|
+
line-height: calc(var(--body-line-height) * var(--body-font-size));
|
|
52
|
+
}
|
|
53
|
+
.ds-body--lg__text {
|
|
54
|
+
@apply util-body-lg-text;
|
|
55
|
+
line-height: calc(var(--body--lg-line-height) * var(--body--lg-font-size));
|
|
56
|
+
}
|
|
57
|
+
.ds-body--sm__text {
|
|
58
|
+
@apply util-body-sm-text;
|
|
59
|
+
line-height: calc(var(--body__sm-line-height) * var(--body__sm-font-size));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Hint */
|
|
63
|
+
.ds-hint {
|
|
64
|
+
@apply util-hint flex flex-row;
|
|
65
|
+
}
|
|
66
|
+
.ds-hint__text {
|
|
67
|
+
@apply util-hint-text;
|
|
68
|
+
line-height: calc(var(--hint-line-height) * var(--hint-font-size));
|
|
69
|
+
}
|
|
70
|
+
.ds-hint--lg__text {
|
|
71
|
+
@apply util-hint-lg-text;
|
|
72
|
+
line-height: calc(var(--hint--lg-line-height) * var(--hint--lg-font-size));
|
|
73
|
+
}
|
|
74
|
+
.ds-hint--sm__text {
|
|
75
|
+
@apply util-hint-sm-text;
|
|
76
|
+
line-height: calc(var(--hint--sm-line-height) * var(--hint--sm-font-size));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Link */
|
|
80
|
+
.ds-link {
|
|
81
|
+
@apply util-link focus:border-b-4 border-b-base-content;
|
|
82
|
+
}
|
|
83
|
+
.ds-link__text {
|
|
84
|
+
@apply util-link-text;
|
|
85
|
+
line-height: calc(var(--link-line-height) * var(--link-font-size));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* HeadingCaption */
|
|
89
|
+
.ds-caption-xl {
|
|
90
|
+
@apply util-caption-xl;
|
|
91
|
+
}
|
|
92
|
+
.ds-caption-xl__text {
|
|
93
|
+
@apply util-caption-xl-text;
|
|
94
|
+
line-height: calc(
|
|
95
|
+
var(--caption-xl-line-height) * var(--caption-xl-font-size)
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
.ds-caption-lg {
|
|
99
|
+
@apply util-caption-lg;
|
|
100
|
+
}
|
|
101
|
+
.ds-caption-lg__text {
|
|
102
|
+
@apply util-caption-lg-text;
|
|
103
|
+
line-height: calc(
|
|
104
|
+
var(--caption-lg-line-height) * var(--caption-lg-font-size)
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
.ds-caption-md {
|
|
108
|
+
@apply util-caption-md;
|
|
109
|
+
}
|
|
110
|
+
.ds-caption-md__text {
|
|
111
|
+
@apply util-caption-md-text;
|
|
112
|
+
line-height: calc(
|
|
113
|
+
var(--caption-md-line-height) * var(--caption-md-font-size)
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ds-list {
|
|
118
|
+
@apply util-list;
|
|
119
|
+
}
|
|
120
|
+
.ds-list__item {
|
|
121
|
+
@apply util-list-item;
|
|
122
|
+
}
|
|
123
|
+
.ds-list--bullet {
|
|
124
|
+
@apply util-list-bullet;
|
|
125
|
+
}
|
|
126
|
+
.ds-list--number {
|
|
127
|
+
@apply util-list-number;
|
|
128
|
+
}
|