-
Notifications
You must be signed in to change notification settings - Fork 2
/
search.css
110 lines (97 loc) · 1.96 KB
/
search.css
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
body,
input[type="search"]{
font-family:
HelveticaNeue, 'Helvetica Neue', HelveticaNeueRoman,
HelveticaNeue-Roman, 'Helvetica Neue Roman', Helvetica,
Tahoma, Geneva, Arial, sans-serif;
font-size: 14px;
line-height: 22px;
font-weight: normal;
}
body{
padding: 100px 0;
background-color: #F8F8F8;
color: #444;
}
.content{
width: 500px;
margin: 0px auto;
}
#search{
background-color: rgba(255,255,255,0.9);
border-bottom: 1px solid rgba(0,0,0,0.25);
padding: 10px;
position: fixed;
top: 0;
left: 0;
right: 0;
min-height: 40px;
max-height: 40px;
overflow: hidden;
-webkit-transition: all .2s ease-in-out;
}
#search.active{
padding: 40px 0 20px 0;
background-color: #FFF;
border-color: #4863CC;
box-shadow: 0 3px 5px rgba(0,0,0,0.4);
min-height: 200px;
max-height: none;
-webkit-animation: BounceOpen 0.5s 1;
}
@-webkit-keyframes BounceOpen {
0% { min-height: 40px; }
50% { min-height: 240px; }
80% { min-height: 185px; }
100% { min-height: 200px; }
}
#search.active input{
color: #000;
}
#search input{
width: 100%;
text-align: left;
position: relative;
left: -5px;
padding: 5px 0;
background-color: rgba(0,0,0,0);
border: none;
outline: none;
-webkit-appearance: none;
font-style: underline;
color: #888;
font-size: 18px;
line-height: 26px;
}
#search .results{
list-style-type: none;
padding: 0;
margin: 0;
height: auto;
font-size: 14px;
font-weight: lighter;
line-height: 18px;
color: #888;
-webkit-transition: all .2s ease-in-out;
}
#search .results li{
cursor: pointer;
padding: 15px 10px;
margin: 0;
border-top: 1px solid #BBB;
position: relative;
-webkit-animation: FloatIn 0.2s 1;
}
@-webkit-keyframes FloatIn {
0% { top: 30px; opacity: 0;}
100% { top: 0; opacity: 1;}
}
#search .results li:first-child{
color: #4863CC;
border-color: #4863CC;
}
#search .results li:hover{
background-color: #E1E7F8;
border-color: #4863CC;
color: #4863CC;
}