Skip to content

Commit

Permalink
woot posts with TOC now fill out space on left
Browse files Browse the repository at this point in the history
- took a lot of circuitous searching on https://github.com/mmistakes/minimal-mistakes/issues
- finally found mmistakes/minimal-mistakes#1322 (comment)
- some additional customization with the padding
  • Loading branch information
NaanProphet committed Mar 8, 2022
1 parent 42b0323 commit d9905c1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ defaults:
type: posts
values:
layout: single
classes: wide_post
author_profile: false
read_time: true
comments: false
Expand Down
17 changes: 16 additions & 1 deletion assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,19 @@
@charset "utf-8";

@import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin | default: 'default' }}"; // skin
@import "minimal-mistakes"; // main partials
@import "minimal-mistakes"; // main partials

/* hack to fill the left-hand-side when there is no author */
.wide_post article.page {
float: left;
width: 100%;
}

/* push the TOC out to the right just a little*/
.sidebar__right {
padding-left: 5%;
}
.layout--single {
margin-left: 10%;
margin-right: 10%;
}

0 comments on commit d9905c1

Please sign in to comment.