amaranth/docs/_static/custom.css
Piotr Esden-Tempski 7eea9c39cf 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.
2024-01-04 20:14:07 +00:00

23 lines
840 B
CSS

/* Links in text should be underlined. */
a { text-decoration: underline; }
.wy-menu-vertical a, .wy-side-nav-search > a { text-decoration: none; }
/* Match the logo colors in the background. */
.wy-side-nav-search { background-color: #784b9a; }
/* Make the logo more reasonably sized. */
.wy-side-nav-search > a img.logo { width: 200px; }
/* Some of our section titles are looong */
@media screen and (min-width:769px) {
.wy-nav-side, .wy-side-scroll, .wy-menu-vertical { width: 340px; }
.wy-side-nav-search { width: 325px; }
.wy-nav-content-wrap { margin-left: 340px; }
}
/* We don't have a version picker widget */
.wy-nav-side { padding-bottom: 0; }
/* Many of our diagnostics are even longer */
.rst-content pre.literal-block, .rst-content div[class^="highlight"] pre, .rst-content .linenodiv pre { white-space: pre-wrap; }