cy-element-ui 1.0.47 → 1.0.48

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