1 | /* do not group these rules */ |
---|
2 | *::-webkit-input-placeholder { |
---|
3 | color: darken($nav-text-color, 10); |
---|
4 | } |
---|
5 | |
---|
6 | *:-moz-placeholder { |
---|
7 | /* FF 4-18 */ |
---|
8 | color: darken($nav-text-color, 10); |
---|
9 | } |
---|
10 | |
---|
11 | *::-moz-placeholder { |
---|
12 | /* FF 19+ */ |
---|
13 | color: darken($nav-text-color, 10); |
---|
14 | } |
---|
15 | |
---|
16 | *:-ms-input-placeholder { |
---|
17 | /* IE 10+ */ |
---|
18 | color: darken($nav-text-color, 10); |
---|
19 | } |
---|
20 | |
---|
21 | nav { |
---|
22 | background: $nav-background-color; |
---|
23 | color: $nav-text-color; |
---|
24 | display: none; |
---|
25 | |
---|
26 | &.permanentTopNav { |
---|
27 | display: block; |
---|
28 | |
---|
29 | &.sticky { |
---|
30 | position: fixed; |
---|
31 | width: 100%; |
---|
32 | z-index: 60; |
---|
33 | } |
---|
34 | } |
---|
35 | |
---|
36 | .container { |
---|
37 | display: flex; |
---|
38 | justify-content: space-between; |
---|
39 | align-items: center; |
---|
40 | padding: 0.25em 0; |
---|
41 | min-height: 65px; |
---|
42 | } |
---|
43 | |
---|
44 | ul { |
---|
45 | list-style: none; |
---|
46 | display: flex; |
---|
47 | flex-wrap: wrap; |
---|
48 | align-items: center; |
---|
49 | margin: 0; |
---|
50 | padding: 0; |
---|
51 | |
---|
52 | li { |
---|
53 | margin: 0; |
---|
54 | display: flex; |
---|
55 | |
---|
56 | a { |
---|
57 | margin: 0; |
---|
58 | text-align: center; |
---|
59 | padding: 1em 1.4em; |
---|
60 | display: flex; |
---|
61 | |
---|
62 | &:hover { |
---|
63 | color: inherit; |
---|
64 | background-color: lighten($nav-background-color, 10); |
---|
65 | } |
---|
66 | } |
---|
67 | } |
---|
68 | } |
---|
69 | |
---|
70 | // Algolia-Search |
---|
71 | .search { |
---|
72 | margin-left: auto; |
---|
73 | // width: 45%; |
---|
74 | min-width: 300px; |
---|
75 | position: relative; |
---|
76 | |
---|
77 | input { |
---|
78 | font-family: $content-font; |
---|
79 | } |
---|
80 | |
---|
81 | i { |
---|
82 | position: absolute; |
---|
83 | left: 1em; |
---|
84 | top: 10px; |
---|
85 | z-index: 40; |
---|
86 | } |
---|
87 | |
---|
88 | input { |
---|
89 | margin: 0; |
---|
90 | background: transparent; |
---|
91 | border: none; |
---|
92 | color: $nav-text-color; |
---|
93 | padding-left: 2.75em; |
---|
94 | width: 100%; |
---|
95 | background-color: lighten($nav-background-color, 5); |
---|
96 | |
---|
97 | &:hover, |
---|
98 | &:focus { |
---|
99 | background-color: lighten($nav-background-color, 10); |
---|
100 | border: none; |
---|
101 | } |
---|
102 | } |
---|
103 | |
---|
104 | .algolia-autocomplete { |
---|
105 | width: 100%; |
---|
106 | color: $algolia-search-box-color; |
---|
107 | |
---|
108 | .aa-dropdown-menu { |
---|
109 | width: 100%; |
---|
110 | overflow: hidden; |
---|
111 | border-radius: 1em; |
---|
112 | padding: 0.5em; |
---|
113 | |
---|
114 | .empty { |
---|
115 | padding: 0.5em 1em; |
---|
116 | display: block; |
---|
117 | } |
---|
118 | |
---|
119 | .branding { |
---|
120 | font-size: 0.75em; |
---|
121 | text-align: right; |
---|
122 | padding: 0.5em 1em; |
---|
123 | background-color: $page-background-color; |
---|
124 | |
---|
125 | img { |
---|
126 | width: 3.5em; |
---|
127 | position: relative; |
---|
128 | top: 0.1em; |
---|
129 | } |
---|
130 | } |
---|
131 | } |
---|
132 | |
---|
133 | .aa-suggestion { |
---|
134 | span { |
---|
135 | display: flex; |
---|
136 | justify-content: space-between; |
---|
137 | align-items: center; |
---|
138 | background-color: $algolia-search-box-background-color; |
---|
139 | |
---|
140 | &:hover, |
---|
141 | &:focus { |
---|
142 | background-color: darken($algolia-search-box-background-color, 2); |
---|
143 | } |
---|
144 | |
---|
145 | .title { |
---|
146 | max-width: 315px; |
---|
147 | } |
---|
148 | |
---|
149 | &.entry.category, |
---|
150 | &.entry.tag, |
---|
151 | &.entry.author { |
---|
152 | .title { |
---|
153 | text-transform: capitalize; |
---|
154 | } |
---|
155 | } |
---|
156 | |
---|
157 | .fa { |
---|
158 | font-size: 1em; |
---|
159 | color: $algolia-search-box-icon-color; |
---|
160 | text-align: right; |
---|
161 | } |
---|
162 | } |
---|
163 | } |
---|
164 | } |
---|
165 | |
---|
166 | .aa-input-container { |
---|
167 | display: inline-block; |
---|
168 | position: relative; |
---|
169 | } |
---|
170 | |
---|
171 | .aa-input-search { |
---|
172 | width: 300px; |
---|
173 | padding: 12px 28px 12px 12px; |
---|
174 | border: 1px solid $algolia-border-color; |
---|
175 | box-sizing: border-box; |
---|
176 | -webkit-appearance: none; |
---|
177 | -moz-appearance: none; |
---|
178 | appearance: none; |
---|
179 | } |
---|
180 | |
---|
181 | .aa-input-search::-webkit-search-decoration, |
---|
182 | .aa-input-search::-webkit-search-cancel-button, |
---|
183 | .aa-input-search::-webkit-search-results-button, |
---|
184 | .aa-input-search::-webkit-search-results-decoration { |
---|
185 | display: none; |
---|
186 | } |
---|
187 | |
---|
188 | .aa-input-icon { |
---|
189 | height: 16px; |
---|
190 | width: 16px; |
---|
191 | position: absolute; |
---|
192 | top: 50%; |
---|
193 | right: 16px; |
---|
194 | -webkit-transform: translateY(-50%); |
---|
195 | transform: translateY(-50%); |
---|
196 | fill: $algolia-border-color; |
---|
197 | pointer-events: none; |
---|
198 | } |
---|
199 | |
---|
200 | .aa-dropdown-menu { |
---|
201 | background-color: #fff; |
---|
202 | border: 1px solid rgba($algolia-border-color, 0.6); |
---|
203 | min-width: 300px; |
---|
204 | margin-top: 10px; |
---|
205 | box-sizing: border-box; |
---|
206 | } |
---|
207 | |
---|
208 | .aa-suggestion { |
---|
209 | padding: 6px 12px; |
---|
210 | cursor: pointer; |
---|
211 | } |
---|
212 | |
---|
213 | .aa-suggestion + .aa-suggestion { |
---|
214 | border-top: 1px solid rgba($algolia-border-color, 0.6); |
---|
215 | } |
---|
216 | |
---|
217 | .aa-suggestions-category { |
---|
218 | border-bottom: 1px solid rgba($algolia-border-color, 0.6); |
---|
219 | border-top: 1px solid rgba($algolia-border-color, 0.6); |
---|
220 | padding: 6px 12px; |
---|
221 | } |
---|
222 | } |
---|
223 | } |
---|