Skip to content
Snippets Groups Projects
Verified Commit 49e9ddbf authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Move SASS sources to the public directory to make the style.css accessible...

Move SASS sources to the public directory to make the style.css accessible without a titofisto token
parent 6aadb183
No related branches found
No related tags found
1 merge request!747Resolve "Caching issues"
......@@ -523,9 +523,8 @@ SASS_PROCESSOR_CUSTOM_FUNCTIONS = {
"get-preference": "aleksis.core.util.sass_helpers.get_preference",
}
SASS_PROCESSOR_INCLUDE_DIRS = [
_settings.get("materialize.sass_path", JS_ROOT + "/materialize-css/sass/"),
STATIC_ROOT + "/materialize-css/sass/",
STATIC_ROOT,
_settings.get("materialize.sass_path", os.path.join(JS_ROOT, "materialize-css", "sass")),
os.path.join(STATIC_ROOT, "public"),
]
ADMINS = _settings.get("contact.admins", [AUTH_INITIAL_SUPERUSER["email"]])
......
@import "materialize";
@import "materialize-custom";
.primary-color {
background-color: $primary-color !important;
......
......@@ -24,7 +24,7 @@
{% include_css "Roboto500" %}
{% include_css "Roboto700" %}
{% include_css "Roboto900" %}
<link rel="stylesheet" href="{% sass_src 'style.scss' %}">
<link rel="stylesheet" href="{% sass_src 'public/style.scss' %}">
{# Add JS URL resolver #}
<script src="{% url "js_reverse" %}" type="text/javascript"></script>
......
......@@ -22,7 +22,7 @@
{% include_css "Roboto700" %}
{% include_css "Roboto900" %}
{% include_css "paper-css" %}
<link rel="stylesheet" href="{% sass_src 'style.scss' %}"/>
<link rel="stylesheet" href="{% sass_src 'public/style.scss' %}"/>
<link rel="stylesheet" href="{% static "print.css" %}"/>
{% if landscape %}
<link rel="stylesheet" href="{% static 'print_landscape.css' %}"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment