@digigov/css 2.0.0-af1b5f33 → 2.0.0-b4cd6916
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/defaultTheme/accordion.json +8 -0
- package/defaultTheme/brandConfig.json +14 -2
- package/defaultTheme/button.json +16 -3
- package/defaultTheme/card.json +16 -5
- package/defaultTheme/form.json +117 -0
- package/defaultTheme/globals.json +11 -1
- package/defaultTheme/index.js +1 -1
- package/defaultTheme/layout.json +55 -0
- package/defaultTheme/misc.json +20 -0
- package/defaultTheme/panel.json +5 -0
- package/defaultTheme/typography.json +12 -12
- 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/package.json +10 -6
- package/postcss.config.js +1 -0
- package/src/base/base.css +1 -1
- package/src/base/index.css +5 -5
- package/src/components/accordion.css +61 -54
- package/src/components/admin-header.css +2 -19
- package/src/components/admin-layout.css +13 -22
- package/src/components/autocomplete.css +89 -46
- 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 +11 -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 +56 -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 +28 -0
- package/src/components/chip.css +28 -29
- package/src/components/code.css +127 -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 +28 -0
- package/src/components/details.common.css +26 -0
- package/src/components/details.css +14 -15
- package/src/components/details.native.css +26 -0
- package/src/components/dev-theme.css +2 -3
- package/src/components/drawer.css +47 -48
- package/src/components/dropdown.common.css +23 -0
- package/src/components/dropdown.css +57 -48
- package/src/components/dropdown.native.css +28 -0
- package/src/components/experimental.css +12 -12
- package/src/components/fillable.css +5 -5
- package/src/components/filter.css +14 -19
- package/src/components/footer.css +35 -21
- package/src/components/form.common.css +82 -0
- package/src/components/form.css +86 -48
- package/src/components/form.native.css +133 -0
- package/src/components/full-page-background.css +1 -1
- package/src/components/header.common.css +36 -0
- package/src/components/header.css +44 -43
- package/src/components/header.native.css +34 -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 +39 -0
- package/src/components/loader.css +28 -28
- package/src/components/masthead.css +56 -55
- package/src/components/misc.css +37 -15
- package/src/components/modal.common.css +17 -0
- package/src/components/modal.css +31 -20
- 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 +41 -0
- package/src/components/notification-banner.common.css +46 -0
- package/src/components/notification-banner.css +23 -19
- package/src/components/notification-banner.native.css +42 -0
- package/src/components/pagination.css +30 -31
- package/src/components/panel.common.css +30 -0
- package/src/components/panel.css +10 -18
- package/src/components/panel.native.css +20 -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 +31 -0
- package/src/components/radios.common.css +16 -0
- package/src/components/radios.css +27 -30
- package/src/components/radios.native.css +24 -0
- package/src/components/skeleton.css +85 -0
- package/src/components/skiplink.css +2 -2
- package/src/components/stack.css +63 -63
- package/src/components/stepnav.css +35 -32
- package/src/components/summary-list.common.css +92 -0
- package/src/components/summary-list.css +101 -30
- package/src/components/summary-list.native.css +93 -0
- package/src/components/svg-icons.common.css +56 -0
- package/src/components/svg-icons.css +78 -77
- package/src/components/svg-icons.native.css +55 -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 +20 -18
- package/src/components/typography.common.css +138 -0
- package/src/components/typography.css +104 -177
- package/src/components/typography.native.css +97 -0
- package/src/components/warning-text.common.css +23 -0
- package/src/components/warning-text.css +11 -8
- package/src/components/warning-text.native.css +22 -0
- package/src/index.native.css +21 -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/print.css +11 -0
- package/src/utilities/utilities.css +3 -1251
- package/tailwind.config.js +2 -0
- package/defaultTheme/footer.json +0 -8
- 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
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* stylelint-disable digigov/nest-related-rules */
|
|
2
|
+
/* stylelint-disable digigov/enforce-class-selector-namespace */
|
|
3
|
+
|
|
4
|
+
@tailwind utilities;
|
|
5
|
+
|
|
6
|
+
@layer utilities {
|
|
7
|
+
.util-phase-banner {
|
|
8
|
+
@apply py-2 mb-4 md:mb-8;
|
|
9
|
+
}
|
|
10
|
+
.util-phase-banner--underline {
|
|
11
|
+
@apply border-b border-base-500;
|
|
12
|
+
}
|
|
13
|
+
.util-phase-banner__text {
|
|
14
|
+
@apply text-base-content;
|
|
15
|
+
}
|
|
16
|
+
.util-phase-banner__tag {
|
|
17
|
+
@apply bg-info px-2 py-1
|
|
18
|
+
print:bg-white print:border-2 print:border-info print:text-info print:mr-4;
|
|
19
|
+
}
|
|
20
|
+
.util-phase-banner__tag-text {
|
|
21
|
+
@apply text-white font-bold uppercase text-sm;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
@import './phase-banner.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-phase-banner-header {
|
|
2
4
|
@apply bg-focus top-0 z-30
|
|
3
5
|
print:bg-white print:border-focus print:border-2 print:px-4;
|
|
4
6
|
.ds-phase-banner {
|
|
@@ -6,19 +8,18 @@
|
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
10
|
.ds-phase-banner {
|
|
9
|
-
@apply
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
@apply util-phase-banner;
|
|
12
|
+
&.ds-phase-banner--underline {
|
|
13
|
+
@apply util-phase-banner--underline;
|
|
14
|
+
}
|
|
13
15
|
}
|
|
14
16
|
.ds-phase-banner__content {
|
|
15
|
-
font-size: var(--phase-banner__content-font-size);
|
|
16
17
|
@apply table;
|
|
18
|
+
font-size: var(--phase-banner__content-font-size);
|
|
17
19
|
}
|
|
18
20
|
.ds-phase-banner__tag {
|
|
19
|
-
@apply
|
|
20
|
-
print:bg-white print:border-2 print:border-info print:text-info print:mr-4;
|
|
21
|
+
@apply util-phase-banner__tag util-phase-banner__tag-text mr-2 inline-block font-sans tracking-widest;
|
|
21
22
|
}
|
|
22
|
-
.ds-phase-
|
|
23
|
-
@apply table-cell
|
|
23
|
+
.ds-phase-banner__message {
|
|
24
|
+
@apply table-cell util-phase-banner__text;
|
|
24
25
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* stylelint-disable comment-empty-line-before */
|
|
2
|
+
/* stylelint-disable digigov/nest-related-rules */
|
|
3
|
+
@import './phase-banner.common.css';
|
|
4
|
+
|
|
5
|
+
.ds-phase-banner {
|
|
6
|
+
@apply util-phase-banner flex flex-row flex-nowrap m-0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ds-phase-banner--underline {
|
|
10
|
+
@apply util-phase-banner--underline;
|
|
11
|
+
}
|
|
12
|
+
.ds-phase-banner__content {
|
|
13
|
+
@apply flex-1 flex flex-row flex-nowrap items-center;
|
|
14
|
+
}
|
|
15
|
+
.ds-phase-banner__content__text {
|
|
16
|
+
@apply flex-1;
|
|
17
|
+
}
|
|
18
|
+
.ds-phase-banner__tag {
|
|
19
|
+
@apply util-phase-banner__tag mr-2;
|
|
20
|
+
}
|
|
21
|
+
.ds-phase-banner__tag__text {
|
|
22
|
+
@apply util-phase-banner__tag-text;
|
|
23
|
+
}
|
|
24
|
+
.ds-phase-banner__message {
|
|
25
|
+
@apply mr-2;
|
|
26
|
+
}
|
|
27
|
+
.ds-phase-banner__message__text {
|
|
28
|
+
@apply util-phase-banner__text;
|
|
29
|
+
font-size: var(--phase-banner__content-font-size);
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@tailwind utilities;
|
|
2
|
+
|
|
3
|
+
@layer utilities {
|
|
4
|
+
.util-radios__item {
|
|
5
|
+
@apply relative mb-4 min-h-10;
|
|
6
|
+
}
|
|
7
|
+
.util-radios__label {
|
|
8
|
+
font-size: var(--radios__label-font-size);
|
|
9
|
+
}
|
|
10
|
+
.util-radios__input {
|
|
11
|
+
@apply absolute z-1 left-0.5 -top-1 m-0 w-10 h-10 opacity-100 bg-base-100 rounded-full;
|
|
12
|
+
width: 40px;
|
|
13
|
+
height: 40px;
|
|
14
|
+
border: 2px solid currentcolor;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
@import './radios.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-radios {
|
|
2
|
-
&.ds-radios--dense,
|
|
4
|
+
&.ds-radios--dense,
|
|
5
|
+
ds-dense & {
|
|
3
6
|
.ds-radios__item {
|
|
4
7
|
@apply mb-2 pl-9 min-h-8;
|
|
5
8
|
}
|
|
@@ -10,35 +13,28 @@
|
|
|
10
13
|
}
|
|
11
14
|
}
|
|
12
15
|
}
|
|
16
|
+
&.ds-radios--horizontal {
|
|
17
|
+
@apply inline-flex flex-wrap items-baseline gap-4 md:gap-6;
|
|
18
|
+
}
|
|
13
19
|
}
|
|
14
20
|
.ds-radios__item {
|
|
15
|
-
@apply
|
|
16
|
-
min-height: 40px;
|
|
17
|
-
}
|
|
18
|
-
.ds-radios--horizontal {
|
|
19
|
-
@apply inline-flex flex-wrap items-baseline gap-4 md:gap-6;
|
|
20
|
-
}
|
|
21
|
-
.ds-radios__item {
|
|
22
|
-
@apply block relative mb-4 pl-12;
|
|
23
|
-
min-height: 40px;
|
|
21
|
+
@apply util-radios__item pl-12 block;
|
|
24
22
|
}
|
|
25
23
|
.ds-radios__label {
|
|
26
|
-
|
|
27
|
-
@apply inline-block py-1 px-2 cursor-pointer;
|
|
24
|
+
@apply util-radios__label inline-block py-1 px-2 cursor-pointer;
|
|
28
25
|
}
|
|
29
26
|
.ds-radios__input {
|
|
30
|
-
@apply
|
|
31
|
-
w-10 h-10 opacity-100 cursor-pointer
|
|
32
|
-
bg-base-100;
|
|
27
|
+
@apply util-radios__input cursor-pointer;
|
|
33
28
|
appearance: none;
|
|
34
|
-
width: 40px;
|
|
35
|
-
height: 40px;
|
|
36
|
-
border: 2px solid currentColor;
|
|
37
|
-
border-radius: 50%;
|
|
38
29
|
&:checked {
|
|
39
|
-
box-shadow:
|
|
30
|
+
box-shadow:
|
|
31
|
+
inset 0 0 0 6px var(--color-base-100),
|
|
32
|
+
inset 0 0 0 20px var(--color-base-content);
|
|
40
33
|
&:focus {
|
|
41
|
-
box-shadow:
|
|
34
|
+
box-shadow:
|
|
35
|
+
0 0 0 4px var(--color-focus),
|
|
36
|
+
inset 0 0 0 4px var(--color-base-100),
|
|
37
|
+
inset 0 0 0 20px var(--color-base-content);
|
|
42
38
|
}
|
|
43
39
|
}
|
|
44
40
|
&:focus {
|
|
@@ -49,20 +45,21 @@
|
|
|
49
45
|
}
|
|
50
46
|
}
|
|
51
47
|
.ds-radios__conditional {
|
|
52
|
-
|
|
48
|
+
@apply border-l-4 border-base-500 ml-4 pl-6;
|
|
53
49
|
}
|
|
54
50
|
|
|
55
51
|
/* overrides */
|
|
56
|
-
|
|
57
|
-
.ds-radios--horizontal {
|
|
58
|
-
.ds-choice-divider-text {
|
|
59
|
-
@apply min-w-max mx-2;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
52
|
.ds-radios {
|
|
63
|
-
&.ds-radios--dense,
|
|
53
|
+
&.ds-radios--dense,
|
|
54
|
+
.ds-dense & {
|
|
64
55
|
.ds-field {
|
|
65
56
|
@apply mb-4 md:mb-6;
|
|
66
57
|
}
|
|
67
58
|
}
|
|
68
|
-
|
|
59
|
+
|
|
60
|
+
&.ds-radios--horizontal {
|
|
61
|
+
.ds-choice-divider-text {
|
|
62
|
+
@apply min-w-max mx-2;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@import './radios.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-radios__item {
|
|
4
|
+
@apply util-radios__item;
|
|
5
|
+
}
|
|
6
|
+
.ds-radios__label {
|
|
7
|
+
@apply pl-14;
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
.ds-radios__input {
|
|
11
|
+
@apply util-radios__input justify-center items-center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ds-radios__input--checked {
|
|
15
|
+
@apply rounded-full bg-black;
|
|
16
|
+
height: 26;
|
|
17
|
+
width: 26;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ds-radios__label__text {
|
|
21
|
+
font-size: var(--label-font-size);
|
|
22
|
+
line-height: 2rem;
|
|
23
|
+
letter-spacing: 0rem;
|
|
24
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.ds-skeleton {
|
|
2
|
+
@apply block bg-base-300 h-auto w-full max-w-full rounded-sm;
|
|
3
|
+
|
|
4
|
+
/* max-width: 105ch; */
|
|
5
|
+
&.ds-skeleton--text {
|
|
6
|
+
/* @apply text-lg; */
|
|
7
|
+
&::before {
|
|
8
|
+
content: '\00a0';
|
|
9
|
+
visibility: hidden;
|
|
10
|
+
}
|
|
11
|
+
&.ds-skeleton--font-xs {
|
|
12
|
+
@apply text-sm md:text-base mb-2 md:mb-4;
|
|
13
|
+
line-height: 1rem;
|
|
14
|
+
}
|
|
15
|
+
&.ds-skeleton--font-sm {
|
|
16
|
+
@apply text-base md:text-lg mb-3 md:mb-5;
|
|
17
|
+
}
|
|
18
|
+
&.ds-skeleton--font-md {
|
|
19
|
+
@apply text-xl md:text-2xl mb-5 md:mb-6;
|
|
20
|
+
}
|
|
21
|
+
&.ds-skeleton--font-lg {
|
|
22
|
+
@apply text-2xl md:text-3xl mb-6 md:mb-7;
|
|
23
|
+
}
|
|
24
|
+
&.ds-skeleton--font-xl {
|
|
25
|
+
@apply text-3xl md:text-4xl mb-8 md:mb-10;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
&.ds-skeleton--circular {
|
|
29
|
+
border-radius: 50%;
|
|
30
|
+
}
|
|
31
|
+
&.ds-skeleton--rectangular {
|
|
32
|
+
}
|
|
33
|
+
&.ds-skeleton--button {
|
|
34
|
+
@apply mb-8 w-fit min-h-10 md:min-h-12 px-6 py-3
|
|
35
|
+
border-b-2 border-gray-400
|
|
36
|
+
flex items-center justify-center;
|
|
37
|
+
.ds-skeleton__line {
|
|
38
|
+
@apply block bg-base-400 w-full max-w-full max-h-full visible;
|
|
39
|
+
&::before {
|
|
40
|
+
content: '\00a0';
|
|
41
|
+
}
|
|
42
|
+
&.ds-skeleton__line--size-default {
|
|
43
|
+
@apply h-4 w-20;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Skeleton with a child. */
|
|
49
|
+
&.ds-skeleton--width-fit-content {
|
|
50
|
+
@apply w-fit;
|
|
51
|
+
}
|
|
52
|
+
&.ds-skeleton--animate {
|
|
53
|
+
/* @apply animate-pulse; */
|
|
54
|
+
position: relative;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
mask-image: radial-gradient(white, black);
|
|
57
|
+
&::after {
|
|
58
|
+
@apply absolute top-0 bottom-0 left-0 right-0;
|
|
59
|
+
animation: wave 2s linear 0.5s infinite;
|
|
60
|
+
background: linear-gradient(
|
|
61
|
+
90deg,
|
|
62
|
+
transparent,
|
|
63
|
+
rgba(0, 0, 0, 0.05),
|
|
64
|
+
transparent
|
|
65
|
+
);
|
|
66
|
+
content: '';
|
|
67
|
+
transform: translateX(-100%);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
> * {
|
|
71
|
+
@apply invisible;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@keyframes wave {
|
|
76
|
+
0% {
|
|
77
|
+
transform: translateX(-100%);
|
|
78
|
+
}
|
|
79
|
+
50% {
|
|
80
|
+
transform: translateX(100%);
|
|
81
|
+
}
|
|
82
|
+
100% {
|
|
83
|
+
transform: translateX(100%);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@apply absolute w-px h-px underline overflow-hidden top-auto;
|
|
3
3
|
&:focus {
|
|
4
4
|
@apply z-0 overflow-auto bg-focus static py-2 px-4 top-auto left-auto w-auto h-auto;
|
|
5
|
-
outline-offset:
|
|
6
|
-
outline:
|
|
5
|
+
outline-offset: 0;
|
|
6
|
+
outline: 0 solid var(--color-focus);
|
|
7
7
|
}
|
|
8
8
|
}
|
package/src/components/stack.css
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
.ds-stack {
|
|
2
2
|
@apply flex flex-col flex-wrap;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
3
|
+
&.ds-stack--row {
|
|
4
|
+
@apply flex-row;
|
|
5
|
+
}
|
|
6
|
+
&.ds-stack--reverse-row {
|
|
7
|
+
@apply flex-row-reverse;
|
|
8
|
+
}
|
|
9
|
+
&.ds-stack--col-reverse {
|
|
10
|
+
@apply flex-col-reverse;
|
|
11
|
+
}
|
|
12
|
+
&.ds-stack--nowrap {
|
|
13
|
+
@apply flex-nowrap;
|
|
14
|
+
}
|
|
15
|
+
&.ds-stack--justify-flex-start {
|
|
16
|
+
@apply justify-start;
|
|
17
|
+
}
|
|
18
|
+
&.ds-stack--justify-flex-end {
|
|
19
|
+
@apply justify-end;
|
|
20
|
+
}
|
|
21
|
+
&.ds-stack--justify-center {
|
|
22
|
+
@apply justify-center;
|
|
23
|
+
}
|
|
24
|
+
&.ds-stack--justify-space-between {
|
|
25
|
+
@apply justify-between;
|
|
26
|
+
}
|
|
27
|
+
&.ds-stack--justify-space-around {
|
|
28
|
+
@apply justify-around;
|
|
29
|
+
}
|
|
30
|
+
&.ds-stack--justify-space-evenly {
|
|
31
|
+
@apply justify-evenly;
|
|
32
|
+
}
|
|
33
|
+
&.ds-stack--align-stretch {
|
|
34
|
+
@apply items-stretch;
|
|
35
|
+
}
|
|
36
|
+
&.ds-stack--align-flex-start {
|
|
37
|
+
@apply items-start;
|
|
38
|
+
}
|
|
39
|
+
&.ds-stack--align-flex-end {
|
|
40
|
+
@apply items-end;
|
|
41
|
+
}
|
|
42
|
+
&.ds-stack--align-center {
|
|
43
|
+
@apply items-center;
|
|
44
|
+
}
|
|
45
|
+
&.ds-stack--align-baseline {
|
|
46
|
+
@apply items-baseline;
|
|
47
|
+
}
|
|
48
|
+
&.ds-stack--content-flex-start {
|
|
49
|
+
@apply content-start;
|
|
50
|
+
}
|
|
51
|
+
&.ds-stack--content-flex-end {
|
|
52
|
+
@apply content-end;
|
|
53
|
+
}
|
|
54
|
+
&.ds-stack--content-center {
|
|
55
|
+
@apply content-center;
|
|
56
|
+
}
|
|
57
|
+
&.ds-stack--content-space-between {
|
|
58
|
+
@apply content-between;
|
|
59
|
+
}
|
|
60
|
+
&.ds-stack--content-space-around {
|
|
61
|
+
@apply content-around;
|
|
62
|
+
}
|
|
63
|
+
&.ds-stack--content-space-evenly {
|
|
64
|
+
@apply content-evenly;
|
|
65
|
+
}
|
|
66
66
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.ds-step-nav {
|
|
2
|
-
@apply mb-
|
|
3
|
-
&.ds-step-nav--dense,
|
|
4
|
-
|
|
2
|
+
@apply mb-4 md:mb-8;
|
|
3
|
+
&.ds-step-nav--dense,
|
|
4
|
+
.ds-dense & {
|
|
5
5
|
.ds-step-nav__circle {
|
|
6
|
-
margin-left: 0.1rem;
|
|
7
6
|
@apply md:w-8 md:h-8;
|
|
7
|
+
margin-left: 0.1rem;
|
|
8
8
|
}
|
|
9
9
|
.ds-step-nav__accordion__summary {
|
|
10
10
|
@apply py-3;
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
}
|
|
21
21
|
.ds-step-nav__step {
|
|
22
22
|
@apply relative list-none pl-11 md:pl-14;
|
|
23
|
-
&:last-child
|
|
23
|
+
&:last-child::after {
|
|
24
24
|
height: calc(100% - 2rem);
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
&::after {
|
|
27
27
|
@apply absolute z-0 w-0 h-full bg-base-100 left-0 top-8 border-2 border-base-400 border-r-0 border-t-0 border-b-0 md:border-l-3;
|
|
28
|
-
content:
|
|
28
|
+
content: '';
|
|
29
29
|
margin-left: calc(0.75rem + 1px);
|
|
30
30
|
}
|
|
31
|
-
&:last-child
|
|
31
|
+
&:last-child::before {
|
|
32
32
|
@apply absolute z-1 left-0 h-0 bottom-0 ml-2 w-3 border border-base-400;
|
|
33
33
|
@apply md:border-t-2 md:ml-2 md:w-5;
|
|
34
|
-
content:
|
|
34
|
+
content: '';
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
@media (min-width: 768px) {
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
.ds-step-nav__accordion[open] {
|
|
59
|
-
|
|
60
59
|
.ds-step-nav__accordion__opened {
|
|
61
60
|
visibility: visible;
|
|
62
61
|
display: block;
|
|
@@ -83,7 +82,9 @@
|
|
|
83
82
|
&:focus {
|
|
84
83
|
.ds-step-nav__accordion__heading__title {
|
|
85
84
|
@apply bg-focus text-base-content;
|
|
86
|
-
box-shadow:
|
|
85
|
+
box-shadow:
|
|
86
|
+
0 -2px var(--color-focus),
|
|
87
|
+
0 4px var(--color-base-content);
|
|
87
88
|
}
|
|
88
89
|
.ds-step-nav__accordion__opened,
|
|
89
90
|
.ds-step-nav__accordion__closed {
|
|
@@ -108,6 +109,16 @@
|
|
|
108
109
|
@apply text-link no-underline;
|
|
109
110
|
}
|
|
110
111
|
.ds-step-nav__accordion__heading {
|
|
112
|
+
&.ds-step-nav__accordion__heading--md {
|
|
113
|
+
.ds-step-nav__accordion__heading__text {
|
|
114
|
+
@apply md:text-xl text-lg;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
&.ds-step-nav__accordion__heading--sm {
|
|
118
|
+
.ds-step-nav__accordion__heading__text {
|
|
119
|
+
@apply md:text-lg text-base;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
111
122
|
.ds-step-nav__accordion__heading__text {
|
|
112
123
|
@apply md:text-2xl text-xl;
|
|
113
124
|
}
|
|
@@ -116,37 +127,30 @@
|
|
|
116
127
|
@apply md:text-sm text-xs;
|
|
117
128
|
}
|
|
118
129
|
}
|
|
119
|
-
.ds-step-nav__accordion__heading--md {
|
|
120
|
-
.ds-step-nav__accordion__heading__text {
|
|
121
|
-
@apply md:text-xl text-lg;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
.ds-step-nav__accordion__heading--sm {
|
|
125
|
-
.ds-step-nav__accordion__heading__text {
|
|
126
|
-
@apply md:text-lg text-base;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
130
|
.ds-step-nav__circle {
|
|
130
131
|
@apply absolute box-border z-1 bg-white rounded-full text-center
|
|
131
132
|
left-0 w-7 h-7;
|
|
132
133
|
@apply md:w-9 md:h-9;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
134
|
+
&.ds-step-nav__circle--number {
|
|
135
|
+
@apply border-2 border-base-400 text-base font-bold;
|
|
136
|
+
@apply md:text-lg md:leading-7 md:border-3;
|
|
137
|
+
}
|
|
138
|
+
&.ds-step-nav__circle--number__no-border {
|
|
139
|
+
@apply md:border-0 border-0;
|
|
140
|
+
}
|
|
140
141
|
}
|
|
141
142
|
.ds-step-nav__circle-inner {
|
|
142
143
|
@apply float-right min-w-full;
|
|
143
144
|
}
|
|
144
145
|
.ds-step-nav__circle-background {
|
|
145
|
-
text-shadow:
|
|
146
|
-
0 0.1em 0 var(--color-white),
|
|
146
|
+
text-shadow:
|
|
147
|
+
0 -0.1em 0 var(--color-white),
|
|
148
|
+
0.1em 0 0 var(--color-white),
|
|
149
|
+
0 0.1em 0 var(--color-white),
|
|
150
|
+
-0.1em 0 0 var(--color-white);
|
|
147
151
|
}
|
|
148
152
|
.ds-nav-step__accordion__content {
|
|
149
|
-
@apply md:pt-2 mb-
|
|
153
|
+
@apply md:pt-2 mb-4 md:mb-8 pt-1 mx-0;
|
|
150
154
|
> *:last-child {
|
|
151
155
|
@apply mb-0;
|
|
152
156
|
}
|
|
@@ -164,4 +168,3 @@
|
|
|
164
168
|
@apply mb-0 mt-1;
|
|
165
169
|
}
|
|
166
170
|
}
|
|
167
|
-
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* stylelint-disable digigov/enforce-class-selector-namespace */
|
|
2
|
+
@tailwind utilities;
|
|
3
|
+
|
|
4
|
+
@layer utilities {
|
|
5
|
+
.util-summary-list {
|
|
6
|
+
@apply m-0 mb-4 md:mb-8 w-full sm:w-full;
|
|
7
|
+
}
|
|
8
|
+
.util-summary-list-text {
|
|
9
|
+
font-size: var(--summary-list-font-size);
|
|
10
|
+
}
|
|
11
|
+
.util-summary-list__row {
|
|
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;
|
|
15
|
+
}
|
|
16
|
+
.util-summary-list__key {
|
|
17
|
+
@apply mb-1 sm:w-3/12;
|
|
18
|
+
}
|
|
19
|
+
.util-summary-list__key-text {
|
|
20
|
+
@apply font-bold;
|
|
21
|
+
}
|
|
22
|
+
.util-summary-list__value {
|
|
23
|
+
@apply sm:flex-1;
|
|
24
|
+
}
|
|
25
|
+
.util-summary-list__actions {
|
|
26
|
+
@apply sm:w-3/12 sm:pr-0 sm:text-right;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.util-summary-list__key--sm-3 {
|
|
30
|
+
@apply sm:w-3/12;
|
|
31
|
+
}
|
|
32
|
+
.util-summary-list__key--sm-4 {
|
|
33
|
+
@apply sm:w-4/12;
|
|
34
|
+
}
|
|
35
|
+
.util-summary-list__key--sm-5 {
|
|
36
|
+
@apply sm:w-5/12;
|
|
37
|
+
}
|
|
38
|
+
.util-summary-list__key--sm-6 {
|
|
39
|
+
@apply sm:w-6/12;
|
|
40
|
+
}
|
|
41
|
+
.util-summary-list__key--sm-7 {
|
|
42
|
+
@apply sm:w-7/12;
|
|
43
|
+
}
|
|
44
|
+
.util-summary-list__key--sm-8 {
|
|
45
|
+
@apply sm:w-8/12;
|
|
46
|
+
}
|
|
47
|
+
.util-summary-list__key--sm-9 {
|
|
48
|
+
@apply sm:w-9/12;
|
|
49
|
+
}
|
|
50
|
+
.util-summary-list__key--md-3 {
|
|
51
|
+
@apply md:w-3/12;
|
|
52
|
+
}
|
|
53
|
+
.util-summary-list__key--md-4 {
|
|
54
|
+
@apply md:w-4/12;
|
|
55
|
+
}
|
|
56
|
+
.util-summary-list__key--md-5 {
|
|
57
|
+
@apply md:w-5/12;
|
|
58
|
+
}
|
|
59
|
+
.util-summary-list__key--md-6 {
|
|
60
|
+
@apply md:w-6/12;
|
|
61
|
+
}
|
|
62
|
+
.util-summary-list__key--md-7 {
|
|
63
|
+
@apply md:w-7/12;
|
|
64
|
+
}
|
|
65
|
+
.util-summary-list__key--md-8 {
|
|
66
|
+
@apply md:w-8/12;
|
|
67
|
+
}
|
|
68
|
+
.util-summary-list__key--md-9 {
|
|
69
|
+
@apply md:w-9/12;
|
|
70
|
+
}
|
|
71
|
+
.util-summary-list__key--lg-3 {
|
|
72
|
+
@apply lg:w-3/12;
|
|
73
|
+
}
|
|
74
|
+
.util-summary-list__key--lg-4 {
|
|
75
|
+
@apply lg:w-4/12;
|
|
76
|
+
}
|
|
77
|
+
.util-summary-list__key--lg-5 {
|
|
78
|
+
@apply lg:w-5/12;
|
|
79
|
+
}
|
|
80
|
+
.util-summary-list__key--lg-6 {
|
|
81
|
+
@apply lg:w-6/12;
|
|
82
|
+
}
|
|
83
|
+
.util-summary-list__key--lg-7 {
|
|
84
|
+
@apply lg:w-7/12;
|
|
85
|
+
}
|
|
86
|
+
.util-summary-list__key--lg-8 {
|
|
87
|
+
@apply lg:w-8/12;
|
|
88
|
+
}
|
|
89
|
+
.util-summary-list__key--lg-9 {
|
|
90
|
+
@apply lg:w-9/12;
|
|
91
|
+
}
|
|
92
|
+
}
|