iov-design 2.15.22 → 2.15.23

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.
@@ -55,12 +55,12 @@
55
55
  cursor: pointer;
56
56
  transition: all .15s;
57
57
 
58
- .el-icon-plus {
58
+ .iov-icon-plus {
59
59
  transform: scale(0.8, 0.8);
60
60
  }
61
61
 
62
62
  &:hover {
63
- color: $--color-primary;
63
+ color: $--color-primary-6;
64
64
  }
65
65
  }
66
66
  @include e(nav-wrap) {
@@ -128,15 +128,11 @@
128
128
  color: $--color-text-3;
129
129
  position: relative;
130
130
 
131
- &:focus, &:focus:active {
131
+ &:focus,
132
+ &:focus:active {
132
133
  outline: none;
133
134
  }
134
135
 
135
- // &:focus.is-active.is-focus:not(:active) {
136
- // box-shadow: 0 0 2px 2px $--color-primary inset;
137
- // border-radius: 3px;
138
- // }
139
-
140
136
  & .iov-icon-close-mini {
141
137
  border-radius: 50%;
142
138
  text-align: center;
@@ -146,10 +142,6 @@
146
142
  &:before {
147
143
  display: inline-block;
148
144
  }
149
-
150
- // &:hover {
151
- // color: $--color-white;
152
- // }
153
145
  }
154
146
 
155
147
  @include when(active) {
@@ -170,6 +162,19 @@
170
162
  overflow: hidden;
171
163
  position: relative;
172
164
  }
165
+
166
+ @include m(normal) {
167
+ .el-tabs__item {
168
+ &.is-right {
169
+ &:nth-child(2) {
170
+ padding-left: 16px;
171
+ }
172
+ }
173
+ &:nth-child(2) {
174
+ padding-left: 0;
175
+ }
176
+ }
177
+ }
173
178
  @include m(card) {
174
179
  .el-tabs__item {
175
180
  height: 36px;
@@ -193,25 +198,25 @@
193
198
  line-height: 28px;
194
199
  }
195
200
  }
196
- > .el-tabs__header {
201
+ .el-tabs__header {
197
202
  border-bottom: 1px solid $--color-line-1;
198
203
  }
199
- > .el-tabs__header .el-tabs__nav-wrap::after {
204
+ .el-tabs__nav-wrap::after {
200
205
  content: none;
201
206
  }
202
- > .el-tabs__header .el-tabs__nav {
207
+ .el-tabs__nav {
203
208
  box-sizing: border-box;
204
209
  }
205
- > .el-tabs__header .el-tabs__active-bar {
210
+ .el-tabs__active-bar {
206
211
  display: none;
207
212
  }
208
- > .el-tabs__header .el-tabs__item .iov-icon-close-mini {
213
+ .el-tabs__item .iov-icon-close-mini {
209
214
  position: relative;
210
215
  font-size: 10px;
211
216
  overflow: hidden;
212
217
  transform-origin: 100% 50%;
213
218
  }
214
- > .el-tabs__header .el-tabs__item {
219
+ .el-tabs__item {
215
220
  margin-right: 5px;
216
221
  border-radius: 4px 4px 0 0;
217
222
  border: 1px solid $--color-line-1;
@@ -242,27 +247,114 @@
242
247
  }
243
248
  }
244
249
  }
250
+ @include m(capsule) {
251
+ .el-tabs__item {
252
+ height: 30px;
253
+ line-height: 30px;
254
+ font-size: 14px;
255
+ font-weight: normal;
256
+ border-radius: 4px;
257
+ padding: 0 14px;
258
+ color: $--color-text-3;
259
+ transition: all ease .2s;
260
+ &:hover {
261
+ background: $--color-white;
262
+ }
263
+ }
264
+ &.el-tabs--medium {
265
+ .el-tabs__item {
266
+ height: 30px;
267
+ line-height: 30px;
268
+ font-size: 13px;
269
+ }
270
+ }
271
+ &.el-tabs--small {
272
+ .el-tabs__item {
273
+ height: 26px;
274
+ line-height: 26px;
275
+ font-size: 13px;
276
+ }
277
+ }
278
+ &.el-tabs--mini {
279
+ .el-tabs__item {
280
+ height: 24px;
281
+ line-height: 24px;
282
+ font-size: 12px;
283
+ }
284
+ }
285
+ .el-tabs__header {
286
+ padding: 2px;
287
+ display: inline-block;
288
+ background: $--color-fill-2;
289
+ border-radius: 4px;
290
+ box-sizing: border-box;
291
+ margin: 0 auto;
292
+ }
293
+ .el-tabs__nav-wrap {
294
+ margin-bottom: 0;
295
+ content: none;
296
+ }
297
+ .el-tabs__nav {
298
+ box-sizing: border-box;
299
+ }
300
+ .el-tabs__item .iov-icon-close-mini {
301
+ position: relative;
302
+ font-size: 10px;
303
+ overflow: hidden;
304
+ transform-origin: 100% 50%;
305
+ }
306
+ .el-tabs__item {
307
+ transition: color .3s cubic-bezier(.645,.045,.355,1), padding .3s cubic-bezier(.645,.045,.355,1);
308
+ &.is-closable {
309
+ &:hover {
310
+ padding-left: 13px;
311
+ padding-right: 13px;
312
+
313
+ & .iov-icon-close-mini {
314
+ width: 10px;
315
+ }
316
+ }
317
+ }
318
+ &.is-active {
319
+ background: $--color-white;
320
+ color: $--color-primary-6;
321
+
322
+ &.is-closable {
323
+ padding-left: 20px;
324
+ padding-right: 20px;
325
+
326
+ .iov-icon-close-mini {
327
+ width: 10px;
328
+ }
329
+ }
330
+ }
331
+ &.is-disabled {
332
+ color: $--color-text-2;
333
+ background: none;
334
+ }
335
+ }
336
+ }
245
337
  @include m(border-card) {
246
338
  background: $--color-white;
247
339
  border: 1px solid $--border-color-base;
248
340
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.12), 0 0 6px 0 rgba(0,0,0,0.04);
249
341
 
250
- > .el-tabs__content {
342
+ .el-tabs__content {
251
343
  padding: 15px;
252
344
  }
253
- > .el-tabs__header {
254
- background-color: $--background-color-base;
255
- border-bottom: 1px solid $--border-color-light;
345
+ .el-tabs__header {
346
+ background-color: $--color-fill-1;
347
+ border-bottom: 1px solid $--color-line-5;
256
348
  margin: 0;
257
349
  }
258
- > .el-tabs__header .el-tabs__nav-wrap::after {
350
+ .el-tabs__nav-wrap::after {
259
351
  content: none;
260
352
  }
261
- > .el-tabs__header .el-tabs__item {
353
+ .el-tabs__item {
262
354
  transition: all .3s cubic-bezier(.645,.045,.355,1);
263
355
  border: 1px solid transparent;
264
356
  margin-top: -1px;
265
- color: $--color-text-secondary;
357
+ color: $--color-text-3;
266
358
 
267
359
  &:first-child {
268
360
  margin-left: -1px;
@@ -273,67 +365,23 @@
273
365
  }
274
366
 
275
367
  &.is-active {
276
- color: $--color-primary;
368
+ color: $--color-primary-6;
277
369
  background-color: $--color-white;
278
- border-right-color: $--border-color-base;
279
- border-left-color: $--border-color-base;
370
+ border-right-color: $--color-line-5;
371
+ border-left-color: $--color-line-5;
280
372
  }
281
373
  &:not(.is-disabled):hover {
282
- color: $--color-primary;
374
+ color: $--color-primary-6;
283
375
  }
284
376
  &.is-disabled {
285
- color: $--disabled-color-base;
377
+ color: $--color-text-2;
286
378
  }
287
379
  }
288
380
 
289
- > .el-tabs__header .is-scrollable .el-tabs__item:first-child {
381
+ .is-scrollable .el-tabs__item:first-child {
290
382
  margin-left: 0;
291
383
  }
292
384
  }
293
- @include m((top, bottom)) {
294
- .el-tabs__item.is-top:nth-child(2),
295
- .el-tabs__item.is-bottom:nth-child(2) {
296
- padding-left: 0;
297
- }
298
- .el-tabs__item.is-top:last-child,
299
- .el-tabs__item.is-bottom:last-child {
300
- padding-right: 0;
301
- }
302
-
303
- &.el-tabs--border-card, &.el-tabs--card,
304
- .el-tabs--left, .el-tabs--right {
305
- > .el-tabs__header {
306
- .el-tabs__item:nth-child(2) {
307
- padding-left: 20px;
308
- }
309
- .el-tabs__item:last-child {
310
- padding-right: 20px;
311
- }
312
- }
313
- }
314
- }
315
- @include m(bottom) {
316
- .el-tabs__header.is-bottom {
317
- margin-bottom: 0;
318
- margin-top: 10px;
319
- }
320
- &.el-tabs--border-card {
321
- .el-tabs__header.is-bottom {
322
- border-bottom: 0;
323
- border-top: 1px solid $--border-color-base;
324
- }
325
- .el-tabs__nav-wrap.is-bottom {
326
- margin-top: -1px;
327
- margin-bottom: 0;
328
- }
329
- .el-tabs__item.is-bottom:not(.is-active) {
330
- border: 1px solid transparent;
331
- }
332
- .el-tabs__item.is-bottom {
333
- margin: 0 -1px -1px -1px;
334
- }
335
- }
336
- }
337
385
  @include m((left, right)) {
338
386
  overflow: hidden;
339
387
 
@@ -426,17 +474,17 @@
426
474
  }
427
475
  .el-tabs__item.is-left {
428
476
  border-left: none;
429
- border-right: 1px solid $--border-color-light;
477
+ border-right: 1px solid $--color-line-5;
430
478
  border-bottom: none;
431
- border-top: 1px solid $--border-color-light;
479
+ border-top: 1px solid $--color-line-5;
432
480
  text-align: left;
433
481
  }
434
482
  .el-tabs__item.is-left:first-child {
435
- border-right: 1px solid $--border-color-light;
483
+ border-right: 1px solid $--color-line-5;
436
484
  border-top: none;
437
485
  }
438
486
  .el-tabs__item.is-left.is-active {
439
- border: 1px solid $--border-color-light;
487
+ border: 1px solid $--color-line-5;
440
488
  border-right-color: #fff;
441
489
  border-left: none;
442
490
  border-bottom: none;
@@ -451,7 +499,7 @@
451
499
 
452
500
  .el-tabs__nav {
453
501
  border-radius: 4px 0 0 4px;
454
- border-bottom: 1px solid $--border-color-light;
502
+ border-bottom: 1px solid $--color-line-5;
455
503
  border-right: none;
456
504
  }
457
505
 
@@ -501,14 +549,14 @@
501
549
  }
502
550
  .el-tabs__item.is-right {
503
551
  border-bottom: none;
504
- border-top: 1px solid $--border-color-light;
552
+ border-top: 1px solid $--color-line-5;
505
553
  }
506
554
  .el-tabs__item.is-right:first-child {
507
- border-left: 1px solid $--border-color-light;
555
+ border-left: 1px solid $--color-line-5;
508
556
  border-top: none;
509
557
  }
510
558
  .el-tabs__item.is-right.is-active {
511
- border: 1px solid $--border-color-light;
559
+ border: 1px solid $--color-line-5;
512
560
  border-left-color: #fff;
513
561
  border-right: none;
514
562
  border-bottom: none;
@@ -523,13 +571,13 @@
523
571
 
524
572
  .el-tabs__nav {
525
573
  border-radius: 0 4px 4px 0;
526
- border-bottom: 1px solid $--border-color-light;
574
+ border-bottom: 1px solid $--color-line-5;
527
575
  border-left: none;
528
576
  }
529
577
  }
530
578
  &.el-tabs--border-card {
531
579
  .el-tabs__header.is-right {
532
- border-left: 1px solid #dfe4ed;
580
+ border-left: 1px solid #f00;
533
581
  }
534
582
  .el-tabs__item.is-right {
535
583
  border: 1px solid transparent;
@@ -301,7 +301,7 @@
301
301
  @include m(small) {
302
302
  font-size: $--tag-small-font-size;
303
303
  height: 26px;
304
- border-radius: 2px;
304
+ border-radius: 4px;
305
305
  line-height: 24px;
306
306
 
307
307
  .el-tag-icon {
@@ -316,7 +316,7 @@
316
316
  @include m(mini) {
317
317
  font-size: $--tag-small-font-size;
318
318
  height: 22px;
319
- border-radius: 2px;
319
+ border-radius: 4px;
320
320
  line-height: 20px;
321
321
 
322
322
  .el-tag-icon {
package/src/index.js CHANGED
@@ -212,7 +212,7 @@ if (typeof window !== 'undefined' && window.Vue) {
212
212
  }
213
213
 
214
214
  export default {
215
- version: '2.15.22',
215
+ version: '2.15.23',
216
216
  locale: locale.use,
217
217
  i18n: locale.i18n,
218
218
  install,