@digigov/css 1.2.0-fd2cea11 → 1.2.0-mobile
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 +15 -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 +3 -3
- package/dist/base.js +1 -1
- package/dist/components.js +1 -1
- package/dist/digigov.css +5 -5
- package/dist/utilities/index.css +1 -1
- package/dist/utilities.js +1 -1
- package/package.json +19 -14
- 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 +76 -73
- package/src/components/admin-header.css +7 -24
- package/src/components/admin-layout.css +13 -22
- package/src/components/autocomplete.css +106 -63
- package/src/components/back-to-top.css +7 -8
- 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 +3 -2
- package/src/components/breadcrumbs.css +21 -12
- package/src/components/button.common.css +64 -0
- package/src/components/button.css +79 -95
- package/src/components/button.native.css +42 -0
- package/src/components/card.common.css +33 -0
- package/src/components/card.css +77 -64
- package/src/components/card.native.css +29 -0
- package/src/components/checkboxes.css +34 -37
- package/src/components/chip.css +36 -37
- package/src/components/components.css +2 -2
- package/src/components/copy-to-clipboard.css +39 -38
- package/src/components/details.common.css +26 -0
- package/src/components/details.css +17 -18
- package/src/components/details.native.css +26 -0
- package/src/components/dev-theme.css +3 -4
- package/src/components/drawer.css +58 -59
- package/src/components/dropdown.common.css +58 -0
- package/src/components/dropdown.css +81 -68
- package/src/components/dropdown.native.css +58 -0
- package/src/components/experimental.css +18 -18
- package/src/components/fillable.css +6 -6
- package/src/components/filter.css +58 -63
- package/src/components/footer.css +53 -39
- package/src/components/form.common.css +49 -0
- package/src/components/form.css +125 -113
- package/src/components/form.native.css +58 -0
- package/src/components/full-page-background.css +2 -2
- package/src/components/header.common.css +36 -0
- package/src/components/header.css +78 -77
- package/src/components/header.native.css +34 -0
- package/src/components/hidden.css +23 -23
- package/src/components/index.css +48 -47
- package/src/components/kitchensink.css +41 -41
- package/src/components/layout.common.css +8 -0
- package/src/components/layout.css +56 -56
- package/src/components/layout.native.css +5 -0
- package/src/components/loader.css +31 -31
- package/src/components/masthead.css +60 -59
- package/src/components/misc.css +43 -21
- package/src/components/modal.css +28 -21
- package/src/components/nav.common.css +25 -0
- package/src/components/nav.css +96 -89
- package/src/components/nav.native.css +38 -0
- package/src/components/notification-banner.common.css +46 -0
- package/src/components/notification-banner.css +32 -28
- package/src/components/notification-banner.native.css +42 -0
- package/src/components/pagination.css +40 -41
- package/src/components/panel.common.css +30 -0
- package/src/components/panel.css +12 -20
- package/src/components/panel.native.css +20 -0
- package/src/components/phase-banner.common.css +23 -0
- package/src/components/phase-banner.css +15 -14
- package/src/components/phase-banner.native.css +31 -0
- package/src/components/radios.css +33 -30
- package/src/components/skeleton.css +85 -0
- package/src/components/skiplink.css +3 -3
- package/src/components/stack.css +64 -64
- package/src/components/stepnav.css +68 -64
- package/src/components/summary-list.common.css +25 -0
- package/src/components/summary-list.css +59 -47
- package/src/components/summary-list.native.css +27 -0
- package/src/components/svg-icons.common.css +56 -0
- package/src/components/svg-icons.css +79 -75
- package/src/components/svg-icons.native.css +55 -0
- package/src/components/table.css +189 -208
- package/src/components/tabs.css +52 -68
- package/src/components/task-list.css +31 -31
- package/src/components/test.css +7 -0
- package/src/components/timeline.css +19 -18
- package/src/components/typography.common.css +137 -0
- package/src/components/typography.css +159 -226
- package/src/components/typography.native.css +93 -0
- package/src/components/warning-text.common.css +23 -0
- package/src/components/warning-text.css +11 -11
- package/src/components/warning-text.native.css +22 -0
- package/src/index.native.css +17 -0
- package/src/pages/headings/service-heading.js +9 -9
- package/src/pages/index.js +201 -201
- package/src/utilities/grid.css +221 -0
- package/src/utilities/grid.native.css +274 -0
- package/src/utilities/index.css +3 -585
- package/src/utilities/index.native.css +2 -0
- package/src/utilities/print.css +11 -0
- package/src/utilities/spacing.css +2133 -0
- package/src/utilities/utilities.css +1647 -531
- package/tailwind.config.js +2 -2
- package/themes.plugin.js +1 -1
- 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
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ds-task-list {
|
|
2
2
|
@apply mb-4 pl-6 pb-2;
|
|
3
3
|
}
|
|
4
|
-
.
|
|
4
|
+
.ds-task-list__item {
|
|
5
5
|
@apply mb-8 md:mb-10;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
7
|
+
.ds-task-list__heading {
|
|
8
8
|
@apply md:text-3xl text-2xl font-bold mx-0 md:mb-4 mb-2;
|
|
9
|
+
&.ds-task-list__heading--md {
|
|
10
|
+
@apply md:text-2xl text-xl md:mb-4 mb-2;
|
|
11
|
+
}
|
|
12
|
+
&.ds-task-list__heading--sm {
|
|
13
|
+
@apply md:text-lg text-base md:mb-3 mb-1;
|
|
14
|
+
}
|
|
9
15
|
}
|
|
10
|
-
.
|
|
11
|
-
@apply md:text-2xl text-xl md:mb-4 mb-2;
|
|
12
|
-
}
|
|
13
|
-
.govgr-task-list__heading--sm {
|
|
14
|
-
@apply md:text-lg text-base md:mb-3 mb-1;
|
|
15
|
-
}
|
|
16
|
-
.govgr-task-list__content {
|
|
16
|
+
.ds-task-list__content {
|
|
17
17
|
@apply mb-4;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
.ds-task-list__content__tag {
|
|
20
20
|
@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;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
&.ds-task-list__content__tag--info {
|
|
22
|
+
@apply bg-info text-white print:border-info-hover print:text-info-hover;
|
|
23
|
+
}
|
|
24
|
+
&.ds-task-list__content__tag--primary {
|
|
25
|
+
@apply bg-secondary text-base-content print:border-info print:text-info;
|
|
26
|
+
}
|
|
27
|
+
&.ds-task-list__content__tag--secondary {
|
|
28
|
+
@apply bg-base-300 print:border-base-800 print:text-base-800;
|
|
29
|
+
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/* overrides */
|
|
33
33
|
|
|
34
|
-
.
|
|
35
|
-
.
|
|
34
|
+
.ds-task-list--dense {
|
|
35
|
+
.ds-task-list__item {
|
|
36
36
|
@apply mb-4 md:mb-6;
|
|
37
|
-
.
|
|
38
|
-
@apply mb-4 md:mb-6;
|
|
37
|
+
.ds-summary-list {
|
|
38
|
+
@apply mb-4 md:mb-6;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
.
|
|
43
|
-
.
|
|
42
|
+
.ds-task-list__content {
|
|
43
|
+
.ds-body {
|
|
44
44
|
@apply mb-2 md:mb-3;
|
|
45
45
|
}
|
|
46
|
-
.
|
|
47
|
-
& > .
|
|
46
|
+
.ds-summary-list__row:first-child {
|
|
47
|
+
& > .ds-summary-list__key {
|
|
48
48
|
@apply border-t-2 border-base-400;
|
|
49
49
|
}
|
|
50
|
-
& > .
|
|
51
|
-
& > .
|
|
50
|
+
& > .ds-summary-list__value,
|
|
51
|
+
& > .ds-summary-list__actions {
|
|
52
52
|
@apply sm:border-t-2 sm:border-base-400;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.ds-summary-list__key {
|
|
56
56
|
@apply font-normal sm:mb-0 mb-2 pt-2;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -1,60 +1,61 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ds-timeline {
|
|
2
2
|
@apply mb-4 pl-6 pb-2 border-l-4 border-secondary;
|
|
3
|
-
&.
|
|
3
|
+
&.ds-timeline--dense,
|
|
4
|
+
.ds-dense & {
|
|
4
5
|
@apply pb-0 border-l-3;
|
|
5
|
-
.
|
|
6
|
+
.ds-timeline__item {
|
|
6
7
|
@apply mb-4 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
|
}
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
.
|
|
19
|
+
.ds-timeline__item {
|
|
19
20
|
@apply mb-10 md:mb-12;
|
|
20
21
|
}
|
|
21
|
-
.
|
|
22
|
+
.ds-timeline__heading {
|
|
22
23
|
@apply md:text-3xl text-2xl font-bold mx-0 md:mb-4 mb-2 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
31
|
@apply md:text-2xl text-xl md:mb-4 mb-2;
|
|
31
32
|
&::before {
|
|
32
33
|
@apply top-3 w-3;
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
|
-
.
|
|
36
|
+
.ds-timeline__heading-sm {
|
|
36
37
|
@apply md:text-lg text-base md:mb-3 mb-1;
|
|
37
38
|
&::before {
|
|
38
39
|
@apply top-2.5 w-3;
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
|
-
.
|
|
42
|
+
.ds-timeline__content {
|
|
42
43
|
@apply mb-4;
|
|
43
44
|
}
|
|
44
|
-
.
|
|
45
|
+
.ds-timeline__actions {
|
|
45
46
|
@apply flex flex-wrap items-center gap-4 mb-6;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
/* overrides */
|
|
49
|
-
.
|
|
50
|
-
.
|
|
51
|
-
.
|
|
50
|
+
.ds-timeline__content {
|
|
51
|
+
.ds-hint,
|
|
52
|
+
.ds-body {
|
|
52
53
|
@apply mb-2 md:mb-3;
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
|
-
.
|
|
56
|
-
.
|
|
57
|
-
.
|
|
56
|
+
.ds-timeline__actions {
|
|
57
|
+
.ds-btn,
|
|
58
|
+
.ds-link {
|
|
58
59
|
@apply mb-0;
|
|
59
60
|
}
|
|
60
61
|
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* stylelint-disable digigov/enforce-class-selector-namespace */
|
|
2
|
+
@tailwind utilities;
|
|
3
|
+
|
|
4
|
+
@layer utilities {
|
|
5
|
+
.util-heading-xl {
|
|
6
|
+
@apply mx-0 max-w-2xl;
|
|
7
|
+
}
|
|
8
|
+
.util-heading-xl-text {
|
|
9
|
+
font-size: var(--heading-xl-font-size);
|
|
10
|
+
line-height: var(--heading-xl-line-height);
|
|
11
|
+
margin-bottom: var(--heading-xl-margin-bottom);
|
|
12
|
+
font-weight: var(--heading-xl-font-weight);
|
|
13
|
+
}
|
|
14
|
+
.util-heading-lg-text {
|
|
15
|
+
font-size: var(--heading-lg-font-size);
|
|
16
|
+
line-height: var(--heading-lg-line-height);
|
|
17
|
+
margin-bottom: var(--heading-lg-margin-bottom);
|
|
18
|
+
font-weight: var(--heading-lg-font-weight);
|
|
19
|
+
}
|
|
20
|
+
.util-heading-md-text {
|
|
21
|
+
font-size: var(--heading-md-font-size);
|
|
22
|
+
line-height: var(--heading-md-line-height);
|
|
23
|
+
margin-bottom: var(--heading-md-margin-bottom);
|
|
24
|
+
font-weight: var(--heading-md-font-weight);
|
|
25
|
+
}
|
|
26
|
+
.util-heading-sm-text {
|
|
27
|
+
font-size: var(--heading-sm-font-size);
|
|
28
|
+
line-height: var(--heading-sm-line-height);
|
|
29
|
+
margin-bottom: var(--heading-sm-margin-bottom);
|
|
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
|
+
margin-bottom: var(--heading-xs-margin-bottom);
|
|
36
|
+
font-weight: var(--heading-xs-font-weight);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.util-body-text {
|
|
40
|
+
font-size: var(--body-font-size);
|
|
41
|
+
line-height: calc(var(--body-line-height) * var(--body-font-size));
|
|
42
|
+
margin-bottom: var(--body-margin-bottom);
|
|
43
|
+
color: var(--body-color);
|
|
44
|
+
}
|
|
45
|
+
.util-body-lg-text {
|
|
46
|
+
font-size: var(--body--lg-font-size);
|
|
47
|
+
line-height: var(--body--lg-line-height);
|
|
48
|
+
}
|
|
49
|
+
.util-body-sm-text {
|
|
50
|
+
font-size: var(--body--sm-font-size);
|
|
51
|
+
line-height: var(--body--sm-line-height);
|
|
52
|
+
}
|
|
53
|
+
.util-link {
|
|
54
|
+
@apply focus:bg-focus;
|
|
55
|
+
padding: var(--link-padding);
|
|
56
|
+
}
|
|
57
|
+
.util-link-text {
|
|
58
|
+
@apply focus:text-link-active underline;
|
|
59
|
+
color: var(--link-color);
|
|
60
|
+
font-size: var(--link-font-size);
|
|
61
|
+
line-height: var(--link-line-height);
|
|
62
|
+
/* &:focus {
|
|
63
|
+
text-decoration: none !important;
|
|
64
|
+
} */
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.util-caption-xl {
|
|
68
|
+
@apply mx-0 font-normal;
|
|
69
|
+
}
|
|
70
|
+
.util-caption-xl-text {
|
|
71
|
+
color: var(--caption-xl-color);
|
|
72
|
+
font-size: var(--caption-xl-font-size);
|
|
73
|
+
margin-bottom: var(--caption-xl-margin-bottom);
|
|
74
|
+
font-weight: var(--caption-xl-font-weight);
|
|
75
|
+
}
|
|
76
|
+
.util-caption-lg {
|
|
77
|
+
@apply mx-0 font-normal;
|
|
78
|
+
}
|
|
79
|
+
.util-caption-lg-text {
|
|
80
|
+
color: var(--caption-lg-color);
|
|
81
|
+
font-size: var(--caption-lg-font-size);
|
|
82
|
+
margin-bottom: var(--caption-lg-margin-bottom);
|
|
83
|
+
font-weight: var(--caption-lg-font-weight);
|
|
84
|
+
}
|
|
85
|
+
.util-caption-md {
|
|
86
|
+
@apply mx-0 font-normal;
|
|
87
|
+
}
|
|
88
|
+
.util-caption-md-text {
|
|
89
|
+
color: var(--caption-md-color);
|
|
90
|
+
font-size: var(--caption-md-font-size);
|
|
91
|
+
margin-bottom: var(--caption-md-margin-bottom);
|
|
92
|
+
font-weight: var(--caption-md-font-weight);
|
|
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 mt-4;
|
|
116
|
+
|
|
117
|
+
@apply md:mb-8 mb-4 text-base-content;
|
|
118
|
+
}
|
|
119
|
+
.util-list-bullet {
|
|
120
|
+
@apply pl-4;
|
|
121
|
+
}
|
|
122
|
+
.util-list-number {
|
|
123
|
+
@apply pl-4;
|
|
124
|
+
}
|
|
125
|
+
.util-list-horizontal {
|
|
126
|
+
@apply flex flex-wrap gap-x-6 gap-y-3;
|
|
127
|
+
}
|
|
128
|
+
.util-list-spaced {
|
|
129
|
+
@apply gap-x-10 gap-y-5;
|
|
130
|
+
}
|
|
131
|
+
.util-list-item {
|
|
132
|
+
@apply mb-2 last:mb-0;
|
|
133
|
+
}
|
|
134
|
+
.util-list-item-horizontal {
|
|
135
|
+
@apply w-full;
|
|
136
|
+
}
|
|
137
|
+
}
|