ep-craft 0.1.2 → 0.1.3

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 (154) hide show
  1. package/dist/components/button/EpButton.vue.d.ts +4 -4
  2. package/dist/components/button/EpButton.vue.js +19 -19
  3. package/dist/components/button/button.d.ts +2 -2
  4. package/dist/components/button/button.js +1 -1
  5. package/dist/components/button/index.d.ts +2 -1
  6. package/dist/components/button/index.js +4 -3
  7. package/dist/index.css +2 -2
  8. package/dist/resolver.js +9 -12
  9. package/package.json +4 -2
  10. package/theme-chalk/src/affix.scss +7 -0
  11. package/theme-chalk/src/alert.scss +115 -0
  12. package/theme-chalk/src/anchor-link.scss +45 -0
  13. package/theme-chalk/src/anchor.scss +93 -0
  14. package/theme-chalk/src/aside.scss +8 -0
  15. package/theme-chalk/src/autocomplete.scss +95 -0
  16. package/theme-chalk/src/avatar-group.scss +25 -0
  17. package/theme-chalk/src/avatar.scss +55 -0
  18. package/theme-chalk/src/backtop.scss +29 -0
  19. package/theme-chalk/src/badge.scss +58 -0
  20. package/theme-chalk/src/base.scss +3 -0
  21. package/theme-chalk/src/breadcrumb-item.scss +58 -0
  22. package/theme-chalk/src/breadcrumb.scss +9 -0
  23. package/theme-chalk/src/button-group.scss +133 -0
  24. package/theme-chalk/src/button.scss +325 -0
  25. package/theme-chalk/src/calendar.scss +94 -0
  26. package/theme-chalk/src/card.scss +49 -0
  27. package/theme-chalk/src/carousel-item.scss +58 -0
  28. package/theme-chalk/src/carousel.scss +195 -0
  29. package/theme-chalk/src/cascader-panel.scss +150 -0
  30. package/theme-chalk/src/cascader.scss +289 -0
  31. package/theme-chalk/src/check-tag.scss +60 -0
  32. package/theme-chalk/src/checkbox-button.scss +142 -0
  33. package/theme-chalk/src/checkbox-group.scss +7 -0
  34. package/theme-chalk/src/checkbox.scss +300 -0
  35. package/theme-chalk/src/col.scss +56 -0
  36. package/theme-chalk/src/collapse-item.scss +72 -0
  37. package/theme-chalk/src/collapse-transition.scss +1 -0
  38. package/theme-chalk/src/collapse.scss +29 -0
  39. package/theme-chalk/src/color/index.scss +20 -0
  40. package/theme-chalk/src/color-picker-panel.scss +294 -0
  41. package/theme-chalk/src/color-picker.scss +165 -0
  42. package/theme-chalk/src/common/popup.scss +47 -0
  43. package/theme-chalk/src/common/transition.scss +125 -0
  44. package/theme-chalk/src/common/var.scss +1730 -0
  45. package/theme-chalk/src/config-provider.scss +0 -0
  46. package/theme-chalk/src/container.scss +14 -0
  47. package/theme-chalk/src/dark/css-vars.scss +45 -0
  48. package/theme-chalk/src/dark/var.scss +224 -0
  49. package/theme-chalk/src/date-picker/date-picker.scss +121 -0
  50. package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
  51. package/theme-chalk/src/date-picker/date-table.scss +164 -0
  52. package/theme-chalk/src/date-picker/month-table.scss +112 -0
  53. package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
  54. package/theme-chalk/src/date-picker/picker.scss +217 -0
  55. package/theme-chalk/src/date-picker/time-picker.scss +90 -0
  56. package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
  57. package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
  58. package/theme-chalk/src/date-picker/utils.scss +14 -0
  59. package/theme-chalk/src/date-picker/year-table.scss +108 -0
  60. package/theme-chalk/src/date-picker-panel.scss +34 -0
  61. package/theme-chalk/src/date-picker.scss +0 -0
  62. package/theme-chalk/src/descriptions-item.scss +77 -0
  63. package/theme-chalk/src/descriptions.scss +151 -0
  64. package/theme-chalk/src/dialog.scss +207 -0
  65. package/theme-chalk/src/display.scss +12 -0
  66. package/theme-chalk/src/divider.scss +48 -0
  67. package/theme-chalk/src/drawer.scss +251 -0
  68. package/theme-chalk/src/dropdown-item.scss +0 -0
  69. package/theme-chalk/src/dropdown-menu.scss +0 -0
  70. package/theme-chalk/src/dropdown.scss +208 -0
  71. package/theme-chalk/src/empty.scss +49 -0
  72. package/theme-chalk/src/footer.scss +12 -0
  73. package/theme-chalk/src/form-item.scss +246 -0
  74. package/theme-chalk/src/form.scss +28 -0
  75. package/theme-chalk/src/header.scss +12 -0
  76. package/theme-chalk/src/icon.scss +41 -0
  77. package/theme-chalk/src/image-viewer.scss +161 -0
  78. package/theme-chalk/src/image.scss +49 -0
  79. package/theme-chalk/src/index.scss +116 -0
  80. package/theme-chalk/src/infinite-scroll.scss +0 -0
  81. package/theme-chalk/src/input-number.scss +192 -0
  82. package/theme-chalk/src/input-otp.scss +191 -0
  83. package/theme-chalk/src/input-tag.scss +249 -0
  84. package/theme-chalk/src/input.scss +541 -0
  85. package/theme-chalk/src/link.scss +90 -0
  86. package/theme-chalk/src/loading.scss +104 -0
  87. package/theme-chalk/src/main.scss +14 -0
  88. package/theme-chalk/src/mention.scss +88 -0
  89. package/theme-chalk/src/menu-item-group.scss +0 -0
  90. package/theme-chalk/src/menu-item.scss +0 -0
  91. package/theme-chalk/src/menu.scss +376 -0
  92. package/theme-chalk/src/message-box.scss +220 -0
  93. package/theme-chalk/src/message.scss +123 -0
  94. package/theme-chalk/src/mixins/_button.scss +240 -0
  95. package/theme-chalk/src/mixins/_col.scss +41 -0
  96. package/theme-chalk/src/mixins/_var.scss +67 -0
  97. package/theme-chalk/src/mixins/config.scss +5 -0
  98. package/theme-chalk/src/mixins/function.scss +99 -0
  99. package/theme-chalk/src/mixins/mixins.scss +257 -0
  100. package/theme-chalk/src/mixins/utils.scss +39 -0
  101. package/theme-chalk/src/notification.scss +109 -0
  102. package/theme-chalk/src/option-group.scss +33 -0
  103. package/theme-chalk/src/option.scss +71 -0
  104. package/theme-chalk/src/overlay.scss +17 -0
  105. package/theme-chalk/src/page-header.scss +60 -0
  106. package/theme-chalk/src/pagination.scss +235 -0
  107. package/theme-chalk/src/popconfirm.scss +17 -0
  108. package/theme-chalk/src/popover.scss +61 -0
  109. package/theme-chalk/src/popper.scss +117 -0
  110. package/theme-chalk/src/progress.scss +179 -0
  111. package/theme-chalk/src/radio-button.scss +165 -0
  112. package/theme-chalk/src/radio-group.scss +9 -0
  113. package/theme-chalk/src/radio.scss +220 -0
  114. package/theme-chalk/src/rate.scss +121 -0
  115. package/theme-chalk/src/reset.scss +99 -0
  116. package/theme-chalk/src/result.scss +57 -0
  117. package/theme-chalk/src/row.scss +34 -0
  118. package/theme-chalk/src/scrollbar.scss +97 -0
  119. package/theme-chalk/src/segmented.scss +186 -0
  120. package/theme-chalk/src/select-dropdown-v2.scss +1 -0
  121. package/theme-chalk/src/select-dropdown.scss +57 -0
  122. package/theme-chalk/src/select-v2.scss +4 -0
  123. package/theme-chalk/src/select.scss +269 -0
  124. package/theme-chalk/src/skeleton-item.scss +83 -0
  125. package/theme-chalk/src/skeleton.scss +44 -0
  126. package/theme-chalk/src/slider.scss +212 -0
  127. package/theme-chalk/src/space.scss +20 -0
  128. package/theme-chalk/src/spinner.scss +43 -0
  129. package/theme-chalk/src/splitter-panel.scss +8 -0
  130. package/theme-chalk/src/splitter.scss +148 -0
  131. package/theme-chalk/src/statistic.scss +35 -0
  132. package/theme-chalk/src/step.scss +320 -0
  133. package/theme-chalk/src/steps.scss +22 -0
  134. package/theme-chalk/src/sub-menu.scss +0 -0
  135. package/theme-chalk/src/switch.scss +294 -0
  136. package/theme-chalk/src/tab-pane.scss +0 -0
  137. package/theme-chalk/src/table-column.scss +100 -0
  138. package/theme-chalk/src/table-v2.scss +239 -0
  139. package/theme-chalk/src/table.scss +698 -0
  140. package/theme-chalk/src/tabs.scss +699 -0
  141. package/theme-chalk/src/tag.scss +195 -0
  142. package/theme-chalk/src/text.scss +51 -0
  143. package/theme-chalk/src/time-picker.scss +5 -0
  144. package/theme-chalk/src/time-select.scss +37 -0
  145. package/theme-chalk/src/timeline-item.scss +135 -0
  146. package/theme-chalk/src/timeline.scss +101 -0
  147. package/theme-chalk/src/tooltip.scss +0 -0
  148. package/theme-chalk/src/tour.scss +187 -0
  149. package/theme-chalk/src/transfer.scss +201 -0
  150. package/theme-chalk/src/tree-select.scss +41 -0
  151. package/theme-chalk/src/tree.scss +134 -0
  152. package/theme-chalk/src/upload.scss +660 -0
  153. package/theme-chalk/src/var.scss +87 -0
  154. package/theme-chalk/src/virtual-list.scss +40 -0
