File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments