Skip to content

Commit c1c0bc7

Browse files
committed
Differentiate the table of contents a bit more
1 parent 9f2a5ae commit c1c0bc7

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

assets/sass/layout.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,21 @@ aside {
3737
padding-top: 46px;
3838
}
3939

40+
#toc {
41+
border: 1px solid var(--main-border);
42+
padding: .5em;
43+
margin-top: 1rem;
44+
border-top: 1px solid var(--main-border);
45+
background: #f9faf3;
46+
}
47+
48+
#toc li {
49+
/* use margin instead of line height for spacing because sometimes the
50+
headings wrap onto multiple lines */
51+
line-height: 1.2em;
52+
margin: 6px 0;
53+
}
54+
4055
#content {
4156
width: 702px;
4257
}

layouts/partials/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
{{ $headings := .Params.headings }}
5454
{{ if $headings }}
55-
<ul>
55+
<ul id="toc">
5656
<li> Table of Contents
5757
<ul class="expanded">
5858
{{ range $i, $item := $headings }}

0 commit comments

Comments
 (0)