Skip to content

Commit

Permalink
style: UI improvements to searchbar (#989)
Browse files Browse the repository at this point in the history
* Clean up responsive search overrides

* Add responsive improvements to searchbar fixes #988, fixes #385
  • Loading branch information
alkshendra authored and endiliey committed Sep 28, 2018
1 parent 054416b commit d2dd047
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions v1/lib/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,9 @@ input#search_input_react:active {
color: #fff;
width: 220px;
}

.navigationSlider .slidingNav .navSearchWrapper .algolia-docsearch-footer a {
height: auto;
}
@media only screen and (max-width: 735px) {
.navSearchWrapper {
width: 40%;
Expand Down Expand Up @@ -1383,19 +1385,20 @@ input::placeholder {
}

.reactNavSearchWrapper .aa-dropdown-menu {
background: #f9f9f9;
border: 0px solid #f9f9f9;
border-radius: 0;
color: #393939;
font-size: 12px;
line-height: 2em;
max-height: 140px;
min-width: auto;
padding: 0;
border-width: 1px;
min-width: 500px;
}
.reactNavSearchWrapper .algolia-docsearch-suggestion__secondary {
border-top: none;
}
.aa-suggestions {
min-height: 140px;
max-height: 60vh;
-webkit-overflow-scrolling: touch;
overflow-y: scroll;
padding: 0;
position: relative !important;
width: 100%;
}

#languages-dropdown {
Expand Down Expand Up @@ -1478,6 +1481,14 @@ input::placeholder {
.navigationSlider .slidingNav ul::-webkit-scrollbar {
display: none;
}
.reactNavSearchWrapper .aa-dropdown-menu {
min-width: 400px;
}
}
@media only screen and (max-width: 475px) {
.reactNavSearchWrapper .aa-dropdown-menu {
min-width: 300px;
}
}

/* Start of Docs Main */
Expand Down

0 comments on commit d2dd047

Please sign in to comment.