From 7eb52884b8aaa35aad899262b08679526eb73dc5 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Tue, 3 Jul 2018 23:54:16 +0200 Subject: [PATCH] Compress the CSS --- config.py | 2 +- templates/layout.html | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config.py b/config.py index ec73d0c..38cf802 100644 --- a/config.py +++ b/config.py @@ -83,7 +83,7 @@ with open(os.path.join(SASS_DIR, f"{THEME_STYLE.value}.scss")) as f: theme_css += "\n" with open(os.path.join(SASS_DIR, "base_theme.scss")) as f: raw_css = theme_css + f.read() - CSS = sass.compile(string=raw_css) + CSS = sass.compile(string=raw_css, output_style='compressed') USER_AGENT = ( diff --git a/templates/layout.html b/templates/layout.html index c457ff6..d9bdfd0 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -15,9 +15,7 @@ {% if config.THEME_COLOR %}{% endif %} - + {% if logged_in %}