diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-10-16 13:25:51 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-10-16 13:25:51 +0200 |
commit | e6f07e6c65c08cdb24b203a6352b0c8067caf658 (patch) | |
tree | 378cdbd4cdf20cd09cc4ca1f4f7efe0a3c7f6ea0 | |
parent | 36a4cac675ad6315f834f1c9e945901d1aa58242 (diff) |
Add basic styling.
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | style.scss | 8 |
3 files changed, 17 insertions, 2 deletions
@@ -1 +1,4 @@ +.sass-cache/ +*.css +*.css.map *.html @@ -3,7 +3,7 @@ hypertext-snippets = $(markdown-snippets:%.mdwn=%.html) markdown := $(filter-out $(markdown-snippets),$(wildcard *.mdwn)) hypertext = $(subst index/index,index,$(markdown:%.mdwn=%/index.html)) -all: $(hypertext) +all: $(hypertext) style.css update: source all source: .git @@ -15,11 +15,15 @@ $(hypertext-snippets): %.html: %.mdwn Makefile %.html %/index.html: %.mdwn $(hypertext-snippets) Makefile $(if $(filter-out ./,$(dir $@)),mkdir -p $(dir $@)) - pandoc -s -B topbar.html -A footer.html -f markdown -t html -o $@ $< + pandoc -s -c style.css -B topbar.html -A footer.html -f markdown -t html -o $@ $< + +%.css : %.scss Makefile + scss --compass --style compressed $< $@ clean: find -type f -name '*.html' -delete find -type d -empty -delete + rm -rf .sass-cache MAKEFLAGS += --jobs .NOTPARALLEL: source diff --git a/style.scss b/style.scss new file mode 100644 index 0000000..567397f --- /dev/null +++ b/style.scss @@ -0,0 +1,8 @@ +/*! style.css | @License: GPL-3+ | http://couchdesign.dk/ */ + +@import "normalize"; +@import "compass/typography"; + +.topbar ul { + @include inline-list; +} |