forked from eleven-labs/blog.eleven-labs.com
/
_search-bar.scss
73 lines (63 loc) · 1.49 KB
/
_search-bar.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
.search-bar {
position: relative;
font-size: 1.4rem;
@media (min-width: 480px) {
margin-right: 25px;
}
@media (max-width: 480px) {
max-width: 120px;
margin-left: auto;
margin-right: auto;
margin-bottom: 10px;
}
&-label {
font-size: 1.1rem;
text-transform: uppercase;
letter-spacing: 0.1em;
}
&-input {
cursor: pointer;
display: block;
padding: 4px;
position: absolute;
z-index: 10;
top: 0;
bottom:0;
right: 0;
border: none;
opacity: 0;
min-width: 100%;
max-width: 100%;
background: white;
border-bottom: 2px solid transparent;
transition: all .2s ease;
&:focus {
opacity: 1;
outline: none;
border-bottom: 2px solid $brand-black;
@media (min-width: 480px) {
min-width: 120px;
}
@media (max-width: 480px) {
left: -30px;
right: -30px;
max-width: 1000px;
}
}
}
}
.search-logo {
font-size: 1.3rem;
padding-bottom: 15px;
padding-top: 15px;
text-align: right;
&-bg {
background: url('../img/Algolia_logo_bg-white.svg') no-repeat;
background-size: contain;
display: inline-block;
width: 70px;
height: 25px;
margin-bottom: -10px;
margin-left: 6px;
}
}