zenkit-css 1.0.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.
Files changed (96) hide show
  1. package/README.md +182 -0
  2. package/dist/zenkit.css +33721 -0
  3. package/dist/zenkit.css.map +1 -0
  4. package/dist/zenkit.min.css +1 -0
  5. package/dist/zenkit.min.css.map +1 -0
  6. package/package.json +41 -0
  7. package/scss/abstracts/_functions.scss +174 -0
  8. package/scss/abstracts/_mixins.scss +272 -0
  9. package/scss/abstracts/_variables.scss +216 -0
  10. package/scss/base/_reset.scss +130 -0
  11. package/scss/base/_root.scss +194 -0
  12. package/scss/base/_typography.scss +271 -0
  13. package/scss/components/_accordion.scss +200 -0
  14. package/scss/components/_affix.scss +278 -0
  15. package/scss/components/_alerts.scss +175 -0
  16. package/scss/components/_anchor.scss +438 -0
  17. package/scss/components/_autocomplete.scss +530 -0
  18. package/scss/components/_avatar.scss +256 -0
  19. package/scss/components/_backtop.scss +329 -0
  20. package/scss/components/_badges.scss +266 -0
  21. package/scss/components/_breadcrumb.scss +102 -0
  22. package/scss/components/_buttons.scss +340 -0
  23. package/scss/components/_calendar.scss +787 -0
  24. package/scss/components/_cards.scss +265 -0
  25. package/scss/components/_carousel.scss +306 -0
  26. package/scss/components/_cascader.scss +510 -0
  27. package/scss/components/_close-button.scss +106 -0
  28. package/scss/components/_colorpicker.scss +593 -0
  29. package/scss/components/_datepicker.scss +625 -0
  30. package/scss/components/_descriptions.scss +453 -0
  31. package/scss/components/_divider.scss +253 -0
  32. package/scss/components/_drawer.scss +485 -0
  33. package/scss/components/_dropdown.scss +323 -0
  34. package/scss/components/_empty.scss +321 -0
  35. package/scss/components/_floatbutton.scss +400 -0
  36. package/scss/components/_forms.scss +753 -0
  37. package/scss/components/_image.scss +497 -0
  38. package/scss/components/_inputnumber.scss +475 -0
  39. package/scss/components/_layout.scss +538 -0
  40. package/scss/components/_list-group.scss +227 -0
  41. package/scss/components/_list.scss +528 -0
  42. package/scss/components/_mentions.scss +479 -0
  43. package/scss/components/_menu.scss +510 -0
  44. package/scss/components/_message.scss +412 -0
  45. package/scss/components/_modal.scss +304 -0
  46. package/scss/components/_navbar.scss +329 -0
  47. package/scss/components/_notification.scss +499 -0
  48. package/scss/components/_offcanvas.scss +274 -0
  49. package/scss/components/_pagination.scss +176 -0
  50. package/scss/components/_placeholder.scss +237 -0
  51. package/scss/components/_popconfirm.scss +393 -0
  52. package/scss/components/_popover.scss +298 -0
  53. package/scss/components/_progress.scss +225 -0
  54. package/scss/components/_rating.scss +314 -0
  55. package/scss/components/_result.scss +383 -0
  56. package/scss/components/_segmented.scss +441 -0
  57. package/scss/components/_select.scss +412 -0
  58. package/scss/components/_spinners.scss +229 -0
  59. package/scss/components/_statistic.scss +336 -0
  60. package/scss/components/_steps.scss +343 -0
  61. package/scss/components/_tabs.scss +239 -0
  62. package/scss/components/_tag.scss +317 -0
  63. package/scss/components/_timeline.scss +341 -0
  64. package/scss/components/_timepicker.scss +468 -0
  65. package/scss/components/_toast.scss +279 -0
  66. package/scss/components/_tooltip.scss +305 -0
  67. package/scss/components/_tour.scss +488 -0
  68. package/scss/components/_transfer.scss +556 -0
  69. package/scss/components/_tree.scss +518 -0
  70. package/scss/components/_treeselect.scss +531 -0
  71. package/scss/components/_upload.scss +510 -0
  72. package/scss/components/_watermark.scss +314 -0
  73. package/scss/content/_figures.scss +38 -0
  74. package/scss/content/_images.scss +138 -0
  75. package/scss/content/_tables.scss +232 -0
  76. package/scss/layout/_container.scss +71 -0
  77. package/scss/layout/_grid.scss +258 -0
  78. package/scss/utilities/_animations.scss +494 -0
  79. package/scss/utilities/_borders.scss +246 -0
  80. package/scss/utilities/_colors.scss +194 -0
  81. package/scss/utilities/_display.scss +263 -0
  82. package/scss/utilities/_filters.scss +328 -0
  83. package/scss/utilities/_flex.scss +178 -0
  84. package/scss/utilities/_float.scss +70 -0
  85. package/scss/utilities/_grid-utils.scss +151 -0
  86. package/scss/utilities/_helpers.scss +479 -0
  87. package/scss/utilities/_interactions.scss +249 -0
  88. package/scss/utilities/_overflow.scss +204 -0
  89. package/scss/utilities/_position.scss +245 -0
  90. package/scss/utilities/_shadows.scss +67 -0
  91. package/scss/utilities/_sizing.scss +217 -0
  92. package/scss/utilities/_spacing.scss +207 -0
  93. package/scss/utilities/_text.scss +237 -0
  94. package/scss/utilities/_transforms.scss +368 -0
  95. package/scss/utilities/_visibility.scss +251 -0
  96. package/scss/zenkit.scss +121 -0
