diff --git a/html/about.php b/html/about.php index 72b0e9ff..ec120d50 100644 --- a/html/about.php +++ b/html/about.php @@ -12,7 +12,7 @@ require "../include/functions.php"; <?=$title?> - +'>
diff --git a/html/admin.php b/html/admin.php index 60be986d..bdf500be 100644 --- a/html/admin.php +++ b/html/admin.php @@ -18,7 +18,7 @@ if($_SESSION['role'] < 3) { <?=$title?> - +'>
diff --git a/html/compte.php b/html/compte.php index 50836ec5..285527c3 100644 --- a/html/compte.php +++ b/html/compte.php @@ -31,7 +31,7 @@ if(isset($_POST['delete_account'])) { <?=$title?> - +'>
diff --git a/html/editpage.php b/html/editpage.php index 9c4e37c3..01d90993 100644 --- a/html/editpage.php +++ b/html/editpage.php @@ -70,7 +70,7 @@ if(isset($fichier)) { } - +'>
diff --git a/html/index.php b/html/index.php index 42e7c49d..8bff61a7 100644 --- a/html/index.php +++ b/html/index.php @@ -12,7 +12,7 @@ require "../include/functions.php"; <?=$title?> - +'>
diff --git a/html/src/css/style.css b/html/src/css/style.css index 1bc6dc71..3c6a513f 100644 --- a/html/src/css/style.css +++ b/html/src/css/style.css @@ -1,4 +1,13 @@ :root { + --text: #000000; + --background: hsl(0, 0%, 100%); + --dark-background: hsl(0, 0%, 100%); + --darker-background: hsl(0, 0%, 100%); + --article-background: hsl(0, 0%, 100%); + --article-text: hsl(0, 0%, 0%); +} + +.light { --text: #373737; --background: hsl(0, 0%, 100%); --dark-background: hsl(0, 0%, 100%); @@ -7,6 +16,15 @@ --article-text: hsl(0, 0%, 0%); } +.dark { + --text: #b3b3b3; + --background: hsl(0, 0%, 15%); + --dark-background: hsl(0, 0%, 10%); + --darker-background: hsl(0, 0%, 5%); + --article-background: hsl(0, 0%, 15%); + --article-text: hsl(0, 0%, 100%); +} + @font-face { font-family: crfont; /* Nom de la police */ src: url('/src/fonts/bahnschrift.ttf') format('truetype'); /* Chemin vers votre fichier TTF */ diff --git a/include/functions.php b/include/functions.php index 8a7d348a..90c4794c 100644 --- a/include/functions.php +++ b/include/functions.php @@ -9,6 +9,10 @@ if(!isset($_SESSION['role'])) { $_SESSION['role'] = 0; } +if(!isset($_SESSION['colormode'])) { + $_SESSION['colormode'] = "dark"; +} + function nav($nav) { foreach($nav as $name => $url) { echo "";