Skip to content

Commit

Permalink
Add responsive improvements to searchbar fixes facebook#988, fixes fa…
Browse files Browse the repository at this point in the history
  • Loading branch information
alkshendra committed Sep 27, 2018
1 parent 37cfb4a commit 15625eb
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 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 @@ -1385,14 +1387,19 @@ input::placeholder {
.reactNavSearchWrapper .aa-dropdown-menu {
font-size: 12px;
line-height: 2em;
-webkit-overflow-scrolling: touch;
overflow-y: scroll;
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;
}

#languages-dropdown {
left: 0px;
Expand Down Expand Up @@ -1474,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 15625eb

Please sign in to comment.