From 7db78bd2b3e18cc936198a80955e235401027058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Eng=C3=A9libert?= Date: Wed, 26 Apr 2023 18:58:04 +0200 Subject: [PATCH] mode sombre --- content/_index.md | 2 ++ sass/css/base.scss | 25 +++++++++++++++++++++---- sass/css/clients.scss | 6 ++++++ sass/css/defs.scss | 1 + sass/css/header.scss | 6 ++++++ sass/css/services.scss | 6 ++++++ static/img/librezo-little-white.png | Bin 0 -> 2291 bytes templates/base.html | 9 ++++++++- 8 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 static/img/librezo-little-white.png diff --git a/content/_index.md b/content/_index.md index cba7d94..ef149e8 100644 --- a/content/_index.md +++ b/content/_index.md @@ -71,6 +71,8 @@ leaflet = 1 +## On est là + {% map() %} [42.6998, 9.4518], // Bastia [44.4742, 1.8296], // Cajarc diff --git a/sass/css/base.scss b/sass/css/base.scss index 0e01b40..cb2b8d6 100644 --- a/sass/css/base.scss +++ b/sass/css/base.scss @@ -30,10 +30,6 @@ html, body { font-family: LunaSans; } -body { - background: radial-gradient(circle at 100%, rgba(2, 148, 217, 0.2) 20%, white); -} - main { width: 100%; font-size: 18px; @@ -162,3 +158,24 @@ h3 { height: 600px; max-height: calc(100vh - 64px); } + +@media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) { + html { + background: radial-gradient(circle at 100%, rgba(2, 148, 217, 0.2) 20%, white); + } +} + +@media (prefers-color-scheme: dark) { + html { + background-color: black; + color: white; + } + + #dev-warning { + color: black; + } + + .cities { + color: $grey2; + } +} diff --git a/sass/css/clients.scss b/sass/css/clients.scss index 2cd3a87..0478fe5 100644 --- a/sass/css/clients.scss +++ b/sass/css/clients.scss @@ -59,3 +59,9 @@ color: $grey1; float: right; } + +@media (prefers-color-scheme: dark) { + .client_box-sign { + color: $grey2; + } +} diff --git a/sass/css/defs.scss b/sass/css/defs.scss index 6a5e513..1b62b51 100644 --- a/sass/css/defs.scss +++ b/sass/css/defs.scss @@ -1,6 +1,7 @@ $blue: #0294d9; $violet: #ac44ff; $grey1: #444; +$grey2: #bbb; $grad1_3tr: rgba(2, 148, 217, 0.2); $grad2_3tr: rgba(87, 108, 236, 0.2); diff --git a/sass/css/header.scss b/sass/css/header.scss index 62ce088..e8b8d78 100644 --- a/sass/css/header.scss +++ b/sass/css/header.scss @@ -37,3 +37,9 @@ header { text-shadow: 1px 2px 1px $violet; text-decoration: none; } + +@media (prefers-color-scheme: dark) { + #header-menu a { + color: white; + } +} diff --git a/sass/css/services.scss b/sass/css/services.scss index 9c8b70a..114151d 100644 --- a/sass/css/services.scss +++ b/sass/css/services.scss @@ -68,3 +68,9 @@ padding-bottom: 14px; font-size: 24px; } + +@media (prefers-color-scheme: dark) { + .service_box-link, .service_box-link:visited { + color: white; + } +} diff --git a/static/img/librezo-little-white.png b/static/img/librezo-little-white.png new file mode 100644 index 0000000000000000000000000000000000000000..c75fcf8c4589c51658ca22bd8103d441144da639 GIT binary patch literal 2291 zcmVEX>4Tx04R}tkv&MmKpe$i(~2Kd6zm|yAw%tCK~%(1t5Adrp;l;tBaGOiU5saWpZjz4t2v7SK9P8q8KzCVK|H-_ z8=UuvL#!yP#OK6gCS8#Dk?Ts6-#8as7I~|df&>u?swklh8!=jSQY@rsKknfVyMBpW3b{&P zeSad^gZEa<4bO1wgWnpw> zWFU8GbZ8()Nlj2!fese{00zrRL_t(|+U;GvPUA`xK68b1A0r7}3QM=x2LL)(xfLD7 zy=4kZ6qHvhM47_U7L;tU-BzYbM|c1VOBCrad5lzZ3yyaWW`54tV-n2yB+F5ZXU6CM zXB+?o0)apv5C{YUfj}S-2m}IwKp^NBYTp*5wN4zD4;|M=j%yRfcVqJTSt<4R5Ey*G zAb9Q|k_}_Wwdo$yW6fCquryd}y^Tb)U)n)FSC)G!$9Nmhd{5qoR_akq^lOuO$RXlq zBAh@V5C{YxB~8*=XZUd?zItHLTIX8pZR05M`=sZ&XIkr`F>fYZ`AwjrYpSHR&Io~X z1JP&9F^Uj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1hUC6}W2FOk+mTPm+H|&JF}R4aaK{6c z%(1)#;I<n8eDf~I!b14*yL6Oj8!riY}?pYk|U@m?RuHb z_M9AZ+^`-cqobA}{fbx&&ON&Tw~SVyi{P_1>tPC2$yv8=4McmhKw;jJotraqiev3Q8?zO!ufTd z--Qw|(#~@U*pf*8<0$5hEFhrsjqm{Bvt- zv*Lw>N|&kjBWMG> zyp?|p?v~`bQB0_-W&ots81OR>RLkmK@CcbWf!EcsCZg`e9yEhJ+A_vVyZ%2AO9-e? z34_}+-=u9o&SP>5M<}RO0Ad*ccKzEL0)apv5C{YUfj}S-2n3%E{{u=d8Fde81GoSH N002ovPDHLkV1lh*EWH2# literal 0 HcmV?d00001 diff --git a/templates/base.html b/templates/base.html index aaae616..797ac39 100644 --- a/templates/base.html +++ b/templates/base.html @@ -19,7 +19,14 @@ fermer
-

Librezo

+ + + + + + +

Librezo

+