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 %}