@idds/styles 1.0.26
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/README.md +147 -0
- package/package.json +55 -0
- package/src/colors/brands/bgn.css +29 -0
- package/src/colors/brands/bkn.css +32 -0
- package/src/colors/brands/inagov.css +39 -0
- package/src/colors/brands/inaku.css +28 -0
- package/src/colors/brands/inapas.css +28 -0
- package/src/colors/brands/lan.css +38 -0
- package/src/colors/brands/pan-rb.css +30 -0
- package/src/colors/index.css +11 -0
- package/src/colors/primitives/index.css +150 -0
- package/src/colors/product/index.css +205 -0
- package/src/colors/utilities/index.css +77 -0
- package/src/components/accordion-card.css +99 -0
- package/src/components/accordion.css +120 -0
- package/src/components/action-dropdown.css +140 -0
- package/src/components/alert.css +180 -0
- package/src/components/avatar.css +182 -0
- package/src/components/badge.css +244 -0
- package/src/components/bottom-sheet.css +61 -0
- package/src/components/breadcrumb.css +94 -0
- package/src/components/button-group.css +130 -0
- package/src/components/button.css +233 -0
- package/src/components/card.css +488 -0
- package/src/components/carousel.css +100 -0
- package/src/components/chart.css +81 -0
- package/src/components/checkbox.css +211 -0
- package/src/components/chip.css +228 -0
- package/src/components/collapse.css +84 -0
- package/src/components/confirmation.css +131 -0
- package/src/components/date-picker.css +1063 -0
- package/src/components/divider.css +174 -0
- package/src/components/drawer.css +757 -0
- package/src/components/dropdown.css +369 -0
- package/src/components/field-input-table.css +347 -0
- package/src/components/file-upload.css +357 -0
- package/src/components/input-search.css +428 -0
- package/src/components/linear-progress-indicator.css +34 -0
- package/src/components/modal.css +497 -0
- package/src/components/month-picker.css +325 -0
- package/src/components/multiple-choice-grid.css +383 -0
- package/src/components/pagination.css +415 -0
- package/src/components/password-input.css +472 -0
- package/src/components/phone-input.css +412 -0
- package/src/components/progress-bar.css +447 -0
- package/src/components/radio-input.css +263 -0
- package/src/components/reset.css +431 -0
- package/src/components/select-dropdown.css +663 -0
- package/src/components/select-option.css +217 -0
- package/src/components/skeleton.css +488 -0
- package/src/components/spinner.css +450 -0
- package/src/components/stepper.css +209 -0
- package/src/components/tab-horizontal.css +278 -0
- package/src/components/tab-vertical.css +261 -0
- package/src/components/table-progress-bar.css +48 -0
- package/src/components/table.css +538 -0
- package/src/components/text-area.css +216 -0
- package/src/components/text-field.css +275 -0
- package/src/components/theme-toggle.css +259 -0
- package/src/components/time-picker.css +436 -0
- package/src/components/toast.css +245 -0
- package/src/components/toggle.css +223 -0
- package/src/components/tooltip.css +452 -0
- package/src/components/year-picker.css +423 -0
- package/src/index.css +3 -0
- package/src/tailwind/css/bgn.css +43 -0
- package/src/tailwind/css/bkn.css +37 -0
- package/src/tailwind/css/idds.css +231 -0
- package/src/tailwind/css/inagov.css +33 -0
- package/src/tailwind/css/inaku.css +33 -0
- package/src/tailwind/css/inapas.css +33 -0
- package/src/tailwind/css/lan.css +43 -0
- package/src/tailwind/css/pan-rb.css +35 -0
- package/src/tailwind/ts/bgn.ts +20 -0
- package/src/tailwind/ts/bkn.ts +38 -0
- package/src/tailwind/ts/idds.ts +240 -0
- package/src/tailwind/ts/inagov.ts +35 -0
- package/src/tailwind/ts/inaku.ts +35 -0
- package/src/tailwind/ts/inapas.ts +35 -0
- package/src/tailwind/ts/lan.ts +45 -0
- package/src/tailwind/ts/panrb.ts +37 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/* Toast Component Styles */
|
|
2
|
+
|
|
3
|
+
/* Base container */
|
|
4
|
+
.ina-toast-container {
|
|
5
|
+
position: fixed;
|
|
6
|
+
z-index: 1000;
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
display: flex;
|
|
9
|
+
gap: var(--ina-spacing-2);
|
|
10
|
+
padding: var(--ina-spacing-2);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Position variants */
|
|
14
|
+
.ina-toast-container--top-left {
|
|
15
|
+
top: var(--ina-spacing-4);
|
|
16
|
+
left: var(--ina-spacing-4);
|
|
17
|
+
align-items: flex-start;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ina-toast-container--top-right {
|
|
22
|
+
top: var(--ina-spacing-4);
|
|
23
|
+
right: var(--ina-spacing-4);
|
|
24
|
+
align-items: flex-end;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ina-toast-container--top-middle {
|
|
29
|
+
top: var(--ina-spacing-4);
|
|
30
|
+
left: 50%;
|
|
31
|
+
transform: translateX(-50%);
|
|
32
|
+
align-items: center;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ina-toast-container--bottom-left {
|
|
37
|
+
bottom: var(--ina-spacing-4);
|
|
38
|
+
left: var(--ina-spacing-4);
|
|
39
|
+
align-items: flex-start;
|
|
40
|
+
flex-direction: column-reverse;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ina-toast-container--bottom-right {
|
|
44
|
+
bottom: var(--ina-spacing-4);
|
|
45
|
+
right: var(--ina-spacing-4);
|
|
46
|
+
align-items: flex-end;
|
|
47
|
+
flex-direction: column-reverse;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.ina-toast-container--bottom-middle {
|
|
51
|
+
bottom: var(--ina-spacing-4);
|
|
52
|
+
left: 50%;
|
|
53
|
+
transform: translateX(-50%);
|
|
54
|
+
align-items: center;
|
|
55
|
+
flex-direction: column-reverse;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ina-toast-container--left-middle {
|
|
59
|
+
top: 50%;
|
|
60
|
+
left: var(--ina-spacing-4);
|
|
61
|
+
transform: translateY(-50%);
|
|
62
|
+
align-items: flex-start;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.ina-toast-container--right-middle {
|
|
67
|
+
top: 50%;
|
|
68
|
+
right: var(--ina-spacing-4);
|
|
69
|
+
transform: translateY(-50%);
|
|
70
|
+
align-items: flex-end;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Toast item wrapper */
|
|
75
|
+
.ina-toast-item {
|
|
76
|
+
pointer-events: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Toast itself */
|
|
80
|
+
.ina-toast {
|
|
81
|
+
pointer-events: auto;
|
|
82
|
+
border-radius: var(--ina-radius-lg);
|
|
83
|
+
box-shadow: 0 12px 16px -4px rgba(0, 0, 0, 0.1),
|
|
84
|
+
0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
85
|
+
padding: var(--ina-spacing-4);
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
width: 100%;
|
|
89
|
+
max-width: 24rem;
|
|
90
|
+
transition: opacity 300ms ease-in-out;
|
|
91
|
+
background-color: var(--ina-background-primary);
|
|
92
|
+
border: 1px solid var(--ina-stroke-primary);
|
|
93
|
+
color: var(--ina-content-primary);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Toast content */
|
|
97
|
+
.ina-toast__content {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
flex: 1;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.ina-toast__icon {
|
|
104
|
+
margin-right: var(--ina-spacing-2);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Toast text area */
|
|
108
|
+
.ina-toast__text-area {
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ina-toast__title {
|
|
114
|
+
font-size: var(--ina-font-xs);
|
|
115
|
+
font-weight: var(--ina-font-semibold);
|
|
116
|
+
line-height: 1.4;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.ina-toast__description {
|
|
120
|
+
margin-top: var(--ina-spacing-1);
|
|
121
|
+
font-size: var(--ina-font-2xs);
|
|
122
|
+
line-height: 1.4;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Action area */
|
|
126
|
+
.ina-toast__action-area {
|
|
127
|
+
margin-left: var(--ina-spacing-3);
|
|
128
|
+
flex-shrink: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Close button */
|
|
132
|
+
.ina-toast__close-button {
|
|
133
|
+
margin-left: var(--ina-spacing-2);
|
|
134
|
+
flex-shrink: 0;
|
|
135
|
+
background: none;
|
|
136
|
+
border: none;
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
padding: 0;
|
|
139
|
+
display: inline-flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
transition: stroke-width var(--ina-transition-base);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ina-toast__close-button:hover {
|
|
146
|
+
stroke-width: 3;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.ina-toast__close-icon {
|
|
150
|
+
width: 16px;
|
|
151
|
+
height: 16px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* Style variants */
|
|
155
|
+
.ina-toast--style-outline {
|
|
156
|
+
}
|
|
157
|
+
.ina-toast--style-solid {
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Variant styles - Outline */
|
|
161
|
+
.ina-toast--variant-neutral.ina-toast--style-outline {
|
|
162
|
+
background-color: var(--ina-neutral-25) !important;
|
|
163
|
+
border: 1px solid var(--ina-content-primary) !important;
|
|
164
|
+
color: var(--ina-content-primary) !important;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ina-toast--variant-positive.ina-toast--style-outline {
|
|
168
|
+
background-color: var(--ina-positive-100) !important;
|
|
169
|
+
border: 1px solid var(--ina-positive-500) !important;
|
|
170
|
+
color: var(--ina-positive-500) !important;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.ina-toast--variant-warning.ina-toast--style-outline {
|
|
174
|
+
background-color: var(--ina-warning-100) !important;
|
|
175
|
+
border: 1px solid var(--ina-warning-500) !important;
|
|
176
|
+
color: var(--ina-warning-500) !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.ina-toast--variant-info.ina-toast--style-outline {
|
|
180
|
+
background-color: var(--ina-info-100) !important;
|
|
181
|
+
border: 1px solid var(--ina-info-300) !important;
|
|
182
|
+
color: var(--ina-info-500) !important;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.ina-toast--variant-negative.ina-toast--style-outline {
|
|
186
|
+
background-color: var(--ina-negative-100) !important;
|
|
187
|
+
border: 1px solid var(--ina-negative-300) !important;
|
|
188
|
+
color: var(--ina-negative-500) !important;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* Variant styles - Solid */
|
|
192
|
+
.ina-toast--variant-neutral.ina-toast--style-solid {
|
|
193
|
+
background-color: var(--ina-neutral-25) !important;
|
|
194
|
+
border: 1px solid var(--ina-content-primary) !important;
|
|
195
|
+
color: var(--ina-content-primary) !important;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.ina-toast--variant-positive.ina-toast--style-solid {
|
|
199
|
+
background-color: var(--ina-positive-500) !important;
|
|
200
|
+
border: 1px solid var(--ina-positive-500) !important;
|
|
201
|
+
color: var(--ina-white) !important;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.ina-toast--variant-warning.ina-toast--style-solid {
|
|
205
|
+
background-color: var(--ina-warning-500) !important;
|
|
206
|
+
border: 1px solid var(--ina-warning-500) !important;
|
|
207
|
+
color: var(--ina-white) !important;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.ina-toast--variant-info.ina-toast--style-solid {
|
|
211
|
+
background-color: var(--ina-info-500) !important;
|
|
212
|
+
border: 1px solid var(--ina-info-500) !important;
|
|
213
|
+
color: var(--ina-white) !important;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ina-toast--variant-negative.ina-toast--style-solid {
|
|
217
|
+
background-color: var(--ina-negative-500) !important;
|
|
218
|
+
border: 1px solid var(--ina-negative-500) !important;
|
|
219
|
+
color: var(--ina-white) !important;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* Visibility states */
|
|
223
|
+
.ina-toast--visible {
|
|
224
|
+
opacity: 1;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.ina-toast--hidden {
|
|
228
|
+
opacity: 0;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* Responsive adjustments */
|
|
232
|
+
@media (max-width: 640px) {
|
|
233
|
+
.ina-toast {
|
|
234
|
+
max-width: calc(100vw - var(--ina-spacing-8));
|
|
235
|
+
padding: var(--ina-spacing-3);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.ina-toast__title {
|
|
239
|
+
font-size: var(--ina-font-sm);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.ina-toast__description {
|
|
243
|
+
font-size: var(--ina-font-xs);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/* =========================== */
|
|
2
|
+
/* TOGGLE SWITCH STYLES */
|
|
3
|
+
/* =========================== */
|
|
4
|
+
|
|
5
|
+
.ina-toggle {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
user-select: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ina-toggle--disabled {
|
|
14
|
+
cursor: not-allowed;
|
|
15
|
+
opacity: 0.6;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Hide the actual input */
|
|
19
|
+
.ina-toggle__input {
|
|
20
|
+
position: absolute;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
width: 0;
|
|
23
|
+
height: 0;
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
border: none;
|
|
27
|
+
outline: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Track (the background oval) */
|
|
31
|
+
.ina-toggle__track {
|
|
32
|
+
position: relative;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
background-color: var(--ina-stroke-secondary);
|
|
36
|
+
border-radius: 9999px;
|
|
37
|
+
transition: all var(--ina-transition-duration-200) ease-in-out;
|
|
38
|
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ina-toggle__track--checked {
|
|
43
|
+
background-color: var(--ina-primary-500);
|
|
44
|
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ina-toggle__track--disabled {
|
|
48
|
+
background-color: var(--ina-stroke-tertiary);
|
|
49
|
+
cursor: not-allowed;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ina-toggle__track--disabled.ina-toggle__track--checked {
|
|
53
|
+
background-color: var(--ina-stroke-tertiary);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Thumb (the sliding circle) */
|
|
57
|
+
.ina-toggle__thumb {
|
|
58
|
+
position: absolute;
|
|
59
|
+
background-color: var(--ina-background-primary);
|
|
60
|
+
border-radius: 50%;
|
|
61
|
+
transition: all var(--ina-transition-duration-200) ease-in-out;
|
|
62
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
63
|
+
transform: translateX(0);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.ina-toggle__thumb--checked {
|
|
67
|
+
transform: translateX(100%);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ina-toggle__thumb--disabled {
|
|
71
|
+
background-color: var(--ina-background-secondary);
|
|
72
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Size variants */
|
|
76
|
+
.ina-toggle--size-sm .ina-toggle__track {
|
|
77
|
+
width: 36px;
|
|
78
|
+
height: 20px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ina-toggle--size-sm .ina-toggle__thumb {
|
|
82
|
+
width: 16px;
|
|
83
|
+
height: 16px;
|
|
84
|
+
top: 2px;
|
|
85
|
+
left: 2px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ina-toggle--size-sm .ina-toggle__thumb--checked {
|
|
89
|
+
transform: translateX(16px);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ina-toggle--size-md .ina-toggle__track {
|
|
93
|
+
width: 44px;
|
|
94
|
+
height: 24px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.ina-toggle--size-md .ina-toggle__thumb {
|
|
98
|
+
width: 20px;
|
|
99
|
+
height: 20px;
|
|
100
|
+
top: 2px;
|
|
101
|
+
left: 2px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.ina-toggle--size-md .ina-toggle__thumb--checked {
|
|
105
|
+
transform: translateX(20px);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.ina-toggle--size-lg .ina-toggle__track {
|
|
109
|
+
width: 52px;
|
|
110
|
+
height: 28px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ina-toggle--size-lg .ina-toggle__thumb {
|
|
114
|
+
width: 24px;
|
|
115
|
+
height: 24px;
|
|
116
|
+
top: 2px;
|
|
117
|
+
left: 2px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.ina-toggle--size-lg .ina-toggle__thumb--checked {
|
|
121
|
+
transform: translateX(24px);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Hover states */
|
|
125
|
+
.ina-toggle:not(.ina-toggle--disabled):hover .ina-toggle__track {
|
|
126
|
+
background-color: var(--ina-stroke-primary);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.ina-toggle:not(.ina-toggle--disabled):hover .ina-toggle__track--checked {
|
|
130
|
+
background-color: var(--ina-primary-600);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.ina-toggle:not(.ina-toggle--disabled):hover .ina-toggle__thumb {
|
|
134
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* Focus states */
|
|
138
|
+
.ina-toggle__input:focus + .ina-toggle__track {
|
|
139
|
+
outline: 2px solid var(--ina-primary-500);
|
|
140
|
+
outline-offset: 2px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ina-toggle__input:focus:not(:focus-visible) + .ina-toggle__track {
|
|
144
|
+
outline: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Active states */
|
|
148
|
+
.ina-toggle:not(.ina-toggle--disabled):active .ina-toggle__thumb {
|
|
149
|
+
transform: scale(0.95);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.ina-toggle:not(.ina-toggle--disabled):active .ina-toggle__thumb--checked {
|
|
153
|
+
transform: translateX(20px) scale(0.95);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.ina-toggle--size-sm:not(.ina-toggle--disabled):active
|
|
157
|
+
.ina-toggle__thumb--checked {
|
|
158
|
+
transform: translateX(16px) scale(0.95);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.ina-toggle--size-lg:not(.ina-toggle--disabled):active
|
|
162
|
+
.ina-toggle__thumb--checked {
|
|
163
|
+
transform: translateX(24px) scale(0.95);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* Dark mode */
|
|
167
|
+
[data-theme='dark'] .ina-toggle__track {
|
|
168
|
+
background-color: var(--ina-stroke-secondary);
|
|
169
|
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
[data-theme='dark'] .ina-toggle__track--checked {
|
|
173
|
+
background-color: var(--ina-primary-500);
|
|
174
|
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
[data-theme='dark'] .ina-toggle__track--disabled {
|
|
178
|
+
background-color: var(--ina-stroke-tertiary);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
[data-theme='dark'] .ina-toggle__track--disabled.ina-toggle__track--checked {
|
|
182
|
+
background-color: var(--ina-stroke-tertiary);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
[data-theme='dark'] .ina-toggle__thumb {
|
|
186
|
+
background-color: var(--ina-background-primary);
|
|
187
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
[data-theme='dark'] .ina-toggle__thumb--disabled {
|
|
191
|
+
background-color: var(--ina-background-secondary);
|
|
192
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
[data-theme='dark']
|
|
196
|
+
.ina-toggle:not(.ina-toggle--disabled):hover
|
|
197
|
+
.ina-toggle__track {
|
|
198
|
+
background-color: var(--ina-stroke-primary);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
[data-theme='dark']
|
|
202
|
+
.ina-toggle:not(.ina-toggle--disabled):hover
|
|
203
|
+
.ina-toggle__track--checked {
|
|
204
|
+
background-color: var(--ina-primary-600);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
[data-theme='dark']
|
|
208
|
+
.ina-toggle:not(.ina-toggle--disabled):hover
|
|
209
|
+
.ina-toggle__thumb {
|
|
210
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
[data-theme='dark'] .ina-toggle__input:focus + .ina-toggle__track {
|
|
214
|
+
outline-color: var(--ina-primary-400);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* Reduced motion */
|
|
218
|
+
@media (prefers-reduced-motion: reduce) {
|
|
219
|
+
.ina-toggle__track,
|
|
220
|
+
.ina-toggle__thumb {
|
|
221
|
+
transition: none;
|
|
222
|
+
}
|
|
223
|
+
}
|