search-box.less
1.08 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
.search-box {
position: relative;
margin-bottom: 16px;
&:last-child {
margin-bottom: 0px;
}
.lbl {
font-size: 12px;
padding: 0;
margin-bottom: 4px;
display: block;
font-weight: 600;
}
.control {
display: block;
border:0;
width: 100%;
height: 32px;
background-color: #eee;
padding: 0 8px;
color: #333;
border-radius: 4px;
}
.loading {
position: absolute;
top: 49px;
width: 20px;
right: 32px;
}
ul {
position: absolute;
top: 54px;
left: 0;
right: 0;
margin-top: -4px;
list-style: none;
padding-left: 0;
li {
background: #eee;
color: #888;
padding: 4px 8px;
border-bottom: 1px solid #ddd;
cursor: pointer;
&:first-child {
border-top: 1px solid #ddd;
}
&:last-child {
border-radius: 0 0 4px 4px;
}
}
}
}