diff --git a/content/assets/stylesheets/includes/blogpost.scss b/content/assets/stylesheets/includes/blogpost.scss index 1ebf808..5573309 100644 --- a/content/assets/stylesheets/includes/blogpost.scss +++ b/content/assets/stylesheets/includes/blogpost.scss @@ -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; diff --git a/layouts/blogpost.md b/layouts/blogpost.md index 7f44e0b..a289e3a 100644 --- a/layouts/blogpost.md +++ b/layouts/blogpost.md @@ -15,7 +15,7 @@ <% end %> -
+
<%= yield %>