@@ -0,0 +1,699 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'common/var' as *;
3
+
4
+ @include b(tabs) {
5
+ @include set-component-css-var('tabs', $tabs);
6
+ display: flex;
7
+
8
+ @include e(header) {
9
+ padding: 0;
10
+ position: relative;
11
+ margin: 0 0 15px;
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: space-between;
15
+ }
16
+ @include e(header-vertical) {
17
+ flex-direction: column;
18
+ }
19
+ @include e(active-bar) {
20
+ position: absolute;
21
+ bottom: 0;
22
+ left: 0;
23
+ height: 2px;
24
+ background-color: getCssVar('color-primary');
25
+ z-index: 1;
26
+ transition:
27
+ width getCssVar('transition-duration')
28
+ getCssVar('transition-function-ease-in-out-bezier'),
29
+ transform getCssVar('transition-duration')
30
+ getCssVar('transition-function-ease-in-out-bezier');
31
+ list-style: none;
32
+ &.is-bottom {
33
+ bottom: auto;
34
+ }
35
+ }
36
+ @include e(new-tab) {
37
+ display: flex;
38
+ align-items: center;
39
+ justify-content: center;
40
+ flex-shrink: 0;
41
+ border: 1px solid getCssVar('border-color');
42
+ height: 20px;
43
+ width: 20px;
44
+ line-height: 20px;
45
+ margin: 10px 0 10px 10px;
46
+ border-radius: 3px;
47
+ text-align: center;
48
+ font-size: 12px;
49
+ color: getCssVar('text-color', 'primary');
50
+ cursor: pointer;
51
+ transition: all 0.15s;
52
+
53
+ .is-icon-plus {
54
+ height: inherit;
55
+ width: inherit;
56
+ transform: scale(0.8, 0.8);
57
+
58
+ svg {
59
+ vertical-align: middle;
60
+ }
61
+ }
62
+
63
+ &:hover {
64
+ color: getCssVar('color-primary');
65
+ }
66
+ }
67
+ @include e(new-tab-vertical) {
68
+ margin-left: 0;
69
+ }
70
+ @include e(nav-wrap) {
71
+ overflow: hidden;
72
+ margin-bottom: -1px;
73
+ position: relative;
74
+ flex: 1 auto;
75
+
76
+ &::after {
77
+ content: '';
78
+ position: absolute;
79
+ left: 0;
80
+ bottom: 0;
81
+ width: 100%;
82
+ height: 2px;
83
+ background-color: getCssVar('border-color-light');
84
+ z-index: getCssVar('index-normal');
85
+ }
86
+
87
+ &.is-bottom::after {
88
+ top: 0;
89
+ bottom: auto;
90
+ }
91
+
92
+ @include when(scrollable) {
93
+ padding: 0 20px;
94
+ box-sizing: border-box;
95
+ }
96
+ }
97
+ @include e(nav-scroll) {
98
+ overflow: hidden;
99
+ }
100
+ @include e((nav-next, nav-prev)) {
101
+ position: absolute;
102
+ cursor: pointer;
103
+ line-height: 44px;
104
+ font-size: 12px;
105
+ color: getCssVar('text-color', 'secondary');
106
+ width: 20px;
107
+ text-align: center;
108
+
109
+ @include when(disabled) {
110
+ color: getCssVar('text-color', 'disabled');
111
+ cursor: not-allowed;
112
+ }
113
+ }
114
+ @include e(nav-next) {
115
+ right: 0;
116
+ }
117
+ @include e(nav-prev) {
118
+ left: 0;
119
+ }
120
+ @include e(nav) {
121
+ display: flex;
122
+ white-space: nowrap;
123
+ position: relative;
124
+ transition: transform getCssVar('transition-duration');
125
+ float: left;
126
+ z-index: calc(#{getCssVar('index-normal')} + 1);
127
+
128
+ @include when(stretch) {
129
+ min-width: 100%;
130
+ display: flex;
131
+ & > * {
132
+ flex: 1;
133
+ text-align: center;
134
+ }
135
+ }
136
+ }
137
+ @include e(item) {
138
+ padding: 0 20px;
139
+ height: getCssVar('tabs', 'header-height');
140
+ box-sizing: border-box;
141
+ display: flex;
142
+ align-items: center;
143
+ justify-content: center;
144
+ list-style: none;
145
+ font-size: getCssVar('font-size-base');
146
+ font-weight: 500;
147
+ color: getCssVar('text-color', 'primary');
148
+ position: relative;
149
+
150
+ &:focus,
151
+ &:focus:active {
152
+ outline: none;
153
+ }
154
+
155
+ &:focus-visible {
156
+ box-shadow: 0 0 2px 2px getCssVar('color-primary') inset;
157
+ border-radius: 3px;
158
+ }
159
+
160
+ & .is-icon-close {
161
+ border-radius: 50%;
162
+ text-align: center;
163
+ transition: all getCssVar('transition-duration')
164
+ getCssVar('transition-function-ease-in-out-bezier');
165
+ margin-left: 5px;
166
+
167
+ &:before {
168
+ transform: scale(0.9);
169
+ display: inline-block;
170
+ }
171
+
172
+ &:hover {
173
+ background-color: getCssVar('text-color', 'placeholder');
174
+ color: $color-white;
175
+ }
176
+ }
177
+
178
+ @include when(active) {
179
+ color: getCssVar('color-primary');
180
+ }
181
+
182
+ &:hover {
183
+ color: getCssVar('color-primary');
184
+ cursor: pointer;
185
+ }
186
+
187
+ @include when(disabled) {
188
+ color: getCssVar('disabled-text-color');
189
+ cursor: not-allowed;
190
+ }
191
+ }
192
+ @include e(content) {
193
+ overflow: hidden;
194
+ position: relative;
195
+ flex-grow: 1;
196
+ }
197
+ @include m((top, bottom)) {
198
+ > .#{$namespace}-tabs__header {
199
+ .#{$namespace}-tabs__item:nth-child(2) {
200
+ padding-left: 0;
201
+ }
202
+ .#{$namespace}-tabs__item:last-child {
203
+ padding-right: 0;
204
+ }
205
+ }
206
+
207
+ &.#{$namespace}-tabs--border-card,
208
+ &.#{$namespace}-tabs--card {
209
+ > .#{$namespace}-tabs__header {
210
+ .#{$namespace}-tabs__item:nth-child(2) {
211
+ padding-left: 20px;
212
+ }
213
+ .#{$namespace}-tabs__item:last-child {
214
+ padding-right: 20px;
215
+ }
216
+ }
217
+ }
218
+ }
219
+ @include m(card) {
220
+ > .#{$namespace}-tabs__header {
221
+ border-bottom: 1px solid getCssVar('border-color-light');
222
+ height: getCssVar('tabs', 'header-height');
223
+ box-sizing: border-box;
224
+ }
225
+ > .#{$namespace}-tabs__header .#{$namespace}-tabs__nav-wrap::after {
226
+ content: none;
227
+ }
228
+ > .#{$namespace}-tabs__header .#{$namespace}-tabs__nav {
229
+ border: 1px solid getCssVar('border-color-light');
230
+ border-bottom: none;
231
+ border-radius: 4px 4px 0 0;
232
+ box-sizing: border-box;
233
+ }
234
+ > .#{$namespace}-tabs__header .#{$namespace}-tabs__active-bar {
235
+ display: none;
236
+ }
237
+ > .#{$namespace}-tabs__header .#{$namespace}-tabs__item .is-icon-close {
238
+ position: relative;
239
+ font-size: 12px;
240
+ width: 0;
241
+ height: 14px;
242
+ overflow: hidden;
243
+ right: -2px;
244
+ transform-origin: 100% 50%;
245
+ }
246
+ > .#{$namespace}-tabs__header .#{$namespace}-tabs__item {
247
+ margin-top: -1px;
248
+ border-bottom: 1px solid transparent;
249
+ border-left: 1px solid getCssVar('border-color-light');
250
+ transition:
251
+ color getCssVar('transition-duration')
252
+ getCssVar('transition-function-ease-in-out-bezier'),
253
+ padding getCssVar('transition-duration')
254
+ getCssVar('transition-function-ease-in-out-bezier');
255
+
256
+ &:first-child {
257
+ border-left: none;
258
+ }
259
+
260
+ &.is-closable {
261
+ &:hover {
262
+ padding-left: 13px;
263
+ padding-right: 13px;
264
+
265
+ & .is-icon-close {
266
+ width: 14px;
267
+ }
268
+ }
269
+ }
270
+
271
+ &.is-active {
272
+ border-bottom-color: getCssVar('bg-color');
273
+
274
+ &.is-closable {
275
+ padding-left: 20px;
276
+ padding-right: 20px;
277
+
278
+ .is-icon-close {
279
+ width: 14px;
280
+ }
281
+ }
282
+ }
283
+ }
284
+ }
285
+ @include m(border-card) {
286
+ background: getCssVar('bg-color', 'overlay');
287
+ border: 1px solid getCssVar('border-color');
288
+
289
+ > .#{$namespace}-tabs__content {
290
+ padding: 15px;
291
+ }
292
+ > .#{$namespace}-tabs__header {
293
+ background-color: getCssVar('fill-color', 'light');
294
+ border-bottom: 1px solid getCssVar('border-color-light');
295
+ margin: 0;
296
+ }
297
+ > .#{$namespace}-tabs__header .#{$namespace}-tabs__nav-wrap::after {
298
+ content: none;
299
+ }
300
+ > .#{$namespace}-tabs__header .#{$namespace}-tabs__item {
301
+ transition: all getCssVar('transition-duration')
302
+ getCssVar('transition-function-ease-in-out-bezier');
303
+ border: 1px solid transparent;
304
+ margin-top: -1px;
305
+ color: getCssVar('text-color', 'secondary');
306
+
307
+ &:first-child {
308
+ margin-left: -1px;
309
+ }
310
+
311
+ & + .#{$namespace}-tabs__item {
312
+ margin-left: -1px;
313
+ }
314
+
315
+ &.is-active {
316
+ color: getCssVar('color-primary');
317
+ background-color: getCssVar('bg-color', 'overlay');
318
+ border-right-color: getCssVar('border-color');
319
+ border-left-color: getCssVar('border-color');
320
+ }
321
+
322
+ &:not(.is-disabled):hover {
323
+ color: getCssVar('color-primary');
324
+ }
325
+
326
+ &.is-disabled {
327
+ color: getCssVar('disabled-text-color');
328
+ }
329
+ }
330
+
331
+ > .#{$namespace}-tabs__header
332
+ .is-scrollable
333
+ .#{$namespace}-tabs__item:first-child {
334
+ margin-left: 0;
335
+ }
336
+ }
337
+ @include m(bottom) {
338
+ flex-direction: column;
339
+
340
+ .#{$namespace}-tabs__header.is-bottom {
341
+ margin-bottom: 0;
342
+ margin-top: 10px;
343
+ }
344
+ &.#{$namespace}-tabs--border-card {
345
+ .#{$namespace}-tabs__header.is-bottom {
346
+ border-bottom: 0;
347
+ border-top: 1px solid getCssVar('border-color');
348
+ }
349
+
350
+ .#{$namespace}-tabs__nav-wrap.is-bottom {
351
+ margin-top: -1px;
352
+ margin-bottom: 0;
353
+ }
354
+
355
+ .#{$namespace}-tabs__item.is-bottom:not(.is-active) {
356
+ border: 1px solid transparent;
357
+ }
358
+
359
+ .#{$namespace}-tabs__item.is-bottom {
360
+ margin: 0 -1px -1px;
361
+ }
362
+ }
363
+ }
364
+
365
+ @include m((card, border-card)) {
366
+ & > .#{$namespace}-tabs__header.is-left,
367
+ & > .#{$namespace}-tabs__header.is-right {
368
+ border-bottom: none;
369
+ }
370
+ }
371
+
372
+ @include m((left, right)) {
373
+ overflow: hidden;
374
+
375
+ .#{$namespace}-tabs__header.is-left,
376
+ .#{$namespace}-tabs__header.is-right,
377
+ .#{$namespace}-tabs__nav-wrap.is-left,
378
+ .#{$namespace}-tabs__nav-wrap.is-right,
379
+ .#{$namespace}-tabs__nav-scroll {
380
+ height: 100%;
381
+ }
382
+
383
+ .#{$namespace}-tabs__active-bar.is-left,
384
+ .#{$namespace}-tabs__active-bar.is-right {
385
+ top: 0;
386
+ bottom: auto;
387
+ width: 2px;
388
+ height: auto;
389
+ }
390
+
391
+ .#{$namespace}-tabs__nav-wrap.is-left,
392
+ .#{$namespace}-tabs__nav-wrap.is-right {
393
+ margin-bottom: 0;
394
+
395
+ > .#{$namespace}-tabs__nav-prev,
396
+ > .#{$namespace}-tabs__nav-next {
397
+ height: 30px;
398
+ line-height: 30px;
399
+ width: 100%;
400
+ text-align: center;
401
+ cursor: pointer;
402
+
403
+ i {
404
+ transform: rotateZ(90deg);
405
+ }
406
+
407
+ @include when(disabled) {
408
+ cursor: not-allowed;
409
+ }
410
+ }
411
+
412
+ > .#{$namespace}-tabs__nav-prev {
413
+ left: auto;
414
+ top: 0;
415
+ }
416
+
417
+ > .#{$namespace}-tabs__nav-next {
418
+ right: auto;
419
+ bottom: 0;
420
+ }
421
+
422
+ &.is-scrollable {
423
+ padding: 30px 0;
424
+ }
425
+
426
+ &::after {
427
+ height: 100%;
428
+ width: 2px;
429
+ bottom: auto;
430
+ top: 0;
431
+ }
432
+ }
433
+
434
+ .#{$namespace}-tabs__nav.is-left,
435
+ .#{$namespace}-tabs__nav.is-right {
436
+ flex-direction: column;
437
+ }
438
+
439
+ .#{$namespace}-tabs__item.is-left {
440
+ justify-content: flex-end;
441
+ }
442
+
443
+ .#{$namespace}-tabs__item.is-right {
444
+ justify-content: flex-start;
445
+ }
446
+ }
447
+ @include m(left) {
448
+ flex-direction: row;
449
+
450
+ .#{$namespace}-tabs__header.is-left {
451
+ margin-bottom: 0;
452
+ margin-right: 10px;
453
+ }
454
+ .#{$namespace}-tabs__nav-wrap.is-left {
455
+ margin-right: -1px;
456
+
457
+ &::after {
458
+ left: auto;
459
+ right: 0;
460
+ }
461
+ }
462
+ .#{$namespace}-tabs__active-bar.is-left {
463
+ right: 0;
464
+ left: auto;
465
+ }
466
+ .#{$namespace}-tabs__item.is-left {
467
+ text-align: right;
468
+ }
469
+
470
+ &.#{$namespace}-tabs--card {
471
+ .#{$namespace}-tabs__active-bar.is-left {
472
+ display: none;
473
+ }
474
+
475
+ .#{$namespace}-tabs__item.is-left {
476
+ border-left: none;
477
+ border-right: 1px solid getCssVar('border-color-light');
478
+ border-bottom: none;
479
+ border-top: 1px solid getCssVar('border-color-light');
480
+ text-align: left;
481
+ }
482
+
483
+ .#{$namespace}-tabs__item.is-left:first-child {
484
+ border-right: 1px solid getCssVar('border-color-light');
485
+ border-top: none;
486
+ }
487
+
488
+ .#{$namespace}-tabs__item.is-left.is-active {
489
+ border: 1px solid getCssVar('border-color-light');
490
+ border-right-color: #fff;
491
+ border-left: none;
492
+ border-bottom: none;
493
+
494
+ &:first-child {
495
+ border-top: none;
496
+ }
497
+
498
+ &:last-child {
499
+ border-bottom: none;
500
+ }
501
+ }
502
+
503
+ .#{$namespace}-tabs__nav {
504
+ border-radius: 4px 0 0 4px;
505
+ border-bottom: 1px solid getCssVar('border-color-light');
506
+ border-right: none;
507
+ }
508
+
509
+ .#{$namespace}-tabs__new-tab {
510
+ float: none;
511
+ }
512
+ }
513
+
514
+ &.#{$namespace}-tabs--border-card {
515
+ .#{$namespace}-tabs__header.is-left {
516
+ border-right: 1px solid getCssVar('border-color');
517
+ }
518
+
519
+ .#{$namespace}-tabs__item.is-left {
520
+ border: 1px solid transparent;
521
+ margin: -1px 0 -1px -1px;
522
+
523
+ &.is-active {
524
+ border-color: transparent;
525
+ border-top-color: rgb(209, 219, 229);
526
+ border-bottom-color: rgb(209, 219, 229);
527
+ }
528
+ }
529
+ }
530
+
531
+ // only for SSR
532
+ > .#{$namespace}-tabs__content + .#{$namespace}-tabs__header {
533
+ order: -1;
534
+ }
535
+ }
536
+ @include m(right) {
537
+ .#{$namespace}-tabs__header.is-right {
538
+ margin-bottom: 0;
539
+ margin-left: 10px;
540
+ }
541
+
542
+ .#{$namespace}-tabs__nav-wrap.is-right {
543
+ margin-left: -1px;
544
+
545
+ &::after {
546
+ left: 0;
547
+ right: auto;
548
+ }
549
+ }
550
+
551
+ .#{$namespace}-tabs__active-bar.is-right {
552
+ left: 0;
553
+ }
554
+
555
+ &.#{$namespace}-tabs--card {
556
+ .#{$namespace}-tabs__active-bar.is-right {
557
+ display: none;
558
+ }
559
+
560
+ .#{$namespace}-tabs__item.is-right {
561
+ border-bottom: none;
562
+ border-top: 1px solid getCssVar('border-color-light');
563
+ }
564
+
565
+ .#{$namespace}-tabs__item.is-right:first-child {
566
+ border-left: 1px solid getCssVar('border-color-light');
567
+ border-top: none;
568
+ }
569
+
570
+ .#{$namespace}-tabs__item.is-right.is-active {
571
+ border: 1px solid getCssVar('border-color-light');
572
+ border-left-color: #fff;
573
+ border-right: none;
574
+ border-bottom: none;
575
+
576
+ &:first-child {
577
+ border-top: none;
578
+ }
579
+
580
+ &:last-child {
581
+ border-bottom: none;
582
+ }
583
+ }
584
+
585
+ .#{$namespace}-tabs__nav {
586
+ border-radius: 0 4px 4px 0;
587
+ border-bottom: 1px solid getCssVar('border-color-light');
588
+ border-left: none;
589
+ }
590
+ }
591
+ &.#{$namespace}-tabs--border-card {
592
+ .#{$namespace}-tabs__header.is-right {
593
+ border-left: 1px solid getCssVar('border-color');
594
+ }
595
+
596
+ .#{$namespace}-tabs__item.is-right {
597
+ border: 1px solid transparent;
598
+ margin: -1px -1px -1px 0;
599
+
600
+ &.is-active {
601
+ border-color: transparent;
602
+ border-top-color: rgb(209, 219, 229);
603
+ border-bottom-color: rgb(209, 219, 229);
604
+ }
605
+ }
606
+ }
607
+ }
608
+ @include m(top) {
609
+ flex-direction: column;
610
+
611
+ // only for SSR
612
+ > .#{$namespace}-tabs__content + .#{$namespace}-tabs__header {
613
+ order: -1;
614
+ }
615
+ }
616
+ }
617
+
618
+ .slideInRight-transition,
619
+ .slideInLeft-transition {
620
+ display: inline-block;
621
+ }
622
+
623
+ .slideInRight-enter {
624
+ animation: slideInRight-enter getCssVar('transition-duration');
625
+ }
626
+
627
+ .slideInRight-leave {
628
+ position: absolute;
629
+ left: 0;
630
+ right: 0;
631
+ animation: slideInRight-leave getCssVar('transition-duration');
632
+ }
633
+
634
+ .slideInLeft-enter {
635
+ animation: slideInLeft-enter getCssVar('transition-duration');
636
+ }
637
+
638
+ .slideInLeft-leave {
639
+ position: absolute;
640
+ left: 0;
641
+ right: 0;
642
+ animation: slideInLeft-leave getCssVar('transition-duration');
643
+ }
644
+
645
+ @keyframes slideInRight-enter {
646
+ 0% {
647
+ opacity: 0;
648
+ transform-origin: 0 0;
649
+ transform: translateX(100%);
650
+ }
651
+
652
+ to {
653
+ opacity: 1;
654
+ transform-origin: 0 0;
655
+ transform: translateX(0);
656
+ }
657
+ }
658
+
659
+ @keyframes slideInRight-leave {
660
+ 0% {
661
+ transform-origin: 0 0;
662
+ transform: translateX(0);
663
+ opacity: 1;
664
+ }
665
+
666
+ 100% {
667
+ transform-origin: 0 0;
668
+ transform: translateX(100%);
669
+ opacity: 0;
670
+ }
671
+ }
672
+
673
+ @keyframes slideInLeft-enter {
674
+ 0% {
675
+ opacity: 0;
676
+ transform-origin: 0 0;
677
+ transform: translateX(-100%);
678
+ }
679
+
680
+ to {
681
+ opacity: 1;
682
+ transform-origin: 0 0;
683
+ transform: translateX(0);
684
+ }
685
+ }
686
+
687
+ @keyframes slideInLeft-leave {
688
+ 0% {
689
+ transform-origin: 0 0;
690
+ transform: translateX(0);
691
+ opacity: 1;
692
+ }
693
+
694
+ 100% {
695
+ transform-origin: 0 0;
696
+ transform: translateX(-100%);
697
+ opacity: 0;
698
+ }
699
+ }