Skip to content

Commit

Permalink
docs/_static/custom.css: sync with amaranth upstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfng committed May 28, 2024
1 parent af7bda2 commit 286e3fc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,17 @@ a { text-decoration: underline; }

/* 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; }

/* Work around https://github.com/readthedocs/sphinx_rtd_theme/issues/1301 */
.py.property { display: block !important; }

/* Avoid excessively tiny font in the sidebar */
.wy-menu-vertical li.toctree-l2, .wy-menu-vertical li.toctree-l3, .wy-menu-vertical li.toctree-l4 { font-size: 0.97em; }
/* For some cursed reason the RTD theme was decreasing the font size twice! */
.wy-menu-vertical a { font-size: 100%; }

/* Work around images in docstrings being glued to the paragraph underneath */
.rst-content section dd>img { margin-bottom: 24px; }

/* No switchable color schemes */
img { color-scheme: light; }

0 comments on commit 286e3fc

Please sign in to comment.