TopSearch.less
1.83 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.wev-topsearch-nav{
position: relative;
}
.wev-topsearch-nav::before,
.wev-topsearch-nav::after{
content: "";
position: absolute;
z-index: 99;
background-color: #e5e5e5;
height: 1px;
left: 0;
right: 0;
transform: scaleY(0.5);
}
.wev-topsearch-nav::before{
top: 0;
}
.wev-topsearch-nav::after{
bottom: -1px;
}
.wev-topsearch-nav .wev-filter-items{
position: relative;
}
.wev-topsearch-nav .wev-filter-item{
position: relative;
text-align: center;
height: 44px;
line-height: 44px;
background-color: #fff;
color: #333;
font-size: @font-size-base;
padding: 0 5px;
width: 100%;
}
.wev-topsearch-nav .wev-filter-item.active,
.wev-topsearch-nav .wev-filter-item.open{
color: var(--themeColor);
}
.wev-topsearch-nav .wev-filter-item span{
box-sizing: border-box;
position: relative;
display: inline-block;
max-width: 100%;
padding-right: 16px;
}
.wev-topsearch-nav .wev-filter-item span::after{
content: '';
display: block;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #868686;
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
}
.wev-topsearch-nav .wev-filter-item.active span::after{
border-top: 5px solid var(--themeColor);
}
.wev-topsearch-nav .wev-filter-item.open span::after{
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid var(--themeColor);
border-top: 0;
}
.wev-topsearch-nav .wev-filter-item:not(:last-child)::before{
content: "";
position: absolute;
z-index: 1;
pointer-events: none;
background-color: #c8c7cc;
}
.wev-topsearch-nav .wev-filter-item:not(:last-child)::before{
width: 1px;
right: 0;
top: 12px;
bottom: 12px;
transform: scaleX(0.5);
}