Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS should support TOC hierarchy expressed as (class-less) HTML hierarchy #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions guzzle_sphinx_theme/guzzle_sphinx_theme/static/guzzle.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,18 @@ div.sphinxsidebar .sidebar-toc a {
color: #444;
}

.sidebar-toc ul li.toctree-l1 a {
.sidebar-toc ul li.toctree-l1 a,
.sidebar-toc > ul > li > a {
padding: 5px 25px;
}

.sidebar-toc ul li.toctree-l2 a {
.sidebar-toc ul li.toctree-l2 a,
.sidebar-toc > ul > li > ul > li > a {
padding: 5px 50px;
}

.sidebar-toc ul li.toctree-l3 a {
.sidebar-toc ul li.toctree-l3 a,
.sidebar-toc > ul > li > ul > li > ul > li > a{
padding: 5px 75px;
}

Expand Down