From 150fd50b13481507b277baa1d1c3a1315c7a596a Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Fri, 4 Feb 2022 08:01:38 +0100 Subject: [PATCH] Add dark theme --- Pages/Dashboard.cshtml | 12 ++--- Pages/Shared/_Layout.cshtml | 32 ++++++++++++-- wwwroot/css/dark-mode.css | 80 ++++++++++++++++++++++++++++++++++ wwwroot/js/dark-mode-switch.js | 25 +++++++++++ 4 files changed, 139 insertions(+), 10 deletions(-) create mode 100644 wwwroot/css/dark-mode.css create mode 100644 wwwroot/js/dark-mode-switch.js diff --git a/Pages/Dashboard.cshtml b/Pages/Dashboard.cshtml index 5a31803..04b7e5a 100644 --- a/Pages/Dashboard.cshtml +++ b/Pages/Dashboard.cshtml @@ -239,17 +239,17 @@ else { Pronoun (plurality) @if (user.PronounPlural) { - +
- - + +
} else { - +
- - + +
} diff --git a/Pages/Shared/_Layout.cshtml b/Pages/Shared/_Layout.cshtml index afb931e..e4f95b9 100644 --- a/Pages/Shared/_Layout.cshtml +++ b/Pages/Shared/_Layout.cshtml @@ -6,12 +6,16 @@ @ViewData["Title"] - @Program.SiteName + +
-