From 31a262451ae123a50d59bf4f8ad748d2cd14cdb1 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Tue, 9 Apr 2019 22:59:29 +0200 Subject: Move from custom.css to custom.scss to be able to use variables --- assets/book.scss | 5 ++++- assets/custom.scss | 2 ++ exampleSite/assets/custom.scss | 1 + exampleSite/static/styles.css | 1 - layouts/partials/docs/html-head.html | 7 +------ 5 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 assets/custom.scss create mode 100644 exampleSite/assets/custom.scss delete mode 100644 exampleSite/static/styles.css diff --git a/assets/book.scss b/assets/book.scss index c2689b9..7ba2bfa 100644 --- a/assets/book.scss +++ b/assets/book.scss @@ -217,4 +217,7 @@ aside nav, .book-toc nav { padding: $padding-16 * 2 $padding-16; } -} \ No newline at end of file +} + +// Add custom defined styles +@import 'custom' \ No newline at end of file diff --git a/assets/custom.scss b/assets/custom.scss new file mode 100644 index 0000000..181c87c --- /dev/null +++ b/assets/custom.scss @@ -0,0 +1,2 @@ +/* To be overridden by theme user */ +// @import "variables"; diff --git a/exampleSite/assets/custom.scss b/exampleSite/assets/custom.scss new file mode 100644 index 0000000..a0f49eb --- /dev/null +++ b/exampleSite/assets/custom.scss @@ -0,0 +1 @@ +@import "variables" diff --git a/exampleSite/static/styles.css b/exampleSite/static/styles.css deleted file mode 100644 index 4a9ab6b..0000000 --- a/exampleSite/static/styles.css +++ /dev/null @@ -1 +0,0 @@ -/* Your custom styles here */ \ No newline at end of file diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 2e1a57d..72542ca 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -5,16 +5,11 @@ - + {{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} - -{{ if (fileExists "styles.css" | relURL) -}} - -{{- end }} - -- cgit v1.2.3