From 2de5c23ec4987cd174a8afb63a6893be5f47dbaa Mon Sep 17 00:00:00 2001 From: lafleur Date: Thu, 12 Nov 2020 21:37:35 +0100 Subject: [PATCH] only read css from scss source --- assets/css/style.css | 74 -------------------------------------- layouts/partials/head.html | 3 +- 2 files changed, 2 insertions(+), 75 deletions(-) delete mode 100644 assets/css/style.css diff --git a/assets/css/style.css b/assets/css/style.css deleted file mode 100644 index ecfb0ad..0000000 --- a/assets/css/style.css +++ /dev/null @@ -1,74 +0,0 @@ -* { - box-sizing: border-box; -} -html { - font-family: "Now", "Lucida Sans Unicode", Arial, Helvetica, sans-serif; - font-size: x-large; -} -a { - text-decoration: none; - color: orange; -} -a.exposed { - font-weight: bold; - font-size: 1.3em; -} -a:visited { - color: brown; -} - -body { - margin: 0; - display: flex; - justify-content: center; -} - -#wrapper { - display: flex; - flex-flow: column; - padding: 1rem; -} -#wrapper > section { - flex-grow: 10; - padding: 0 1rem; -} - -header { - text-align: center; - padding: 0 1rem; -} -header h1 { - font: 2.5em 'Grundschrift', "Times New Roman", Times, serif; - margin: 0; -} -header ul { - list-style: none; - padding-left: 0; -} - -.path { - display: inline; -} - -@media (min-width: 1200px) { - body { - flex-flow: column-reverse; - } - #wrapper { - height: 100vh; - flex-flow: row wrap; - justify-content: center; - align-items: baseline; - padding: 3rem; - } - #wrapper > * { - flex: 1 1 20rem; - } - header { - text-align: right; - margin-top: 35vh; - } - header h1 { - font-size: 3em; - } -} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index df941c3..62f6f58 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -5,7 +5,8 @@ name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" > - {{ $style := resources.Get "css/style.css" }} + {{ $scss:= resources.Get "css/style.scss" }} + {{ $style := $scss | resources.ToCSS }} {{ $fontstyle := resources.Get "css/fonts.css" }}