-
Notifications
You must be signed in to change notification settings - Fork 162
/
_home-search-box.scss
77 lines (69 loc) · 1.62 KB
/
_home-search-box.scss
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
.search-box {
width: 100%;
min-height: 60px;
background: #EEE;
box-shadow: rgba(0, 0, 0, .25) 0 0 3px;
form {
min-height: 60px;
label {
display: block;
line-height: 40px;
font-size: 16px;
font-size: 1.6rem;
color: #333;
text-align: center;
width: 100%;
}
input,
button {
border: 1px solid $color-secondary;
background: #FFF;
margin: 5px 0 12px;
}
input {
height: 34px;
padding: 0 15px;
border-right: none;
width: 85%;
width: calc(100% - 71px);
outline: none;
}
button {
height: 36px;
text-indent: -9999px;
border-left: none;
width: 40px;
transition: background $transition-duration;
position: absolute;
bottom: 0;
right: 15px;
&:hover {
background: #EEE;
}
&:after {
top: 9px;
left: 12px;
@include sprite-position($search);
}
}
}
}
@media only screen and #{$media-wide} {
.search-box {
form {
label {
line-height: 60px;
width: 300px;
float: left;
}
input,
button {
margin: 12px 0;
float: left;
}
input {
width: calc(100% - 371px);
}
}
}
}