Skip to content

Commit f7c6a4d

Browse files
authored
style: partition stacked TOCs (#121)
* style: partition stacked TOCs * style: account for captioned TOCs
1 parent f20714a commit f7c6a4d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

canonical_sphinx/theme/static/custom.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,20 @@ details summary {
373373
text-decoration: underline;
374374
}
375375

376+
/* Partition stacked TOCs */
377+
.sidebar-tree > ul + ul {
378+
margin-top: 1em;
379+
padding-top: 1em;
380+
border-top: 1px solid var(--color-background-border);
381+
}
382+
383+
/* Partition captioned TOCs */
384+
.sidebar-tree > p.caption {
385+
margin-top: 2em !important;
386+
padding-top: 2em !important;
387+
border-top: 1px solid var(--color-background-border);
388+
}
389+
376390
/* Make inline code the same size as code blocks */
377391
p code.literal {
378392
border: 0;

0 commit comments

Comments
 (0)