Merge pull request #45 from influxdata/v2-layout
updated search styles to remove unnecessarily repetitive elementspull/47/head
commit
9b4b49de6b
|
@ -1,7 +1,9 @@
|
||||||
|
// Fade content wrapper when focusing on search input
|
||||||
$('#algolia-search-input').focus(function() {
|
$('#algolia-search-input').focus(function() {
|
||||||
$('.content-wrapper').fadeTo(400, .35);
|
$('.content-wrapper').fadeTo(400, .35);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Hide search dropdown when leaving search input
|
||||||
$('#algolia-search-input').blur(function() {
|
$('#algolia-search-input').blur(function() {
|
||||||
$('.content-wrapper').fadeTo(200, 1);
|
$('.content-wrapper').fadeTo(200, 1);
|
||||||
$('.ds-dropdown-menu').hide();
|
$('.ds-dropdown-menu').hide();
|
||||||
|
|
|
@ -90,6 +90,20 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion {
|
||||||
|
&--wrapper { padding: 0; }
|
||||||
|
&--subcategory-column { display: none; }
|
||||||
|
&--content {
|
||||||
|
margin: 2px 0;
|
||||||
|
padding: .75rem;
|
||||||
|
width: 100%;
|
||||||
|
float: none;
|
||||||
|
&:before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
///////////////////////////////// MEDIA QUERIES ////////////////////////////////
|
///////////////////////////////// MEDIA QUERIES ////////////////////////////////
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -114,15 +128,6 @@
|
||||||
left: -1rem !important;
|
left: -1rem !important;
|
||||||
top: 112% !important;
|
top: 112% !important;
|
||||||
}
|
}
|
||||||
.algolia-autocomplete .algolia-docsearch-suggestion {
|
|
||||||
.algolia-docsearch-suggestion--subcategory-column,
|
|
||||||
.algolia-docsearch-suggestion--content {
|
|
||||||
display: block;
|
|
||||||
margin: 2px 0;
|
|
||||||
float: none;
|
|
||||||
&:after { content: ""; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@include media(small) {
|
@include media(small) {
|
||||||
|
|
Loading…
Reference in New Issue