Add search powered by Algolia
This commit is contained in:
parent
e553a58e6c
commit
6bc3041fe2
7 changed files with 84 additions and 6 deletions
|
@ -1,5 +1,47 @@
|
|||
@charset "UTF-8";
|
||||
|
||||
$primary-color: #049cdb;
|
||||
|
||||
.site-header {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.search-container {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: white;
|
||||
padding-top: 19px;
|
||||
padding-right: 15%;
|
||||
|
||||
.search {
|
||||
max-width: 500px;
|
||||
width: 100%;
|
||||
border-bottom: 2px solid $primary-color;
|
||||
float: right;
|
||||
|
||||
.algolia-autocomplete {
|
||||
width: calc(100% - 58px);
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
input {
|
||||
border: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: $menu-collapse) {
|
||||
.search-container {
|
||||
z-index: 20;
|
||||
padding-right: 5px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.hero {
|
||||
background-color: #038FC7;
|
||||
padding-bottom: 0;
|
||||
|
|
|
@ -81,17 +81,23 @@ header .grid {
|
|||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
|
||||
&.show-search {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.menu > li > a:hover, .menu > li > a:focus{
|
||||
background: $site-background;
|
||||
box-shadow: inset 0px 5px $navigation-color;
|
||||
color: $navigation-color;
|
||||
padding: 40px 12px 24px;
|
||||
padding-top: 40px;
|
||||
padding-bottom: 24px;
|
||||
}
|
||||
|
||||
.toggle{
|
||||
z-index: 20;
|
||||
.toggle{
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: $menu-collapse){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue