@digigov/css 2.0.0-rc.2 → 2.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/index.css +1 -1
- package/dist/base.js +1 -1
- package/dist/components.js +1 -1
- package/dist/digigov.css +3 -3
- package/dist/utilities/index.css +1 -1
- package/dist/utilities.js +1 -1
- package/index.js +99 -69
- package/package.json +14 -10
- package/postcss.config.js +4 -3
- package/src/base/base.css +1 -1
- package/src/base/index.css +6 -5
- package/src/base/postcss.config.js +11 -10
- package/src/base/tailwind.config.js +4 -11
- 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 +15 -20
- package/src/components/footer.css +35 -21
- package/src/components/form.common.css +82 -0
- package/src/components/form.css +87 -49
- 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 +41 -42
- 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/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 +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 -27
- 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 -80
- 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 +135 -0
- package/src/components/typography.css +98 -189
- 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 -1655
- package/src/utilities/index.native.css +6 -0
- package/src/utilities/layout.css +231 -0
- package/src/utilities/layout.native.css +278 -0
- package/src/utilities/margin.css +4299 -0
- package/src/utilities/padding.css +4299 -0
- package/src/utilities/postcss.config.js +7 -6
- package/src/utilities/print.css +11 -0
- package/src/utilities/utilities.css +3 -1660
- package/tailwind.config.js +101 -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
|
@@ -2,43 +2,43 @@
|
|
|
2
2
|
@apply h-fit w-fit m-auto overflow-hidden print:hidden;
|
|
3
3
|
}
|
|
4
4
|
.ds-circular-progress {
|
|
5
|
-
animation: rotate 10s linear infinite;
|
|
6
5
|
@apply w-fit h-10;
|
|
6
|
+
animation: rotate 10s linear infinite;
|
|
7
|
+
&.ds-circular-progress--secondary {
|
|
8
|
+
.ds-circular_progress__circle--1 {
|
|
9
|
+
@apply opacity-40;
|
|
10
|
+
stroke: var(--color-white);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ds-circular-progress__circle--2 {
|
|
14
|
+
stroke: var(--color-white);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
&.ds-circular-progress--sm {
|
|
18
|
+
@apply h-5 w-5;
|
|
19
|
+
}
|
|
20
|
+
&.ds-circular-progress--md {
|
|
21
|
+
@apply h-10 w-10;
|
|
22
|
+
}
|
|
23
|
+
&.ds-circular-progress--lg {
|
|
24
|
+
@apply h-12 w-12;
|
|
25
|
+
}
|
|
7
26
|
}
|
|
8
27
|
.ds-circular-progress__circle {
|
|
9
28
|
fill: none;
|
|
10
29
|
stroke-miterlimit: 10;
|
|
11
30
|
stroke-width: 42px;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
stroke: var(--color-secondary);
|
|
15
|
-
}
|
|
16
|
-
.ds-circular-progress__circle--2 {
|
|
17
|
-
--full-length: 470;
|
|
18
|
-
stroke: var(--color-primary);
|
|
19
|
-
stroke-dasharray: var(--full-length);
|
|
20
|
-
stroke-dashoffset: 0;
|
|
21
|
-
animation: dash 4s ease-in-out 0s forwards infinite;
|
|
22
|
-
}
|
|
23
|
-
.ds-circular-progress--secondary {
|
|
24
|
-
.ds-circular_progress__circle--1 {
|
|
25
|
-
@apply opacity-40;
|
|
26
|
-
stroke: var(--color-white);
|
|
31
|
+
&.ds-circular-progress__circle--1 {
|
|
32
|
+
stroke: var(--circular-progress__circle--1-stroke);
|
|
27
33
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
stroke: var(--
|
|
34
|
+
&.ds-circular-progress__circle--2 {
|
|
35
|
+
--full-length: 470;
|
|
36
|
+
stroke: var(--circular-progress__circle--2-stroke);
|
|
37
|
+
stroke-dasharray: var(--full-length);
|
|
38
|
+
stroke-dashoffset: 0;
|
|
39
|
+
animation: dash 4s ease-in-out 0s forwards infinite;
|
|
31
40
|
}
|
|
32
41
|
}
|
|
33
|
-
.ds-circular-progress--sm {
|
|
34
|
-
@apply h-5 w-5;
|
|
35
|
-
}
|
|
36
|
-
.ds-circular-progress--md {
|
|
37
|
-
@apply h-10 w-10;
|
|
38
|
-
}
|
|
39
|
-
.ds-circular-progress--lg {
|
|
40
|
-
@apply h-12 w-12;
|
|
41
|
-
}
|
|
42
42
|
@keyframes dash {
|
|
43
43
|
0% {
|
|
44
44
|
stroke-dashoffset: 0;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
.ds-masthead {
|
|
2
2
|
@apply print:border-2 print:bg-white print:border-tertiary-300 print:text-base-content;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
&.ds-masthead--primary {
|
|
4
|
+
@apply bg-tertiary text-white;
|
|
5
|
+
.ds-masthead__body {
|
|
6
|
+
@apply text-white;
|
|
7
|
+
}
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
&.ds-masthead--secondary {
|
|
10
|
+
@apply border-b border-base-400 !important;
|
|
11
|
+
@apply bg-base-200;
|
|
12
|
+
.ds-masthead__body {
|
|
13
|
+
@apply text-base-content;
|
|
14
|
+
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
.ds-masthead__body {
|
|
@@ -24,55 +24,56 @@
|
|
|
24
24
|
/* overrides */
|
|
25
25
|
|
|
26
26
|
.ds-masthead {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
.ds-header__content {
|
|
31
|
-
@apply flex-wrap;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
.ds-masthead--primary {
|
|
35
|
-
.ds-body {
|
|
36
|
-
@apply text-white;
|
|
37
|
-
}
|
|
38
|
-
.ds-link {
|
|
39
|
-
@apply text-white hover:text-white focus:text-base-content print:text-base-content;
|
|
40
|
-
&:hover {
|
|
41
|
-
text-decoration-thickness: 2px;
|
|
27
|
+
&.ds-masthead--primary {
|
|
28
|
+
.ds-body {
|
|
29
|
+
@apply text-white;
|
|
42
30
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
31
|
+
.ds-link {
|
|
32
|
+
@apply text-white hover:text-white focus:text-base-content print:text-base-content;
|
|
33
|
+
&:hover {
|
|
34
|
+
text-decoration-thickness: 2px;
|
|
35
|
+
}
|
|
36
|
+
&.ds-link--no-underline {
|
|
37
|
+
@apply no-underline hover:underline;
|
|
38
|
+
&:hover {
|
|
39
|
+
text-decoration-thickness: 2px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
48
42
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
@apply text-white print:text-base-content;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
.ds-masthead--primary,
|
|
58
|
-
.ds-background-dark {
|
|
59
|
-
.ds-btn {
|
|
60
|
-
@apply border-white hover:border-white border-2 shadow-none;
|
|
61
|
-
&:focus {
|
|
62
|
-
-webkit-box-shadow: 0 0 0 4px var(--color-base-content), 0 0 0 8px var(--color-focus);
|
|
63
|
-
box-shadow: 0 0 0 4px var(--color-base-content), 0 0 0 8px var(--color-focus);
|
|
43
|
+
.ds-back-link {
|
|
44
|
+
@apply text-white print:text-base-content;
|
|
45
|
+
}
|
|
46
|
+
.ds-phase-banner__message {
|
|
47
|
+
@apply text-white print:text-base-content;
|
|
64
48
|
}
|
|
65
49
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
50
|
+
&.ds-masthead--primary,
|
|
51
|
+
&.ds-background-dark {
|
|
52
|
+
.ds-btn {
|
|
53
|
+
@apply border-white hover:border-white border-2 shadow-none;
|
|
54
|
+
&:focus {
|
|
55
|
+
box-shadow:
|
|
56
|
+
0 0 0 4px var(--color-base-content),
|
|
57
|
+
0 0 0 8px var(--color-focus);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.ds-btn-primary {
|
|
61
|
+
@apply print:border-0 print:border-b-2 print:border-success print:text-base-content print:bg-white print:shadow-none;
|
|
62
|
+
}
|
|
63
|
+
.ds-btn-secondary {
|
|
64
|
+
@apply print:border-0 print:border-b-2 print:border-base-500 print:text-base-content print:bg-white print:shadow-none;
|
|
65
|
+
}
|
|
66
|
+
.ds-btn-warning {
|
|
67
|
+
@apply print:border-0 print:border-b-2 print:border-error print:text-base-content print:bg-white print:shadow-none;
|
|
68
|
+
}
|
|
69
|
+
.ds-hint {
|
|
70
|
+
@apply opacity-70 text-white print:text-base-content;
|
|
71
|
+
}
|
|
71
72
|
}
|
|
72
|
-
.ds-
|
|
73
|
-
@apply
|
|
73
|
+
.ds-main > *:last-child {
|
|
74
|
+
@apply mb-0;
|
|
74
75
|
}
|
|
75
|
-
.ds-
|
|
76
|
-
@apply
|
|
76
|
+
.ds-header__content {
|
|
77
|
+
@apply flex-wrap;
|
|
77
78
|
}
|
|
78
79
|
}
|
package/src/components/misc.css
CHANGED
|
@@ -1,31 +1,29 @@
|
|
|
1
1
|
.ds-tooltip {
|
|
2
|
-
@apply
|
|
3
|
-
/* inline-block */
|
|
2
|
+
@apply /* inline-block */
|
|
4
3
|
relative m-0 p-0 underline w-min cursor-pointer;
|
|
5
4
|
text-decoration-style: dotted;
|
|
6
5
|
|
|
7
|
-
.ds-tooltiptext {
|
|
8
|
-
@apply hidden opacity-0 transition-all text-left;
|
|
9
|
-
backdrop-filter: blur(2px);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
6
|
&:hover {
|
|
13
7
|
&::after {
|
|
14
|
-
content: "";
|
|
15
8
|
@apply top-5 md:-mr-1 border-6 border-base-content opacity-85 absolute;
|
|
9
|
+
@apply md:left-1/2;
|
|
10
|
+
content: '';
|
|
16
11
|
border-right-color: transparent;
|
|
17
12
|
border-left-color: transparent;
|
|
18
13
|
border-top-color: transparent;
|
|
19
14
|
left: calc(50% - 6px);
|
|
20
|
-
@apply md:left-1/2;
|
|
21
15
|
}
|
|
22
16
|
|
|
23
17
|
.ds-tooltiptext {
|
|
24
18
|
@apply block opacity-100 absolute md:w-64 md:-ml-32 top-8 md:left-1/2 px-4 py-2 z-1
|
|
25
19
|
text-base-100 rounded-sm bg-base-content bg-opacity-90 shadow;
|
|
26
|
-
|
|
27
20
|
}
|
|
28
21
|
}
|
|
22
|
+
|
|
23
|
+
.ds-tooltiptext {
|
|
24
|
+
@apply hidden opacity-0 transition-all text-left;
|
|
25
|
+
backdrop-filter: blur(2px);
|
|
26
|
+
}
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
@media (max-width: 767.9px) {
|
|
@@ -42,8 +40,8 @@
|
|
|
42
40
|
|
|
43
41
|
/* overrides */
|
|
44
42
|
|
|
45
|
-
div[class*=
|
|
46
|
-
|
|
43
|
+
div[class*='ds-grid__col-span'] {
|
|
44
|
+
> .ds-card {
|
|
47
45
|
@apply mb-0;
|
|
48
46
|
}
|
|
49
47
|
}
|
|
@@ -52,10 +50,34 @@ div[class*="ds-grid__col-span"] {
|
|
|
52
50
|
@apply h-10;
|
|
53
51
|
}
|
|
54
52
|
|
|
55
|
-
.ds-image-logo
|
|
53
|
+
.ds-image-logo-light {
|
|
56
54
|
@apply h-10;
|
|
57
55
|
}
|
|
58
56
|
|
|
59
|
-
.ds-image-logo
|
|
57
|
+
.ds-image-logo-dark {
|
|
60
58
|
@apply h-10 hidden;
|
|
61
|
-
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ds-test-variant {
|
|
62
|
+
@apply mb-4 mx-2;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ds-test-variant__title {
|
|
66
|
+
@apply font-semibold text-3xl break-all -mb-1;
|
|
67
|
+
color: var(--color-red-300);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ds-test-variant__content {
|
|
71
|
+
border-color: var(--color-red-100);
|
|
72
|
+
border-width: 10px;
|
|
73
|
+
|
|
74
|
+
/* For transparency check:
|
|
75
|
+
padding: 25px;
|
|
76
|
+
background-image:
|
|
77
|
+
linear-gradient(45deg, #ccc 25%, transparent 25%),
|
|
78
|
+
linear-gradient(135deg, #ccc 25%, transparent 25%),
|
|
79
|
+
linear-gradient(45deg, transparent 75%, #ccc 75%),
|
|
80
|
+
linear-gradient(135deg, transparent 75%, #ccc 75%);
|
|
81
|
+
background-size:25px 25px;
|
|
82
|
+
background-position:0 0, 12.5px 0, 12.5px -12.5px, 0px 12.5px; */
|
|
83
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@tailwind utilities;
|
|
2
|
+
|
|
3
|
+
@layer utilities {
|
|
4
|
+
.util-modal__body {
|
|
5
|
+
@apply bg-base-100 p-6 border border-solid border-base-500;
|
|
6
|
+
}
|
|
7
|
+
.util-modal__container {
|
|
8
|
+
@apply gap-6 -my-4;
|
|
9
|
+
}
|
|
10
|
+
.util-modal__content-text {
|
|
11
|
+
@apply text-base lg:text-xl text-lg;
|
|
12
|
+
}
|
|
13
|
+
.util-modal__action {
|
|
14
|
+
@apply flex flex-wrap items-center gap-4;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
}
|
package/src/components/modal.css
CHANGED
|
@@ -1,38 +1,49 @@
|
|
|
1
|
+
@import './modal.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-modal {
|
|
2
4
|
@apply hidden justify-center items-center content-center text-left
|
|
3
|
-
|
|
5
|
+
text-base-content bg-opacity-50 bg-base-700
|
|
4
6
|
fixed z-50 left-0 top-0 w-full h-full overflow-auto;
|
|
5
|
-
}
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
&.ds-modal--open {
|
|
9
|
+
@apply flex;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.ds-modal--dense,
|
|
13
|
+
&.ds-dense & {
|
|
14
|
+
.ds-modal__body {
|
|
15
|
+
@apply px-4 py-0;
|
|
16
|
+
}
|
|
17
|
+
.ds-modal__container {
|
|
18
|
+
@apply gap-4 my-0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
9
21
|
}
|
|
10
22
|
.ds-modal__body {
|
|
11
|
-
@apply w-full max-w-md md:max-w-lg lg:max-w-4xl
|
|
12
|
-
h-fit md:h-auto overflow-y-auto
|
|
13
|
-
bg-base-100
|
|
14
|
-
border border-solid border-base-500;
|
|
23
|
+
@apply util-modal__body w-full max-w-md md:max-w-lg lg:max-w-4xl
|
|
24
|
+
h-fit md:h-auto overflow-y-auto;
|
|
15
25
|
max-height: 95vh;
|
|
16
26
|
}
|
|
17
27
|
.ds-modal__container {
|
|
18
|
-
@apply grid
|
|
28
|
+
@apply grid util-modal__container;
|
|
29
|
+
.ds-modal__action {
|
|
30
|
+
@apply mb-0;
|
|
31
|
+
}
|
|
32
|
+
> .ds-heading-xs,
|
|
33
|
+
> .ds-heading-sm,
|
|
34
|
+
> .ds-heading-md,
|
|
35
|
+
> .ds-heading-lg,
|
|
36
|
+
> .ds-heading-xl {
|
|
37
|
+
@apply mb-0;
|
|
38
|
+
}
|
|
19
39
|
}
|
|
20
40
|
.ds-modal__content {
|
|
21
|
-
@apply
|
|
41
|
+
@apply util-modal__content-text;
|
|
22
42
|
}
|
|
23
43
|
.ds-modal__action {
|
|
24
|
-
@apply
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.ds-modal__action {
|
|
44
|
+
@apply util-modal__action;
|
|
28
45
|
.ds-link,
|
|
29
46
|
.ds-btn {
|
|
30
47
|
@apply mb-0;
|
|
31
48
|
}
|
|
32
49
|
}
|
|
33
|
-
|
|
34
|
-
.ds-modal--dense, .ds-dense & {
|
|
35
|
-
.ds-modal__container {
|
|
36
|
-
@apply px-4 py-0 gap-4;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@import './modal.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-modal {
|
|
4
|
+
@apply absolute justify-center items-center top-0 left-0 right-0 bottom-0;
|
|
5
|
+
background-color: rgba(var(--color-black-rgb), 0.5);
|
|
6
|
+
}
|
|
7
|
+
.ds-modal__body {
|
|
8
|
+
@apply util-modal__body;
|
|
9
|
+
}
|
|
10
|
+
.ds-modal__container {
|
|
11
|
+
@apply util-modal__container;
|
|
12
|
+
}
|
|
13
|
+
.ds-modal__content__text {
|
|
14
|
+
@apply util-modal__content-text;
|
|
15
|
+
}
|
|
16
|
+
.ds-modal__action {
|
|
17
|
+
@apply util-modal__action flex-row;
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@tailwind utilities;
|
|
2
|
+
|
|
3
|
+
@layer utilities {
|
|
4
|
+
.util-nav {
|
|
5
|
+
@apply relative w-full bg-base-100 text-base-content;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.util-nav__list {
|
|
9
|
+
@apply w-full m-0 max-w-5xl flex flex-wrap flex-col;
|
|
10
|
+
}
|
|
11
|
+
.util-nav__list--full-width {
|
|
12
|
+
@apply max-w-none;
|
|
13
|
+
}
|
|
14
|
+
.util-nav__list-item-badge {
|
|
15
|
+
@apply items-center justify-center p-1 bg-error relative bottom-1 rounded-3xl;
|
|
16
|
+
min-width: 24px;
|
|
17
|
+
min-height: 24px;
|
|
18
|
+
}
|
|
19
|
+
.util-nav__list-item-badge-text {
|
|
20
|
+
@apply text-white text-xs md:text-xs font-semibold no-underline;
|
|
21
|
+
}
|
|
22
|
+
}
|
package/src/components/nav.css
CHANGED
|
@@ -1,62 +1,61 @@
|
|
|
1
|
+
@import './nav.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-nav {
|
|
2
|
-
@apply
|
|
3
|
-
|
|
4
|
-
@apply
|
|
5
|
-
} */
|
|
6
|
-
.ds-nav__list-item-link,
|
|
7
|
-
.ds-nav__list-item-btn {
|
|
8
|
-
@apply md:no-underline !important;
|
|
4
|
+
@apply util-nav h-auto;
|
|
5
|
+
&.ds-nav--hidden {
|
|
6
|
+
@apply hidden;
|
|
9
7
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@apply shadow-thick !important;
|
|
17
|
-
.ds-nav__list--horizontal {
|
|
18
|
-
@apply px-0;
|
|
8
|
+
&.ds-nav--drawer {
|
|
9
|
+
@apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4;
|
|
10
|
+
@apply shadow-thick !important;
|
|
11
|
+
.ds-nav__list--horizontal {
|
|
12
|
+
@apply px-0;
|
|
13
|
+
}
|
|
19
14
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4
|
|
15
|
+
&.ds-nav--drawer-smDown {
|
|
16
|
+
@apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4
|
|
23
17
|
sm:relative sm:block sm:w-full sm:h-auto sm:z-auto sm:top-auto sm:overflow-visible sm:p-0;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
@apply shadow-thick sm:shadow-none !important;
|
|
19
|
+
.ds-nav__list--horizontal {
|
|
20
|
+
@apply px-0 sm:px-4;
|
|
21
|
+
}
|
|
27
22
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4
|
|
23
|
+
&.ds-nav--drawer-mdDown {
|
|
24
|
+
@apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4
|
|
31
25
|
md:relative md:block md:w-full md:h-auto md:z-auto md:top-auto md:overflow-visible md:p-0;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
@apply shadow-thick md:shadow-none !important;
|
|
27
|
+
.ds-nav__list--horizontal {
|
|
28
|
+
@apply px-0 md:px-4;
|
|
29
|
+
}
|
|
35
30
|
}
|
|
36
|
-
}
|
|
37
31
|
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
&.ds-nav--drawer-lgDown {
|
|
33
|
+
@apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4
|
|
40
34
|
lg:relative lg:block lg:w-full lg:h-auto lg:z-auto lg:top-auto lg:overflow-visible lg:p-0;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
@apply shadow-thick lg:shadow-none !important;
|
|
36
|
+
.ds-nav__list--horizontal {
|
|
37
|
+
@apply px-0 lg:px-4;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
&.ds-nav--border {
|
|
41
|
+
@apply sm:border-b sm:border-base-400;
|
|
42
|
+
}
|
|
43
|
+
.ds-nav__list-item-link,
|
|
44
|
+
.ds-nav__list-item-btn {
|
|
45
|
+
@apply md:no-underline !important;
|
|
44
46
|
}
|
|
45
|
-
}
|
|
46
|
-
.ds-nav--border {
|
|
47
|
-
@apply sm:border-b sm:border-base-400;
|
|
48
47
|
}
|
|
49
48
|
.ds-nav__list {
|
|
50
|
-
@apply
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
@apply util-nav__list static;
|
|
50
|
+
&.ds-nav__list--horizontal {
|
|
51
|
+
@apply sm:mx-auto sm:gap-x-6 sm:py-1 px-4 sm:flex-row;
|
|
52
|
+
.ds-nav__list-item {
|
|
53
|
+
@apply sm:gap-x-6;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
&.ds-nav__list--full-width {
|
|
57
|
+
@apply util-nav__list--full-width;
|
|
56
58
|
}
|
|
57
|
-
}
|
|
58
|
-
.ds-nav__list--full-width {
|
|
59
|
-
@apply max-w-none;
|
|
60
59
|
}
|
|
61
60
|
.ds-nav__list-item {
|
|
62
61
|
@apply text-base-content font-normal py-1;
|
|
@@ -66,7 +65,9 @@
|
|
|
66
65
|
@apply text-left;
|
|
67
66
|
&:focus {
|
|
68
67
|
@apply bg-focus text-base-content outline-none;
|
|
69
|
-
box-shadow:
|
|
68
|
+
box-shadow:
|
|
69
|
+
0 -2px var(--color-focus),
|
|
70
|
+
0 4px var(--color-base-content);
|
|
70
71
|
}
|
|
71
72
|
&:hover:not(:focus) {
|
|
72
73
|
@apply underline !important;
|
|
@@ -78,30 +79,33 @@
|
|
|
78
79
|
@apply font-semibold;
|
|
79
80
|
}
|
|
80
81
|
|
|
82
|
+
.ds-nav__list-item-badge {
|
|
83
|
+
@apply util-nav__list-item-badge util-nav__list-item-badge-text inline-flex w-fit ml-2;
|
|
84
|
+
}
|
|
81
85
|
.ds-nav-menu {
|
|
82
86
|
@apply flex w-full;
|
|
83
|
-
|
|
84
|
-
.ds-nav-menu--hidden {
|
|
85
|
-
@apply hidden;
|
|
86
|
-
}
|
|
87
|
-
.ds-nav-menu--horizontal {
|
|
88
|
-
@apply sm:order-2 sm:left-0 sm:right-0 sm:relative sm:mt-3 sm:bg-base-100;
|
|
89
|
-
.ds-nav-menu__content-list {
|
|
90
|
-
@apply sm:grid-rows-1 sm:grid-cols-3;
|
|
91
|
-
}
|
|
92
|
-
.ds-nav-menu__title {
|
|
93
|
-
@apply hidden sm:block;
|
|
94
|
-
+ .ds-nav-menu__content > .ds-nav-menu__content-list {
|
|
95
|
-
@apply sm:grid-cols-2;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
.ds-nav-menu--vertical {
|
|
100
|
-
.ds-nav-menu__title {
|
|
87
|
+
&.ds-nav-menu--hidden {
|
|
101
88
|
@apply hidden;
|
|
102
89
|
}
|
|
103
|
-
|
|
104
|
-
@apply
|
|
90
|
+
&.ds-nav-menu--horizontal {
|
|
91
|
+
@apply sm:order-2 sm:left-0 sm:right-0 sm:relative sm:mt-3 sm:bg-base-100;
|
|
92
|
+
.ds-nav-menu__content-list {
|
|
93
|
+
@apply sm:grid-rows-1 sm:grid-cols-3;
|
|
94
|
+
}
|
|
95
|
+
.ds-nav-menu__title {
|
|
96
|
+
@apply hidden sm:block;
|
|
97
|
+
+ .ds-nav-menu__content > .ds-nav-menu__content-list {
|
|
98
|
+
@apply sm:grid-cols-2;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
&.ds-nav-menu--vertical {
|
|
103
|
+
.ds-nav-menu__title {
|
|
104
|
+
@apply hidden;
|
|
105
|
+
}
|
|
106
|
+
.ds-nav-menu__content-list {
|
|
107
|
+
@apply py-2 sm:py-4;
|
|
108
|
+
}
|
|
105
109
|
}
|
|
106
110
|
}
|
|
107
111
|
.ds-nav-menu__content-list {
|
|
@@ -121,6 +125,7 @@
|
|
|
121
125
|
@apply mb-2 md:mb-0;
|
|
122
126
|
}
|
|
123
127
|
}
|
|
128
|
+
|
|
124
129
|
/* .ds-nav__list,
|
|
125
130
|
.ds-grid {
|
|
126
131
|
.ds-drawer__heading {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@import './nav.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-nav {
|
|
4
|
+
@apply util-nav;
|
|
5
|
+
}
|
|
6
|
+
.ds-nav--border {
|
|
7
|
+
@apply xs:border-b xs:border-base-400;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
.ds-nav__list {
|
|
12
|
+
@apply util-nav__list;
|
|
13
|
+
}
|
|
14
|
+
.ds-nav__list--vertical {
|
|
15
|
+
@apply gap-y-3;
|
|
16
|
+
}
|
|
17
|
+
.ds-nav__list--horizontal {
|
|
18
|
+
@apply xs:mx-auto xs:gap-x-6 xs:py-1 px-4 xs:flex-row items-center;
|
|
19
|
+
}
|
|
20
|
+
.ds-nav__list--full-width {
|
|
21
|
+
@apply util-nav__list--full-width;
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
.ds-nav__list-item-badge {
|
|
27
|
+
@apply util-nav__list-item-badge -ml-5;
|
|
28
|
+
}
|
|
29
|
+
.ds-nav__list-item-badge__text {
|
|
30
|
+
@apply util-nav__list-item-badge-text;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* EXTRA CLASS */
|
|
34
|
+
|
|
35
|
+
.ds-nav__list-item-link__text {
|
|
36
|
+
line-height: 1.2rem;
|
|
37
|
+
color: var(--link-color);
|
|
38
|
+
}
|
|
39
|
+
.ds-nav__list-item--border-bottom {
|
|
40
|
+
@apply border-b border-base-300 pb-3 px-4;
|
|
41
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* stylelint-disable declaration-block-no-redundant-longhand-properties */
|
|
2
|
+
/* stylelint-disable digigov/nest-related-rules */
|
|
3
|
+
/* stylelint-disable digigov/enforce-class-selector-namespace */
|
|
4
|
+
@tailwind utilities;
|
|
5
|
+
|
|
6
|
+
@layer utilities {
|
|
7
|
+
.util-notification-banner {
|
|
8
|
+
@apply border-5 mb-4 md:mb-8 print:bg-white;
|
|
9
|
+
|
|
10
|
+
/* border-radius: var(--notification-banner-border-radius); */
|
|
11
|
+
}
|
|
12
|
+
.util-notification-banner-text {
|
|
13
|
+
@apply font-normal;
|
|
14
|
+
}
|
|
15
|
+
.util-notification-banner--info {
|
|
16
|
+
@apply bg-info border-info;
|
|
17
|
+
}
|
|
18
|
+
.util-notification-banner--success {
|
|
19
|
+
@apply bg-success border-success;
|
|
20
|
+
}
|
|
21
|
+
.util-notification-banner--error {
|
|
22
|
+
@apply bg-error border-error;
|
|
23
|
+
}
|
|
24
|
+
.util-notification-banner__header {
|
|
25
|
+
@apply print:border-b print:border-base-400 print:text-base-content print:pt-2;
|
|
26
|
+
}
|
|
27
|
+
.util-notification-banner__title-text {
|
|
28
|
+
@apply pb-2 m-0 text-white text-base md:text-lg
|
|
29
|
+
print:text-base-content print:pt-2;
|
|
30
|
+
}
|
|
31
|
+
.util-notification-banner__content {
|
|
32
|
+
@apply bg-base-100 p-4 md:p-5;
|
|
33
|
+
}
|
|
34
|
+
.util-notification-banner__content-text {
|
|
35
|
+
@apply text-base-content;
|
|
36
|
+
}
|
|
37
|
+
.util-notification-banner_link-text {
|
|
38
|
+
@apply underline text-base md:text-lg text-link;
|
|
39
|
+
}
|
|
40
|
+
.util-notification-banner_link--success-text {
|
|
41
|
+
@apply text-success;
|
|
42
|
+
}
|
|
43
|
+
.util-notification-banner_link--error-text {
|
|
44
|
+
@apply text-error;
|
|
45
|
+
}
|
|
46
|
+
}
|