-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsearch-bar.css
79 lines (69 loc) · 1.57 KB
/
search-bar.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
body {
padding: 0;
margin: 0;
height: 100vh;
width: 100%;
}
form {
position: relative;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: all 1s;
width: 50px;
height: 50px;
background: white;
box-sizing: border-box;
border-radius: 25px;
border: 4px solid white;
padding: 5px;
box-shadow: 0px 0px 15px #4D77FF;
}
input {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 42.5px;
line-height: 30px;
outline: 0;
border: 0;
display: none;
font-size: 1em;
border-radius: 20px;
padding: 0 20px;
}
.fa {
box-sizing: border-box;
padding: 10px;
width: 42.5px;
height: 42.5px;
position: absolute;
top: 0;
right: 0;
border-radius: 50%;
color: #637eff;
text-align: center;
font-size: 1.2em;
transition: all 1s;
}
form:hover {
width: 30px;
cursor: pointer;
}
form:hover input {
display: block;
}
form:hover .fa {
background: #637eff;
color: white;
}
.search-bar {
margin-right: 40px;
}
.searchContainer {
display: inline-flex;
flex: 1 1 300px;
}
.searchContainer input.searchBox {}
.searchContainer .searchIcon {}