@abstraks-dev/ui-library 1.1.7 → 1.1.9
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/components/Error.js +1 -1
- package/dist/components/Form.js +1 -1
- package/dist/components/Prompt.js +1 -1
- package/dist/styles/anchor.css +147 -0
- package/dist/styles/anchor.css.map +1 -0
- package/dist/styles/animation-accessibility.css +90 -0
- package/dist/styles/animation-accessibility.css.map +1 -0
- package/dist/styles/animation-toggle.css +223 -0
- package/dist/styles/animation-toggle.css.map +1 -0
- package/dist/styles/animation.css +3772 -0
- package/dist/styles/animation.css.map +1 -0
- package/dist/styles/avatar.css +349 -0
- package/dist/styles/avatar.css.map +1 -0
- package/dist/styles/button.css +491 -0
- package/dist/styles/button.css.map +1 -0
- package/dist/styles/card.css +306 -0
- package/dist/styles/card.css.map +1 -0
- package/dist/styles/checkbox.css +233 -0
- package/dist/styles/checkbox.css.map +1 -0
- package/dist/styles/crud.css +525 -0
- package/dist/styles/crud.css.map +1 -0
- package/dist/styles/dragAndDrop.css +400 -0
- package/dist/styles/dragAndDrop.css.map +1 -0
- package/dist/styles/error.css +311 -0
- package/dist/styles/error.css.map +1 -0
- package/dist/styles/footer.css +165 -0
- package/dist/styles/footer.css.map +1 -0
- package/dist/styles/form.css +492 -0
- package/dist/styles/form.css.map +1 -0
- package/dist/styles/grid.css +28 -0
- package/dist/styles/grid.css.map +1 -0
- package/dist/styles/header.css +345 -0
- package/dist/styles/header.css.map +1 -0
- package/dist/styles/heading.css +242 -0
- package/dist/styles/heading.css.map +1 -0
- package/dist/styles/hero.css +293 -0
- package/dist/styles/hero.css.map +1 -0
- package/dist/styles/htmlElements.css +129 -0
- package/dist/styles/htmlElements.css.map +1 -0
- package/dist/styles/image.css +10 -0
- package/dist/styles/image.css.map +1 -0
- package/dist/styles/label.css +407 -0
- package/dist/styles/label.css.map +1 -0
- package/dist/styles/list-item.css +6 -0
- package/dist/styles/list-item.css.map +1 -0
- package/dist/styles/loader.css +419 -0
- package/dist/styles/loader.css.map +1 -0
- package/dist/styles/logo.css +19 -0
- package/dist/styles/logo.css.map +1 -0
- package/dist/styles/menu-hover.css +142 -0
- package/dist/styles/menu-hover.css.map +1 -0
- package/dist/styles/paragraph.css +200 -0
- package/dist/styles/paragraph.css.map +1 -0
- package/dist/styles/prompt.css +168 -0
- package/dist/styles/prompt.css.map +1 -0
- package/dist/styles/radio.css +259 -0
- package/dist/styles/radio.css.map +1 -0
- package/dist/styles/select.css +403 -0
- package/dist/styles/select.css.map +1 -0
- package/dist/styles/side-menu.css +413 -0
- package/dist/styles/side-menu.css.map +1 -0
- package/dist/styles/tabs.css +562 -0
- package/dist/styles/tabs.css.map +1 -0
- package/dist/styles/text-area.css +451 -0
- package/dist/styles/text-area.css.map +1 -0
- package/dist/styles/text-input.css +243 -0
- package/dist/styles/text-input.css.map +1 -0
- package/dist/styles/toggle.css +3 -0
- package/dist/styles/toggle.css.map +1 -0
- package/dist/styles/unordered-list.css +9 -0
- package/dist/styles/unordered-list.css.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--small: (min-width: 607px);
|
|
3
|
+
--medium: (min-width: 768px);
|
|
4
|
+
--large: (min-width: 992px);
|
|
5
|
+
--xlarge: (min-width: 1200px);
|
|
6
|
+
--color-primary: #009900;
|
|
7
|
+
--color-primary-hover: rgba(1, 116, 1, 0.9);
|
|
8
|
+
--color-secondary: #7086f1;
|
|
9
|
+
--color-secondary-hover: rgba(83, 100, 185, 0.9);
|
|
10
|
+
--color-warning: #ff9800;
|
|
11
|
+
--color-warning-hover: rgba(214, 130, 4, 0.9);
|
|
12
|
+
--color-success: #57f500;
|
|
13
|
+
--color-success-hover: rgba(74, 207, 2, 0.9);
|
|
14
|
+
--color-error: #f44336;
|
|
15
|
+
--color-error-hover: rgba(216, 58, 47, 0.9);
|
|
16
|
+
--color-shade: rgba(0, 0, 0, 0.5);
|
|
17
|
+
--color-tint: rgba(250, 250, 250, 0.5);
|
|
18
|
+
--color-white: #fff;
|
|
19
|
+
--color-black: #000;
|
|
20
|
+
--color-font-body: #333;
|
|
21
|
+
--color-black-alpha: rgba(0, 0, 0, 0.6);
|
|
22
|
+
--focus-color: #4d90fe;
|
|
23
|
+
--shadow-primary: rgba(0, 153, 0, 0.2);
|
|
24
|
+
--shadow-primary-hover: rgba(0, 153, 0, 0.3);
|
|
25
|
+
--shadow-primary-strong: rgba(0, 153, 0, 0.4);
|
|
26
|
+
--shadow-primary-strongest: rgba(0, 153, 0, 0.5);
|
|
27
|
+
--shadow-secondary: rgba(112, 134, 241, 0.2);
|
|
28
|
+
--shadow-secondary-hover: rgba(112, 134, 241, 0.3);
|
|
29
|
+
--shadow-secondary-strong: rgba(112, 134, 241, 0.4);
|
|
30
|
+
--shadow-secondary-strongest: rgba(112, 134, 241, 0.5);
|
|
31
|
+
--shadow-success: rgba(87, 245, 0, 0.2);
|
|
32
|
+
--shadow-success-hover: rgba(87, 245, 0, 0.3);
|
|
33
|
+
--shadow-success-strong: rgba(87, 245, 0, 0.4);
|
|
34
|
+
--shadow-success-strongest: rgba(87, 245, 0, 0.5);
|
|
35
|
+
--shadow-error: rgba(244, 67, 54, 0.2);
|
|
36
|
+
--shadow-error-hover: rgba(244, 67, 54, 0.3);
|
|
37
|
+
--shadow-error-strong: rgba(244, 67, 54, 0.4);
|
|
38
|
+
--shadow-error-strongest: rgba(244, 67, 54, 0.5);
|
|
39
|
+
--shadow-warning: rgba(255, 152, 0, 0.2);
|
|
40
|
+
--shadow-warning-hover: rgba(255, 152, 0, 0.3);
|
|
41
|
+
--shadow-warning-strong: rgba(255, 152, 0, 0.4);
|
|
42
|
+
--shadow-warning-strongest: rgba(255, 152, 0, 0.5);
|
|
43
|
+
--border-radius-xs: 4px;
|
|
44
|
+
--border-radius-sm: 4px;
|
|
45
|
+
--border-radius-md: 6px;
|
|
46
|
+
--border-radius-lg: 8px;
|
|
47
|
+
--border-radius-xl: 10px;
|
|
48
|
+
--z-index-base: 1;
|
|
49
|
+
--z-index-low: 10;
|
|
50
|
+
--z-index-dropdown: 100;
|
|
51
|
+
--z-index-sticky: 200;
|
|
52
|
+
--z-index-popover: 300;
|
|
53
|
+
--z-index-tooltip: 400;
|
|
54
|
+
--z-index-overlay: 1000;
|
|
55
|
+
--z-index-modal: 1010;
|
|
56
|
+
--z-index-notification: 1020;
|
|
57
|
+
--gray-100: #f8f9fa;
|
|
58
|
+
--gray-200: #e9ecef;
|
|
59
|
+
--gray-300: #dee2e6;
|
|
60
|
+
--gray-400: #ced4da;
|
|
61
|
+
--gray-500: #adb5bd;
|
|
62
|
+
--gray-600: #6c757d;
|
|
63
|
+
--gray-700: #495057;
|
|
64
|
+
--gray-800: #343a40;
|
|
65
|
+
--gray-900: #212529;
|
|
66
|
+
--black: #000;
|
|
67
|
+
--color-muted-blue: #8793ab;
|
|
68
|
+
--heading-one: 2.5rem;
|
|
69
|
+
--heading-two: 2rem;
|
|
70
|
+
--heading-three: 1.75rem;
|
|
71
|
+
--heading-four: 1.5rem;
|
|
72
|
+
--heading-five: 1.25rem;
|
|
73
|
+
--heading-six: 1rem;
|
|
74
|
+
--font-family-body: Lato, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
75
|
+
--font-size-xs: 0.75rem;
|
|
76
|
+
--font-size-sm: 0.875rem;
|
|
77
|
+
--font-size-base: 1rem;
|
|
78
|
+
--font-size-lg: 1.125rem;
|
|
79
|
+
--font-size-xl: 1.25rem;
|
|
80
|
+
--line-height-tight: 1.25;
|
|
81
|
+
--line-height-base: 1.5;
|
|
82
|
+
--line-height-relaxed: 1.625;
|
|
83
|
+
--font-weight-light: 300;
|
|
84
|
+
--font-weight-normal: 400;
|
|
85
|
+
--font-weight-medium: 500;
|
|
86
|
+
--font-weight-semibold: 600;
|
|
87
|
+
--font-weight-bold: 700;
|
|
88
|
+
--spacing-xs: 0.25rem;
|
|
89
|
+
--spacing-sm: 0.5rem;
|
|
90
|
+
--spacing-md: 1rem;
|
|
91
|
+
--spacing-lg: 1.5rem;
|
|
92
|
+
--spacing-xl: 2rem;
|
|
93
|
+
--spacing-2xl: 3rem;
|
|
94
|
+
--text-color: #1f2937;
|
|
95
|
+
--text-muted: #6b7280;
|
|
96
|
+
--background-color: #ffffff;
|
|
97
|
+
--border-color: #d1d5db;
|
|
98
|
+
--border-color-hover: #9ca3af;
|
|
99
|
+
--error-text: #dc2626;
|
|
100
|
+
--error-background: #fef2f2;
|
|
101
|
+
--error-border: #fecaca;
|
|
102
|
+
--success-text: #059669;
|
|
103
|
+
--success-background: #f0fdf4;
|
|
104
|
+
--success-border: #bbf7d0;
|
|
105
|
+
--warning-text: #d97706;
|
|
106
|
+
--warning-background: #fffbeb;
|
|
107
|
+
--warning-border: #fed7aa;
|
|
108
|
+
--primary-color: #3b82f6;
|
|
109
|
+
--focus-ring-color: #3b82f6;
|
|
110
|
+
--border-radius: 0.375rem;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.card {
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-direction: column;
|
|
116
|
+
border-radius: 5px;
|
|
117
|
+
border: 1px solid #ced4da;
|
|
118
|
+
background-color: #f8f9fa;
|
|
119
|
+
position: relative;
|
|
120
|
+
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
121
|
+
}
|
|
122
|
+
.card:focus-within {
|
|
123
|
+
outline: 2px solid #4d90fe;
|
|
124
|
+
outline-offset: 2px;
|
|
125
|
+
}
|
|
126
|
+
.card:hover {
|
|
127
|
+
transform: translateY(-2px);
|
|
128
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
129
|
+
}
|
|
130
|
+
@media (min-width: 768px) {
|
|
131
|
+
.card {
|
|
132
|
+
display: inline-flex;
|
|
133
|
+
max-width: 400px;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
@media (min-width: 992px) {
|
|
137
|
+
.card {
|
|
138
|
+
max-width: 450px;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
@media (min-width: 1200px) {
|
|
142
|
+
.card {
|
|
143
|
+
max-width: 500px;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
.card .head {
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
justify-content: space-between;
|
|
150
|
+
padding: 20px;
|
|
151
|
+
border-bottom: 1px solid #dee2e6;
|
|
152
|
+
}
|
|
153
|
+
.card .head .ellipses {
|
|
154
|
+
position: relative;
|
|
155
|
+
}
|
|
156
|
+
.card .head .ellipses .ellipses-trigger {
|
|
157
|
+
background: none;
|
|
158
|
+
border: none;
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
padding: 8px;
|
|
161
|
+
border-radius: 4px;
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
transition: background-color 0.2s ease;
|
|
166
|
+
}
|
|
167
|
+
.card .head .ellipses .ellipses-trigger:hover {
|
|
168
|
+
background-color: #e9ecef;
|
|
169
|
+
}
|
|
170
|
+
.card .head .ellipses .ellipses-trigger:focus {
|
|
171
|
+
outline: 2px solid #4d90fe;
|
|
172
|
+
outline-offset: 2px;
|
|
173
|
+
background-color: #e9ecef;
|
|
174
|
+
}
|
|
175
|
+
.card .head .ellipses .ellipses-trigger[aria-expanded=true] {
|
|
176
|
+
background-color: #dee2e6;
|
|
177
|
+
}
|
|
178
|
+
.card .head .ellipses .ellipses-content {
|
|
179
|
+
display: flex;
|
|
180
|
+
z-index: 10;
|
|
181
|
+
position: absolute;
|
|
182
|
+
padding: 8px 0;
|
|
183
|
+
right: 0;
|
|
184
|
+
top: 100%;
|
|
185
|
+
margin-top: 4px;
|
|
186
|
+
min-width: 160px;
|
|
187
|
+
border-radius: 4px;
|
|
188
|
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
189
|
+
background-color: #fff;
|
|
190
|
+
border: 1px solid #dee2e6;
|
|
191
|
+
opacity: 1;
|
|
192
|
+
transform: scale(1);
|
|
193
|
+
transition: opacity 0.15s ease, transform 0.15s ease;
|
|
194
|
+
}
|
|
195
|
+
@media (min-width: 768px) {
|
|
196
|
+
.card .head .ellipses .ellipses-content {
|
|
197
|
+
right: 20px;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
.card .head .ellipses .ellipses-content .unordered-list {
|
|
201
|
+
margin: 0;
|
|
202
|
+
padding: 0;
|
|
203
|
+
list-style: none;
|
|
204
|
+
flex-direction: column;
|
|
205
|
+
}
|
|
206
|
+
.card .head .ellipses .ellipses-content .unordered-list .list-item {
|
|
207
|
+
padding: 8px 16px;
|
|
208
|
+
cursor: pointer;
|
|
209
|
+
transition: background-color 0.15s ease;
|
|
210
|
+
color: #333;
|
|
211
|
+
font-size: 14px;
|
|
212
|
+
}
|
|
213
|
+
.card .head .ellipses .ellipses-content .unordered-list .list-item:hover {
|
|
214
|
+
background-color: #f8f9fa;
|
|
215
|
+
}
|
|
216
|
+
.card .head .ellipses .ellipses-content .unordered-list .list-item:focus {
|
|
217
|
+
background-color: #f8f9fa;
|
|
218
|
+
outline: none;
|
|
219
|
+
}
|
|
220
|
+
.card .head .ellipses .ellipses-content .unordered-list .list-item:first-child {
|
|
221
|
+
border-radius: 4px 4px 0 0;
|
|
222
|
+
}
|
|
223
|
+
.card .head .ellipses .ellipses-content .unordered-list .list-item:last-child {
|
|
224
|
+
border-radius: 0 0 4px 4px;
|
|
225
|
+
}
|
|
226
|
+
.card .card-image {
|
|
227
|
+
width: 100%;
|
|
228
|
+
height: auto;
|
|
229
|
+
object-fit: cover;
|
|
230
|
+
display: block;
|
|
231
|
+
}
|
|
232
|
+
@media (min-width: 768px) {
|
|
233
|
+
.card .card-image {
|
|
234
|
+
max-height: 200px;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
@media (min-width: 992px) {
|
|
238
|
+
.card .card-image {
|
|
239
|
+
max-height: 250px;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
.card .card-title {
|
|
243
|
+
padding: 20px 20px 10px 20px;
|
|
244
|
+
margin: 0;
|
|
245
|
+
color: #333;
|
|
246
|
+
line-height: 1.3;
|
|
247
|
+
}
|
|
248
|
+
@media (min-width: 768px) {
|
|
249
|
+
.card .card-title {
|
|
250
|
+
padding: 16px 20px 8px 20px;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
.card .card-subtitle {
|
|
254
|
+
padding: 0 20px 10px 20px;
|
|
255
|
+
margin: 0;
|
|
256
|
+
color: #6c757d;
|
|
257
|
+
font-size: 14px;
|
|
258
|
+
line-height: 1.4;
|
|
259
|
+
}
|
|
260
|
+
@media (min-width: 768px) {
|
|
261
|
+
.card .card-subtitle {
|
|
262
|
+
padding: 0 20px 8px 20px;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
.card .card__body {
|
|
266
|
+
padding: 0 20px 20px 20px;
|
|
267
|
+
margin: 0;
|
|
268
|
+
color: #333;
|
|
269
|
+
line-height: 1.6;
|
|
270
|
+
flex-grow: 1;
|
|
271
|
+
}
|
|
272
|
+
@media (min-width: 768px) {
|
|
273
|
+
.card .card__body {
|
|
274
|
+
padding: 0 20px 16px 20px;
|
|
275
|
+
font-size: 15px;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
@media (min-width: 992px) {
|
|
279
|
+
.card .card__body {
|
|
280
|
+
font-size: 16px;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
@media (prefers-contrast: high) {
|
|
284
|
+
.card {
|
|
285
|
+
border-width: 2px;
|
|
286
|
+
box-shadow: none;
|
|
287
|
+
}
|
|
288
|
+
.card:hover {
|
|
289
|
+
transform: none;
|
|
290
|
+
box-shadow: none;
|
|
291
|
+
border-color: #000;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
@media (prefers-reduced-motion: reduce) {
|
|
295
|
+
.card {
|
|
296
|
+
transition: none;
|
|
297
|
+
}
|
|
298
|
+
.card:hover {
|
|
299
|
+
transform: none;
|
|
300
|
+
}
|
|
301
|
+
.card .ellipses-content {
|
|
302
|
+
transition: none;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/*# sourceMappingURL=card.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/styles/_variables.scss","../../src/styles/card.scss"],"names":[],"mappings":"AA2RA;EAJE;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;;;ACrRF;EACC;EACA;EACA;EACA;EACA,kBD6EU;EC5EV;EACA;;AAGA;EACC;EACA;;AAGD;EACC;EACA;;AAGD;EApBD;IAqBE;IACA;;;AAGD;EAzBD;IA0BE;;;AAGD;EA7BD;IA8BE;;;AAGD;EACC;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC,kBD4BM;;ACzBP;EACC;EACA;EACA,kBDsBM;;ACnBP;EACC,kBDmBM;;ACfR;EACC;EACA,SDHU;ECIV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA,kBD1DU;EC2DV;EAGA;EACA;EACA;;AAEA;EApBD;IAqBE;;;AAGD;EACC;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA,OD9EY;EC+EZ;;AAEA;EACC,kBDzBI;;AC4BL;EACC,kBD7BI;EC8BJ;;AAGD;EACC;;AAGD;EACC;;AAQN;EACC;EACA;EACA;EACA;;AAEA;EAND;IAOE;;;AAGD;EAVD;IAWE;;;AAIF;EACC;EACA;EACA,ODzHgB;EC0HhB;;AAEA;EAND;IAOE;;;AAIF;EACC;EACA;EACA,ODtES;ECuET;EACA;;AAEA;EAPD;IAQE;;;AAIF;EACC;EACA;EACA,ODhJgB;ECiJhB;EACA;;AAEA;EAPD;IAQE;IACA;;;AAGD;EAZD;IAaE;;;AAKF;EAxLD;IAyLE;IACA;;EAEA;IACC;IACA;IACA,cDvKW;;;AC4Kb;EApMD;IAqME;;EAEA;IACC;;EAGD;IACC","file":"card.css"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--small: (min-width: 607px);
|
|
3
|
+
--medium: (min-width: 768px);
|
|
4
|
+
--large: (min-width: 992px);
|
|
5
|
+
--xlarge: (min-width: 1200px);
|
|
6
|
+
--color-primary: #009900;
|
|
7
|
+
--color-primary-hover: rgba(1, 116, 1, 0.9);
|
|
8
|
+
--color-secondary: #7086f1;
|
|
9
|
+
--color-secondary-hover: rgba(83, 100, 185, 0.9);
|
|
10
|
+
--color-warning: #ff9800;
|
|
11
|
+
--color-warning-hover: rgba(214, 130, 4, 0.9);
|
|
12
|
+
--color-success: #57f500;
|
|
13
|
+
--color-success-hover: rgba(74, 207, 2, 0.9);
|
|
14
|
+
--color-error: #f44336;
|
|
15
|
+
--color-error-hover: rgba(216, 58, 47, 0.9);
|
|
16
|
+
--color-shade: rgba(0, 0, 0, 0.5);
|
|
17
|
+
--color-tint: rgba(250, 250, 250, 0.5);
|
|
18
|
+
--color-white: #fff;
|
|
19
|
+
--color-black: #000;
|
|
20
|
+
--color-font-body: #333;
|
|
21
|
+
--color-black-alpha: rgba(0, 0, 0, 0.6);
|
|
22
|
+
--focus-color: #4d90fe;
|
|
23
|
+
--shadow-primary: rgba(0, 153, 0, 0.2);
|
|
24
|
+
--shadow-primary-hover: rgba(0, 153, 0, 0.3);
|
|
25
|
+
--shadow-primary-strong: rgba(0, 153, 0, 0.4);
|
|
26
|
+
--shadow-primary-strongest: rgba(0, 153, 0, 0.5);
|
|
27
|
+
--shadow-secondary: rgba(112, 134, 241, 0.2);
|
|
28
|
+
--shadow-secondary-hover: rgba(112, 134, 241, 0.3);
|
|
29
|
+
--shadow-secondary-strong: rgba(112, 134, 241, 0.4);
|
|
30
|
+
--shadow-secondary-strongest: rgba(112, 134, 241, 0.5);
|
|
31
|
+
--shadow-success: rgba(87, 245, 0, 0.2);
|
|
32
|
+
--shadow-success-hover: rgba(87, 245, 0, 0.3);
|
|
33
|
+
--shadow-success-strong: rgba(87, 245, 0, 0.4);
|
|
34
|
+
--shadow-success-strongest: rgba(87, 245, 0, 0.5);
|
|
35
|
+
--shadow-error: rgba(244, 67, 54, 0.2);
|
|
36
|
+
--shadow-error-hover: rgba(244, 67, 54, 0.3);
|
|
37
|
+
--shadow-error-strong: rgba(244, 67, 54, 0.4);
|
|
38
|
+
--shadow-error-strongest: rgba(244, 67, 54, 0.5);
|
|
39
|
+
--shadow-warning: rgba(255, 152, 0, 0.2);
|
|
40
|
+
--shadow-warning-hover: rgba(255, 152, 0, 0.3);
|
|
41
|
+
--shadow-warning-strong: rgba(255, 152, 0, 0.4);
|
|
42
|
+
--shadow-warning-strongest: rgba(255, 152, 0, 0.5);
|
|
43
|
+
--border-radius-xs: 4px;
|
|
44
|
+
--border-radius-sm: 4px;
|
|
45
|
+
--border-radius-md: 6px;
|
|
46
|
+
--border-radius-lg: 8px;
|
|
47
|
+
--border-radius-xl: 10px;
|
|
48
|
+
--z-index-base: 1;
|
|
49
|
+
--z-index-low: 10;
|
|
50
|
+
--z-index-dropdown: 100;
|
|
51
|
+
--z-index-sticky: 200;
|
|
52
|
+
--z-index-popover: 300;
|
|
53
|
+
--z-index-tooltip: 400;
|
|
54
|
+
--z-index-overlay: 1000;
|
|
55
|
+
--z-index-modal: 1010;
|
|
56
|
+
--z-index-notification: 1020;
|
|
57
|
+
--gray-100: #f8f9fa;
|
|
58
|
+
--gray-200: #e9ecef;
|
|
59
|
+
--gray-300: #dee2e6;
|
|
60
|
+
--gray-400: #ced4da;
|
|
61
|
+
--gray-500: #adb5bd;
|
|
62
|
+
--gray-600: #6c757d;
|
|
63
|
+
--gray-700: #495057;
|
|
64
|
+
--gray-800: #343a40;
|
|
65
|
+
--gray-900: #212529;
|
|
66
|
+
--black: #000;
|
|
67
|
+
--color-muted-blue: #8793ab;
|
|
68
|
+
--heading-one: 2.5rem;
|
|
69
|
+
--heading-two: 2rem;
|
|
70
|
+
--heading-three: 1.75rem;
|
|
71
|
+
--heading-four: 1.5rem;
|
|
72
|
+
--heading-five: 1.25rem;
|
|
73
|
+
--heading-six: 1rem;
|
|
74
|
+
--font-family-body: Lato, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
75
|
+
--font-size-xs: 0.75rem;
|
|
76
|
+
--font-size-sm: 0.875rem;
|
|
77
|
+
--font-size-base: 1rem;
|
|
78
|
+
--font-size-lg: 1.125rem;
|
|
79
|
+
--font-size-xl: 1.25rem;
|
|
80
|
+
--line-height-tight: 1.25;
|
|
81
|
+
--line-height-base: 1.5;
|
|
82
|
+
--line-height-relaxed: 1.625;
|
|
83
|
+
--font-weight-light: 300;
|
|
84
|
+
--font-weight-normal: 400;
|
|
85
|
+
--font-weight-medium: 500;
|
|
86
|
+
--font-weight-semibold: 600;
|
|
87
|
+
--font-weight-bold: 700;
|
|
88
|
+
--spacing-xs: 0.25rem;
|
|
89
|
+
--spacing-sm: 0.5rem;
|
|
90
|
+
--spacing-md: 1rem;
|
|
91
|
+
--spacing-lg: 1.5rem;
|
|
92
|
+
--spacing-xl: 2rem;
|
|
93
|
+
--spacing-2xl: 3rem;
|
|
94
|
+
--text-color: #1f2937;
|
|
95
|
+
--text-muted: #6b7280;
|
|
96
|
+
--background-color: #ffffff;
|
|
97
|
+
--border-color: #d1d5db;
|
|
98
|
+
--border-color-hover: #9ca3af;
|
|
99
|
+
--error-text: #dc2626;
|
|
100
|
+
--error-background: #fef2f2;
|
|
101
|
+
--error-border: #fecaca;
|
|
102
|
+
--success-text: #059669;
|
|
103
|
+
--success-background: #f0fdf4;
|
|
104
|
+
--success-border: #bbf7d0;
|
|
105
|
+
--warning-text: #d97706;
|
|
106
|
+
--warning-background: #fffbeb;
|
|
107
|
+
--warning-border: #fed7aa;
|
|
108
|
+
--primary-color: #3b82f6;
|
|
109
|
+
--focus-ring-color: #3b82f6;
|
|
110
|
+
--border-radius: 0.375rem;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.required {
|
|
114
|
+
color: red;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.checkbox-wrapper input[type=checkbox].checkbox {
|
|
118
|
+
position: absolute;
|
|
119
|
+
opacity: 0;
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
height: 20px;
|
|
122
|
+
width: 20px;
|
|
123
|
+
margin: 0;
|
|
124
|
+
z-index: 1;
|
|
125
|
+
}
|
|
126
|
+
.checkbox-wrapper .custom-checkbox {
|
|
127
|
+
position: relative;
|
|
128
|
+
display: inline-block;
|
|
129
|
+
width: 20px;
|
|
130
|
+
height: 20px;
|
|
131
|
+
background-color: #fff;
|
|
132
|
+
border: 2px solid #ced4da;
|
|
133
|
+
border-radius: 4px;
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
transition: all 0.2s ease;
|
|
136
|
+
}
|
|
137
|
+
.checkbox-wrapper .custom-checkbox::after {
|
|
138
|
+
content: "";
|
|
139
|
+
position: absolute;
|
|
140
|
+
display: none;
|
|
141
|
+
left: 6px;
|
|
142
|
+
top: 2px;
|
|
143
|
+
width: 6px;
|
|
144
|
+
height: 10px;
|
|
145
|
+
border: solid #fff;
|
|
146
|
+
border-width: 0 2px 2px 0;
|
|
147
|
+
transform: rotate(45deg);
|
|
148
|
+
}
|
|
149
|
+
.checkbox-wrapper input[type=checkbox].checkbox:checked + .custom-checkbox {
|
|
150
|
+
background-color: #009900;
|
|
151
|
+
border-color: #009900;
|
|
152
|
+
}
|
|
153
|
+
.checkbox-wrapper input[type=checkbox].checkbox:checked + .custom-checkbox::after {
|
|
154
|
+
display: block;
|
|
155
|
+
}
|
|
156
|
+
.checkbox-wrapper .custom-checkbox:hover {
|
|
157
|
+
border-color: #009900;
|
|
158
|
+
}
|
|
159
|
+
.checkbox-wrapper input[type=checkbox].checkbox:checked + .custom-checkbox:hover {
|
|
160
|
+
background-color: rgba(1, 116, 1, 0.9);
|
|
161
|
+
border-color: rgba(1, 116, 1, 0.9);
|
|
162
|
+
}
|
|
163
|
+
.checkbox-wrapper input[type=checkbox].checkbox:focus + .custom-checkbox {
|
|
164
|
+
outline: 2px solid #009900;
|
|
165
|
+
outline-offset: 2px;
|
|
166
|
+
box-shadow: 0 0 0 3px rgba(0, 153, 0, 0.3);
|
|
167
|
+
}
|
|
168
|
+
.checkbox-wrapper input[type=checkbox].checkbox:focus-visible + .custom-checkbox {
|
|
169
|
+
outline: 2px solid #009900;
|
|
170
|
+
outline-offset: 2px;
|
|
171
|
+
box-shadow: 0 0 0 3px rgba(0, 153, 0, 0.3);
|
|
172
|
+
}
|
|
173
|
+
.checkbox-wrapper input[type=checkbox].checkbox:focus:not(:focus-visible) + .custom-checkbox {
|
|
174
|
+
outline: none;
|
|
175
|
+
box-shadow: none;
|
|
176
|
+
}
|
|
177
|
+
.checkbox-wrapper input[type=checkbox].checkbox:disabled + .custom-checkbox {
|
|
178
|
+
background-color: #e9ecef;
|
|
179
|
+
border-color: #dee2e6;
|
|
180
|
+
cursor: not-allowed;
|
|
181
|
+
}
|
|
182
|
+
.checkbox-wrapper input[type=checkbox].checkbox:disabled + .custom-checkbox::after {
|
|
183
|
+
border-color: #adb5bd;
|
|
184
|
+
}
|
|
185
|
+
@media (prefers-contrast: high) {
|
|
186
|
+
.checkbox-wrapper .custom-checkbox {
|
|
187
|
+
border-width: 3px;
|
|
188
|
+
border-color: ButtonText;
|
|
189
|
+
}
|
|
190
|
+
.checkbox-wrapper input[type=checkbox].checkbox:checked + .custom-checkbox {
|
|
191
|
+
background-color: ButtonText;
|
|
192
|
+
border-color: ButtonText;
|
|
193
|
+
}
|
|
194
|
+
.checkbox-wrapper input[type=checkbox].checkbox:checked + .custom-checkbox::after {
|
|
195
|
+
border-color: ButtonFace;
|
|
196
|
+
}
|
|
197
|
+
.checkbox-wrapper input[type=checkbox].checkbox:focus + .custom-checkbox {
|
|
198
|
+
outline: 3px solid Highlight;
|
|
199
|
+
outline-offset: 2px;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
@media (prefers-reduced-motion: reduce) {
|
|
203
|
+
.checkbox-wrapper .custom-checkbox {
|
|
204
|
+
transition: none;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
.checkbox-wrapper .label {
|
|
208
|
+
display: flex;
|
|
209
|
+
flex-direction: row;
|
|
210
|
+
align-items: center;
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
position: relative;
|
|
213
|
+
}
|
|
214
|
+
.checkbox-wrapper .label input[type=checkbox].checkbox {
|
|
215
|
+
order: 1;
|
|
216
|
+
}
|
|
217
|
+
.checkbox-wrapper .label .custom-checkbox {
|
|
218
|
+
order: 1;
|
|
219
|
+
margin-right: 0;
|
|
220
|
+
}
|
|
221
|
+
.checkbox-wrapper .label:disabled {
|
|
222
|
+
cursor: not-allowed;
|
|
223
|
+
}
|
|
224
|
+
.checkbox-wrapper .label-text {
|
|
225
|
+
order: 2;
|
|
226
|
+
margin-left: 10px;
|
|
227
|
+
}
|
|
228
|
+
.checkbox-wrapper .label-text:empty {
|
|
229
|
+
display: none;
|
|
230
|
+
margin-left: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/*# sourceMappingURL=checkbox.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/styles/_variables.scss","../../src/styles/checkbox.scss"],"names":[],"mappings":"AA2RA;EAJE;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;;;ACpRF;EACC;;;AAKA;EACC;EACA;EACA;EACA;EACA;EACA;EACA,SDqDa;;ACjDd;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKF;EACC,kBDzCc;EC0Cd,cD1Cc;;AC4Cd;EACC;;AAKF;EACC,cDnDc;;ACsDf;EACC,kBDtDoB;ECuDpB,cDvDoB;;AC2DrB;EACC;EACA;EACA;;AAID;EACC;EACA;EACA;;AAID;EACC;EACA;;AAID;EACC,kBDHS;ECIT,cDHS;ECIT;;AAEA;EACC,cDLQ;;ACUV;EACC;IACC;IACA;;EAGD;IACC;IACA;;EAEA;IACC;;EAIF;IACC;IACA;;;AAKF;EACC;IACC;;;AAKF;EACC;EACA;EACA;EACA;EACA;;AAGA;EACC;;AAGD;EACC;EACA;;AAGD;EACC;;AAIF;EACC;EACA;;AAGA;EACC;EACA","file":"checkbox.css"}
|