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

doc: fix styles of the expandable TOC #56755

Merged
merged 1 commit into from
Jan 26, 2025
Merged
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
36 changes: 12 additions & 24 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -562,40 +562,28 @@ hr {
}

.toc ul {
margin: 0
margin: 0;
}

.toc li a::before {
content: "■";
color: var(--color-text-primary);
padding-right: 1em;
font-size: 0.9em;
.toc>ul:first-child {
margin-left: 1rem;
}
.toc li {
display: list-item;
list-style: square;
}
.toc li a {
display: inline;
padding-left: 0;
}

.toc li a:hover::before {
color: var(--white);
}

.toc ul ul a {
.toc ul {
padding-left: 1rem;
}

.toc ul ul ul a {
padding-left: 2rem;
}

.toc ul ul ul ul a {
padding-left: 3rem;
}

.toc ul ul ul ul ul a {
padding-left: 4rem;
}

.toc ul ul ul ul ul ul a {
padding-left: 5rem;
}

#toc .stability_0::after,
.deprecated-inline::after {
background-color: var(--red2);
Expand Down
Loading