@digigov/css 1.3.0-dcbd7ded → 2.0.0-061795a7
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 +17 -13
- package/postcss.config.js +4 -3
- package/src/base/base.css +1 -1
- package/src/base/index.css +6 -5
- 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 +64 -58
- package/src/components/accordion.native.css +27 -0
- package/src/components/admin-header.css +2 -19
- package/src/components/admin-layout.css +13 -22
- package/src/components/autocomplete.css +88 -47
- package/src/components/back-to-top.css +3 -4
- 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/bottom-info.css +2 -1
- package/src/components/breadcrumbs.css +17 -8
- package/src/components/button.common.css +62 -0
- package/src/components/button.css +57 -71
- package/src/components/button.native.css +55 -0
- package/src/components/card.common.css +33 -0
- package/src/components/card.css +65 -52
- package/src/components/card.native.css +29 -0
- package/src/components/checkboxes.common.css +16 -0
- package/src/components/checkboxes.css +26 -31
- package/src/components/checkboxes.native.css +27 -0
- package/src/components/chip.common.css +19 -0
- package/src/components/chip.css +32 -32
- package/src/components/chip.native.css +15 -0
- package/src/components/code.css +129 -0
- package/src/components/components.css +2 -2
- package/src/components/copy-to-clipboard.css +27 -26
- package/src/components/copy-to-clipboard.native.css +26 -0
- package/src/components/details.common.css +26 -0
- package/src/components/details.css +14 -15
- package/src/components/details.native.css +34 -0
- package/src/components/dev-theme.css +2 -3
- package/src/components/drawer.css +64 -48
- package/src/components/dropdown.common.css +23 -0
- package/src/components/dropdown.css +57 -48
- package/src/components/dropdown.native.css +27 -0
- package/src/components/experimental.css +12 -12
- package/src/components/fillable.css +5 -5
- package/src/components/filter.css +80 -36
- package/src/components/footer.css +35 -21
- package/src/components/form.common.css +81 -0
- package/src/components/form.css +92 -51
- package/src/components/form.native.css +182 -0
- package/src/components/full-page-background.css +1 -1
- package/src/components/header.common.css +35 -0
- package/src/components/header.css +42 -45
- package/src/components/header.native.css +29 -0
- package/src/components/hidden.css +17 -17
- package/src/components/index.css +49 -47
- package/src/components/kitchensink.css +33 -33
- package/src/components/layout.common.css +36 -0
- package/src/components/layout.css +40 -41
- package/src/components/layout.native.css +40 -0
- package/src/components/loader.common.css +7 -0
- package/src/components/loader.css +31 -29
- package/src/components/loader.native.css +5 -0
- package/src/components/masthead.css +56 -55
- package/src/components/misc.css +37 -15
- package/src/components/modal.common.css +16 -0
- package/src/components/modal.css +33 -22
- package/src/components/modal.native.css +18 -0
- package/src/components/nav.common.css +22 -0
- package/src/components/nav.css +72 -67
- package/src/components/nav.native.css +39 -0
- package/src/components/notification-banner.common.css +46 -0
- package/src/components/notification-banner.css +41 -19
- package/src/components/notification-banner.native.css +42 -0
- package/src/components/pagination.css +44 -29
- package/src/components/panel.common.css +30 -0
- package/src/components/panel.css +10 -18
- package/src/components/panel.native.css +26 -0
- package/src/components/phase-banner.common.css +23 -0
- package/src/components/phase-banner.css +11 -10
- 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 +27 -30
- package/src/components/radios.native.css +23 -0
- package/src/components/skeleton.common.css +20 -0
- package/src/components/skeleton.css +82 -0
- package/src/components/skeleton.native.css +53 -0
- package/src/components/skiplink.css +2 -2
- package/src/components/stack.common.css +67 -0
- package/src/components/stack.css +66 -64
- package/src/components/stack.native.css +68 -0
- package/src/components/stepnav.css +35 -31
- package/src/components/summary-list.common.css +93 -0
- package/src/components/summary-list.css +102 -31
- package/src/components/summary-list.native.css +97 -0
- package/src/components/svg-icons.common.css +56 -0
- package/src/components/svg-icons.css +78 -74
- package/src/components/svg-icons.native.css +54 -0
- package/src/components/table.css +163 -182
- package/src/components/tabs.css +52 -67
- package/src/components/task-list.css +28 -23
- package/src/components/test.css +7 -0
- package/src/components/timeline.css +12 -10
- package/src/components/typography.common.css +135 -0
- package/src/components/typography.css +110 -176
- package/src/components/typography.native.css +128 -0
- package/src/components/warning-text.common.css +23 -0
- package/src/components/warning-text.css +16 -13
- package/src/components/warning-text.native.css +22 -0
- package/src/index.native.css +26 -0
- package/src/pages/index.js +1 -1
- package/src/utilities/gap.css +141 -0
- package/src/utilities/index.css +6 -585
- 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 -1252
- package/tailwind.config.js +102 -104
- package/theming.js +121 -0
- package/defaultTheme/accordion.json +0 -8
- package/defaultTheme/back-to-top.json +0 -27
- package/defaultTheme/brandConfig.json +0 -135
- package/defaultTheme/breadcrumbs.json +0 -8
- package/defaultTheme/button.json +0 -81
- package/defaultTheme/card.json +0 -12
- package/defaultTheme/footer.json +0 -8
- package/defaultTheme/form.json +0 -15
- package/defaultTheme/globals.json +0 -71
- package/defaultTheme/index.js +0 -27
- package/defaultTheme/misc.json +0 -48
- package/defaultTheme/panel.json +0 -43
- 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/src/pages/admin-filtering-data.js +0 -160
- package/src/pages/admin.js +0 -61
- package/src/pages/dropdown.js +0 -249
- package/src/pages/form.js +0 -400
- package/src/pages/pagination.js +0 -124
- package/src/pages/table.js +0 -308
- package/themes.plugin.js +0 -148
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
.ds-timeline {
|
|
2
|
-
@apply mb-4 pl-6 pb-2 border-l-4 border-secondary;
|
|
3
|
-
&.ds-timeline--dense,
|
|
2
|
+
@apply mb-4 md:mb-8 pl-6 pb-2 border-l-4 border-secondary;
|
|
3
|
+
&.ds-timeline--dense,
|
|
4
|
+
.ds-dense & {
|
|
4
5
|
@apply pb-0 border-l-3;
|
|
5
6
|
.ds-timeline__item {
|
|
6
|
-
@apply mb-
|
|
7
|
+
@apply mb-3 md:mb-6;
|
|
7
8
|
}
|
|
8
9
|
.ds-timeline__heading {
|
|
9
10
|
@apply mb-2;
|
|
10
11
|
&::before {
|
|
11
|
-
content: "";
|
|
12
12
|
@apply border-b-3;
|
|
13
|
+
content: '';
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -19,30 +20,30 @@
|
|
|
19
20
|
@apply mb-10 md:mb-12;
|
|
20
21
|
}
|
|
21
22
|
.ds-timeline__heading {
|
|
22
|
-
@apply md:text-3xl
|
|
23
|
+
@apply text-2xl md:text-3xl font-bold mx-0 mb-3 md:mb-6 relative;
|
|
23
24
|
&::before {
|
|
24
|
-
content: "";
|
|
25
25
|
@apply block absolute top-4 -left-6 w-4
|
|
26
26
|
border-b-4 border-secondary;
|
|
27
|
+
content: '';
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
.ds-timeline__heading-md {
|
|
30
|
-
@apply md:text-2xl
|
|
31
|
+
@apply text-xl md:text-2xl mb-2 md:mb-4;
|
|
31
32
|
&::before {
|
|
32
33
|
@apply top-3 w-3;
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
.ds-timeline__heading-sm {
|
|
36
|
-
@apply md:text-lg
|
|
37
|
+
@apply text-base md:text-lg mb-1 md:mb-3;
|
|
37
38
|
&::before {
|
|
38
39
|
@apply top-2.5 w-3;
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
.ds-timeline__content {
|
|
42
|
-
@apply mb-4;
|
|
43
|
+
@apply mb-2 md:mb-4;
|
|
43
44
|
}
|
|
44
45
|
.ds-timeline__actions {
|
|
45
|
-
@apply flex flex-wrap items-center gap-4 mb-
|
|
46
|
+
@apply flex flex-wrap items-center gap-4 mb-0;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
/* overrides */
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
.ds-timeline__actions {
|
|
57
|
+
.ds-btn-group,
|
|
56
58
|
.ds-btn,
|
|
57
59
|
.ds-link {
|
|
58
60
|
@apply mb-0;
|
|
@@ -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 mb-4 md:mb-8 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,114 +1,79 @@
|
|
|
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);
|
|
70
|
-
}
|
|
71
|
-
.ds-body {
|
|
72
|
-
font-size: var(--body-font-size);
|
|
73
|
-
line-height: var(--body-line-height);
|
|
74
|
-
margin-bottom: var(--body-margin-bottom);
|
|
75
|
-
color: var(--body-color);
|
|
76
|
-
letter-spacing: var(--body-letter-spacing);
|
|
77
|
-
}
|
|
78
|
-
.ds-body-lg {
|
|
79
|
-
font-size: var(--body-lg-font-size);
|
|
80
|
-
line-height: var(--body-lg-line-height);
|
|
81
|
-
}
|
|
82
|
-
.ds-body-sm {
|
|
83
|
-
font-size: var(--body-sm-font-size);
|
|
84
|
-
line-height: var(--body-sm-line-height);
|
|
41
|
+
@apply util-caption-md util-caption-md-text block;
|
|
42
|
+
letter-spacing: var(--heading-md-letter-spacing);
|
|
85
43
|
}
|
|
86
44
|
.ds-hint {
|
|
87
|
-
|
|
88
|
-
line-height: var(--hint-line-height);
|
|
89
|
-
margin-bottom: var(--hint-margin-bottom);
|
|
90
|
-
color: var(--hint-color);
|
|
45
|
+
@apply util-hint util-hint-text;
|
|
91
46
|
letter-spacing: var(--hint-letter-spacing);
|
|
47
|
+
&.ds-hint--lg {
|
|
48
|
+
@apply util-hint-lg-text;
|
|
49
|
+
}
|
|
50
|
+
&.ds-hint--sm {
|
|
51
|
+
@apply util-hint-sm-text;
|
|
52
|
+
}
|
|
53
|
+
&.ds-hint--break-words {
|
|
54
|
+
@apply break-words;
|
|
55
|
+
}
|
|
92
56
|
}
|
|
93
|
-
.ds-background-dark,
|
|
57
|
+
.ds-background-dark,
|
|
58
|
+
.ds-masthead--primary {
|
|
94
59
|
.ds-hint {
|
|
95
60
|
@apply opacity-70 text-white print:text-base-content;
|
|
96
61
|
}
|
|
97
62
|
}
|
|
98
63
|
.ds-code {
|
|
99
64
|
@apply text-sm sm:text-base bg-base-100;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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
|
+
}
|
|
112
77
|
}
|
|
113
78
|
.ds-\!-font-size-14 {
|
|
114
79
|
@apply text-xs md:text-sm !important;
|
|
@@ -138,58 +103,57 @@
|
|
|
138
103
|
@apply font-normal !important;
|
|
139
104
|
}
|
|
140
105
|
.ds-\!-font-weight-bold {
|
|
141
|
-
@apply font-bold
|
|
106
|
+
@apply util-font-weight-bold-text;
|
|
142
107
|
}
|
|
143
108
|
.ds-list {
|
|
144
|
-
@apply list-none list-outside
|
|
109
|
+
@apply list-none list-outside md:mb-8 mb-4 text-base-content;
|
|
145
110
|
font-size: var(--list-font-size);
|
|
146
111
|
line-height: var(--list-line-height);
|
|
147
|
-
|
|
112
|
+
&.ds-list--bullet {
|
|
113
|
+
@apply list-disc list-outside pl-4;
|
|
114
|
+
}
|
|
115
|
+
&.ds-list--number {
|
|
116
|
+
@apply list-decimal list-outside pl-6;
|
|
117
|
+
}
|
|
118
|
+
&.ds-list--horizontal {
|
|
119
|
+
@apply flex flex-wrap gap-x-6 gap-y-3;
|
|
120
|
+
&.ds-list--spaced {
|
|
121
|
+
@apply gap-x-10 gap-y-5;
|
|
122
|
+
}
|
|
123
|
+
.ds-list__item {
|
|
124
|
+
@apply w-full sm:w-auto;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
148
127
|
.ds-list__item {
|
|
149
128
|
@apply mb-2;
|
|
150
129
|
&:last-child {
|
|
151
130
|
@apply mb-0;
|
|
152
131
|
}
|
|
132
|
+
> button.ds-link:only-child {
|
|
133
|
+
display: inline-flex;
|
|
134
|
+
}
|
|
153
135
|
}
|
|
154
136
|
}
|
|
155
137
|
.ds-list__item > .ds-list--bullet:nth-child(1) {
|
|
156
138
|
list-style: circle inside none;
|
|
157
139
|
}
|
|
158
|
-
.ds-list__item
|
|
159
|
-
> .ds-list
|
|
160
|
-
> .ds-list__item
|
|
161
|
-
> .ds-list--bullet:nth-child(1) {
|
|
140
|
+
.ds-list__item > .ds-list > .ds-list__item > .ds-list--bullet:nth-child(1) {
|
|
162
141
|
@apply list-disc;
|
|
163
142
|
}
|
|
164
143
|
.ds-list__item
|
|
165
|
-
> .ds-list:not(.ds-list--bullet
|
|
144
|
+
> .ds-list:not(.ds-list--bullet, .ds-list--number):nth-child(1)
|
|
166
145
|
> .ds-list__item {
|
|
167
146
|
@apply pl-10;
|
|
168
147
|
}
|
|
169
148
|
.ds-list__item > .ds-list {
|
|
170
149
|
@apply mb-0 mt-2;
|
|
171
150
|
}
|
|
172
|
-
.ds-list--bullet {
|
|
173
|
-
@apply list-disc list-outside pl-4;
|
|
174
|
-
}
|
|
175
|
-
.ds-list--number {
|
|
176
|
-
@apply list-decimal list-outside pl-6;
|
|
177
|
-
}
|
|
178
151
|
.ds-list--spaced:not(.ds-list--horizontal) > .ds-list__item {
|
|
179
152
|
@apply mb-4;
|
|
180
153
|
&:last-child {
|
|
181
154
|
@apply mb-0;
|
|
182
155
|
}
|
|
183
156
|
}
|
|
184
|
-
.ds-list--horizontal {
|
|
185
|
-
@apply flex flex-wrap gap-x-6 gap-y-3;
|
|
186
|
-
.ds-list__item {
|
|
187
|
-
@apply w-full sm:w-auto;
|
|
188
|
-
}
|
|
189
|
-
&.ds-list--spaced {
|
|
190
|
-
@apply gap-x-10 gap-y-5;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
157
|
@media (min-width: 768px) {
|
|
194
158
|
.ds-list--col-2 {
|
|
195
159
|
column-count: 2;
|
|
@@ -198,91 +162,56 @@
|
|
|
198
162
|
column-count: 2;
|
|
199
163
|
}
|
|
200
164
|
}
|
|
201
|
-
.ds-list {
|
|
202
|
-
@apply md:mb-8 mb-4 text-base-content;
|
|
203
|
-
}
|
|
204
|
-
.ds-blockquote {
|
|
205
|
-
@apply mb-4 mt-8 md:mb-8 p-4 border-l-8 border-base-500 text-base-content;
|
|
206
|
-
font-size: var(--blockquote-font-size);
|
|
207
|
-
line-height: var(--blockquote-line-height);
|
|
208
|
-
&.ds-blockquote--dense, .ds-dense & {
|
|
209
|
-
@apply mt-3 md:mb-6 p-3 border-l-6;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
165
|
.ds-body {
|
|
213
|
-
|
|
214
|
-
line-height: var(--body-line-height);
|
|
215
|
-
margin-bottom: var(--body-margin-bottom);
|
|
216
|
-
color: var(--body-color);
|
|
166
|
+
@apply util-body-text;
|
|
217
167
|
letter-spacing: var(--body-letter-spacing);
|
|
168
|
+
&.ds-body--lg {
|
|
169
|
+
@apply util-body-lg-text;
|
|
170
|
+
}
|
|
171
|
+
&.ds-body--sm {
|
|
172
|
+
@apply util-body-sm-text;
|
|
173
|
+
}
|
|
174
|
+
.ds-code {
|
|
175
|
+
@apply p-1 bg-base-200;
|
|
176
|
+
}
|
|
218
177
|
}
|
|
219
|
-
.ds-body-lg {
|
|
220
|
-
font-size: var(--body-lg-font-size);
|
|
221
|
-
line-height: var(--body-lg-line-height);
|
|
222
|
-
}
|
|
223
|
-
.ds-body-sm {
|
|
224
|
-
font-size: var(--body-sm-font-size);
|
|
225
|
-
line-height: var(--body-sm-line-height);
|
|
226
|
-
}
|
|
227
|
-
.ds-hint {
|
|
228
|
-
font-size: var(--hint-font-size);
|
|
229
|
-
line-height: var(--hint-line-height);
|
|
230
|
-
margin-bottom: var(--hint-margin-bottom);
|
|
231
|
-
color: var(--hint-color);
|
|
232
|
-
letter-spacing: var(--hint-letter-spacing);
|
|
233
|
-
}
|
|
234
|
-
.ds-hint-lg {
|
|
235
|
-
font-size: var(--hint-lg-font-size);
|
|
236
|
-
line-height: var(--hint-lg-line-height);
|
|
237
|
-
}
|
|
238
|
-
.ds-hint-sm {
|
|
239
|
-
font-size: var(--hint-sm-font-size);
|
|
240
|
-
line-height: var(--hint-sm-line-height);
|
|
241
|
-
}
|
|
242
|
-
.ds-hint--break-words {
|
|
243
|
-
@apply break-words;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
178
|
|
|
247
179
|
.ds-link {
|
|
248
|
-
@apply focus:text-link-active
|
|
249
|
-
color: var(--link-color);
|
|
250
|
-
padding: var(--link-padding);
|
|
251
|
-
font-size: var(--link-font-size);
|
|
252
|
-
line-height: var(--link-line-height);
|
|
180
|
+
@apply focus:text-link-active util-link util-link-text cursor-pointer text-left;
|
|
253
181
|
letter-spacing: var(--link-letter-spacing);
|
|
254
182
|
&:hover {
|
|
255
183
|
text-decoration-thickness: 2px;
|
|
256
184
|
color: var(--link-color-hover);
|
|
257
185
|
}
|
|
258
186
|
&:focus {
|
|
259
|
-
color: var(--link-color-active);
|
|
260
|
-
background-color: var(--color-focus);
|
|
261
187
|
box-shadow:
|
|
262
188
|
0 -2px var(--color-focus),
|
|
263
189
|
0 4px var(--color-base-content);
|
|
190
|
+
|
|
264
191
|
text-decoration: none !important;
|
|
265
192
|
outline: none;
|
|
266
193
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
194
|
+
&.ds-link--no-underline {
|
|
195
|
+
@apply no-underline hover:underline;
|
|
196
|
+
}
|
|
197
|
+
&.ds-link-warning {
|
|
198
|
+
color: var(--color-error-text);
|
|
199
|
+
}
|
|
200
|
+
.ds-heading-xl &,
|
|
201
|
+
.ds-heading-lg &,
|
|
202
|
+
.ds-heading-md &,
|
|
203
|
+
.ds-heading-sm &,
|
|
271
204
|
.ds-body &,
|
|
272
205
|
.ds-hint &,
|
|
273
|
-
.ds-footer__list &
|
|
274
|
-
{
|
|
206
|
+
.ds-footer__list & {
|
|
275
207
|
font-size: inherit;
|
|
276
208
|
}
|
|
277
209
|
}
|
|
278
|
-
.ds-link--no-underline {
|
|
279
|
-
@apply no-underline hover:underline;
|
|
280
|
-
}
|
|
281
210
|
|
|
282
211
|
.ds-back-link {
|
|
212
|
+
@apply w-fit text-base-content underline flex items-center mb-4 cursor-pointer;
|
|
283
213
|
font-size: var(--back-link-font-size);
|
|
284
214
|
letter-spacing: var(--back-link-letter-spacing);
|
|
285
|
-
@apply w-fit text-base-content underline flex items-center mb-4 cursor-pointer;
|
|
286
215
|
&:hover {
|
|
287
216
|
text-decoration-thickness: 2px;
|
|
288
217
|
}
|
|
@@ -297,34 +226,35 @@
|
|
|
297
226
|
}
|
|
298
227
|
|
|
299
228
|
.ds-highlight-links {
|
|
300
|
-
.ds-link {
|
|
301
|
-
@apply bg-base-content p-1 text-focus underline m-1;
|
|
302
|
-
}
|
|
303
229
|
&.dark {
|
|
304
230
|
.ds-link {
|
|
305
231
|
@apply bg-base-300;
|
|
306
232
|
}
|
|
307
233
|
}
|
|
234
|
+
.ds-link {
|
|
235
|
+
@apply bg-base-content p-1 text-focus underline m-1;
|
|
236
|
+
}
|
|
308
237
|
}
|
|
309
238
|
.ds-visually-hidden {
|
|
310
239
|
@apply absolute m-0 p-0 overflow-hidden border-0 whitespace-nowrap !important;
|
|
311
240
|
width: 1px !important;
|
|
312
241
|
height: 1px !important;
|
|
313
242
|
clip: rect(0 0 0 0) !important;
|
|
314
|
-
-webkit-clip-path: inset(50%) !important;
|
|
315
243
|
clip-path: inset(50%) !important;
|
|
316
244
|
}
|
|
317
245
|
@media print {
|
|
318
|
-
.ds-body .ds-link[href^=
|
|
246
|
+
.ds-body .ds-link[href^='#']::after {
|
|
319
247
|
display: none;
|
|
320
248
|
}
|
|
321
249
|
.ds-link[href^="http://"]:after, .ds-link[href^="https://"]:after
|
|
322
250
|
{
|
|
323
|
-
content:
|
|
251
|
+
content: ' (' attr(href) ')';
|
|
324
252
|
font-size: 80%;
|
|
325
253
|
}
|
|
326
|
-
.ds-body
|
|
327
|
-
|
|
254
|
+
.ds-body {
|
|
255
|
+
.ds-link {
|
|
256
|
+
word-wrap: break-word;
|
|
257
|
+
}
|
|
328
258
|
}
|
|
329
259
|
.ds-link {
|
|
330
260
|
@apply text-base-content;
|
|
@@ -333,10 +263,12 @@
|
|
|
333
263
|
|
|
334
264
|
/* overrides */
|
|
335
265
|
|
|
336
|
-
.ds-
|
|
266
|
+
.ds-hint {
|
|
337
267
|
.ds-svg-icon {
|
|
338
|
-
fill: var(--color
|
|
268
|
+
fill: var(--hint-color);
|
|
339
269
|
}
|
|
270
|
+
}
|
|
271
|
+
.ds-link {
|
|
340
272
|
&:hover {
|
|
341
273
|
.ds-svg-icon {
|
|
342
274
|
fill: var(--color-link-hover);
|
|
@@ -347,22 +279,24 @@
|
|
|
347
279
|
fill: var(--color-link-active);
|
|
348
280
|
}
|
|
349
281
|
}
|
|
282
|
+
.ds-svg-icon {
|
|
283
|
+
fill: var(--color-link);
|
|
284
|
+
}
|
|
350
285
|
}
|
|
351
286
|
button.ds-link {
|
|
287
|
+
@apply text-left;
|
|
352
288
|
.ds-svg-icon {
|
|
353
289
|
@apply ml-1;
|
|
354
290
|
}
|
|
355
291
|
}
|
|
356
292
|
.ds-back-link {
|
|
357
293
|
.ds-svg-icon--caret {
|
|
358
|
-
fill: var(--color-base-content);
|
|
359
294
|
@apply md:w-4 md:h-4 w-3 h-3 inline-block mr-2;
|
|
295
|
+
fill: var(--color-base-content);
|
|
360
296
|
}
|
|
361
297
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
}
|
|
366
|
-
.ds-code-block__content {
|
|
367
|
-
@apply text-sm sm:text-base;
|
|
298
|
+
.ds-table__cell {
|
|
299
|
+
& > code {
|
|
300
|
+
@apply border-none;
|
|
301
|
+
}
|
|
368
302
|
}
|