@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,25 +1,25 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ds-pagination {
|
|
2
2
|
@apply flex flex-wrap items-center justify-items-center justify-between;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
&.ds-pagination--sm {
|
|
4
|
+
.ds-pagination__label,
|
|
5
|
+
.ds-pagination__item--current {
|
|
6
|
+
@apply md:text-base text-sm;
|
|
7
|
+
}
|
|
5
8
|
}
|
|
6
|
-
.
|
|
9
|
+
.ds-pagination__label {
|
|
7
10
|
@apply md:text-lg text-base;
|
|
8
11
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
.govgr-pagination__label,
|
|
12
|
-
.govgr-pagination__item--current {
|
|
13
|
-
@apply md:text-base text-sm;
|
|
12
|
+
.ds-pagination__item--current {
|
|
13
|
+
@apply md:text-lg text-base;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.ds-pagination__label {
|
|
17
17
|
@apply text-base-content md:leading-normal;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
.ds-pagination__list {
|
|
20
20
|
@apply flex items-center;
|
|
21
21
|
}
|
|
22
|
-
.
|
|
22
|
+
.ds-pagination__item {
|
|
23
23
|
@apply inline-block p-2 m-0;
|
|
24
24
|
&:first-child {
|
|
25
25
|
@apply pl-0;
|
|
@@ -27,49 +27,48 @@
|
|
|
27
27
|
&:last-child {
|
|
28
28
|
@apply pr-0;
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
&.ds-pagination__item--current,
|
|
31
|
+
&.ds-pagination__item--dots {
|
|
32
|
+
@apply font-bold;
|
|
33
|
+
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/* overrides */
|
|
37
37
|
|
|
38
|
-
.
|
|
39
|
-
|
|
38
|
+
.ds-pagination {
|
|
39
|
+
&.ds-pagination--sm {
|
|
40
|
+
.ds-label,
|
|
41
|
+
.ds-select {
|
|
42
|
+
@apply md:text-base text-sm;
|
|
43
|
+
}
|
|
44
|
+
.ds-pagination__list {
|
|
45
|
+
.ds-link {
|
|
46
|
+
@apply md:text-base text-sm !important;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
.ds-label {
|
|
40
51
|
@apply text-base-content md:leading-normal flex-row items-center gap-2 md:text-lg text-base;
|
|
41
52
|
}
|
|
42
|
-
.
|
|
43
|
-
text-indent: 0px;
|
|
53
|
+
.ds-select {
|
|
44
54
|
@apply flex text-base-content md:leading-normal border md:text-lg text-base;
|
|
55
|
+
text-indent: 0;
|
|
45
56
|
&:focus {
|
|
46
|
-
-webkit-box-shadow: inset 0 0 0 1px;
|
|
47
57
|
box-shadow: inset 0 0 0 1px;
|
|
48
58
|
}
|
|
49
59
|
}
|
|
50
60
|
}
|
|
51
|
-
.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
61
|
+
.ds-pagination__item {
|
|
62
|
+
&.ds-pagination__item--inactive {
|
|
63
|
+
.ds-link {
|
|
64
|
+
@apply text-base-800;
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
.ds-svg-icon {
|
|
67
|
+
fill: var(--color-base-800);
|
|
68
|
+
}
|
|
59
69
|
}
|
|
60
70
|
}
|
|
61
|
-
|
|
62
|
-
.govgr-pagination__item {
|
|
63
|
-
.govgr-link {
|
|
71
|
+
.ds-link {
|
|
64
72
|
@apply flex items-center no-underline;
|
|
65
73
|
}
|
|
66
74
|
}
|
|
67
|
-
.govgr-pagination__item--inactive {
|
|
68
|
-
.govgr-link {
|
|
69
|
-
pointer-events: none;
|
|
70
|
-
@apply text-base-800;
|
|
71
|
-
.govgr-svg-icon {
|
|
72
|
-
fill: var(--color-base-800);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@tailwind utilities;
|
|
2
|
+
|
|
3
|
+
@layer utilities {
|
|
4
|
+
.util-panel {
|
|
5
|
+
@apply mb-4 p-8 border-5 border-transparent
|
|
6
|
+
print:p-4 print:border-4 print:text-base-content print:bg-white;
|
|
7
|
+
border-radius: var(--panel-border-radius);
|
|
8
|
+
}
|
|
9
|
+
.util-panel-text {
|
|
10
|
+
@apply text-white text-center;
|
|
11
|
+
}
|
|
12
|
+
.util-panel--success {
|
|
13
|
+
@apply bg-success print:border-success;
|
|
14
|
+
}
|
|
15
|
+
.util-panel__title {
|
|
16
|
+
@apply mx-auto mt-0;
|
|
17
|
+
margin-bottom: var(--panel__title-margin-bottom);
|
|
18
|
+
}
|
|
19
|
+
.util-panel__title-text {
|
|
20
|
+
font-size: var(--panel__title-font-size);
|
|
21
|
+
line-height: var(--panel__title-line-height);
|
|
22
|
+
font-weight: var(--panel__title-font-weight);
|
|
23
|
+
letter-spacing: var(--panel__title-letter-spacing);
|
|
24
|
+
}
|
|
25
|
+
.util-panel__body-text {
|
|
26
|
+
font-size: var(--panel__body-font-size);
|
|
27
|
+
line-height: var(--panel__body-line-height);
|
|
28
|
+
letter-spacing: var(--panel__body-letter-spacing);
|
|
29
|
+
}
|
|
30
|
+
}
|
package/src/components/panel.css
CHANGED
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
@import './panel.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-panel {
|
|
4
|
+
@apply box-border util-panel util-panel-text;
|
|
5
|
+
&.ds-panel--success {
|
|
6
|
+
@apply util-panel--success;
|
|
7
|
+
}
|
|
5
8
|
}
|
|
6
|
-
.
|
|
7
|
-
@apply
|
|
9
|
+
.ds-panel__title {
|
|
10
|
+
@apply util-panel__title util-panel__title-text;
|
|
8
11
|
}
|
|
9
|
-
.
|
|
10
|
-
@apply
|
|
11
|
-
|
|
12
|
-
line-height:var(--panel__title-line-height);
|
|
13
|
-
margin-bottom:var(--panel__title-margin-bottom);
|
|
14
|
-
font-weight: var(--panel__title-font-weight);
|
|
15
|
-
letter-spacing: var(--panel__title-letter-spacing);
|
|
12
|
+
.ds-panel__body {
|
|
13
|
+
@apply break-words util-panel__body-text;
|
|
14
|
+
margin: var(--panel__body-margin);
|
|
16
15
|
}
|
|
17
|
-
.govgr-panel__body {
|
|
18
|
-
@apply break-words;
|
|
19
|
-
font-size: var(--panel__body-font-size);
|
|
20
|
-
line-height:var(--panel__body-line-height);
|
|
21
|
-
margin:var(--panel__body-margin);
|
|
22
|
-
letter-spacing: var(--panel__body-letter-spacing);
|
|
23
|
-
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@import './panel.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-panel {
|
|
4
|
+
@apply util-panel;
|
|
5
|
+
}
|
|
6
|
+
.ds-panel__text {
|
|
7
|
+
@apply util-panel-text;
|
|
8
|
+
}
|
|
9
|
+
.ds-panel--success {
|
|
10
|
+
@apply util-panel--success;
|
|
11
|
+
}
|
|
12
|
+
.ds-panel__title {
|
|
13
|
+
@apply util-panel__title;
|
|
14
|
+
}
|
|
15
|
+
.ds-panel__title__text {
|
|
16
|
+
@apply util-panel-text util-panel__title-text ;
|
|
17
|
+
}
|
|
18
|
+
.ds-panel__body__text {
|
|
19
|
+
@apply util-panel-text util-panel__body-text;
|
|
20
|
+
}
|
|
@@ -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;
|
|
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,24 +1,25 @@
|
|
|
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 {
|
|
5
7
|
@apply mb-0;
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
|
-
.
|
|
9
|
-
@apply
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
.ds-phase-banner {
|
|
11
|
+
@apply util-phase-banner;
|
|
12
|
+
&.ds-phase-banner--underline {
|
|
13
|
+
@apply util-phase-banner--underline;
|
|
14
|
+
}
|
|
13
15
|
}
|
|
14
|
-
.
|
|
15
|
-
font-size: var(--phase-banner__content-font-size);
|
|
16
|
+
.ds-phase-banner__content {
|
|
16
17
|
@apply table;
|
|
18
|
+
font-size: var(--phase-banner__content-font-size);
|
|
17
19
|
}
|
|
18
|
-
.
|
|
19
|
-
@apply
|
|
20
|
-
print:bg-white print:border-2 print:border-info print:text-info print:mr-4;
|
|
20
|
+
.ds-phase-banner__tag {
|
|
21
|
+
@apply util-phase-banner__tag util-phase-banner__tag-text mr-2 inline-block font-sans tracking-widest;
|
|
21
22
|
}
|
|
22
|
-
.
|
|
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
|
+
|
|
@@ -1,44 +1,46 @@
|
|
|
1
|
-
.
|
|
2
|
-
&.
|
|
3
|
-
|
|
1
|
+
.ds-radios {
|
|
2
|
+
&.ds-radios--dense,
|
|
3
|
+
ds-dense & {
|
|
4
|
+
.ds-radios__item {
|
|
4
5
|
@apply mb-2 pl-9 min-h-8;
|
|
5
6
|
}
|
|
6
|
-
.
|
|
7
|
+
.ds-radios__input {
|
|
7
8
|
@apply left-0.5 top-0 w-8 h-8;
|
|
8
9
|
&:focus {
|
|
9
10
|
border-width: 3px;
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
}
|
|
14
|
+
&.ds-radios--horizontal {
|
|
15
|
+
@apply inline-flex flex-wrap items-baseline gap-4 md:gap-6;
|
|
16
|
+
}
|
|
13
17
|
}
|
|
14
|
-
.
|
|
15
|
-
@apply block relative mb-4 pl-12;
|
|
16
|
-
min-height: 40px;
|
|
17
|
-
}
|
|
18
|
-
.govgr-radios--horizontal {
|
|
19
|
-
@apply inline-flex flex-wrap items-baseline gap-4 md:gap-6;
|
|
20
|
-
}
|
|
21
|
-
.govgr-radios__item {
|
|
18
|
+
.ds-radios__item {
|
|
22
19
|
@apply block relative mb-4 pl-12;
|
|
23
20
|
min-height: 40px;
|
|
24
21
|
}
|
|
25
|
-
.
|
|
26
|
-
font-size: var(--radios__label-font-size);
|
|
22
|
+
.ds-radios__label {
|
|
27
23
|
@apply inline-block py-1 px-2 cursor-pointer;
|
|
24
|
+
font-size: var(--radios__label-font-size);
|
|
28
25
|
}
|
|
29
|
-
.
|
|
26
|
+
.ds-radios__input {
|
|
30
27
|
@apply absolute z-1 left-0.5 -top-1 m-0
|
|
31
28
|
w-10 h-10 opacity-100 cursor-pointer
|
|
32
29
|
bg-base-100;
|
|
33
30
|
appearance: none;
|
|
34
31
|
width: 40px;
|
|
35
32
|
height: 40px;
|
|
36
|
-
border: 2px solid
|
|
33
|
+
border: 2px solid currentcolor;
|
|
37
34
|
border-radius: 50%;
|
|
38
35
|
&:checked {
|
|
39
|
-
box-shadow:
|
|
36
|
+
box-shadow:
|
|
37
|
+
inset 0 0 0 6px var(--color-base-100),
|
|
38
|
+
inset 0 0 0 20px var(--color-base-content);
|
|
40
39
|
&:focus {
|
|
41
|
-
box-shadow:
|
|
40
|
+
box-shadow:
|
|
41
|
+
0 0 0 4px var(--color-focus),
|
|
42
|
+
inset 0 0 0 4px var(--color-base-100),
|
|
43
|
+
inset 0 0 0 20px var(--color-base-content);
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
&:focus {
|
|
@@ -48,21 +50,22 @@
|
|
|
48
50
|
border-width: 4px;
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
|
-
.
|
|
52
|
-
|
|
53
|
+
.ds-radios__conditional {
|
|
54
|
+
@apply border-l-4 border-base-500 ml-4 pl-6;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
/* overrides */
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
.
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
.govgr-radios {
|
|
63
|
-
&.govgr-radios--dense, .govgr-dense & {
|
|
64
|
-
.govgr-field {
|
|
58
|
+
.ds-radios {
|
|
59
|
+
&.ds-radios--dense,
|
|
60
|
+
.ds-dense & {
|
|
61
|
+
.ds-field {
|
|
65
62
|
@apply mb-4 md:mb-6;
|
|
66
63
|
}
|
|
67
64
|
}
|
|
68
|
-
|
|
65
|
+
|
|
66
|
+
&.ds-radios--horizontal {
|
|
67
|
+
.ds-choice-divider-text {
|
|
68
|
+
@apply min-w-max mx-2;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ds-skip-link {
|
|
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
|
}
|