tabs.less
1.2 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
58
59
.tabs_warp {
.ant-tabs {
background-color: #fff;
line-height: 20px;
font-size: 16px;
font-weight: 400;
border-radius: 8px 8px 0 0;
.ant-tabs-nav {
margin: 0;
&::before {
border-color: #f2f3f5;
}
.ant-tabs-nav-wrap {
padding: 0 32px;
.ant-tabs-tab {
padding: 31px 0 21px 0;
.ant-tabs-tab-btn {
font-size: 16px;
color: #606266;
&::after {
content: ' ';
width: 20px;
position: absolute;
left: calc(~'50% - 10px');
bottom: 1px;
border-bottom: 2px solid transparent;
box-shadow: 0px 4px 10px 0px rgba(78, 89, 105, 0.06);
border-radius: 2px;
transition: 0.4s;
transform: scaleX(0);
}
}
}
.ant-tabs-tab-active {
.ant-tabs-tab-btn {
font-size: 16px;
color: #1d2129 !important;
&::after {
border-color: #1677ff;
transform: scaleX(1);
}
}
}
.ant-tabs-ink-bar {
display: none;
}
}
}
}
}