Skip to content

Commit

Permalink
[docs] fix nav (ray-project#23417)
Browse files Browse the repository at this point in the history
Algolia search now does not overflow on mobile devices anymore, making the nav scrollable again.

Signed-off-by: Max Pumperla <max.pumperla@googlemail.com>
  • Loading branch information
maxpumperla authored Mar 23, 2022
1 parent 05bfcdb commit 9b1a3f9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions doc/source/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@
margin: auto;
}

/* Hide confusing "<-" back arrow in navigation for larger displays */
@media (min-width: 768px) {
#navbar-toggler {
display: none;
}
}

/* Make navigation scrollable on mobile, by making algolia not overflow */
@media (max-width: 768px) {
#site-navigation {
overflow-y: scroll;
}

.algolia-autocomplete .ds-dropdown-menu{
min-width: 250px;
}
}

/* sphinx-panels overrides the content width to 1140 for large displays.*/
@media (min-width: 1200px) {
.container, .container-lg, .container-md, .container-sm, .container-xl {
Expand All @@ -23,6 +41,7 @@
right: 20px;
width: 270px;
}

@media (max-width: 1500px) {
.bottom-right-promo-banner {
display: none;
Expand Down

0 comments on commit 9b1a3f9

Please sign in to comment.