啊鑫
8 天以前 fca192d3c38c5dcfbb6ace8bc71d6078f6a079b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
@import '../style/var';
 
.van-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: @tag-padding;
  color: @tag-text-color;
  font-size: @tag-font-size;
  line-height: @tag-line-height;
  border-radius: @tag-border-radius;
 
  &--default {
    background-color: @tag-default-color;
 
    &.van-tag--plain {
      color: @tag-default-color;
    }
  }
 
  &--danger {
    background-color: @tag-danger-color;
 
    &.van-tag--plain {
      color: @tag-danger-color;
    }
  }
 
  &--primary {
    background-color: @tag-primary-color;
 
    &.van-tag--plain {
      color: @tag-primary-color;
    }
  }
 
  &--success {
    background-color: @tag-success-color;
 
    &.van-tag--plain {
      color: @tag-success-color;
    }
  }
 
  &--warning {
    background-color: @tag-warning-color;
 
    &.van-tag--plain {
      color: @tag-warning-color;
    }
  }
 
  &--plain {
    background-color: @tag-plain-background-color;
    border-color: currentColor;
 
    &::before {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      border: 1px solid;
      border-color: inherit;
      border-radius: inherit;
      content: '';
      pointer-events: none;
    }
  }
 
  &--medium {
    padding: @tag-medium-padding;
  }
 
  &--large {
    padding: @tag-large-padding;
    font-size: @tag-large-font-size;
    border-radius: @tag-large-border-radius;
  }
 
  &--mark {
    border-radius: 0 @tag-round-border-radius @tag-round-border-radius 0;
 
    &::after {
      display: block;
      width: 2px;
      content: '';
    }
  }
 
  &--round {
    border-radius: @tag-round-border-radius;
  }
 
  &__close {
    margin-left: 2px;
    cursor: pointer;
  }
}