Skip to content

Commit b3a539d

Browse files
Carlos GutiérrezSteelWagstaff
andauthored
Indent toc (#668)
* Adds indentation for multiline ToC entries * Improve ToC indentation for parts & chapters * Fix lint duplication error * Update rem left padding for title Co-authored-by: Steel Wagstaff <[email protected]>
1 parent 467b52e commit b3a539d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

assets/src/styles/components/_toc.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ $light: #eee;
6868

6969
.toc [class*="--full"] > .toc__title > span {
7070
width: calc(100% - 2.75rem);
71+
text-indent: -1.18rem;
72+
padding-left: 1.68rem;
7173
}
7274

7375
.toc [class*="--full"] .toc__subsections {
@@ -78,7 +80,7 @@ $light: #eee;
7880
.toc [class*="--empty"] > .toc__title {
7981
width: 100%;
8082
text-indent: -1.18rem;
81-
padding-left: 1.18rem;
83+
padding-left: 1.68rem;
8284
}
8385

8486
.toc__title {

0 commit comments

Comments
 (0)