Skip to content

Commit 15560cc

Browse files
GuillaumeGomezsyphar
authored andcommitted
Fix dropdown menu display in top navbar
1 parent 6e6f370 commit 15560cc

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

templates/style/_navbar.scss

+11-6
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ div.nav-container {
2828
color: var(--color-navbar-standard);
2929
/* The font size must be specified in pixels because the height is specified in pixels. */
3030
font: 16px $font-family-sans;
31-
/* In some unusual situations, like a locally installed copy of "Fira Sans," elements
32-
of the navbar might overflow vertically and start interfering with the main body
33-
content. To ensure that doesn't happen, hide any vertical overflow.
34-
See https://github.com/rust-lang/docs.rs/issues/1669.
35-
*/
36-
overflow-y: hidden;
3731

3832
li {
3933
border-left: 1px solid var(--color-border);
@@ -120,6 +114,17 @@ div.nav-container {
120114
input.search-input-nav:focus {
121115
outline: unset;
122116
}
117+
118+
119+
/* In some unusual situations, like a locally installed copy of "Fira Sans," elements
120+
of the navbar might overflow vertically and start interfering with the main body
121+
content. To ensure that doesn't happen, hide any vertical overflow.
122+
See https://github.com/rust-lang/docs.rs/issues/1669.
123+
*/
124+
.pure-menu-item a {
125+
/* 0.5 em is the padding */
126+
max-height: calc(#{$top-navbar-height} - 0.5em * 2);
127+
}
123128
}
124129

125130
.pure-menu-children {

0 commit comments

Comments
 (0)