diff --git a/sphinx_book_theme/static/sphinx-book-theme.scss b/sphinx_book_theme/static/sphinx-book-theme.scss index e35bfedc..ce553499 100644 --- a/sphinx_book_theme/static/sphinx-book-theme.scss +++ b/sphinx_book_theme/static/sphinx-book-theme.scss @@ -647,7 +647,7 @@ button.topbarbtn img { // Captions p.caption { - margin-top: 1em; + margin-top: 1.25em; margin-bottom: 0; font-size: 1.2em; } @@ -724,7 +724,9 @@ nav.bd-links { max-height: none !important; p.caption { - font-size: 1.4em; + font-size: 0.9em; + text-transform: uppercase; + font-weight: bold; &:first-child { margin-top: 0; @@ -739,28 +741,26 @@ nav.bd-links { width: 100%; } - li.toctree-l1 { - font-size: 1.2em - } - - li.toctree-l2, li.toctree-l3, li.toctree-l4, li.toctree-l5 { - font-size: .8em + li.toctree-l1, li.toctree-l2, li.toctree-l3, li.toctree-l4, li.toctree-l5 { + > a { + font-size: 0.9em; + } + font-size: 1em; } > ul.nav { // Make sure the first items don't have any padding - padding-left: 0px !important; + padding-left: 0; // Subsequent items should have padding ul { - padding-left: 1rem !important; - padding-right: 0rem !important; + // Only left padding + padding: 0 0 0 1rem; } - // Links don't have the padding, uls do + // Links don't have the horizontal padding, uls do a { - padding-left: 0rem !important; - padding-right: 0rem !important; + padding: .25rem 0 !important; } } }