We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f2a5ae commit c1c0bc7Copy full SHA for c1c0bc7
assets/sass/layout.scss
@@ -37,6 +37,21 @@ aside {
37
padding-top: 46px;
38
}
39
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
55
#content {
56
width: 702px;
57
layouts/partials/sidebar.html
@@ -52,7 +52,7 @@
{{ $headings := .Params.headings }}
{{ if $headings }}
- <ul>
+ <ul id="toc">
<li> Table of Contents
<ul class="expanded">
58
{{ range $i, $item := $headings }}
0 commit comments