Skip to content

Commit 7eea9c3

Browse files
esdenwhitequark
authored andcommitted
docs: fix nav-bar on mobile
The side nav-bar tweaks should only be valid when the side nav bar is present. It is only present on displays wider than 769px.
1 parent 996fcfb commit 7eea9c3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/_static/custom.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ a { text-decoration: underline; }
99
.wy-side-nav-search > a img.logo { width: 200px; }
1010

1111
/* Some of our section titles are looong */
12-
.wy-nav-side, .wy-side-scroll, .wy-menu-vertical { width: 340px; }
13-
.wy-side-nav-search { width: 325px; }
14-
.wy-nav-content-wrap { margin-left: 340px; }
12+
@media screen and (min-width:769px) {
13+
.wy-nav-side, .wy-side-scroll, .wy-menu-vertical { width: 340px; }
14+
.wy-side-nav-search { width: 325px; }
15+
.wy-nav-content-wrap { margin-left: 340px; }
16+
}
1517

1618
/* We don't have a version picker widget */
1719
.wy-nav-side { padding-bottom: 0; }

0 commit comments

Comments
 (0)