add top level section support, and h2 support in sidebar

This commit is contained in:
Jonathan Wren 2021-07-10 15:30:23 -07:00
parent bed68fd077
commit eec401b516

View file

@ -72,8 +72,10 @@ div.rst-content {
} }
.wy-side-nav-search, .wy-side-nav-search,
.wy-menu-vertical li.current { .wy-menu-vertical li.current,
.wy-menu-vertical li.toctree-l1.current > a {
background-color: transparent; background-color: transparent;
border: none;
} }
.wy-nav-top { .wy-nav-top {
@ -107,7 +109,8 @@ a.icon-home:before {
line-height: 2em; line-height: 2em;
} }
.wy-menu-vertical a:hover { .wy-menu-vertical a:hover,
.wy-menu-vertical li.current a:hover {
background-color: var(--black-shadow); background-color: var(--black-shadow);
color: var(--white); color: var(--white);
} }
@ -119,12 +122,12 @@ a.icon-home:before {
position: relative; position: relative;
} }
.wy-menu-vertical li.current>a { .wy-menu-vertical li.current > a.current {
background: var(--darkest-purple); background: var(--darkest-purple);
border: none !important; border: none !important;
} }
.wy-menu-vertical li.current>a:hover { .wy-menu-vertical li.current > a:hover {
background: var(--darkest-purple); background: var(--darkest-purple);
border: none; border: none;
} }
@ -146,10 +149,12 @@ a.icon-home:before {
border-bottom: 1em solid transparent; border-bottom: 1em solid transparent;
border-right: 1em solid var(--white); border-right: 1em solid var(--white);
} }
.wy-menu-vertical li li.toctree-l2 {
font-weight: 800 !important; .wy-menu-vertical li.toctree-l2.current {
font-size: 50px; font-size: 50px;
color: red !important; }
.wy-menu-vertical li.toctree-l2.current > a{
} }
.toctree-expand:before { .toctree-expand:before {
@ -161,10 +166,14 @@ a.icon-home:before {
display: none; display: none;
} }
.wy-menu-vertical p.caption {
margin-top: 2em;
}
.wy-menu-vertical span { .wy-menu-vertical span {
color: var(--white); color: var(--white);
font-size: 1.2em; font-size: 1.2em;
font-weight: 300; font-weight: 600;
} }
.wy-menu-vertical li a { .wy-menu-vertical li a {
@ -207,9 +216,16 @@ form .search-query::placeholder {
} }
.toctree-l2 a:first-child { .toctree-l2 a:first-child {
display: none; display: block;
} }
.wy-menu-vertical li.current ul {
background-color: var(--mid-purple);
border-bottom: 1px solid var(--mid-purple);
border-top: 1px solid var(--dark-purple);
}
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
/* Logo: ; */ /* Logo: ; */
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */