Skip to content

Commit

Permalink
Set overflow-y: hidden on navbar
Browse files Browse the repository at this point in the history
In some unusual circumstances, parts of the navbar can overflow
vertically. This interferes with the main body content in surprising
ways, so we want to prevent that.
  • Loading branch information
jsha authored and jyn514 committed Apr 9, 2022
1 parent ad8d4fe commit 6e6f370
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/style/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ div.nav-container {
color: var(--color-navbar-standard);
/* The font size must be specified in pixels because the height is specified in pixels. */
font: 16px $font-family-sans;
/* In some unusual situations, like a locally installed copy of "Fira Sans," elements
of the navbar might overflow vertically and start interfering with the main body
content. To ensure that doesn't happen, hide any vertical overflow.
See https://github.com/rust-lang/docs.rs/issues/1669.
*/
overflow-y: hidden;

li {
border-left: 1px solid var(--color-border);
Expand Down

0 comments on commit 6e6f370

Please sign in to comment.