FilterBar.wxss
1.47 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/* components/FilterBar/FilterBar.wxss */
.filter-bar {
background: #FFFFFF;
padding: 16rpx 24rpx;
}
/* Search Box */
.search-box {
margin-bottom: 16rpx;
}
.search-input {
background: #F7F8FA;
border-radius: 72rpx;
width: 100%;
height: 72rpx;
display: flex;
align-items: center;
}
.search-icon {
width: 28rpx;
height: 28rpx;
margin: 0 10rpx 0 26rpx;
flex-shrink: 0;
}
.search-clear {
width: 36rpx;
height: 36rpx;
margin: 0 26rpx 0 10rpx;
flex-shrink: 0;
z-index: 10;
}
.input {
font-size: 28rpx;
height: 38rpx;
line-height: 38rpx;
flex: 1;
color: #333;
}
.input-placeholder {
color: #BBBBBB;
}
/* Filter Box */
.filter-box {
display: flex;
justify-content: space-between;
align-items: center;
}
.filter-list {
display: flex;
align-items: center;
flex-wrap: wrap;
}
.filter-item {
height: 56rpx;
border-radius: 56rpx;
background: #F7F8FA;
padding: 0 16rpx 0 24rpx;
font-size: 26rpx;
color: #666666;
margin-right: 16rpx;
display: flex;
align-items: center;
/* Handle wrap if many filters */
}
.filter-item.active {
color: #2C66F7;
/* background: #F7F8FA; */
/* Background stays same in reference */
}
.filter-text {
line-height: 40rpx;
max-width: 170rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.filter-icon {
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
margin-left: 4rpx;
}
.reset-btn {
color: #222222;
font-size: 26rpx;
padding: 10rpx;
flex-shrink: 0;
}