fix table of contents

This commit is contained in:
Lorin Werthen 2017-04-21 18:54:46 +02:00
parent e418f3eac7
commit a98dbf4713
No known key found for this signature in database
GPG key ID: F11FFC921E0E08E0
2 changed files with 25 additions and 7 deletions

View file

@ -1,3 +1,18 @@
.blogpost {
position: relative;
#table-of-contents {
@include from($tablet) {
position: absolute;
left: 100%;
}
@include until($tablet) {
text-align: center;
}
}
}
#markdown-toc {
@extend .menu-list;
@ -42,7 +57,9 @@ dl {
margin: auto;
.title {
@include from($tablet) {
font-size: 4rem;
}
font-weight: bolder;
}

View file

@ -1,11 +1,7 @@
<article class="column is-offset-2 is-8" markdown="1">
<div class="content is-medium" markdown="1">
<%= yield %>
</div>
</article>
<article class="blogpost column is-offset-2 is-8" markdown="1">
<% if item[:toc] %>
<div class="menu column" markdown="1">
<div id="table-of-contents" class="menu column" markdown="1">
<p class="menu-label">
Inhoudstabel
</p>
@ -18,3 +14,8 @@
<% end %>
</div>
<% end %>
<div class="content is-medium" markdown="1">
<%= yield %>
</div>
</article>