Skip to content

Commit d175fff

Browse files
committed
TOC spacing after numbers
1 parent 88cacef commit d175fff

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

pretext.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,9 @@ so that we can set our own later */
426426
.ptx-content section .para + .tabular-box {
427427
margin-top: 0.75em;
428428
}
429+
.ptx-content section .tabular-box + .tabular-box {
430+
margin-top: 1.0em;
431+
}
429432
.ptx-content section .proof {
430433
margin-top: 0.75em;
431434
}

toc_default.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,22 @@
3232
padding-left: 0.3rem;
3333
display: inline-block;
3434
}
35+
.ptx-toc .codenumber + .title {
36+
padding-left: 0.3rem;
37+
}
38+
.ptx-toc .internal > .title:first-child {
39+
padding-left: 1.0rem;
40+
}
41+
.ptx-toc .structural .structural .codenumber {
42+
padding-top: 0.2em;
43+
font-size: 80%;
44+
}
3545

46+
/*
3647
.ptx-toc :is(.toc-frontmatter, .toc-backmatter) > .toc-title-box > a .title {
3748
margin-left: 1.5rem;
3849
}
50+
*/
3951

4052
.ptx-toc .toc-part > .toc-title-box > a .codenumber {
4153
min-width: 1.5rem;
@@ -264,4 +276,4 @@ omitting, because it caused a "jump"
264276
:root {
265277
--parttoc: color-mix(in srgb, var(--chaptertoc), black 15%);
266278
}
267-
}
279+
}

0 commit comments

Comments
 (0)