fix table of contents
This commit is contained in:
parent
e418f3eac7
commit
a98dbf4713
2 changed files with 25 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue