@digigov/css 2.0.0-113e6661 → 2.0.0-298cfc51
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 +12 -12
- package/postcss.config.js +4 -4
- package/src/base/index.css +1 -0
- package/src/base/index.native.css +2 -0
- package/src/base/postcss.config.js +11 -10
- package/src/base/tailwind.config.js +4 -11
- package/src/components/blockquote.native.css +1 -0
- package/src/components/button.css +1 -1
- package/src/components/button.native.css +2 -3
- package/src/components/chip.common.css +19 -0
- package/src/components/chip.css +5 -4
- package/src/components/chip.native.css +18 -0
- package/src/components/copy-to-clipboard.css +1 -1
- package/src/components/details.native.css +8 -2
- package/src/components/drawer.css +23 -3
- package/src/components/filter.css +71 -22
- package/src/components/form.native.css +42 -25
- package/src/components/header.common.css +32 -33
- package/src/components/header.css +8 -12
- package/src/components/header.native.css +5 -10
- package/src/components/kitchensink.css +2 -2
- package/src/components/layout.common.css +1 -1
- package/src/components/layout.css +1 -1
- package/src/components/layout.native.css +2 -0
- package/src/components/loader.common.css +7 -0
- package/src/components/loader.css +3 -1
- package/src/components/loader.native.css +5 -0
- package/src/components/modal.common.css +17 -0
- package/src/components/modal.css +14 -14
- package/src/components/modal.native.css +18 -0
- package/src/components/nav.native.css +3 -2
- package/src/components/pagination.css +19 -3
- package/src/components/panel.native.css +3 -1
- package/src/components/postcss.config.js +7 -6
- package/src/components/stack.common.css +67 -0
- package/src/components/stack.css +23 -21
- package/src/components/stack.native.css +68 -0
- package/src/components/summary-list.common.css +4 -1
- package/src/components/summary-list.css +3 -2
- package/src/components/summary-list.native.css +5 -1
- package/src/components/typography.common.css +1 -4
- package/src/components/typography.css +5 -1
- package/src/components/typography.native.css +31 -0
- package/src/index.native.css +5 -1
- package/src/utilities/gap.css +141 -0
- package/src/utilities/index.css +4 -1
- package/src/utilities/index.native.css +5 -1
- 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/utilities.css +3 -2377
- package/tailwind.config.js +102 -106
- package/theming.js +121 -0
- package/defaultTheme/accordion.json +0 -16
- package/defaultTheme/back-to-top.json +0 -27
- package/defaultTheme/brandConfig.json +0 -147
- package/defaultTheme/breadcrumbs.json +0 -8
- package/defaultTheme/button.json +0 -94
- package/defaultTheme/card.json +0 -23
- package/defaultTheme/form.json +0 -132
- package/defaultTheme/globals.json +0 -81
- package/defaultTheme/index.js +0 -27
- package/defaultTheme/layout.json +0 -55
- package/defaultTheme/misc.json +0 -68
- package/defaultTheme/panel.json +0 -48
- 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/utilities/spacing.css +0 -2133
- package/themes.plugin.js +0 -148
|
@@ -1,40 +1,63 @@
|
|
|
1
|
+
.ds-filter-container {
|
|
2
|
+
@apply fixed left-0 top-0 overflow-auto w-full h-full
|
|
3
|
+
flex justify-center items-center content-center
|
|
4
|
+
z-50 bg-opacity-50 bg-base-700;
|
|
5
|
+
&.ds-filter-container--position-relative-always {
|
|
6
|
+
@apply bg-transparent h-fit z-2 overflow-visible relative block !important;
|
|
7
|
+
}
|
|
8
|
+
&.ds-filter-container--position-relative-sm {
|
|
9
|
+
@apply sm:bg-transparent sm:h-fit sm:z-2 sm:overflow-visible sm:relative;
|
|
10
|
+
@apply sm:block !important;
|
|
11
|
+
}
|
|
12
|
+
&.ds-filter-container--position-relative-md {
|
|
13
|
+
@apply md:bg-transparent md:h-fit md:z-2 md:overflow-visible md:relative;
|
|
14
|
+
@apply md:block !important;
|
|
15
|
+
}
|
|
16
|
+
&.ds-filter-container--position-relative-lg {
|
|
17
|
+
@apply lg:bg-transparent lg:h-fit lg:z-2 lg:overflow-visible lg:relative;
|
|
18
|
+
@apply lg:block !important;
|
|
19
|
+
}
|
|
20
|
+
&.ds-filter-container--closed {
|
|
21
|
+
@apply hidden;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
1
24
|
.ds-filter {
|
|
2
|
-
@apply bg-base-100 fixed top-0 right-0 bottom-0 overflow-y-scroll
|
|
25
|
+
@apply bg-base-100 fixed top-0 right-0 bottom-0 overflow-y-scroll w-4/5 max-w-md p-4;
|
|
3
26
|
box-shadow: 0 0 30px rgba(var(--color-base-900-rgb), 0.9);
|
|
4
27
|
&.ds-filter--position-relative-always {
|
|
5
|
-
@apply
|
|
6
|
-
&.ds-filter--closed {
|
|
7
|
-
@apply block !important;
|
|
8
|
-
}
|
|
28
|
+
@apply relative w-full max-w-full shadow-none mb-4 md:mb-8;
|
|
9
29
|
}
|
|
10
30
|
&.ds-filter--position-relative-sm {
|
|
11
|
-
@apply sm:
|
|
12
|
-
|
|
13
|
-
@apply sm:
|
|
31
|
+
@apply sm:relative sm:w-full sm:shadow-none sm:mb-4 md:mb-8 sm:max-w-full;
|
|
32
|
+
&:not(.ds-filter--border) {
|
|
33
|
+
@apply sm:p-0;
|
|
14
34
|
}
|
|
15
35
|
}
|
|
16
36
|
&.ds-filter--position-relative-md {
|
|
17
|
-
@apply md:
|
|
18
|
-
|
|
19
|
-
@apply md:
|
|
37
|
+
@apply md:relative md:w-full md:shadow-none md:mb-8 md:max-w-full;
|
|
38
|
+
&:not(.ds-filter--border) {
|
|
39
|
+
@apply md:p-0;
|
|
20
40
|
}
|
|
21
41
|
}
|
|
22
42
|
&.ds-filter--position-relative-lg {
|
|
23
|
-
@apply lg:
|
|
24
|
-
|
|
25
|
-
|
|
43
|
+
@apply lg:relative lg:overflow-visible lg:w-full lg:shadow-none
|
|
44
|
+
lg:z-2 lg:mb-8 lg:max-w-full;
|
|
45
|
+
&:not(.ds-filter--border) {
|
|
46
|
+
@apply lg:p-0;
|
|
26
47
|
}
|
|
27
48
|
}
|
|
28
49
|
&.ds-filter--border {
|
|
29
|
-
@apply border border-base-300
|
|
30
|
-
}
|
|
31
|
-
&.ds-filter--closed {
|
|
32
|
-
@apply hidden;
|
|
50
|
+
@apply border border-base-300;
|
|
33
51
|
}
|
|
34
52
|
}
|
|
35
53
|
.ds-filter__content {
|
|
36
54
|
@apply flex flex-col gap-8 p-0;
|
|
37
55
|
}
|
|
56
|
+
.ds-filter__options {
|
|
57
|
+
.ds-btn:last-child {
|
|
58
|
+
@apply mb-0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
38
61
|
.ds-filter__options--horizontal {
|
|
39
62
|
@apply flex gap-4 flex-col;
|
|
40
63
|
@apply md:flex-row md:flex-wrap;
|
|
@@ -51,13 +74,13 @@
|
|
|
51
74
|
@apply p-0;
|
|
52
75
|
}
|
|
53
76
|
.ds-filter__heading {
|
|
54
|
-
@apply mb-4;
|
|
77
|
+
@apply mb-4 flex justify-between align-baseline items-baseline;
|
|
55
78
|
}
|
|
56
79
|
.ds-filter__selected {
|
|
57
80
|
@apply bg-base-200 p-4 m-0 rounded;
|
|
58
81
|
}
|
|
59
82
|
.ds-filter__selected-heading {
|
|
60
|
-
@apply flex flex-wrap
|
|
83
|
+
@apply flex flex-wrap mb-4 md:mb-6 justify-between gap-x-2 gap-y-4;
|
|
61
84
|
}
|
|
62
85
|
.ds-input__search-btn {
|
|
63
86
|
@apply shadow-none !important;
|
|
@@ -85,8 +108,34 @@
|
|
|
85
108
|
/* overrides */
|
|
86
109
|
|
|
87
110
|
.ds-filter {
|
|
88
|
-
|
|
89
|
-
|
|
111
|
+
&.ds-filter--position-relative-always {
|
|
112
|
+
.ds-filter__heading {
|
|
113
|
+
> .ds-close-btn {
|
|
114
|
+
@apply hidden;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
&.ds-filter--position-relative-sm {
|
|
119
|
+
.ds-filter__heading {
|
|
120
|
+
> .ds-close-btn {
|
|
121
|
+
@apply sm:hidden;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
&.ds-filter--position-relative-md {
|
|
126
|
+
.ds-filter__heading {
|
|
127
|
+
> .ds-close-btn {
|
|
128
|
+
@apply md:hidden;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
&.ds-filter--position-relative-lg {
|
|
133
|
+
.ds-filter__heading {
|
|
134
|
+
> .ds-close-btn {
|
|
135
|
+
@apply lg:hidden;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
90
139
|
.ds-select {
|
|
91
140
|
@apply w-full;
|
|
92
141
|
}
|
|
@@ -16,16 +16,19 @@
|
|
|
16
16
|
|
|
17
17
|
.ds-fieldset__legend--xl__text {
|
|
18
18
|
@apply util-fieldset__legend--xl-text;
|
|
19
|
-
|
|
19
|
+
line-height: calc(var(--fieldset__legend--xl-line-height)* var(--fieldset__legend--xl-font-size));
|
|
20
20
|
}
|
|
21
21
|
.ds-fieldset__legend--lg__text {
|
|
22
22
|
@apply util-fieldset__legend--lg-text;
|
|
23
|
+
line-height: calc(var(--fieldset__legend--lg-line-height)* var(--fieldset__legend--lg-font-size));
|
|
23
24
|
}
|
|
24
25
|
.ds-fieldset__legend--md__text {
|
|
25
26
|
@apply util-fieldset__legend--md-text;
|
|
27
|
+
line-height: calc(var(--fieldset__legend--md-line-height)* var(--fieldset__legend--md-font-size));
|
|
26
28
|
}
|
|
27
29
|
.ds-fieldset__legend--sm__text {
|
|
28
30
|
@apply util-fieldset__legend--sm-text;
|
|
31
|
+
line-height: calc(var(--fieldset__legend--sm-line-height)* var(--fieldset__legend--sm-font-size));
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
/* Label */
|
|
@@ -34,18 +37,23 @@
|
|
|
34
37
|
}
|
|
35
38
|
.ds-label__text {
|
|
36
39
|
@apply util-label-text;
|
|
40
|
+
line-height: calc(var(--label-line-height) * var(--label-font-size));
|
|
37
41
|
}
|
|
38
42
|
.ds-label__title--xl__text {
|
|
39
43
|
@apply util-label__title--xl-text;
|
|
44
|
+
line-height: calc(var(--label__title--xl-line-height)* var(--label__title--xl-font-size));
|
|
40
45
|
}
|
|
41
46
|
.ds-label__title--lg__text {
|
|
42
47
|
@apply util-label__title--lg-text;
|
|
48
|
+
line-height: calc(var(--label__title--lg-line-height)* var(--label__title--lg-font-size));
|
|
43
49
|
}
|
|
44
50
|
.ds-label__title--md__text {
|
|
45
51
|
@apply util-label__title--md-text;
|
|
52
|
+
line-height: calc(var(--label__title--md-line-height)* var(--label__title--md-font-size));
|
|
46
53
|
}
|
|
47
54
|
.ds-label__title--sm__text {
|
|
48
55
|
@apply util-label__title--sm-text;
|
|
56
|
+
line-height: calc(var(--label__title--sm-line-height)* var(--label__title--sm-font-size));
|
|
49
57
|
}
|
|
50
58
|
|
|
51
59
|
/* Input */
|
|
@@ -53,8 +61,10 @@
|
|
|
53
61
|
@apply util-input text-lg;
|
|
54
62
|
}
|
|
55
63
|
.ds-input__wrapper--focus {
|
|
56
|
-
border-width: var(--input
|
|
64
|
+
border-width: var(--input--focus-border-width);
|
|
57
65
|
border-color: var(--color-focus);
|
|
66
|
+
margin-top: calc(-1 * var(--input--focus-border-width));
|
|
67
|
+
margin-bottom: calc(-1 * var(--input--focus-border-width));
|
|
58
68
|
}
|
|
59
69
|
.ds-input--error {
|
|
60
70
|
@apply util-input--error;
|
|
@@ -63,42 +73,47 @@
|
|
|
63
73
|
@apply bg-base-300 border-base-700 text-base-800;
|
|
64
74
|
}
|
|
65
75
|
|
|
66
|
-
.ds-input--width-
|
|
67
|
-
|
|
68
|
-
|
|
76
|
+
.ds-input--width-2-char {
|
|
77
|
+
width: var(--input--width-2-char-width);
|
|
78
|
+
text-align: center;
|
|
69
79
|
}
|
|
70
|
-
.ds-input--width-
|
|
80
|
+
.ds-input--width-3-char {
|
|
81
|
+
width: var(--input--width-3-char-width);
|
|
82
|
+
text-align: center;
|
|
71
83
|
}
|
|
72
84
|
.ds-input--width-4-char {
|
|
73
|
-
width: var(--input
|
|
85
|
+
width: var(--input--width-4-char-width);
|
|
74
86
|
text-align: center;
|
|
75
87
|
}
|
|
76
|
-
.ds-input--width-
|
|
88
|
+
.ds-input--width-5-char {
|
|
89
|
+
width: var(--input--width-5-char-width);
|
|
90
|
+
text-align: center;
|
|
77
91
|
}
|
|
78
|
-
.ds-input--width-
|
|
79
|
-
width: var(--input
|
|
92
|
+
.ds-input--width-10-char {
|
|
93
|
+
width: var(--input--width-10-char-width);
|
|
80
94
|
text-align: center;
|
|
81
95
|
}
|
|
82
|
-
|
|
83
|
-
|
|
96
|
+
.ds-input--width-20-char {
|
|
97
|
+
width: var(--input--width-20-char-width);
|
|
98
|
+
text-align: center;
|
|
84
99
|
}
|
|
85
|
-
.ds-input--width-
|
|
100
|
+
.ds-input--width-2-char__wrapper--focus {
|
|
101
|
+
width: calc(var(--input--width-2-char-width) + (2 * var(--input--focus-border-width)));
|
|
86
102
|
}
|
|
87
|
-
.ds-input--width-
|
|
103
|
+
.ds-input--width-3-char__wrapper--focus {
|
|
104
|
+
width: calc( var(--input--width-3-char-width) + (2 * var(--input--focus-border-width)));
|
|
88
105
|
}
|
|
89
106
|
.ds-input--width-4-char__wrapper--focus {
|
|
90
|
-
|
|
91
|
-
width: var(--input-width-4-char--focus);
|
|
92
|
-
border-width: var(--input-focus-border-width);
|
|
93
|
-
border-color: var(--color-focus);
|
|
107
|
+
width: calc( var(--input--width-4-char-width) + (2 * var(--input--focus-border-width)));
|
|
94
108
|
}
|
|
95
|
-
.ds-input--width-
|
|
109
|
+
.ds-input--width-5-char__wrapper--focus {
|
|
110
|
+
width: calc( var(--input--width-5-char-width) + (2 * var(--input--focus-border-width)));
|
|
96
111
|
}
|
|
97
|
-
.ds-input--width-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
112
|
+
.ds-input--width-10-char__wrapper--focus {
|
|
113
|
+
width: calc( var(--input--width-10-char-width) + (2 * var(--input--focus-border-width)));
|
|
114
|
+
}
|
|
115
|
+
.ds-input--width-20-char__wrapper--focus {
|
|
116
|
+
width: calc( var(--input--width-20-char-width) + (2 * var(--input--focus-border-width)));
|
|
102
117
|
}
|
|
103
118
|
|
|
104
119
|
/* Error Message */
|
|
@@ -122,8 +137,10 @@
|
|
|
122
137
|
@apply util-textarea text-lg;
|
|
123
138
|
}
|
|
124
139
|
.ds-textarea__wrapper--focus {
|
|
125
|
-
border-width:
|
|
140
|
+
border-width: var(--input--focus-border-width);
|
|
126
141
|
border-color: var(--color-focus);
|
|
142
|
+
margin-top: calc(-1 * var(--input--focus-border-width));
|
|
143
|
+
margin-bottom: calc(-1 * var(--input--focus-border-width));
|
|
127
144
|
}
|
|
128
145
|
|
|
129
146
|
/* Radios Checkboxes */
|
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
@tailwind utilities;
|
|
2
2
|
|
|
3
3
|
@layer utilities {
|
|
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
|
-
}
|
|
4
|
+
.util-header {
|
|
5
|
+
@apply relative border-solid;
|
|
6
|
+
background-color: var(--header-background);
|
|
7
|
+
border-color: var(--header-border-color);
|
|
8
|
+
border-bottom-width: var(--header-border-bottom-width);
|
|
9
|
+
}
|
|
10
|
+
.util-header__content {
|
|
11
|
+
@apply px-4 py-2 mx-auto max-w-5xl w-full flex justify-between items-center flex-wrap sm:flex-nowrap gap-3;
|
|
12
|
+
}
|
|
13
|
+
.util-header__section {
|
|
14
|
+
@apply flex justify-start flex-wrap items-center;
|
|
15
|
+
}
|
|
16
|
+
.util-header__logo {
|
|
17
|
+
@apply h-12;
|
|
18
|
+
}
|
|
19
|
+
.util-header__logo-inverted {
|
|
20
|
+
@apply h-12 hidden;
|
|
21
|
+
}
|
|
22
|
+
.util-header__secondary-logo {
|
|
23
|
+
@apply h-10;
|
|
24
|
+
}
|
|
25
|
+
.util-header__title {
|
|
26
|
+
@apply align-middle;
|
|
27
|
+
}
|
|
28
|
+
.util-header__title-text {
|
|
29
|
+
@apply font-bold text-2xl leading-10 tracking-wide no-underline hover:no-underline;
|
|
30
|
+
color: var(--header__title-color);
|
|
31
|
+
}
|
|
32
|
+
.util-header-nav-menu__content {
|
|
33
|
+
@apply flex justify-start items-center;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,29 +1,25 @@
|
|
|
1
1
|
@import './header.common.css';
|
|
2
2
|
|
|
3
3
|
.ds-header {
|
|
4
|
-
@apply util-header;
|
|
5
|
-
background: var(--header-background);
|
|
6
|
-
border-width: var(--header-border-width);
|
|
4
|
+
@apply util-header print:border-b-2 print:bg-white;
|
|
7
5
|
}
|
|
8
6
|
.ds-header__content {
|
|
9
|
-
@apply util-header__content;
|
|
7
|
+
@apply util-header__content print:px-0;
|
|
10
8
|
}
|
|
11
9
|
.ds-header__section {
|
|
12
|
-
@apply util-header__section gap-x-4 gap-y-2;
|
|
10
|
+
@apply util-header__section gap-x-4 gap-y-2 print:gap-1;
|
|
13
11
|
&:last-child:not(:first-child) {
|
|
14
12
|
@apply flex-1 justify-end sm:flex-none sm:justify-start;
|
|
15
13
|
}
|
|
16
14
|
}
|
|
17
15
|
.ds-header__logo {
|
|
18
|
-
@apply util-header__logo;
|
|
19
|
-
print-color-adjust: exact !important;
|
|
20
|
-
-webkit-print-color-adjust: exact !important;
|
|
16
|
+
@apply util-header__logo print:hidden;
|
|
21
17
|
}
|
|
22
18
|
.ds-header__logo-inverted {
|
|
23
|
-
@apply util-header__logo-inverted;
|
|
19
|
+
@apply util-header__logo-inverted print:block;
|
|
24
20
|
}
|
|
25
21
|
.ds-header__secondary-logo {
|
|
26
|
-
@apply util-header__secondary-logo;
|
|
22
|
+
@apply util-header__secondary-logo print:hidden;
|
|
27
23
|
}
|
|
28
24
|
.ds-header__link:focus {
|
|
29
25
|
box-shadow: 0 0 0 4px var(--color-focus);
|
|
@@ -31,7 +27,7 @@
|
|
|
31
27
|
text-decoration: none;
|
|
32
28
|
}
|
|
33
29
|
.ds-header__title {
|
|
34
|
-
@apply util-header__title util-header__title-text w-auto;
|
|
30
|
+
@apply util-header__title util-header__title-text w-auto print:text-base-content;
|
|
35
31
|
&:hover {
|
|
36
32
|
/* @apply text-white; */
|
|
37
33
|
color: var(--header__title-color-hover);
|
|
@@ -43,7 +39,7 @@
|
|
|
43
39
|
}
|
|
44
40
|
}
|
|
45
41
|
.ds-header-nav-menu__content {
|
|
46
|
-
@apply util-header-nav-menu__content gap-x-4 gap-y-2;
|
|
42
|
+
@apply util-header-nav-menu__content gap-x-4 gap-y-2 print:gap-1;
|
|
47
43
|
}
|
|
48
44
|
|
|
49
45
|
/* overrides */
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
@import './header.common.css';
|
|
2
2
|
|
|
3
3
|
.ds-header {
|
|
4
|
-
|
|
5
|
-
background-color: var(--header-background);
|
|
6
|
-
border-top-width: var(--header-border-top-width);
|
|
7
|
-
border-bottom-width: var(--header-border-bottom-width);
|
|
8
|
-
border-left-width: var(--header-border-left-width);
|
|
9
|
-
border-right-width: var(--header-border-right-width);
|
|
4
|
+
@apply util-header;
|
|
10
5
|
}
|
|
11
6
|
.ds-header__content {
|
|
12
7
|
@apply util-header__content;
|
|
13
8
|
}
|
|
14
9
|
.ds-header__section {
|
|
15
|
-
|
|
10
|
+
@apply util-header__section flex-row;
|
|
16
11
|
}
|
|
17
12
|
.ds-header__logo {
|
|
18
13
|
@apply util-header__logo;
|
|
@@ -27,8 +22,8 @@
|
|
|
27
22
|
@apply util-header__title;
|
|
28
23
|
}
|
|
29
24
|
.ds-header__title__text {
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
@apply util-header__title-text;
|
|
26
|
+
}
|
|
32
27
|
.ds-header-nav-menu__content {
|
|
33
28
|
@apply util-header-nav-menu__content;
|
|
34
|
-
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@tailwind utilities;
|
|
2
|
+
|
|
3
|
+
@layer utilities {
|
|
4
|
+
.util-modal {
|
|
5
|
+
@apply bg-base-100 p-6 border border-solid border-base-500;
|
|
6
|
+
}
|
|
7
|
+
.util-modal__body {
|
|
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,31 +1,31 @@
|
|
|
1
|
-
.
|
|
1
|
+
@import './modal.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-modal-container {
|
|
2
4
|
@apply hidden justify-center items-center content-center text-left
|
|
3
5
|
mb-7 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
7
|
|
|
6
|
-
&.ds-modal--open {
|
|
8
|
+
&.ds-modal-container--open {
|
|
7
9
|
@apply flex;
|
|
8
10
|
}
|
|
9
11
|
|
|
10
|
-
&.ds-modal--dense,
|
|
12
|
+
&.ds-modal-container--dense,
|
|
11
13
|
&.ds-dense & {
|
|
12
|
-
.ds-
|
|
14
|
+
.ds-modal {
|
|
13
15
|
@apply px-4 py-0;
|
|
14
16
|
}
|
|
15
|
-
.ds-
|
|
17
|
+
.ds-modal__body {
|
|
16
18
|
@apply gap-4 my-0;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
|
-
.ds-
|
|
21
|
-
@apply w-full max-w-md md:max-w-lg lg:max-w-4xl
|
|
22
|
-
h-fit md:h-auto overflow-y-auto
|
|
23
|
-
bg-base-100
|
|
24
|
-
border border-solid border-base-500 p-6;
|
|
22
|
+
.ds-modal {
|
|
23
|
+
@apply util-modal w-full max-w-md md:max-w-lg lg:max-w-4xl
|
|
24
|
+
h-fit md:h-auto overflow-y-auto;
|
|
25
25
|
max-height: 95vh;
|
|
26
26
|
}
|
|
27
|
-
.ds-
|
|
28
|
-
@apply grid
|
|
27
|
+
.ds-modal__body {
|
|
28
|
+
@apply grid util-modal__body;
|
|
29
29
|
.ds-modal__action {
|
|
30
30
|
@apply mb-0;
|
|
31
31
|
}
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
.ds-modal__content {
|
|
37
|
-
@apply
|
|
37
|
+
@apply util-modal__content-text;
|
|
38
38
|
}
|
|
39
39
|
.ds-modal__action {
|
|
40
|
-
@apply
|
|
40
|
+
@apply util-modal__action;
|
|
41
41
|
.ds-link,
|
|
42
42
|
.ds-btn {
|
|
43
43
|
@apply mb-0;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@import './modal.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-modal-container {
|
|
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 {
|
|
8
|
+
@apply util-modal;
|
|
9
|
+
}
|
|
10
|
+
.ds-modal__body {
|
|
11
|
+
@apply util-modal__body;
|
|
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
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
@apply util-nav;
|
|
5
5
|
}
|
|
6
6
|
.ds-nav--border {
|
|
7
|
-
@apply
|
|
7
|
+
@apply border-b border-base-400;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
@apply gap-y-3;
|
|
16
16
|
}
|
|
17
17
|
.ds-nav__list--horizontal {
|
|
18
|
-
@apply
|
|
18
|
+
@apply mx-auto py-1 px-4 flex-row items-center;
|
|
19
|
+
column-gap: 1.5rem;
|
|
19
20
|
}
|
|
20
21
|
.ds-nav__list--full-width {
|
|
21
22
|
@apply util-nav__list--full-width;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.ds-pagination {
|
|
2
|
-
@apply flex flex-wrap items-center justify-items-center justify-between
|
|
2
|
+
@apply flex flex-wrap items-center justify-items-center justify-between
|
|
3
|
+
gap-y-2 md:gap-y-4 gap-x-6 mb-4 md:mb-8;
|
|
3
4
|
&.ds-pagination--sm {
|
|
4
5
|
.ds-pagination__label,
|
|
5
6
|
.ds-pagination__item--current {
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
@apply text-base-content md:leading-normal;
|
|
18
19
|
}
|
|
19
20
|
.ds-pagination__list {
|
|
20
|
-
@apply flex items-center;
|
|
21
|
+
@apply flex items-center flex-wrap;
|
|
21
22
|
}
|
|
22
23
|
.ds-pagination__item {
|
|
23
24
|
@apply inline-block p-2 m-0;
|
|
@@ -32,6 +33,14 @@
|
|
|
32
33
|
@apply font-bold;
|
|
33
34
|
}
|
|
34
35
|
}
|
|
36
|
+
@media (max-width: 639.9px) {
|
|
37
|
+
.ds-pagination__item {
|
|
38
|
+
@apply py-0;
|
|
39
|
+
&.ds-pagination__item--current {
|
|
40
|
+
@apply flex items-center justify-center min-h-12 min-w-12;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
35
44
|
|
|
36
45
|
/* overrides */
|
|
37
46
|
|
|
@@ -69,6 +78,13 @@
|
|
|
69
78
|
}
|
|
70
79
|
}
|
|
71
80
|
.ds-link {
|
|
72
|
-
@apply flex items-center no-underline;
|
|
81
|
+
@apply flex items-center justify-center no-underline;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
@media (max-width: 639.9px) {
|
|
85
|
+
.ds-pagination__item {
|
|
86
|
+
.ds-link {
|
|
87
|
+
@apply min-h-12 min-w-12;
|
|
88
|
+
}
|
|
73
89
|
}
|
|
74
90
|
}
|
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
@apply util-panel__title;
|
|
14
14
|
}
|
|
15
15
|
.ds-panel__title__text {
|
|
16
|
-
@apply util-panel-text util-panel__title-text
|
|
16
|
+
@apply util-panel-text util-panel__title-text;
|
|
17
|
+
line-height: calc(var(--panel__title-line-height) * var(--panel__title-font-size));
|
|
17
18
|
}
|
|
18
19
|
.ds-panel__body__text {
|
|
19
20
|
@apply util-panel-text util-panel__body-text;
|
|
21
|
+
line-height: calc(var(--panel__body-line-height) * var(--panel__body-font-size));
|
|
20
22
|
}
|