Skip to content

Commit 023bd2e

Browse files
committed
doc table of contents styles
1 parent f61dbe9 commit 023bd2e

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

_includes/docs/doc-index.html

Lines changed: 0 additions & 3 deletions
This file was deleted.

_includes/docs/docs.html

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33
<div class="doc-contents">
44
<h2>Contents</h2>
55
{% for doc in site.categories[include.category] reversed %}
6-
{% include docs/doc-index.html
7-
link=doc.link
8-
title=doc.title
9-
index=forloop.index
10-
%}
6+
<a href="#{{ doc.link }}" class="smooth">
7+
<h5>{{forloop.index}}. {{ doc.title }}</h5>
8+
</a>
119
{% endfor %}
1210
</div>
1311

14-
<hr />
15-
12+
<br />
1613
<!-- Docs -->
1714
<div>
1815
{% for doc in site.categories[include.category] reversed %}

_sass/_custom.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ a.smooth:hover {
1414
}
1515

1616
.doc-contents {
17-
padding-left: 30px;
17+
padding: 20px 50px;
18+
background-color: _palette(border-bg);
19+
border-radius: 3px;
20+
margin: 0 auto;
21+
max-width: 400px;
1822
}
1923

2024
.doc-image {

0 commit comments

Comments
 (0)