From 1b2f0a9bbc894c2d66cf15235b25c3db051361e0 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Thu, 9 Jun 2022 19:29:09 +0200 Subject: [PATCH] Passage du theme custom dans un .css distinct pour enlever le CSP script-src unsafe-inline --- static/css/garbaye_custom.css | 61 +++++++++++++++++++++++++++++++++ templates/_variables.html | 63 ----------------------------------- templates/index.html | 7 ++-- 3 files changed, 65 insertions(+), 66 deletions(-) create mode 100644 static/css/garbaye_custom.css diff --git a/static/css/garbaye_custom.css b/static/css/garbaye_custom.css new file mode 100644 index 0000000..fe1d4aa --- /dev/null +++ b/static/css/garbaye_custom.css @@ -0,0 +1,61 @@ +:root { + --primary-color: #255a0e; + --primary-text-color: #060f02; + --primary-link-color: #3F9718; + --secondary-color: #f1f7ee; + --secondary-text-color: #060f02; + --secondary-title-color: #3F9718; + --toc-highlight-text-color: #3F9718; +} +.hero,header { + --primary-text-color: #d8ead0; + --primary-link-color: #a8baa0; +} +.hero a { + color: var(--primary-link-color) +} +.hero a:visited { + color: var(--primary-text-color); +} +.hero a:hover { + text-decoration: underline; + color: var(--primary-text-color); +} +header .nav-item:hover { + text-decoration: underline; + color: var(--primary-text-color); +} +.logo img { + width: 41px; +} +.hero .text-center .heading-text { + font-family: "Alfa Slab One", serif; +} +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url(/fonts/va9E4kDNxMZdWfMOD5Vvl4jO.ttf) format('truetype'); +} +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url(/fonts/va9B4kDNxMZdWfMOD5VnZKveRhf_.ttf) format('truetype'); +} +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url(/fonts/va9B4kDNxMZdWfMOD5VnSKzeRhf_.ttf) format('truetype'); +} +@font-face { + font-family: 'Alfa Slab One'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url(/fonts/6NUQ8FmMKwSEKjnm5-4v-4Jh2dJhfg.ttf) format('truetype'); +} diff --git a/templates/_variables.html b/templates/_variables.html index 8190c83..e69de29 100644 --- a/templates/_variables.html +++ b/templates/_variables.html @@ -1,63 +0,0 @@ - diff --git a/templates/index.html b/templates/index.html index 20e44c5..ab85244 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,10 +7,11 @@ {% block title %}{{ config.title }}{% endblock title %} {% block favicon %} - + {% endblock favicon %} - + + {% include "_variables.html" %} {% block head %} {% endblock head %} @@ -31,7 +32,7 @@ Garbaye : Services numériques libres

Basé en Gironde, nous auto-hébergeons des services pour tous, dans un souci d'éthique et de décentralisation du web.

- +
Courriel - Matrix [m] - Git