From be3a0a16c27c9154b6c9543ca864ae8472d55934 Mon Sep 17 00:00:00 2001 From: Frank Taillandier Date: Sun, 1 Apr 2018 07:15:35 +0200 Subject: [PATCH] Stick footer for short posts (#223) Fix #222 --- _posts/2016-05-19-super-short-article.md | 7 +++++++ _sass/minima/_base.scss | 3 +++ _sass/minima/_layout.scss | 1 + 3 files changed, 11 insertions(+) create mode 100644 _posts/2016-05-19-super-short-article.md diff --git a/_posts/2016-05-19-super-short-article.md b/_posts/2016-05-19-super-short-article.md new file mode 100644 index 0000000..c925c64 --- /dev/null +++ b/_posts/2016-05-19-super-short-article.md @@ -0,0 +1,7 @@ +--- +layout: post +title: "Some articles are just so short that we have to make the footer stick" +categories: misc +--- + +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. diff --git a/_sass/minima/_base.scss b/_sass/minima/_base.scss index 248fad0..e61b0be 100644 --- a/_sass/minima/_base.scss +++ b/_sass/minima/_base.scss @@ -23,6 +23,9 @@ body { -o-font-feature-settings: "kern" 1; font-feature-settings: "kern" 1; font-kerning: normal; + display: flex; + min-height: 100vh; + flex-direction: column; } diff --git a/_sass/minima/_layout.scss b/_sass/minima/_layout.scss index c20e202..463015d 100644 --- a/_sass/minima/_layout.scss +++ b/_sass/minima/_layout.scss @@ -177,6 +177,7 @@ */ .page-content { padding: $spacing-unit 0; + flex: 1; } .page-heading {