@@ -0,0 +1,341 @@
1
+ // ========================================
2
+ // ZenKit - Timeline
3
+ // ========================================
4
+
5
+ @use '../abstracts/variables' as *;
6
+
7
+ // ----------------------------------------
8
+ // Base Timeline
9
+ // ----------------------------------------
10
+ .timeline {
11
+ --timeline-color: var(--gray-300);
12
+ --timeline-dot-size: 0.75rem;
13
+ --timeline-dot-color: var(--primary);
14
+ --timeline-line-width: 2px;
15
+
16
+ position: relative;
17
+ padding-left: 1.5rem;
18
+ }
19
+
20
+ // Timeline Line
21
+ .timeline::before {
22
+ content: "";
23
+ position: absolute;
24
+ left: calc(var(--timeline-dot-size) / 2 - var(--timeline-line-width) / 2);
25
+ top: 0;
26
+ bottom: 0;
27
+ width: var(--timeline-line-width);
28
+ background-color: var(--timeline-color);
29
+ }
30
+
31
+ // ----------------------------------------
32
+ // Timeline Item
33
+ // ----------------------------------------
34
+ .timeline-item {
35
+ position: relative;
36
+ padding-bottom: 1.5rem;
37
+
38
+ &:last-child {
39
+ padding-bottom: 0;
40
+ }
41
+ }
42
+
43
+ // Timeline Dot
44
+ .timeline-dot {
45
+ position: absolute;
46
+ left: calc(-1.5rem + (var(--timeline-dot-size) / 2) * -1);
47
+ top: 0.25rem;
48
+ width: var(--timeline-dot-size);
49
+ height: var(--timeline-dot-size);
50
+ background-color: var(--timeline-dot-color);
51
+ border: 2px solid var(--bg);
52
+ border-radius: 50%;
53
+ z-index: 1;
54
+ }
55
+
56
+ // Timeline Dot Colors
57
+ .timeline-dot-success {
58
+ background-color: $success;
59
+ }
60
+
61
+ .timeline-dot-danger {
62
+ background-color: $danger;
63
+ }
64
+
65
+ .timeline-dot-warning {
66
+ background-color: $warning;
67
+ }
68
+
69
+ .timeline-dot-info {
70
+ background-color: $info;
71
+ }
72
+
73
+ .timeline-dot-gray {
74
+ background-color: var(--gray-400);
75
+ }
76
+
77
+ // ----------------------------------------
78
+ // Timeline Content
79
+ // ----------------------------------------
80
+ .timeline-content {
81
+ padding-left: 0.5rem;
82
+ }
83
+
84
+ .timeline-title {
85
+ font-size: var(--text-base);
86
+ font-weight: $font-weight-semibold;
87
+ color: var(--text);
88
+ margin-bottom: 0.25rem;
89
+ }
90
+
91
+ .timeline-time {
92
+ font-size: var(--text-xs);
93
+ color: var(--text-muted);
94
+ margin-bottom: 0.5rem;
95
+ }
96
+
97
+ .timeline-description {
98
+ font-size: var(--text-sm);
99
+ color: var(--text-secondary);
100
+ line-height: $line-height-relaxed;
101
+ }
102
+
103
+ // ----------------------------------------
104
+ // Timeline with Icon
105
+ // ----------------------------------------
106
+ .timeline-icon {
107
+ position: absolute;
108
+ left: calc(-1.5rem - 0.5rem);
109
+ top: 0;
110
+ display: flex;
111
+ align-items: center;
112
+ justify-content: center;
113
+ width: 1.75rem;
114
+ height: 1.75rem;
115
+ background-color: var(--primary);
116
+ color: var(--white);
117
+ border-radius: 50%;
118
+ z-index: 1;
119
+
120
+ svg {
121
+ width: 1rem;
122
+ height: 1rem;
123
+ }
124
+ }
125
+
126
+ .timeline-icon-success {
127
+ background-color: $success;
128
+ }
129
+
130
+ .timeline-icon-danger {
131
+ background-color: $danger;
132
+ }
133
+
134
+ .timeline-icon-warning {
135
+ background-color: $warning;
136
+ color: var(--gray-900);
137
+ }
138
+
139
+ .timeline-icon-info {
140
+ background-color: $info;
141
+ }
142
+
143
+ .timeline-icon-gray {
144
+ background-color: var(--gray-400);
145
+ }
146
+
147
+ // When using icon, adjust timeline padding
148
+ .timeline-has-icons {
149
+ padding-left: 2.5rem;
150
+
151
+ &::before {
152
+ left: calc(1.75rem / 2 - var(--timeline-line-width) / 2);
153
+ }
154
+
155
+ .timeline-icon {
156
+ left: -2.5rem;
157
+ }
158
+ }
159
+
160
+ // ----------------------------------------
161
+ // Timeline Sizes
162
+ // ----------------------------------------
163
+ .timeline-sm {
164
+ --timeline-dot-size: 0.5rem;
165
+ padding-left: 1rem;
166
+
167
+ &::before {
168
+ left: calc(var(--timeline-dot-size) / 2 - var(--timeline-line-width) / 2);
169
+ }
170
+
171
+ .timeline-dot {
172
+ left: calc(-1rem + (var(--timeline-dot-size) / 2) * -1);
173
+ }
174
+
175
+ .timeline-item {
176
+ padding-bottom: 1rem;
177
+ }
178
+
179
+ .timeline-title {
180
+ font-size: var(--text-sm);
181
+ }
182
+
183
+ .timeline-description {
184
+ font-size: var(--text-xs);
185
+ }
186
+ }
187
+
188
+ .timeline-lg {
189
+ --timeline-dot-size: 1rem;
190
+ --timeline-line-width: 3px;
191
+ padding-left: 2rem;
192
+
193
+ &::before {
194
+ left: calc(var(--timeline-dot-size) / 2 - var(--timeline-line-width) / 2);
195
+ }
196
+
197
+ .timeline-dot {
198
+ left: calc(-2rem + (var(--timeline-dot-size) / 2) * -1);
199
+ }
200
+
201
+ .timeline-item {
202
+ padding-bottom: 2rem;
203
+ }
204
+ }
205
+
206
+ // ----------------------------------------
207
+ // Horizontal Timeline
208
+ // ----------------------------------------
209
+ .timeline-horizontal {
210
+ display: flex;
211
+ padding-left: 0;
212
+ padding-top: 1.5rem;
213
+
214
+ &::before {
215
+ left: 0;
216
+ right: 0;
217
+ top: calc(var(--timeline-dot-size) / 2 - var(--timeline-line-width) / 2);
218
+ bottom: auto;
219
+ width: 100%;
220
+ height: var(--timeline-line-width);
221
+ }
222
+
223
+ .timeline-item {
224
+ flex: 1;
225
+ padding-bottom: 0;
226
+ padding-right: 1rem;
227
+ text-align: center;
228
+
229
+ &:last-child {
230
+ padding-right: 0;
231
+ }
232
+ }
233
+
234
+ .timeline-dot {
235
+ left: 50%;
236
+ top: calc(-1.5rem + (var(--timeline-dot-size) / 2) * -1);
237
+ transform: translateX(-50%);
238
+ }
239
+
240
+ .timeline-content {
241
+ padding-left: 0;
242
+ padding-top: 0.5rem;
243
+ }
244
+ }
245
+
246
+ // ----------------------------------------
247
+ // Alternate Timeline (Zigzag)
248
+ // ----------------------------------------
249
+ .timeline-alternate {
250
+ padding-left: 50%;
251
+
252
+ &::before {
253
+ left: 50%;
254
+ transform: translateX(-50%);
255
+ }
256
+
257
+ .timeline-item {
258
+ width: 50%;
259
+ padding-right: 2rem;
260
+ text-align: right;
261
+
262
+ &:nth-child(even) {
263
+ margin-left: 50%;
264
+ padding-left: 2rem;
265
+ padding-right: 0;
266
+ text-align: left;
267
+ }
268
+ }
269
+
270
+ .timeline-dot {
271
+ left: auto;
272
+ right: calc(-1 * var(--timeline-dot-size) / 2 - var(--timeline-line-width) / 2);
273
+ }
274
+
275
+ .timeline-item:nth-child(even) .timeline-dot {
276
+ right: auto;
277
+ left: calc(-1 * var(--timeline-dot-size) / 2 - var(--timeline-line-width) / 2);
278
+ }
279
+
280
+ .timeline-content {
281
+ padding-left: 0;
282
+ }
283
+ }
284
+
285
+ // ----------------------------------------
286
+ // Timeline States
287
+ // ----------------------------------------
288
+ .timeline-item-pending {
289
+ .timeline-dot {
290
+ background-color: var(--gray-300);
291
+ border-style: dashed;
292
+ }
293
+ }
294
+
295
+ .timeline-item-active {
296
+ .timeline-dot {
297
+ box-shadow: 0 0 0 4px rgba($primary, 0.2);
298
+ }
299
+ }
300
+
301
+ // ----------------------------------------
302
+ // Timeline Card Style
303
+ // ----------------------------------------
304
+ .timeline-card {
305
+ .timeline-content {
306
+ padding: 1rem;
307
+ background-color: var(--bg);
308
+ border: $border-width solid var(--border);
309
+ border-radius: var(--radius);
310
+ box-shadow: var(--shadow-sm);
311
+ }
312
+ }
313
+
314
+ // ----------------------------------------
315
+ // Dashed Line Variant
316
+ // ----------------------------------------
317
+ .timeline-dashed::before {
318
+ background: repeating-linear-gradient(
319
+ to bottom,
320
+ var(--timeline-color) 0,
321
+ var(--timeline-color) 4px,
322
+ transparent 4px,
323
+ transparent 8px
324
+ );
325
+ }
326
+
327
+ // ----------------------------------------
328
+ // Timeline Label (Date on Left)
329
+ // ----------------------------------------
330
+ .timeline-labeled {
331
+ padding-left: 8rem;
332
+
333
+ .timeline-label {
334
+ position: absolute;
335
+ left: -8rem;
336
+ width: 6rem;
337
+ text-align: right;
338
+ font-size: var(--text-sm);
339
+ color: var(--text-muted);
340
+ }
341
+ }