SegControl.less
1.3 KB
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
.wev-comp-SegControl{
position:relative;
padding: 7px 10px;
background-color: #fff;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
box-sizing: border-box;
}
.wev-comp-SegControl .wev-segmented-control{
margin: 0 auto;
display: table;
overflow: hidden;
font-size: @font-size-base;
line-height: 21 * @hd;
font-weight: 400;
background-color: #fff;
border: 1px solid var(--themeColor);
border-radius: 3px;
box-sizing: border-box;
border-collapse: separate;
}
.wev-segmented-control .wev-control-item{
display: table-cell;
width: 1%;
padding-top: 6px;
padding-bottom: 7px;
overflow: hidden;
line-height: 1;
color: var(--themeColor);
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
border-left: 1px solid var(--themeColor);
text-decoration: none;
-webkit-tap-highlight-color: transparent;
box-sizing: border-box;
font-size: @font-size-base;
font-weight: 400;
cursor: pointer;
}
.wev-segmented-control .wev-control-item:first-child{
border-left-width: 0;
}
.wev-segmented-control .wev-control-item.active {
color: white;
background-color: var(--themeColor);
}
.wev-segmented-control .wev-numremind{
margin-left: 2px;
display: none;
}
.wev-segmented-control .wev-numremind:before {
content: '(';
}
.wev-segmented-control .wev-numremind:after {
content: ')';
}