From 5fdaeece8d450b92a076d1d907c7bf525055a62c Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 23 Dec 2020 18:38:59 +0100 Subject: Fixed SASS compilation, added font fallbacks --- Makefile | 2 +- assets/style.scss | 3 ++- scripts/build_sass.sh | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100755 scripts/build_sass.sh diff --git a/Makefile b/Makefile index ced1bda..c9d0cf8 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ build_fonts: clean --output-file='output/iosevka-term-ss09-bold.woff2' build_sass: clean - @sassc assets/style.scss | node_modules/.bin/csso > output/style.css + @scripts/build_sass.sh build_content: clean @scripts/build_content.sh diff --git a/assets/style.scss b/assets/style.scss index 8e021d8..a08d4f5 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -73,7 +73,8 @@ $subcontent-indent: 4ch; html, pre, code { - font-family: "Iosevka Term SS09"; + font-family: "Iosevka Term SS09", "Lucida Console", "Courier New", Courier, + monospace; font-feature-settings: "calt" 0, "dlig" 1; } diff --git a/scripts/build_sass.sh b/scripts/build_sass.sh new file mode 100755 index 0000000..a6d9c93 --- /dev/null +++ b/scripts/build_sass.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +echo "[COMPILE] assets/style.scss -> output/style.css" +sassc assets/style.scss | node_modules/.bin/csso > output/style.css -- cgit v1.2.3-70-g09d2