@digigov/css 1.1.1 → 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 +26 -6
- 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 -64
- 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 +81 -94
- 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 -218
- 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,31 +1,30 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
line-height: var(--details-line-height);
|
|
1
|
+
@import './details.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-details {
|
|
4
|
+
@apply util-details util-details-text;
|
|
6
5
|
}
|
|
7
|
-
.
|
|
8
|
-
@apply
|
|
6
|
+
.ds-details__summary {
|
|
7
|
+
@apply util-details__summary util-details__summary-text cursor-pointer w-fit;
|
|
9
8
|
&:hover {
|
|
10
9
|
text-decoration-thickness: 2px;
|
|
11
10
|
}
|
|
12
11
|
&:focus {
|
|
13
12
|
background-color: var(--color-focus);
|
|
14
|
-
box-shadow:
|
|
15
|
-
|
|
13
|
+
box-shadow:
|
|
14
|
+
0 -2px var(--color-focus),
|
|
15
|
+
0 4px var(--color-base-content);
|
|
16
|
+
text-decoration: none;
|
|
16
17
|
}
|
|
17
18
|
&:focus-within {
|
|
18
19
|
@apply outline-none;
|
|
19
20
|
}
|
|
21
|
+
&.ds-details__summary--lg {
|
|
22
|
+
@apply util-details__summary--lg-text;
|
|
23
|
+
}
|
|
20
24
|
}
|
|
21
|
-
.
|
|
22
|
-
@apply
|
|
23
|
-
|
|
24
|
-
line-height: var(--details__summary--lg-line-height);
|
|
25
|
-
}
|
|
26
|
-
.govgr-details__content {
|
|
27
|
-
@apply border-l-2 border-base-500 py-2 px-4 mt-4;
|
|
28
|
-
>*:last-child {
|
|
25
|
+
.ds-details__content {
|
|
26
|
+
@apply util-details__content;
|
|
27
|
+
> *:last-child {
|
|
29
28
|
@apply mb-0;
|
|
30
29
|
}
|
|
31
|
-
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@import './details.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-details {
|
|
4
|
+
@apply util-details;
|
|
5
|
+
}
|
|
6
|
+
.ds-details__text {
|
|
7
|
+
@apply util-details-text;
|
|
8
|
+
}
|
|
9
|
+
.ds-details__summary {
|
|
10
|
+
@apply util-details__summary;
|
|
11
|
+
}
|
|
12
|
+
.ds-details__summary--focus {
|
|
13
|
+
background-color: var(--color-focus);
|
|
14
|
+
box-shadow:
|
|
15
|
+
0 -2px var(--color-focus),
|
|
16
|
+
0 4px var(--color-base-content);
|
|
17
|
+
}
|
|
18
|
+
.ds-details__summary__text {
|
|
19
|
+
@apply util-details__summary-text;
|
|
20
|
+
}
|
|
21
|
+
.ds-details__summary--lg__text {
|
|
22
|
+
@apply util-details__summary--lg-text;
|
|
23
|
+
}
|
|
24
|
+
.ds-details__content {
|
|
25
|
+
@apply util-details__content;
|
|
26
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/* Experimental css file. */
|
|
2
2
|
|
|
3
3
|
.dark {
|
|
4
|
-
/*
|
|
4
|
+
/*
|
|
5
5
|
Here we can experiment with dark theme.
|
|
6
6
|
Storybook does not need restart when writing here.
|
|
7
|
-
Final styling should then go to themes/
|
|
7
|
+
Final styling should then go to themes/ds-dark/overrides/index.css
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
}
|
|
9
|
+
}
|
|
@@ -1,82 +1,81 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ds-drawer {
|
|
2
2
|
@apply border border-base-300 bg-base-100 p-4
|
|
3
3
|
h-full max-h-screen min-h-screen overflow-y-scroll w-4/5 max-w-md flex flex-col
|
|
4
4
|
fixed top-0 bottom-0 z-40;
|
|
5
5
|
@apply shadow-thick !important;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
@apply sm:relative sm:w-full max-h-full shadow-thick sm:shadow-none !important;
|
|
9
|
-
}
|
|
10
|
-
.govgr-drawer--relative-md {
|
|
11
|
-
@apply md:relative md:w-full max-h-full shadow-thick md:shadow-none !important;
|
|
12
|
-
}
|
|
13
|
-
.govgr-drawer--relative-lg {
|
|
14
|
-
@apply lg:relative lg:w-full max-h-full shadow-thick lg:shadow-none !important;
|
|
15
|
-
}
|
|
16
|
-
.govgr-drawer--right {
|
|
17
|
-
@apply right-0;
|
|
18
|
-
}
|
|
19
|
-
.govgr-drawer--left {
|
|
20
|
-
@apply left-0;
|
|
21
|
-
}
|
|
22
|
-
.govgr-drawer--bg-secondary {
|
|
23
|
-
@apply bg-base-200 border-0;
|
|
24
|
-
@apply shadow-xl !important;
|
|
25
|
-
}
|
|
26
|
-
.govgr-drawer--closed {
|
|
27
|
-
@apply hidden;
|
|
28
|
-
&.govgr-drawer--relative-sm {
|
|
29
|
-
@apply hidden sm:flex;
|
|
6
|
+
&.ds-drawer--relative-sm {
|
|
7
|
+
@apply sm:relative sm:w-full max-h-full shadow-thick sm:shadow-none !important;
|
|
30
8
|
}
|
|
31
|
-
&.
|
|
32
|
-
@apply
|
|
9
|
+
&.ds-drawer--relative-md {
|
|
10
|
+
@apply md:relative md:w-full max-h-full shadow-thick md:shadow-none !important;
|
|
33
11
|
}
|
|
34
|
-
&.
|
|
35
|
-
@apply
|
|
12
|
+
&.ds-drawer--relative-lg {
|
|
13
|
+
@apply lg:relative lg:w-full max-h-full shadow-thick lg:shadow-none !important;
|
|
14
|
+
}
|
|
15
|
+
&.ds-drawer--right {
|
|
16
|
+
@apply right-0;
|
|
17
|
+
}
|
|
18
|
+
&.ds-drawer--left {
|
|
19
|
+
@apply left-0;
|
|
20
|
+
}
|
|
21
|
+
&.ds-drawer--bg-secondary {
|
|
22
|
+
@apply bg-base-200 border-0;
|
|
23
|
+
@apply shadow-xl !important;
|
|
24
|
+
}
|
|
25
|
+
&.ds-drawer--closed {
|
|
26
|
+
@apply hidden;
|
|
27
|
+
&.ds-drawer--relative-sm {
|
|
28
|
+
@apply hidden sm:flex;
|
|
29
|
+
}
|
|
30
|
+
&.ds-drawer--relative-md {
|
|
31
|
+
@apply hidden md:flex;
|
|
32
|
+
}
|
|
33
|
+
&.ds-drawer--relative-lg {
|
|
34
|
+
@apply hidden lg:flex;
|
|
35
|
+
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.ds-drawer__heading {
|
|
39
39
|
@apply p-0 mb-4 flex justify-between align-baseline;
|
|
40
|
-
.
|
|
40
|
+
.ds--drawer__close-icon {
|
|
41
41
|
@apply m-0;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/* overrides */
|
|
46
46
|
|
|
47
|
-
.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.govgr-heading-sm,
|
|
55
|
-
.govgr-heading-md,
|
|
56
|
-
.govgr-heading-lg,
|
|
57
|
-
.govgr-heading-xl {
|
|
58
|
-
@apply m-0;
|
|
47
|
+
.ds-drawer {
|
|
48
|
+
&.ds-drawer--relative-sm {
|
|
49
|
+
.ds-drawer__heading {
|
|
50
|
+
> .ds-close-btn {
|
|
51
|
+
@apply sm:hidden;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
59
54
|
}
|
|
60
|
-
|
|
61
|
-
.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
55
|
+
&.ds-drawer--relative-md {
|
|
56
|
+
.ds-drawer__heading {
|
|
57
|
+
> .ds-close-btn {
|
|
58
|
+
@apply md:hidden;
|
|
59
|
+
}
|
|
65
60
|
}
|
|
66
61
|
}
|
|
67
|
-
|
|
68
|
-
.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
62
|
+
&.ds-drawer--relative-lg {
|
|
63
|
+
.ds-drawer__heading {
|
|
64
|
+
> .ds-close-btn {
|
|
65
|
+
@apply lg:hidden;
|
|
66
|
+
}
|
|
72
67
|
}
|
|
73
68
|
}
|
|
69
|
+
> .ds-container {
|
|
70
|
+
@apply p-0;
|
|
71
|
+
}
|
|
74
72
|
}
|
|
75
|
-
.
|
|
76
|
-
.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
.ds-drawer__heading {
|
|
74
|
+
.ds-heading-xs,
|
|
75
|
+
.ds-heading-sm,
|
|
76
|
+
.ds-heading-md,
|
|
77
|
+
.ds-heading-lg,
|
|
78
|
+
.ds-heading-xl {
|
|
79
|
+
@apply m-0;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@tailwind utilities;
|
|
2
|
+
|
|
3
|
+
@layer utilities {
|
|
4
|
+
.util-dropdown {
|
|
5
|
+
@apply relative;
|
|
6
|
+
}
|
|
7
|
+
.util-dropdown--right {
|
|
8
|
+
@apply right-0 mr-0 ml-4;
|
|
9
|
+
}
|
|
10
|
+
.util-dropdown--up {
|
|
11
|
+
|
|
12
|
+
}
|
|
13
|
+
.util-dropdown--disabled {
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
.util-dropdown--dense {
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
.util-dropdown__button {
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
.util-link {
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
.util-btn {
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
.util-btn-primary {
|
|
31
|
+
background-color: var(--btn-primary-background-color-hover);
|
|
32
|
+
color: var(--btn-primary-color-hover);
|
|
33
|
+
}
|
|
34
|
+
.util-btn-secondary {
|
|
35
|
+
background-color: var(--btn-secondary-background-color-hover);
|
|
36
|
+
color: var(--btn-secondary-color-hover);
|
|
37
|
+
}
|
|
38
|
+
.util-btn-warning {
|
|
39
|
+
background-color: var(--btn-warning-background-color-hover);
|
|
40
|
+
color: var(--btn-warning-color-hover);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
.util-dropdown__content {
|
|
46
|
+
@apply border-2 border-base-400 p-4 bg-base-100
|
|
47
|
+
max-w-xs min-w-full absolute transition z-3 mr-4 -mt-4;
|
|
48
|
+
box-shadow:
|
|
49
|
+
0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
|
|
50
|
+
0 -2px 0 var(--color-base-500);
|
|
51
|
+
}
|
|
52
|
+
.util-dropdown__content--full-width {
|
|
53
|
+
@apply min-w-full;
|
|
54
|
+
}
|
|
55
|
+
.util-dropdown__content--scrollable {
|
|
56
|
+
@apply max-h-64 md:max-h-96;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
.
|
|
1
|
+
@import './dropdown.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-dropdown {
|
|
2
4
|
@apply w-fit relative;
|
|
3
|
-
&.
|
|
4
|
-
.
|
|
5
|
+
&.ds-dropdown--up {
|
|
6
|
+
.ds-dropdown__content {
|
|
5
7
|
@apply mb-4 border border-b-0 bottom-full;
|
|
6
8
|
-webkit-box-box-shadow:
|
|
7
9
|
0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
|
|
@@ -11,103 +13,125 @@
|
|
|
11
13
|
0 2px 0 var(--color-base-500);
|
|
12
14
|
}
|
|
13
15
|
}
|
|
14
|
-
&.
|
|
15
|
-
.
|
|
16
|
+
&.ds-dropdown--right {
|
|
17
|
+
.ds-dropdown__content {
|
|
16
18
|
@apply right-0 mr-0 ml-4;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
|
-
&.
|
|
21
|
+
&.ds-dropdown--disabled {
|
|
20
22
|
@apply cursor-not-allowed;
|
|
21
|
-
.
|
|
23
|
+
.ds-dropdown__button {
|
|
22
24
|
pointer-events: none;
|
|
23
25
|
user-select: none;
|
|
24
26
|
opacity: 0.5;
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
|
-
&.
|
|
28
|
-
.
|
|
29
|
-
.
|
|
29
|
+
&.ds-dropdown--dense,
|
|
30
|
+
.ds-dense & {
|
|
31
|
+
.ds-dropdown__content {
|
|
30
32
|
@apply p-2;
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
}
|
|
36
|
+
.ds-dropdown__button {
|
|
37
|
+
@apply w-fit print:text-base-content;
|
|
38
|
+
&::marker {
|
|
39
|
+
font-size: 0;
|
|
38
40
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
&::-webkit-details-marker {
|
|
42
|
+
display: none;
|
|
41
43
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
}
|
|
45
|
+
.ds-dropdown__button.ds-link + .ds-dropdown__content {
|
|
46
|
+
@apply mt-4 print:text-base-content;
|
|
47
|
+
}
|
|
48
|
+
.ds-btn-group .ds-btn + .ds-dropdown__content {
|
|
49
|
+
@apply mt-4;
|
|
50
|
+
}
|
|
51
|
+
.ds-dropdown__content {
|
|
52
|
+
@apply border border-base-400 p-4 bg-base-100 border-t-0
|
|
53
|
+
max-w-xs w-max min-w-full absolute transition z-3 mr-4 -mt-4;
|
|
54
|
+
-webkit-box-box-shadow:
|
|
55
|
+
0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
|
|
56
|
+
0 -2px 0 var(--color-base-500);
|
|
57
|
+
box-shadow:
|
|
58
|
+
0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
|
|
59
|
+
0 -2px 0 var(--color-base-500);
|
|
60
|
+
&.ds-dropdown__content--full-width {
|
|
61
|
+
@apply min-w-full;
|
|
44
62
|
}
|
|
45
|
-
|
|
46
|
-
@apply
|
|
47
|
-
max-w-xs w-max min-w-full absolute transition z-3 mr-4 -mt-4;
|
|
48
|
-
-webkit-box-box-shadow:
|
|
49
|
-
0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
|
|
50
|
-
0 -2px 0 var(--color-base-500);
|
|
51
|
-
box-shadow:
|
|
52
|
-
0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
|
|
53
|
-
0 -2px 0 var(--color-base-500);
|
|
54
|
-
*:last-child {
|
|
55
|
-
@apply mb-0;
|
|
56
|
-
}
|
|
63
|
+
&.ds-dropdown__content--scrollable {
|
|
64
|
+
@apply overflow-y-auto max-h-64 md:max-h-96;
|
|
57
65
|
}
|
|
58
|
-
|
|
59
|
-
@apply
|
|
66
|
+
*:last-child {
|
|
67
|
+
@apply mb-0;
|
|
60
68
|
}
|
|
61
69
|
}
|
|
62
70
|
|
|
63
71
|
/* overrides */
|
|
64
72
|
|
|
65
|
-
.
|
|
73
|
+
.ds-dropdown {
|
|
66
74
|
&[open] {
|
|
67
|
-
.
|
|
68
|
-
|
|
69
|
-
@apply transform -rotate-180;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
.govgr-dropdown__button {
|
|
73
|
-
&.govgr-btn-primary {
|
|
75
|
+
.ds-dropdown__button {
|
|
76
|
+
&.ds-btn-primary {
|
|
74
77
|
background-color: var(--btn-primary-background-color-hover);
|
|
75
78
|
color: var(--btn-primary-color-hover);
|
|
76
79
|
}
|
|
77
|
-
&.
|
|
80
|
+
&.ds-btn-secondary {
|
|
78
81
|
background-color: var(--btn-secondary-background-color-hover);
|
|
79
82
|
color: var(--btn-secondary-color-hover);
|
|
80
83
|
}
|
|
81
|
-
&.
|
|
84
|
+
&.ds-btn-warning {
|
|
82
85
|
background-color: var(--btn-warning-background-color-hover);
|
|
83
86
|
color: var(--btn-warning-color-hover);
|
|
84
87
|
}
|
|
88
|
+
&.ds-dropdown__button--chevron {
|
|
89
|
+
.ds-svg-icon--chevron {
|
|
90
|
+
@apply transform -rotate-180;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
85
93
|
}
|
|
86
94
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
95
|
+
&.ds-dropdown--dense,
|
|
96
|
+
.ds-dense & {
|
|
97
|
+
.ds-dropdown__content {
|
|
98
|
+
.ds-section-break {
|
|
99
|
+
@apply -mx-2 w-auto;
|
|
100
|
+
}
|
|
101
|
+
> .ds-nav__list {
|
|
102
|
+
@apply w-auto -mx-2 flex-col;
|
|
103
|
+
}
|
|
90
104
|
}
|
|
91
105
|
}
|
|
92
|
-
.
|
|
93
|
-
|
|
94
|
-
@apply w-5 h-6 md:h-8;
|
|
95
|
-
@apply print:hidden;
|
|
96
|
-
}
|
|
97
|
-
&.govgr-link {
|
|
106
|
+
.ds-dropdown__button {
|
|
107
|
+
&.ds-link {
|
|
98
108
|
@apply inline-flex gap-1 items-center;
|
|
99
109
|
}
|
|
110
|
+
&.ds-dropdown__button--chevron {
|
|
111
|
+
.ds-svg-icon--chevron {
|
|
112
|
+
@apply transition duration-300;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
.ds-svg-icon {
|
|
116
|
+
@apply w-5 h-6 md:h-8 min-w-4 print:hidden;
|
|
117
|
+
}
|
|
100
118
|
}
|
|
101
|
-
.
|
|
102
|
-
.
|
|
119
|
+
.ds-dropdown__content {
|
|
120
|
+
.ds-field {
|
|
103
121
|
@apply mb-4;
|
|
104
122
|
}
|
|
105
|
-
.
|
|
123
|
+
.ds-section-break {
|
|
106
124
|
@apply -mx-4 w-auto;
|
|
107
125
|
}
|
|
108
|
-
> .
|
|
126
|
+
> .ds-nav__list {
|
|
109
127
|
@apply w-auto -mx-4 flex-col;
|
|
110
|
-
|
|
128
|
+
&:nth-child(1) {
|
|
129
|
+
@apply -mt-4;
|
|
130
|
+
}
|
|
131
|
+
&:last-child {
|
|
132
|
+
@apply -mb-4 !important;
|
|
133
|
+
}
|
|
134
|
+
.ds-nav__list-item {
|
|
111
135
|
@apply border-b border-base-300 py-2 px-4;
|
|
112
136
|
&:last-child {
|
|
113
137
|
@apply border-0;
|
|
@@ -118,15 +142,4 @@
|
|
|
118
142
|
}
|
|
119
143
|
}
|
|
120
144
|
}
|
|
121
|
-
&.govgr-dropdown--dense,
|
|
122
|
-
.govgr-dense & {
|
|
123
|
-
.govgr-dropdown__content {
|
|
124
|
-
.govgr-section-break {
|
|
125
|
-
@apply -mx-2 w-auto;
|
|
126
|
-
}
|
|
127
|
-
> .govgr-nav__list {
|
|
128
|
-
@apply w-auto -mx-2 flex-col;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
145
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@import './dropdown.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-dropdown {
|
|
4
|
+
@apply util-dropdown;
|
|
5
|
+
z-index: 2;
|
|
6
|
+
}
|
|
7
|
+
.ds-dropdown--right {
|
|
8
|
+
@apply util-dropdown--right;
|
|
9
|
+
}
|
|
10
|
+
.ds-dropdown--up {
|
|
11
|
+
@apply util-dropdown--up;
|
|
12
|
+
}
|
|
13
|
+
.ds-dropdown--disabled {
|
|
14
|
+
@apply util-dropdown--disabled;
|
|
15
|
+
}
|
|
16
|
+
.ds-dropdown--dense {
|
|
17
|
+
@apply util-dropdown--dense;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
.ds-dropdown__button {
|
|
23
|
+
@apply gap-1 items-center p-2;
|
|
24
|
+
flex-direction: row;
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
/* height: 20px; */
|
|
27
|
+
}
|
|
28
|
+
.ds-dropdown__button__text {
|
|
29
|
+
color: var(--color-base-100);
|
|
30
|
+
}
|
|
31
|
+
.ds-link {
|
|
32
|
+
@apply util-link;
|
|
33
|
+
}
|
|
34
|
+
.ds-btn {
|
|
35
|
+
@apply util-btn;
|
|
36
|
+
}
|
|
37
|
+
.ds-btn-primary {
|
|
38
|
+
@apply util-btn-primary;
|
|
39
|
+
}
|
|
40
|
+
.ds-btn-secondary {
|
|
41
|
+
@apply util-btn-secondary;
|
|
42
|
+
}
|
|
43
|
+
.ds-btn-warning {
|
|
44
|
+
@apply util-btn-warning;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
.ds-dropdown__content {
|
|
50
|
+
@apply util-dropdown__content;
|
|
51
|
+
z-index: 2;
|
|
52
|
+
}
|
|
53
|
+
.ds-dropdown__content--full-width {
|
|
54
|
+
@apply util-dropdown__content--full-width;
|
|
55
|
+
}
|
|
56
|
+
.ds-dropdown__content--scrollable {
|
|
57
|
+
@apply util-dropdown__content--scrollable;
|
|
58
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ds-floating-btn {
|
|
2
2
|
@apply absolute bottom-4;
|
|
3
3
|
@apply p-4 rounded-full border-0 !important;
|
|
4
|
-
box-shadow:
|
|
5
|
-
&.
|
|
4
|
+
box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3);
|
|
5
|
+
&.ds-floating-btn--right {
|
|
6
6
|
@apply right-4;
|
|
7
7
|
}
|
|
8
|
-
&.
|
|
8
|
+
&.ds-floating-btn--left {
|
|
9
9
|
@apply left-4;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.
|
|
13
|
+
.ds-option-btn {
|
|
14
14
|
@apply flex flex-col gap-2
|
|
15
15
|
bg-base-100 border-base-100 border-2;
|
|
16
16
|
@apply w-full sm:w-fit leading-tight m-0 !important;
|
|
@@ -18,22 +18,22 @@
|
|
|
18
18
|
&:hover {
|
|
19
19
|
@apply border-base-content;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
&.ds-option-btn--selected {
|
|
22
|
+
@apply border-success border-4 text-success p-4 !important;
|
|
23
|
+
.ds-option-btn__steps {
|
|
24
|
+
@apply opacity-100;
|
|
25
|
+
}
|
|
26
|
+
.ds-svg-icon {
|
|
27
|
+
fill: var(--color-success) !important;
|
|
28
|
+
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.ds-option-btn__steps {
|
|
32
32
|
@apply flex flex-nowrap w-full gap-2 h-1 mt-2 opacity-0;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.ds-option-btn__step {
|
|
35
35
|
@apply bg-base-300 w-full;
|
|
36
|
+
&.ds-option-btn__step--active {
|
|
37
|
+
@apply bg-success;
|
|
38
|
+
}
|
|
36
39
|
}
|
|
37
|
-
.govgr-option-btn__step--active {
|
|
38
|
-
@apply bg-success;
|
|
39
|
-
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ds-fillable-text {
|
|
2
2
|
@apply lg:mb-8 mb-4 md:mb-8 p-4 border-l-6 border-base-300 bg-base-200
|
|
3
3
|
text-base-content md:text-lg leading-relaxed text-base;
|
|
4
4
|
}
|
|
5
|
-
.
|
|
6
|
-
@apply bg-base-300 w-fit inline-block px-3 mx-1 mt-px font-bold border-0 border-b-2 border-base-800;
|
|
5
|
+
.ds-labeled-text {
|
|
6
|
+
@apply bg-base-300 w-fit inline-block px-3 mx-1 mt-px font-bold border-0 border-b-2 border-base-800;
|
|
7
|
+
&.ds-labeled-text--active {
|
|
8
|
+
@apply bg-focus;
|
|
9
|
+
}
|
|
7
10
|
}
|
|
8
|
-
.govgr-labeled-text--active {
|
|
9
|
-
@apply bg-focus;
|
|
10
|
-
}
|