@digigov/css 2.0.0-b3ec0588 → 2.0.0-cbc56209
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/typography.json +8 -8
- 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/package.json +7 -3
- package/src/base/base.css +1 -1
- package/src/base/index.css +5 -5
- package/src/components/accordion.css +51 -51
- package/src/components/admin-header.css +3 -3
- package/src/components/admin-layout.css +8 -8
- package/src/components/autocomplete.css +45 -48
- package/src/components/back-to-top.css +3 -4
- package/src/components/bottom-info.css +2 -1
- package/src/components/breadcrumbs.css +8 -6
- package/src/components/button.css +41 -43
- package/src/components/card.css +53 -47
- package/src/components/checkboxes.css +20 -23
- package/src/components/chip.css +27 -28
- package/src/components/components.css +2 -2
- package/src/components/copy-to-clipboard.css +27 -26
- package/src/components/details.css +11 -9
- package/src/components/dev-theme.css +2 -3
- package/src/components/drawer.css +46 -47
- package/src/components/dropdown.css +26 -26
- package/src/components/experimental.css +12 -12
- package/src/components/fillable.css +4 -4
- package/src/components/filter.css +8 -10
- package/src/components/footer.css +21 -18
- package/src/components/form.css +27 -24
- package/src/components/full-page-background.css +1 -1
- package/src/components/header.css +7 -24
- package/src/components/hidden.css +6 -6
- package/src/components/index.css +46 -47
- package/src/components/kitchensink.css +33 -33
- package/src/components/layout.css +34 -36
- package/src/components/loader.css +28 -28
- package/src/components/masthead.css +56 -55
- package/src/components/misc.css +13 -15
- package/src/components/modal.css +10 -12
- package/src/components/nav.css +69 -65
- package/src/components/notification-banner.css +17 -16
- package/src/components/pagination.css +29 -30
- package/src/components/panel.css +8 -8
- package/src/components/phase-banner.css +5 -5
- package/src/components/radios.css +24 -21
- package/src/components/skiplink.css +2 -2
- package/src/components/stack.css +63 -63
- package/src/components/stepnav.css +33 -29
- package/src/components/summary-list.css +16 -16
- package/src/components/svg-icons.css +78 -77
- package/src/components/table.css +154 -175
- package/src/components/tabs.css +39 -38
- package/src/components/task-list.css +18 -18
- package/src/components/timeline.css +4 -3
- package/src/components/typography.css +93 -103
- package/src/components/warning-text.css +7 -7
- package/src/pages/index.js +1 -1
- package/src/utilities/index.css +1234 -164
- package/src/utilities/utilities.css +451 -42
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
}
|
|
4
4
|
.ds-breadcrumbs__list {
|
|
5
5
|
@apply block m-0 p-0 list-none;
|
|
6
|
-
|
|
7
|
-
content:
|
|
6
|
+
&::after {
|
|
7
|
+
content: '';
|
|
8
8
|
display: block;
|
|
9
9
|
clear: both;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
.ds-breadcrumbs__list-item {
|
|
13
|
-
font-size: var(--breadcrumbs__list-item-font-size);
|
|
14
13
|
@apply inline-block relative mb-1 ml-2 pl-4 float-left;
|
|
14
|
+
font-size: var(--breadcrumbs__list-item-font-size);
|
|
15
15
|
&::before {
|
|
16
|
-
content: "";
|
|
17
16
|
@apply block absolute top-2 bottom-0 left-0 md:w-3 md:h-3 w-2 h-2 mx-auto my-0 bg-contain bg-no-repeat bg-center;
|
|
17
|
+
content: '';
|
|
18
18
|
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-hidden='true'> <path d='M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z' /> </svg>");
|
|
19
19
|
}
|
|
20
20
|
&:first-child {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
&::before {
|
|
30
30
|
background-image: none;
|
|
31
31
|
top: 2px;
|
|
32
|
-
left:
|
|
32
|
+
left: 0;
|
|
33
33
|
content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-hidden='true'> <path d='M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z' /> </svg>");
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -41,7 +41,9 @@
|
|
|
41
41
|
}
|
|
42
42
|
&:focus {
|
|
43
43
|
background-color: var(--color-focus);
|
|
44
|
-
box-shadow:
|
|
44
|
+
box-shadow:
|
|
45
|
+
0 -2px var(--color-focus),
|
|
46
|
+
0 4px var(--color-base-content);
|
|
45
47
|
text-decoration: none;
|
|
46
48
|
outline: none;
|
|
47
49
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.ds-btn,
|
|
2
|
-
.ds-btn[type=submit],
|
|
3
|
-
.ds-btn[type=button],
|
|
4
|
-
.ds-btn[type=reset] {
|
|
2
|
+
.ds-btn[type='submit'],
|
|
3
|
+
.ds-btn[type='button'],
|
|
4
|
+
.ds-btn[type='reset'] {
|
|
5
5
|
@apply no-underline font-medium cursor-pointer
|
|
6
6
|
m-0 mb-8 w-max min-h-10 md:min-h-12
|
|
7
7
|
flex gap-x-3 items-center;
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
letter-spacing: var(--btn-letter-spacing);
|
|
11
11
|
font-size: var(--btn-font-size);
|
|
12
12
|
&:focus {
|
|
13
|
-
|
|
14
|
-
0 0 0
|
|
15
|
-
|
|
16
|
-
0 0 0
|
|
13
|
+
box-shadow:
|
|
14
|
+
0 0 0 2px var(--color-white),
|
|
15
|
+
0 0 0 6px var(--color-base-content),
|
|
16
|
+
0 0 0 10px var(--color-focus);
|
|
17
17
|
}
|
|
18
18
|
&:focus-within {
|
|
19
19
|
@apply outline-none;
|
|
@@ -23,23 +23,22 @@
|
|
|
23
23
|
--btn-padding: 0.375rem 0.75rem;
|
|
24
24
|
@apply min-h-8;
|
|
25
25
|
&:focus {
|
|
26
|
-
|
|
27
|
-
0 0 0
|
|
28
|
-
|
|
29
|
-
0 0 0
|
|
26
|
+
box-shadow:
|
|
27
|
+
0 0 0 2px var(--color-white),
|
|
28
|
+
0 0 0 5px var(--color-base-content),
|
|
29
|
+
0 0 0 8px var(--color-focus);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
.ds-btn-primary,
|
|
34
|
-
.ds-btn-primary[type=
|
|
35
|
-
.ds-btn-primary[type=
|
|
36
|
-
.ds-btn-primary[type=
|
|
37
|
-
|
|
34
|
+
.ds-btn-primary[type='submit'],
|
|
35
|
+
.ds-btn-primary[type='button'],
|
|
36
|
+
.ds-btn-primary[type='reset'] {
|
|
37
|
+
@apply hover:no-underline
|
|
38
|
+
print:border-2 print:border-success print:shadow-none;
|
|
38
39
|
box-shadow: 0 2px 0 var(--color-base-content);
|
|
39
40
|
background-color: var(--btn-primary-background-color);
|
|
40
41
|
color: var(--btn-primary-color);
|
|
41
|
-
@apply hover:no-underline
|
|
42
|
-
print:border-2 print:border-success print:shadow-none;
|
|
43
42
|
&:hover {
|
|
44
43
|
background-color: var(--btn-primary-background-color-hover);
|
|
45
44
|
color: var(--btn-primary-color-hover);
|
|
@@ -51,18 +50,18 @@
|
|
|
51
50
|
.ds-btn-cta {
|
|
52
51
|
@apply py-4 print:pr-2;
|
|
53
52
|
font-size: var(--btn-cta-font-size);
|
|
54
|
-
&.ds-btn--dense,
|
|
53
|
+
&.ds-btn--dense,
|
|
54
|
+
.ds-dense & {
|
|
55
55
|
@apply py-3 px-4;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
.ds-btn-secondary,
|
|
59
|
-
.ds-btn-secondary[type=
|
|
60
|
-
.ds-btn-secondary[type=
|
|
61
|
-
.ds-btn-secondary[type=
|
|
62
|
-
-webkit-box-shadow: 0 2px 0 var(--color-base-500);
|
|
63
|
-
box-shadow: 0 2px 0 var(--color-base-500);
|
|
59
|
+
.ds-btn-secondary[type='submit'],
|
|
60
|
+
.ds-btn-secondary[type='button'],
|
|
61
|
+
.ds-btn-secondary[type='reset'] {
|
|
64
62
|
@apply hover:no-underline
|
|
65
63
|
print:border-2 print:border-base-700 print:shadow-none;
|
|
64
|
+
box-shadow: 0 2px 0 var(--color-base-500);
|
|
66
65
|
background-color: var(--btn-secondary-background-color);
|
|
67
66
|
color: var(--btn-secondary-color);
|
|
68
67
|
&:hover {
|
|
@@ -74,13 +73,12 @@
|
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
75
|
.ds-btn-warning,
|
|
77
|
-
.ds-btn-warning[type=
|
|
78
|
-
.ds-btn-warning[type=
|
|
79
|
-
.ds-btn-warning[type=
|
|
80
|
-
-webkit-box-shadow: 0 2px 0 var(--color-base-content);
|
|
81
|
-
box-shadow: 0 2px 0 var(--color-base-content);
|
|
76
|
+
.ds-btn-warning[type='submit'],
|
|
77
|
+
.ds-btn-warning[type='button'],
|
|
78
|
+
.ds-btn-warning[type='reset'] {
|
|
82
79
|
@apply hover:no-underline
|
|
83
80
|
print:border-2 print:border-error print:shadow-none;
|
|
81
|
+
box-shadow: 0 2px 0 var(--color-base-content);
|
|
84
82
|
background-color: var(--btn-warning-background-color);
|
|
85
83
|
color: var(--btn-warning-color);
|
|
86
84
|
&:hover {
|
|
@@ -98,8 +96,8 @@
|
|
|
98
96
|
@apply cursor-not-allowed !important;
|
|
99
97
|
}
|
|
100
98
|
.ds-svg-icon--caret {
|
|
101
|
-
fill: var(--color-base-content);
|
|
102
99
|
@apply w-4 h-4 inline-block;
|
|
100
|
+
fill: var(--color-base-content);
|
|
103
101
|
}
|
|
104
102
|
.ds-close-btn {
|
|
105
103
|
@apply flex flex-nowrap text-right w-max float-right items-center;
|
|
@@ -116,35 +114,30 @@
|
|
|
116
114
|
.ds-btn-warning {
|
|
117
115
|
.ds-svg-icon {
|
|
118
116
|
fill: var(--color-white);
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
&.ds-svg-icon--more-vert {
|
|
118
|
+
@apply h-6 w-6 md:h-8 md:w-8;
|
|
119
|
+
}
|
|
122
120
|
}
|
|
123
121
|
}
|
|
124
122
|
.ds-btn-cta {
|
|
125
|
-
.ds-svg-icon--chevron {
|
|
126
|
-
@apply w-5 h-5 inline-block ml-2 mr-2 transition-all;
|
|
127
|
-
}
|
|
128
123
|
&:hover {
|
|
129
124
|
.ds-svg-icon--chevron {
|
|
130
125
|
@apply ml-4 mr-0;
|
|
131
126
|
}
|
|
132
127
|
}
|
|
128
|
+
.ds-svg-icon--chevron {
|
|
129
|
+
@apply w-5 h-5 inline-block ml-2 mr-2 transition-all;
|
|
130
|
+
}
|
|
133
131
|
}
|
|
134
132
|
.ds-btn-secondary {
|
|
135
133
|
.ds-svg-icon {
|
|
136
134
|
fill: var(--color-base-content);
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
135
|
+
&.ds-svg-icon--more-vert {
|
|
136
|
+
@apply h-6 w-6;
|
|
137
|
+
}
|
|
140
138
|
}
|
|
141
139
|
}
|
|
142
140
|
.ds-close-btn {
|
|
143
|
-
.ds-svg-icon--close {
|
|
144
|
-
@apply w-5 h-5 float-right;
|
|
145
|
-
@apply ml-1 !important;
|
|
146
|
-
fill: var(--color-link);
|
|
147
|
-
}
|
|
148
141
|
&:focus {
|
|
149
142
|
.ds-svg-icon--close {
|
|
150
143
|
fill: var(--color-link-active);
|
|
@@ -155,6 +148,11 @@
|
|
|
155
148
|
fill: var(--color-link-hover);
|
|
156
149
|
}
|
|
157
150
|
}
|
|
151
|
+
.ds-svg-icon--close {
|
|
152
|
+
@apply w-5 h-5 float-right;
|
|
153
|
+
@apply ml-1 !important;
|
|
154
|
+
fill: var(--color-link);
|
|
155
|
+
}
|
|
158
156
|
}
|
|
159
157
|
@media print {
|
|
160
158
|
.ds-btn {
|
package/src/components/card.css
CHANGED
|
@@ -1,70 +1,76 @@
|
|
|
1
1
|
.ds-card {
|
|
2
2
|
@apply mb-7 text-base-content;
|
|
3
|
-
&.ds-card--dense,
|
|
3
|
+
&.ds-card--dense,
|
|
4
|
+
.ds-dense & {
|
|
4
5
|
@apply mb-5;
|
|
5
6
|
.ds-card__body {
|
|
6
7
|
@apply gap-2 md:gap-3;
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
&.ds-card--border {
|
|
11
|
+
@apply border-2 border-base-content p-6;
|
|
12
|
+
&.ds-card--border-light {
|
|
13
|
+
@apply border;
|
|
14
|
+
}
|
|
15
|
+
&.ds-card--dense,
|
|
16
|
+
.ds-dense & {
|
|
17
|
+
@apply p-4 pt-3;
|
|
18
|
+
}
|
|
17
19
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
&.ds-card--border-top {
|
|
21
|
+
@apply border-t border-base-300 pt-4;
|
|
22
|
+
&.ds-card--border-dark {
|
|
23
|
+
@apply border-t-3;
|
|
24
|
+
}
|
|
25
|
+
&.ds-card--dense,
|
|
26
|
+
.ds-dense & {
|
|
27
|
+
@apply p-3;
|
|
28
|
+
}
|
|
23
29
|
}
|
|
24
|
-
&.ds-card--
|
|
25
|
-
@apply
|
|
30
|
+
&.ds-card--divider {
|
|
31
|
+
@apply border-b border-base-300 pb-4 mb-4;
|
|
26
32
|
}
|
|
27
|
-
|
|
28
|
-
.ds-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
&:hover {
|
|
41
|
-
&:after {
|
|
42
|
-
@apply right-1;
|
|
33
|
+
&.ds-card--cta {
|
|
34
|
+
.ds-card__body {
|
|
35
|
+
@apply pr-8 relative;
|
|
36
|
+
&::after {
|
|
37
|
+
@apply w-5 h-5 bg-contain bg-no-repeat bg-center absolute right-2 top-2;
|
|
38
|
+
content: '';
|
|
39
|
+
transition: all 0.1s ease;
|
|
40
|
+
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-hidden='true'> <path d='M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z' /> </svg>");
|
|
41
|
+
}
|
|
42
|
+
&:hover {
|
|
43
|
+
&::after {
|
|
44
|
+
@apply right-1;
|
|
45
|
+
}
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
|
-
}
|
|
46
48
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
.ds-card__heading {
|
|
50
|
+
@apply md:text-xl text-lg tracking-wide;
|
|
51
|
+
@apply leading-8 !important;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
&.ds-card--border-light {
|
|
55
|
+
@apply border-base-300;
|
|
56
|
+
}
|
|
57
|
+
&.ds-card--border-dark {
|
|
58
|
+
@apply border-base-content;
|
|
59
|
+
}
|
|
60
|
+
&.ds-card--full-height {
|
|
61
|
+
@apply h-full;
|
|
50
62
|
}
|
|
51
|
-
}
|
|
52
|
-
.ds-card--border-light {
|
|
53
|
-
@apply border-base-300;
|
|
54
|
-
}
|
|
55
|
-
.ds-card--border-dark {
|
|
56
|
-
@apply border-base-content;
|
|
57
63
|
}
|
|
58
64
|
.ds-card__body {
|
|
59
65
|
@apply flex flex-col gap-3 md:gap-4 h-full;
|
|
60
66
|
}
|
|
61
67
|
.ds-card__heading {
|
|
62
|
-
word-break: break-word;
|
|
63
68
|
@apply md:text-2xl text-xl font-bold;
|
|
69
|
+
word-break: break-word;
|
|
64
70
|
}
|
|
65
71
|
.ds-card__content {
|
|
66
|
-
word-break: break-word;
|
|
67
72
|
@apply text-base;
|
|
73
|
+
word-break: break-word;
|
|
68
74
|
font-size: var(--card__text-font-size);
|
|
69
75
|
line-height: var(--card__text-line-height);
|
|
70
76
|
}
|
|
@@ -73,8 +79,8 @@
|
|
|
73
79
|
}
|
|
74
80
|
@media print {
|
|
75
81
|
/* When ds-card__action is empty at print, content at :after limits its height. */
|
|
76
|
-
.ds-card__action
|
|
77
|
-
content:
|
|
82
|
+
.ds-card__action::after {
|
|
83
|
+
content: '';
|
|
78
84
|
}
|
|
79
85
|
}
|
|
80
86
|
|
|
@@ -85,8 +91,8 @@
|
|
|
85
91
|
.ds-link {
|
|
86
92
|
/* Clickable area will be at all the card with 'after' */
|
|
87
93
|
&::after {
|
|
88
|
-
content: "";
|
|
89
94
|
@apply block absolute top-0 bottom-0 right-0 left-0;
|
|
95
|
+
content: '';
|
|
90
96
|
}
|
|
91
97
|
}
|
|
92
98
|
}
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
}
|
|
10
10
|
.ds-checkboxes__input {
|
|
11
11
|
@apply w-8 h-8 left-0.5 md:top-0.5;
|
|
12
|
-
|
|
12
|
+
&::before {
|
|
13
13
|
@apply w-8 h-8;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
&::after {
|
|
16
|
+
@apply border-b-4 border-l-4;
|
|
16
17
|
top: 10px;
|
|
17
18
|
left: 7px;
|
|
18
19
|
width: 19px;
|
|
19
20
|
height: 10px;
|
|
20
|
-
@apply border-b-4 border-l-4;
|
|
21
21
|
}
|
|
22
22
|
&:focus {
|
|
23
|
-
|
|
23
|
+
&::before {
|
|
24
24
|
@apply border-3;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
@apply mb-4 md:mb-6;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
&.ds-checkboxes--horizontal {
|
|
33
|
+
@apply inline-flex flex-wrap items-baseline gap-4 md:gap-6;
|
|
34
|
+
}
|
|
35
35
|
}
|
|
36
36
|
.ds-checkboxes__item {
|
|
37
37
|
@apply block relative mb-4 pl-12 min-h-10;
|
|
@@ -45,27 +45,24 @@
|
|
|
45
45
|
.ds-checkboxes__input {
|
|
46
46
|
@apply absolute z-1 left-0.5 -top-0.5 m-0 opacity-100
|
|
47
47
|
w-10 h-10 cursor-pointer;
|
|
48
|
-
|
|
49
|
-
content: "";
|
|
50
|
-
-webkit-box-sizing: border-box;
|
|
51
|
-
box-sizing: border-box;
|
|
48
|
+
&::before {
|
|
52
49
|
@apply absolute top-0 left-0 w-10 h-10
|
|
53
50
|
border-solid border-base-content border-2 bg-base-100 opacity-100;
|
|
51
|
+
content: '';
|
|
52
|
+
box-sizing: border-box;
|
|
54
53
|
}
|
|
55
|
-
|
|
56
|
-
content: "";
|
|
54
|
+
&::after {
|
|
57
55
|
@apply absolute bg-transparent opacity-0 box-border
|
|
58
56
|
border-accent border-b-5 border-l-5 border-t-0 border-r-0;
|
|
57
|
+
content: '';
|
|
59
58
|
top: 11px;
|
|
60
59
|
left: 9px;
|
|
61
60
|
width: 23px;
|
|
62
61
|
height: 12px;
|
|
63
|
-
-webkit-transform: rotate(-45deg);
|
|
64
|
-
-ms-transform: rotate(-45deg);
|
|
65
62
|
transform: rotate(-45deg);
|
|
66
63
|
}
|
|
67
64
|
&:checked {
|
|
68
|
-
|
|
65
|
+
&::after {
|
|
69
66
|
@apply opacity-100;
|
|
70
67
|
}
|
|
71
68
|
}
|
|
@@ -73,7 +70,7 @@
|
|
|
73
70
|
outline: 3px solid transparent;
|
|
74
71
|
outline-offset: 1px;
|
|
75
72
|
box-shadow: 0 0 0 4px var(--color-focus);
|
|
76
|
-
|
|
73
|
+
&::before {
|
|
77
74
|
@apply border-4;
|
|
78
75
|
}
|
|
79
76
|
}
|
|
@@ -83,12 +80,6 @@
|
|
|
83
80
|
}
|
|
84
81
|
|
|
85
82
|
/* overrides */
|
|
86
|
-
|
|
87
|
-
.ds-checkboxes--horizontal {
|
|
88
|
-
.ds-choice-divider-text {
|
|
89
|
-
@apply min-w-max mx-2;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
83
|
.ds-checkboxes {
|
|
93
84
|
&.ds-checkboxes--dense,
|
|
94
85
|
.ds-dense & {
|
|
@@ -96,4 +87,10 @@
|
|
|
96
87
|
@apply mb-4 md:mb-6;
|
|
97
88
|
}
|
|
98
89
|
}
|
|
90
|
+
|
|
91
|
+
&.ds-checkboxes--horizontal {
|
|
92
|
+
.ds-choice-divider-text {
|
|
93
|
+
@apply min-w-max mx-2;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
99
96
|
}
|
package/src/components/chip.css
CHANGED
|
@@ -1,41 +1,40 @@
|
|
|
1
1
|
.ds-chips {
|
|
2
2
|
@apply flex flex-wrap list-none gap-2;
|
|
3
|
+
&.ds-chips--horizontal {
|
|
4
|
+
@apply md:flex md:flex-row md:flex-wrap;
|
|
5
|
+
}
|
|
3
6
|
.ds-chip:last-child .ds-chip__content {
|
|
4
7
|
@apply mr-0;
|
|
5
8
|
}
|
|
6
9
|
}
|
|
7
|
-
.ds-chips--horizontal {
|
|
8
|
-
@apply md:flex md:flex-row md:flex-wrap;
|
|
9
|
-
}
|
|
10
10
|
.ds-chip {
|
|
11
11
|
@apply list-none;
|
|
12
|
+
&:last-child {
|
|
13
|
+
.ds-chip__content {
|
|
14
|
+
@apply mr-0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
&.ds-chip--deletable {
|
|
18
|
+
.ds-chip__content {
|
|
19
|
+
&:hover {
|
|
20
|
+
@apply shadow-lg transition;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
12
24
|
.ds-chip__content {
|
|
13
25
|
@apply bg-base-100 text-base-content lg:text-base text-sm border-2 border-base-content
|
|
14
26
|
inline-flex items-center px-2 py-1 rounded shadow;
|
|
15
|
-
&[role=
|
|
27
|
+
&[role='button'] {
|
|
16
28
|
&:hover {
|
|
17
29
|
@apply shadow-lg text-base-content-invert bg-base-900 border-base-900 transition;
|
|
18
30
|
}
|
|
19
31
|
&:focus {
|
|
20
32
|
outline: 3px solid var(--color-focus);
|
|
21
33
|
outline-offset: 0;
|
|
22
|
-
-webkit-box-shadow: inset 0 0 0 2px;
|
|
23
34
|
box-shadow: inset 0 0 0 2px;
|
|
24
35
|
}
|
|
25
36
|
}
|
|
26
37
|
}
|
|
27
|
-
&:last-child {
|
|
28
|
-
.ds-chip__content {
|
|
29
|
-
@apply mr-0;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
.ds-chip--deletable {
|
|
34
|
-
.ds-chip__content {
|
|
35
|
-
&:hover {
|
|
36
|
-
@apply shadow-lg transition;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
38
|
}
|
|
40
39
|
.ds-chip__key-value {
|
|
41
40
|
@apply font-bold mr-2;
|
|
@@ -44,25 +43,25 @@
|
|
|
44
43
|
/* overrides */
|
|
45
44
|
|
|
46
45
|
.ds-chip {
|
|
47
|
-
|
|
48
|
-
.ds-
|
|
49
|
-
|
|
46
|
+
&.ds-chip--deletable {
|
|
47
|
+
.ds-chip__content {
|
|
48
|
+
.ds-svg-icon--close {
|
|
49
|
+
&:hover {
|
|
50
|
+
@apply cursor-pointer;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
50
53
|
}
|
|
51
|
-
|
|
54
|
+
}
|
|
55
|
+
.ds-chip__content {
|
|
56
|
+
&[role='button'] {
|
|
52
57
|
&:hover {
|
|
53
58
|
.ds-svg-icon--close {
|
|
54
59
|
fill: var(--color-base-content-invert);
|
|
55
60
|
}
|
|
56
61
|
}
|
|
57
62
|
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
.ds-chip--deletable {
|
|
61
|
-
.ds-chip__content {
|
|
62
63
|
.ds-svg-icon--close {
|
|
63
|
-
|
|
64
|
-
@apply cursor-pointer;
|
|
65
|
-
}
|
|
64
|
+
@apply w-4 h-4 ml-3;
|
|
66
65
|
}
|
|
67
66
|
}
|
|
68
67
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
1
|
+
@import 'tailwindcss/components';
|
|
2
|
+
@import './index.css';
|
|
@@ -1,41 +1,46 @@
|
|
|
1
1
|
.ds-copy-to-clipboard {
|
|
2
2
|
@apply flex w-fit;
|
|
3
|
+
|
|
4
|
+
&.ds-copy-to-clipboard--hidden {
|
|
5
|
+
@apply invisible w-0 h-0;
|
|
6
|
+
}
|
|
3
7
|
}
|
|
4
8
|
.ds-copy-to-clipboard__tooltip {
|
|
5
9
|
@apply relative;
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
&.ds-copy-to-clipboard__tooltip--dense,
|
|
11
|
+
.ds-dense & {
|
|
8
12
|
&::before {
|
|
9
|
-
|
|
10
|
-
@apply w-4 h-4 border-t-8 border-l-8 border-success transform rotate-45
|
|
11
|
-
absolute -top-1;
|
|
12
|
-
transform: rotate(45deg);
|
|
13
|
+
@apply w-2 h-2;
|
|
13
14
|
}
|
|
14
|
-
}
|
|
15
|
-
&.ds-copy-to-clipboard__tooltip--dense, .ds-dense & {
|
|
16
15
|
.ds-copy-to-clipboard__message {
|
|
17
16
|
@apply py-2 px-4;
|
|
18
17
|
}
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
}
|
|
19
|
+
&.ds-copy-to-clipboard__tooltip--right {
|
|
20
|
+
.ds-copy-to-clipboard__message {
|
|
21
|
+
@apply right-0;
|
|
22
|
+
&::before {
|
|
23
|
+
@apply right-4;
|
|
24
|
+
content: '';
|
|
25
|
+
}
|
|
21
26
|
}
|
|
22
27
|
}
|
|
23
|
-
|
|
24
|
-
.ds-copy-to-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
&.ds-copy-to-clipboard__tooltip--left {
|
|
29
|
+
.ds-copy-to-clipboard__message {
|
|
30
|
+
@apply left-0;
|
|
31
|
+
&::before {
|
|
32
|
+
@apply left-4;
|
|
33
|
+
content: '';
|
|
34
|
+
}
|
|
30
35
|
}
|
|
31
36
|
}
|
|
32
|
-
}
|
|
33
|
-
.ds-copy-to-clipboard__tooltip--left {
|
|
34
37
|
.ds-copy-to-clipboard__message {
|
|
35
|
-
@apply
|
|
38
|
+
@apply bg-success py-4 px-6 absolute mt-4 text-center z-50 w-fit md:w-max;
|
|
36
39
|
&::before {
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
@apply w-4 h-4 border-t-8 border-l-8 border-success transform rotate-45
|
|
41
|
+
absolute -top-1;
|
|
42
|
+
content: '';
|
|
43
|
+
transform: rotate(45deg);
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
}
|
|
@@ -45,10 +50,6 @@
|
|
|
45
50
|
}
|
|
46
51
|
}
|
|
47
52
|
|
|
48
|
-
.ds-copy-to-clipboard--hidden {
|
|
49
|
-
@apply invisible w-0 h-0;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
53
|
/* overrides */
|
|
53
54
|
|
|
54
55
|
.ds-copy-to-clipboard__tooltip {
|
|
@@ -11,21 +11,23 @@
|
|
|
11
11
|
}
|
|
12
12
|
&:focus {
|
|
13
13
|
background-color: var(--color-focus);
|
|
14
|
-
box-shadow:
|
|
15
|
-
|
|
14
|
+
box-shadow:
|
|
15
|
+
0 -2px var(--color-focus),
|
|
16
|
+
0 4px var(--color-base-content);
|
|
17
|
+
text-decoration: none;
|
|
16
18
|
}
|
|
17
19
|
&:focus-within {
|
|
18
20
|
@apply outline-none;
|
|
19
21
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
&.ds-details__summary--lg {
|
|
23
|
+
@apply font-semibold;
|
|
24
|
+
font-size: var(--details__summary--lg-font-size);
|
|
25
|
+
line-height: var(--details__summary--lg-line-height);
|
|
26
|
+
}
|
|
25
27
|
}
|
|
26
28
|
.ds-details__content {
|
|
27
29
|
@apply border-l-2 border-base-500 py-2 px-4 mt-4;
|
|
28
|
-
|
|
30
|
+
> *:last-child {
|
|
29
31
|
@apply mb-0;
|
|
30
32
|
}
|
|
31
|
-
}
|
|
33
|
+
}
|