-
Notifications
You must be signed in to change notification settings - Fork 83
/
wxSearchView.wxss
170 lines (150 loc) · 2.9 KB
/
wxSearchView.wxss
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
/** 整个区域 */
.wxSearch{
position: absolute;
top: 43px;
left: 0;
width: 100%;
height: 100%;
border-top: 1px #eee solid;
background-color: rgba(200, 200, 200, 0.1);
z-index: 9999;
}
/** 搜索框下面的提示区域 */
.wxSearchInner{
background-color: #fff;
}
/** 搜索热点标题 */
.wxSearchTitle{
display: block;
padding: 10px 5px 5px 10px;
font-size: 13px;
text-align: left;
}
/** 提示样式 */
.wxSearchMindKeyItem{
padding: 10px 5px 10px 15px;
margin-left: 10px;
border-bottom: 1px solid #eee;
display: flex;
font-size: 13px;
}
/** 标签样式 */
.wxSearchKeyList{
display: flex;
flex-direction: row;
flex-wrap: wrap;
border-bottom: 1px solid #eee;
}
/** 标签样式 */
.wxSearchKeyItem{
flex: 0 0 18%;
font-size: 13px;
text-align: center;
border: 1px solid #eee;
margin: 5px;
padding: 4px 5px 4px 5px;
border-radius: 0px;
background-color: rgba(200, 200, 200, 0.1);
}
/** 搜索记录标题栏 */
.wxSearchHistoryItem{
padding-left: 10px;
padding-top: 10px;
padding-right: 5px;
padding-bottom: 5px;
display: flex;
}
/** 搜索记录标题 */
.wxSearchHistoryItemTitle{
flex: 8;
font-size: 13px;
}
/** 搜索记录删除按钮 */
.wxSearchHistoryItemDel{
flex: 1;
font-size: 13px;
text-align: center;
padding-top:2px;
padding-bottom: 2px;
border: 1px solid #eee;
border-radius: 2px;
}
/** ---------------------- 以下是搜索框的 we-ui 样式--------------------------------*/
/*!
* WeUI v1.1.1 (https://github.com/weui/weui-wxss)
* Copyright 2017 Tencent, Inc.
* Licensed under the MIT license
*/
.weui-search-bar {
position: relative;
padding: 8px 10px;
display: -webkit-box;
display: -webkit-flex;
display: flex;
box-sizing: border-box;
background-color: #efeff4;
border-top: 1rpx solid #d7d6dc;
border-bottom: 1rpx solid #d7d6dc;
}
.weui-icon-search {
margin-right: 8px;
font-size: inherit;
}
.weui-icon-search_in-box {
position: absolute;
left: 10px;
top: 7px;
}
.weui-search-bar__text {
display: inline-block;
font-size: 14px;
vertical-align: middle;
}
.weui-search-bar__form {
position: relative;
-webkit-box-flex: 1;
-webkit-flex: auto;
flex: auto;
border-radius: 5px;
background: #fff;
border: 1rpx solid #e6e6ea;
}
.weui-search-bar__box {
position: relative;
padding-left: 30px;
padding-right: 30px;
width: 100%;
box-sizing: border-box;
z-index: 1;
}
.weui-search-bar__input {
height: 28px;
line-height: 28px;
font-size: 14px;
}
.weui-icon-clear {
position: absolute;
top: 0;
right: 0;
padding: 7px 8px;
font-size: 0;
}
.weui-search-bar__label {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 2;
border-radius: 3px;
text-align: center;
color: #9b9b9b;
background: #fff;
line-height: 28px;
}
.weui-search-bar__cancel-btn {
margin-left: 10px;
line-height: 28px;
color: #09bb07;
white-space: nowrap;
}