@duskmoon-dev/core 0.1.0 → 0.2.0
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 +366 -78
- package/dist/components/accordion.css +244 -0
- package/dist/components/alert.css +199 -0
- package/dist/components/appbar.css +493 -0
- package/dist/components/autocomplete.css +269 -0
- package/dist/components/avatar.css +167 -0
- package/dist/components/badge.css +178 -0
- package/dist/components/bottom-navigation.css +263 -0
- package/dist/components/bottomsheet.css +334 -0
- package/dist/components/button.css +475 -0
- package/dist/components/card.css +220 -0
- package/dist/components/cascader.css +418 -0
- package/dist/components/checkbox.css +231 -0
- package/dist/components/chip.css +211 -0
- package/dist/components/collapse.css +454 -0
- package/dist/components/datepicker.css +741 -0
- package/dist/components/dialog.css +173 -0
- package/dist/components/divider.css +284 -0
- package/dist/components/drawer.css +371 -0
- package/dist/components/file-upload.css +321 -0
- package/dist/components/form-group.css +308 -0
- package/dist/components/form.css +441 -0
- package/dist/components/index.css +14951 -0
- package/dist/components/input.css +240 -0
- package/dist/components/list.css +188 -0
- package/dist/components/markdown-body.css +405 -0
- package/dist/components/modal.css +291 -0
- package/dist/components/multi-select.css +491 -0
- package/dist/components/navigation.css +736 -0
- package/dist/components/otp-input.css +195 -0
- package/dist/components/pin-input.css +184 -0
- package/dist/components/popover.css +392 -0
- package/dist/components/progress.css +238 -0
- package/dist/components/radio.css +183 -0
- package/dist/components/rating.css +230 -0
- package/dist/components/segment-control.css +186 -0
- package/dist/components/select.css +205 -0
- package/dist/components/skeleton.css +216 -0
- package/dist/components/slider.css +327 -0
- package/dist/components/snackbar.css +311 -0
- package/dist/components/stepper.css +313 -0
- package/dist/components/switch.css +234 -0
- package/dist/components/table.css +199 -0
- package/dist/components/textarea.css +398 -0
- package/dist/components/time-input.css +252 -0
- package/dist/components/timeline.css +353 -0
- package/dist/components/toast.css +251 -0
- package/dist/components/tooltip.css +284 -0
- package/dist/components/tree-select.css +472 -0
- package/dist/esm/components/accordion.js +251 -0
- package/dist/esm/components/alert.js +206 -0
- package/dist/esm/components/appbar.js +500 -0
- package/dist/esm/components/autocomplete.js +276 -0
- package/dist/esm/components/avatar.js +174 -0
- package/dist/esm/components/badge.js +185 -0
- package/dist/esm/components/bottom-navigation.js +270 -0
- package/dist/esm/components/bottomsheet.js +341 -0
- package/dist/esm/components/button.js +482 -0
- package/dist/esm/components/card.js +227 -0
- package/dist/esm/components/cascader.js +425 -0
- package/dist/esm/components/checkbox.js +238 -0
- package/dist/esm/components/chip.js +218 -0
- package/dist/esm/components/collapse.js +461 -0
- package/dist/esm/components/datepicker.js +748 -0
- package/dist/esm/components/dialog.js +180 -0
- package/dist/esm/components/divider.js +291 -0
- package/dist/esm/components/drawer.js +378 -0
- package/dist/esm/components/file-upload.js +328 -0
- package/dist/esm/components/form-group.js +315 -0
- package/dist/esm/components/form.js +448 -0
- package/dist/esm/components/input.js +247 -0
- package/dist/esm/components/list.js +195 -0
- package/dist/esm/components/markdown-body.js +412 -0
- package/dist/esm/components/modal.js +298 -0
- package/dist/esm/components/multi-select.js +498 -0
- package/dist/esm/components/navigation.js +743 -0
- package/dist/esm/components/otp-input.js +202 -0
- package/dist/esm/components/pin-input.js +191 -0
- package/dist/esm/components/popover.js +399 -0
- package/dist/esm/components/progress.js +245 -0
- package/dist/esm/components/radio.js +190 -0
- package/dist/esm/components/rating.js +237 -0
- package/dist/esm/components/segment-control.js +193 -0
- package/dist/esm/components/select.js +212 -0
- package/dist/esm/components/skeleton.js +223 -0
- package/dist/esm/components/slider.js +334 -0
- package/dist/esm/components/snackbar.js +318 -0
- package/dist/esm/components/stepper.js +320 -0
- package/dist/esm/components/switch.js +241 -0
- package/dist/esm/components/table.js +206 -0
- package/dist/esm/components/textarea.js +405 -0
- package/dist/esm/components/time-input.js +259 -0
- package/dist/esm/components/timeline.js +360 -0
- package/dist/esm/components/toast.js +258 -0
- package/dist/esm/components/tooltip.js +291 -0
- package/dist/esm/components/tree-select.js +479 -0
- package/dist/index.css +15866 -0
- package/dist/themes/moonlight.css +253 -0
- package/dist/themes/sunshine.css +250 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/plugin.d.ts +69 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/theme.d.ts +202 -0
- package/dist/types/theme.d.ts.map +1 -0
- package/package.json +262 -18
- package/dist/index.cjs +0 -243
- package/dist/index.cjs.map +0 -15
- package/dist/index.js +0 -211
- package/dist/index.js.map +0 -15
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time Input Component Styles
|
|
3
|
+
* DuskMoonUI - Time selection input component
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@layer components {
|
|
7
|
+
/* Base Time Input */
|
|
8
|
+
.time-input {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.time-input-field {
|
|
16
|
+
display: flex;
|
|
17
|
+
width: 100%;
|
|
18
|
+
padding: 0.75rem 2.5rem 0.75rem 1rem;
|
|
19
|
+
font-size: 1rem;
|
|
20
|
+
line-height: 1.5rem;
|
|
21
|
+
color: var(--color-on-surface);
|
|
22
|
+
background-color: var(--color-surface);
|
|
23
|
+
border: 1px solid var(--color-outline);
|
|
24
|
+
border-radius: 0.5rem;
|
|
25
|
+
outline: none;
|
|
26
|
+
transition: border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.time-input-field:hover:not(:disabled) {
|
|
30
|
+
border-color: var(--color-on-surface-variant);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.time-input-field:focus {
|
|
34
|
+
border-color: var(--color-primary);
|
|
35
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-primary) 10%, transparent);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.time-input-field:disabled {
|
|
39
|
+
cursor: not-allowed;
|
|
40
|
+
opacity: 0.5;
|
|
41
|
+
background-color: var(--color-surface-container);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Time Icon */
|
|
45
|
+
.time-input-icon {
|
|
46
|
+
position: absolute;
|
|
47
|
+
right: 0.75rem;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
width: 1.25rem;
|
|
52
|
+
height: 1.25rem;
|
|
53
|
+
color: var(--color-on-surface-variant);
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Time Input Segments (hour:minute:second) */
|
|
58
|
+
.time-input-segments {
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 0.125rem;
|
|
62
|
+
padding: 0.75rem 1rem;
|
|
63
|
+
background-color: var(--color-surface);
|
|
64
|
+
border: 1px solid var(--color-outline);
|
|
65
|
+
border-radius: 0.5rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.time-input-segment {
|
|
69
|
+
width: 2rem;
|
|
70
|
+
padding: 0.25rem;
|
|
71
|
+
font-size: 1rem;
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
text-align: center;
|
|
74
|
+
color: var(--color-on-surface);
|
|
75
|
+
background-color: transparent;
|
|
76
|
+
border: none;
|
|
77
|
+
border-radius: 0.25rem;
|
|
78
|
+
outline: none;
|
|
79
|
+
transition: background-color 150ms ease-in-out;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.time-input-segment:focus {
|
|
83
|
+
background-color: var(--color-primary-container);
|
|
84
|
+
color: var(--color-on-primary-container);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.time-input-separator {
|
|
88
|
+
font-size: 1rem;
|
|
89
|
+
font-weight: 500;
|
|
90
|
+
color: var(--color-on-surface-variant);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* AM/PM Toggle */
|
|
94
|
+
.time-input-period {
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
margin-left: 0.5rem;
|
|
97
|
+
background-color: var(--color-surface-container);
|
|
98
|
+
border-radius: 0.375rem;
|
|
99
|
+
padding: 0.125rem;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.time-input-period-btn {
|
|
103
|
+
padding: 0.375rem 0.625rem;
|
|
104
|
+
font-size: 0.75rem;
|
|
105
|
+
font-weight: 500;
|
|
106
|
+
color: var(--color-on-surface-variant);
|
|
107
|
+
background-color: transparent;
|
|
108
|
+
border: none;
|
|
109
|
+
border-radius: 0.25rem;
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
transition: background-color 150ms ease-in-out, color 150ms ease-in-out;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.time-input-period-btn:hover {
|
|
115
|
+
background-color: var(--color-surface-container-high);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.time-input-period-btn-active {
|
|
119
|
+
background-color: var(--color-primary);
|
|
120
|
+
color: var(--color-primary-content);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Size Variants */
|
|
124
|
+
.time-input-sm .time-input-field {
|
|
125
|
+
padding: 0.5rem 2rem 0.5rem 0.75rem;
|
|
126
|
+
font-size: 0.875rem;
|
|
127
|
+
border-radius: 0.375rem;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.time-input-sm .time-input-segment {
|
|
131
|
+
width: 1.75rem;
|
|
132
|
+
font-size: 0.875rem;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.time-input-lg .time-input-field {
|
|
136
|
+
padding: 1rem 3rem 1rem 1.25rem;
|
|
137
|
+
font-size: 1.125rem;
|
|
138
|
+
border-radius: 0.625rem;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.time-input-lg .time-input-segment {
|
|
142
|
+
width: 2.5rem;
|
|
143
|
+
font-size: 1.125rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* Filled Variant */
|
|
147
|
+
.time-input-filled .time-input-field,
|
|
148
|
+
.time-input-filled .time-input-segments {
|
|
149
|
+
background-color: var(--color-surface-container);
|
|
150
|
+
border: none;
|
|
151
|
+
border-bottom: 2px solid var(--color-outline);
|
|
152
|
+
border-radius: 0.5rem 0.5rem 0 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.time-input-filled .time-input-field:focus,
|
|
156
|
+
.time-input-filled .time-input-segments:focus-within {
|
|
157
|
+
border-bottom-color: var(--color-primary);
|
|
158
|
+
box-shadow: none;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Color Variants */
|
|
162
|
+
.time-input-primary .time-input-field:focus {
|
|
163
|
+
border-color: var(--color-primary);
|
|
164
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-primary) 10%, transparent);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.time-input-secondary .time-input-field:focus {
|
|
168
|
+
border-color: var(--color-secondary);
|
|
169
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-secondary) 10%, transparent);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.time-input-tertiary .time-input-field:focus {
|
|
173
|
+
border-color: var(--color-tertiary);
|
|
174
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-tertiary) 10%, transparent);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* Error State */
|
|
178
|
+
.time-input-error .time-input-field,
|
|
179
|
+
.time-input-error .time-input-segments {
|
|
180
|
+
border-color: var(--color-error);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.time-input-error .time-input-field:focus {
|
|
184
|
+
border-color: var(--color-error);
|
|
185
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-error) 10%, transparent);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* Time Picker Dropdown */
|
|
189
|
+
.time-picker-dropdown {
|
|
190
|
+
position: absolute;
|
|
191
|
+
top: 100%;
|
|
192
|
+
left: 0;
|
|
193
|
+
z-index: 50;
|
|
194
|
+
display: none;
|
|
195
|
+
min-width: 12rem;
|
|
196
|
+
margin-top: 0.25rem;
|
|
197
|
+
padding: 0.5rem;
|
|
198
|
+
background-color: var(--color-surface);
|
|
199
|
+
border: 1px solid var(--color-outline-variant);
|
|
200
|
+
border-radius: 0.5rem;
|
|
201
|
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.time-picker-dropdown-open {
|
|
205
|
+
display: block;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.time-picker-columns {
|
|
209
|
+
display: flex;
|
|
210
|
+
gap: 0.5rem;
|
|
211
|
+
max-height: 12rem;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.time-picker-column {
|
|
215
|
+
flex: 1;
|
|
216
|
+
display: flex;
|
|
217
|
+
flex-direction: column;
|
|
218
|
+
gap: 0.125rem;
|
|
219
|
+
overflow-y: auto;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.time-picker-option {
|
|
223
|
+
padding: 0.375rem 0.5rem;
|
|
224
|
+
font-size: 0.875rem;
|
|
225
|
+
text-align: center;
|
|
226
|
+
color: var(--color-on-surface);
|
|
227
|
+
background-color: transparent;
|
|
228
|
+
border: none;
|
|
229
|
+
border-radius: 0.25rem;
|
|
230
|
+
cursor: pointer;
|
|
231
|
+
transition: background-color 150ms ease-in-out;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.time-picker-option:hover {
|
|
235
|
+
background-color: var(--color-surface-container);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.time-picker-option-selected {
|
|
239
|
+
background-color: var(--color-primary-container);
|
|
240
|
+
color: var(--color-on-primary-container);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* Reduce Motion */
|
|
244
|
+
@media (prefers-reduced-motion: reduce) {
|
|
245
|
+
.time-input-field,
|
|
246
|
+
.time-input-segment,
|
|
247
|
+
.time-input-period-btn,
|
|
248
|
+
.time-picker-option {
|
|
249
|
+
transition: none;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Timeline Component Styles
|
|
3
|
+
* DuskMoonUI - Material Design 3 inspired timeline system
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@layer components {
|
|
7
|
+
/* Base Timeline */
|
|
8
|
+
.timeline {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Timeline Line */
|
|
16
|
+
.timeline::before {
|
|
17
|
+
content: '';
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 1.25rem;
|
|
21
|
+
width: 2px;
|
|
22
|
+
height: 100%;
|
|
23
|
+
background-color: var(--color-outline-variant);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Timeline Item */
|
|
27
|
+
.timeline-item {
|
|
28
|
+
position: relative;
|
|
29
|
+
display: flex;
|
|
30
|
+
gap: 1rem;
|
|
31
|
+
padding-bottom: 1.5rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.timeline-item:last-child {
|
|
35
|
+
padding-bottom: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Timeline Marker */
|
|
39
|
+
.timeline-marker {
|
|
40
|
+
position: relative;
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
width: 2.5rem;
|
|
45
|
+
height: 2.5rem;
|
|
46
|
+
background-color: var(--color-surface);
|
|
47
|
+
border: 2px solid var(--color-outline-variant);
|
|
48
|
+
border-radius: 50%;
|
|
49
|
+
flex-shrink: 0;
|
|
50
|
+
z-index: 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.timeline-marker-icon {
|
|
54
|
+
font-size: 1rem;
|
|
55
|
+
color: var(--color-on-surface-variant);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.timeline-marker-dot {
|
|
59
|
+
width: 0.75rem;
|
|
60
|
+
height: 0.75rem;
|
|
61
|
+
background-color: var(--color-outline-variant);
|
|
62
|
+
border-radius: 50%;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Timeline Content */
|
|
66
|
+
.timeline-content {
|
|
67
|
+
flex: 1;
|
|
68
|
+
padding-top: 0.375rem;
|
|
69
|
+
min-width: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.timeline-title {
|
|
73
|
+
font-size: 0.875rem;
|
|
74
|
+
font-weight: 600;
|
|
75
|
+
color: var(--color-on-surface);
|
|
76
|
+
margin-bottom: 0.25rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.timeline-time {
|
|
80
|
+
font-size: 0.75rem;
|
|
81
|
+
color: var(--color-on-surface-variant);
|
|
82
|
+
margin-bottom: 0.5rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.timeline-description {
|
|
86
|
+
font-size: 0.875rem;
|
|
87
|
+
color: var(--color-on-surface-variant);
|
|
88
|
+
line-height: 1.5;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Timeline Card */
|
|
92
|
+
.timeline-card {
|
|
93
|
+
padding: 1rem;
|
|
94
|
+
background-color: var(--color-surface-container);
|
|
95
|
+
border-radius: 0.75rem;
|
|
96
|
+
margin-top: 0.5rem;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* Color Variants */
|
|
100
|
+
.timeline-item-primary .timeline-marker {
|
|
101
|
+
border-color: var(--color-primary);
|
|
102
|
+
background-color: var(--color-primary-container);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.timeline-item-primary .timeline-marker-icon,
|
|
106
|
+
.timeline-item-primary .timeline-marker-dot {
|
|
107
|
+
color: var(--color-on-primary-container);
|
|
108
|
+
background-color: var(--color-primary);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.timeline-item-secondary .timeline-marker {
|
|
112
|
+
border-color: var(--color-secondary);
|
|
113
|
+
background-color: var(--color-secondary-container);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.timeline-item-success .timeline-marker {
|
|
117
|
+
border-color: var(--color-success);
|
|
118
|
+
background-color: var(--color-success-container);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.timeline-item-success .timeline-marker-dot {
|
|
122
|
+
background-color: var(--color-success);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.timeline-item-warning .timeline-marker {
|
|
126
|
+
border-color: var(--color-warning);
|
|
127
|
+
background-color: var(--color-warning-container);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.timeline-item-warning .timeline-marker-dot {
|
|
131
|
+
background-color: var(--color-warning);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.timeline-item-error .timeline-marker {
|
|
135
|
+
border-color: var(--color-error);
|
|
136
|
+
background-color: var(--color-error-container);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.timeline-item-error .timeline-marker-dot {
|
|
140
|
+
background-color: var(--color-error);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Completed State */
|
|
144
|
+
.timeline-item.completed .timeline-marker {
|
|
145
|
+
border-color: var(--color-primary);
|
|
146
|
+
background-color: var(--color-primary);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.timeline-item.completed .timeline-marker-icon {
|
|
150
|
+
color: var(--color-on-primary);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Active State */
|
|
154
|
+
.timeline-item.active .timeline-marker {
|
|
155
|
+
border-color: var(--color-primary);
|
|
156
|
+
background-color: var(--color-primary);
|
|
157
|
+
box-shadow: 0 0 0 4px var(--color-primary-container);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.timeline-item.active .timeline-marker-icon,
|
|
161
|
+
.timeline-item.active .timeline-marker-dot {
|
|
162
|
+
color: var(--color-on-primary);
|
|
163
|
+
background-color: var(--color-on-primary);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* Size Variants */
|
|
167
|
+
.timeline-sm::before {
|
|
168
|
+
left: 0.75rem;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.timeline-sm .timeline-marker {
|
|
172
|
+
width: 1.5rem;
|
|
173
|
+
height: 1.5rem;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.timeline-sm .timeline-marker-icon {
|
|
177
|
+
font-size: 0.75rem;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.timeline-sm .timeline-marker-dot {
|
|
181
|
+
width: 0.5rem;
|
|
182
|
+
height: 0.5rem;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.timeline-lg::before {
|
|
186
|
+
left: 1.5rem;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.timeline-lg .timeline-marker {
|
|
190
|
+
width: 3rem;
|
|
191
|
+
height: 3rem;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.timeline-lg .timeline-marker-icon {
|
|
195
|
+
font-size: 1.25rem;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* Alternate Layout (zigzag) */
|
|
199
|
+
.timeline-alternate {
|
|
200
|
+
padding-left: 0;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.timeline-alternate::before {
|
|
204
|
+
left: 50%;
|
|
205
|
+
transform: translateX(-50%);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.timeline-alternate .timeline-item {
|
|
209
|
+
width: 50%;
|
|
210
|
+
padding-right: 2rem;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.timeline-alternate .timeline-item:nth-child(even) {
|
|
214
|
+
margin-left: 50%;
|
|
215
|
+
padding-right: 0;
|
|
216
|
+
padding-left: 2rem;
|
|
217
|
+
flex-direction: row-reverse;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.timeline-alternate .timeline-item:nth-child(even) .timeline-content {
|
|
221
|
+
text-align: right;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.timeline-alternate .timeline-marker {
|
|
225
|
+
position: absolute;
|
|
226
|
+
left: 100%;
|
|
227
|
+
transform: translateX(-50%);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.timeline-alternate .timeline-item:nth-child(even) .timeline-marker {
|
|
231
|
+
left: 0;
|
|
232
|
+
transform: translateX(-50%);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* Right-aligned Timeline */
|
|
236
|
+
.timeline-right {
|
|
237
|
+
align-items: flex-end;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.timeline-right::before {
|
|
241
|
+
left: auto;
|
|
242
|
+
right: 1.25rem;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.timeline-right .timeline-item {
|
|
246
|
+
flex-direction: row-reverse;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.timeline-right .timeline-content {
|
|
250
|
+
text-align: right;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* Horizontal Timeline */
|
|
254
|
+
.timeline-horizontal {
|
|
255
|
+
flex-direction: row;
|
|
256
|
+
overflow-x: auto;
|
|
257
|
+
padding-bottom: 1rem;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.timeline-horizontal::before {
|
|
261
|
+
top: 1.25rem;
|
|
262
|
+
left: 0;
|
|
263
|
+
width: 100%;
|
|
264
|
+
height: 2px;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.timeline-horizontal .timeline-item {
|
|
268
|
+
flex-direction: column;
|
|
269
|
+
padding-bottom: 0;
|
|
270
|
+
padding-right: 2rem;
|
|
271
|
+
min-width: 10rem;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.timeline-horizontal .timeline-item:last-child {
|
|
275
|
+
padding-right: 0;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.timeline-horizontal .timeline-content {
|
|
279
|
+
padding-top: 1rem;
|
|
280
|
+
text-align: center;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* Collapsible Timeline */
|
|
284
|
+
.timeline-collapsible .timeline-item {
|
|
285
|
+
cursor: pointer;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.timeline-collapsible .timeline-description {
|
|
289
|
+
display: none;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.timeline-collapsible .timeline-item.expanded .timeline-description {
|
|
293
|
+
display: block;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* Loading State */
|
|
297
|
+
.timeline-item.loading .timeline-marker {
|
|
298
|
+
animation: timeline-pulse 1.5s ease-in-out infinite;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
@keyframes timeline-pulse {
|
|
302
|
+
0%, 100% {
|
|
303
|
+
opacity: 1;
|
|
304
|
+
}
|
|
305
|
+
50% {
|
|
306
|
+
opacity: 0.5;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* Connected Line Progress */
|
|
311
|
+
.timeline-progress::before {
|
|
312
|
+
background: linear-gradient(
|
|
313
|
+
to bottom,
|
|
314
|
+
var(--color-primary) var(--timeline-progress, 0%),
|
|
315
|
+
var(--color-outline-variant) var(--timeline-progress, 0%)
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* Responsive */
|
|
320
|
+
@media (max-width: 640px) {
|
|
321
|
+
.timeline-alternate::before {
|
|
322
|
+
left: 1.25rem;
|
|
323
|
+
transform: none;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.timeline-alternate .timeline-item,
|
|
327
|
+
.timeline-alternate .timeline-item:nth-child(even) {
|
|
328
|
+
width: 100%;
|
|
329
|
+
margin-left: 0;
|
|
330
|
+
padding-left: 0;
|
|
331
|
+
padding-right: 0;
|
|
332
|
+
flex-direction: row;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.timeline-alternate .timeline-item:nth-child(even) .timeline-content {
|
|
336
|
+
text-align: left;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.timeline-alternate .timeline-marker,
|
|
340
|
+
.timeline-alternate .timeline-item:nth-child(even) .timeline-marker {
|
|
341
|
+
position: relative;
|
|
342
|
+
left: 0;
|
|
343
|
+
transform: none;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/* Reduce Motion */
|
|
348
|
+
@media (prefers-reduced-motion: reduce) {
|
|
349
|
+
.timeline-item.loading .timeline-marker {
|
|
350
|
+
animation: none;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|