From b62301099314b61c828d015f7e47c247908f1090 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 25 Feb 2020 16:19:43 +0100 Subject: [PATCH] Allow media queries for custom CSS --- src/base.html | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/base.html b/src/base.html index eaef930bd..1956cde0b 100644 --- a/src/base.html +++ b/src/base.html @@ -94,17 +94,12 @@ {% block styles %} - + {% if palette.primary or palette.accent %} {% endif %} @@ -130,7 +125,6 @@ {% endif %} - - {% for path in config["extra_css"] %} - + + {% for file in config["extra_css"] %} + {% set path,media = file.split(" ", 1) %} + {% if media %} + + {% else %} + + {% endif %} {% endfor %}