From 8571bfe27ed90378ef07a60cf8068d7de575ead6 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 25 Mar 2015 14:05:26 +0100 Subject: Remove main background, sticky footer, remove nav space Use "Sticky footer trick" from http://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/ --- style/main.less | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'style/main.less') diff --git a/style/main.less b/style/main.less index 1c64dd1..65d7340 100644 --- a/style/main.less +++ b/style/main.less @@ -8,19 +8,35 @@ body { line-height: 2em; background: linear-gradient(-45deg, @color-secondary-2-4, @color-secondary-2-1); + display: flex; + flex-direction: column; + min-height: 100vh; +} + +/* header */ +header { + background: @color-secondary-1-4; + margin-bottom: 1em; +} + +.banner { + > * { + font-size: 4em; + vertical-align: middle; + } } @import "menu.less"; /* main content */ main { - background: @color-secondary-1-3; margin: auto; padding: 1em; border-radius: 2px; max-width: 800px; text-align: left; + flex: 1; } body[data-page="home"] { @@ -61,6 +77,7 @@ body[data-page="home"] { /* footer */ footer { background: @color-secondary-1-4; + margin-top: 1em; } /* vim: set sw=4 et ts=4: */ -- cgit v1.2.1