forked from samarsault/plainwhite-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.scss
130 lines (113 loc) · 2.46 KB
/
search.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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/* Post Label And Search */
/* Hack iOS Safari Unfocus */
main {
outline: none;
min-height: 100vh; // Click Anywhere to Unfocus
}
.posts-labelgroup {
/* Firefox Flex Hack */
@-moz-document url-prefix() {
align-items: center;
}
.search-section {
display: flex;
flex-grow: 1;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
align-items: center;
border-radius: 5px;
}
i {
color: #777;
flex-grow: 0;
padding: 0 8px;
transition: color 0.5s;
font-size: 15px;
}
input {
color: #555;
background-color: transparent;
font-size: 15px;
flex-grow: 1;
height: 39px;
border: none;
padding: 10px 0;
outline: none;
transition: color 0.5s;
}
.search-results {
display: flex;
flex-direction: column;
border-radius: 5px;
border-top-left-radius: 0;
border-top-right-radius: 0;
position: absolute;
background-color: #fff;
min-width: 160px;
width: 100%;
min-height: 50px;
box-shadow: 0 1px 2px 0 rgba(32, 33, 36, 0.28);
z-index: 3;
padding: 10px 0;
font-size: 15px;
border: 1px solid rgba(223,225,229,0);
&:empty::before {
content: attr(data-placeholder);
padding: 8px 25px 8px 14px;
}
a {
padding: 8px 25px 8px 14px;
text-decoration: none;
display: flex;
background-color: transparent;
&:hover {
color: black;
background-color: #eee;
}
&::before {
content: '\e805';
font-family: "fontello";
font-style: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
font-variant: normal;
text-transform: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-feature-settings: 'liga';
margin-right: 14px;
padding: 0 3px;
color: #9aa0a6;
}
}
}
.search-container {
display: block;
flex-grow: 1;
position: relative;
}
&:hover {
i {
color: $linkColor;
}
}
&.focus-within {
.search-section {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
box-shadow: 0 1px 2px 0 rgba(32,33,36,0.28);
border: 1px solid rgba(223,225,229,0);
border-bottom: solid 1px #eee;
z-index: 3;
margin: 0 auto;
}
input {
color: black;
}
i {
color: $linkColor;
padding: 0 14px;
}
}
}