Skip to content

Commit

Permalink
show h3 headings in sidebar toc
Browse files Browse the repository at this point in the history
  • Loading branch information
trehn committed Feb 14, 2016
1 parent 67be300 commit 2c56eda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion cinder/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ h1[id]:before, h2[id]:before, h3[id]:before, h4[id]:before, h5[id]:before, h6[id
height: 75px;
}

ul.nav li.main {
ul.nav li.first-level {
font-weight: bold;
}

ul.nav li.third-level {
padding-left: 12px;
}

div.col-md-3 {
padding-left: 0;
}
Expand Down
7 changes: 5 additions & 2 deletions cinder/toc.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<div class="bs-sidebar hidden-print affix well" role="complementary">
<ul class="nav bs-sidenav">
{% for toc_item in toc %}
<li class="main {% if toc_item.active %}active{% endif %}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
<li class="first-level {% if toc_item.active %}active{% endif %}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{% for toc_item in toc_item.children %}
<li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
<li class="second-level"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{% for toc_item in toc_item.children %}
<li class="third-level"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{% endfor %}
{% endfor %}
{% endfor %}
</ul>
Expand Down

0 comments on commit 2c56eda

Please sign in to comment.