From 8425e318e75b7cb751819363b6cb7e91798079c9 Mon Sep 17 00:00:00 2001 From: Nils Steinger <git@n-st.de> Date: Sun, 8 Nov 2020 15:59:16 +0100 Subject: [PATCH] Add background color in dev environment --- AKPlan/templates/AKPlan/plan_wall.html | 3 +++ static_common/common/css/dev.css | 3 +++ templates/base.html | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 static_common/common/css/dev.css diff --git a/AKPlan/templates/AKPlan/plan_wall.html b/AKPlan/templates/AKPlan/plan_wall.html index 97f266a..fcd93a5 100644 --- a/AKPlan/templates/AKPlan/plan_wall.html +++ b/AKPlan/templates/AKPlan/plan_wall.html @@ -19,6 +19,9 @@ <link rel="icon" type="image/svg+xml" href="{% if debug %}{% static 'common/images/logo-dev.svg' %}{% else %}{% static 'common/images/logo.svg' %}{% endif %}"> <link rel="stylesheet" href="{% static 'common/css/custom.css' %}"> + {% if debug %} + <link rel="stylesheet" href="{% static 'common/css/dev.css' %}"> + {% endif %} {% get_current_language as LANGUAGE_CODE %} diff --git a/static_common/common/css/dev.css b/static_common/common/css/dev.css new file mode 100644 index 0000000..5266fae --- /dev/null +++ b/static_common/common/css/dev.css @@ -0,0 +1,3 @@ +body { + background: repeating-linear-gradient(-45deg, #0000 0, #0000 20px, #ee02 20px, #ee02 40px); +} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index eca627c..3912245 100644 --- a/templates/base.html +++ b/templates/base.html @@ -19,6 +19,9 @@ <link rel="icon" type="image/svg+xml" href="{% if debug %}{% static 'common/images/logo-dev.svg' %}{% else %}{% static 'common/images/logo.svg' %}{% endif %}"> <link rel="stylesheet" href="{% static 'common/css/custom.css' %}"> + {% if debug %} + <link rel="stylesheet" href="{% static 'common/css/dev.css' %}"> + {% endif %} <script type='text/javascript'> var changed_form = false; -- GitLab