File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,6 @@ div.nav-container {
28
28
color : var (--color-navbar-standard );
29
29
/* The font size must be specified in pixels because the height is specified in pixels. */
30
30
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 ;
37
31
38
32
li {
39
33
border-left : 1px solid var (--color-border );
@@ -120,6 +114,17 @@ div.nav-container {
120
114
input .search-input-nav :focus {
121
115
outline : unset ;
122
116
}
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
+ }
123
128
}
124
129
125
130
.pure-menu-children {
You can’t perform that action at this time.
0 commit comments