more mobile friendly blogposts

This commit is contained in:
Lorin Werthen 2017-04-21 19:04:01 +02:00
parent a98dbf4713
commit 138c2823e9
No known key found for this signature in database
GPG key ID: F11FFC921E0E08E0
2 changed files with 18 additions and 11 deletions

View file

@ -2,23 +2,30 @@
position: relative;
#table-of-contents {
@include from($tablet) {
@include tablet {
position: absolute;
left: 100%;
}
@include until($tablet) {
@include mobile {
text-align: center;
}
#markdown-toc {
@extend .menu-list;
&, ul {
margin: 0;
list-style: none;
}
}
}
}
#markdown-toc {
@extend .menu-list;
&, ul {
margin: 0;
list-style: none;
.main-text {
// Larger text when on tablet
@include tablet {
font-size: $size-medium;
}
}
}
@ -57,7 +64,7 @@ dl {
margin: auto;
.title {
@include from($tablet) {
@include tablet {
font-size: 4rem;
}
font-weight: bolder;

View file

@ -15,7 +15,7 @@
</div>
<% end %>
<div class="content is-medium" markdown="1">
<div class="main-text content" markdown="1">
<%= yield %>
</div>
</article>