From 8358cd0eec30a2a9db2d76cf47a4fd0c5c7c353c Mon Sep 17 00:00:00 2001 From: Edi Wang Date: Tue, 1 Oct 2024 18:49:12 +0800 Subject: [PATCH] support dark mode for categories --- src/Moonglade.Web/Pages/Admin/Category.cshtml | 1 + src/Moonglade.Web/wwwroot/css/admin.css | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/Moonglade.Web/Pages/Admin/Category.cshtml b/src/Moonglade.Web/Pages/Admin/Category.cshtml index 13c4dc154..0c1e42bff 100644 --- a/src/Moonglade.Web/Pages/Admin/Category.cshtml +++ b/src/Moonglade.Web/Pages/Admin/Category.cshtml @@ -1,6 +1,7 @@ @page "/admin/category" @model Moonglade.Web.Pages.Admin.CategoryModel @{ + ViewBag.ThemeSwitchReady = true; ViewBag.Title = "Categories"; } diff --git a/src/Moonglade.Web/wwwroot/css/admin.css b/src/Moonglade.Web/wwwroot/css/admin.css index 9df36240d..8346956ff 100644 --- a/src/Moonglade.Web/wwwroot/css/admin.css +++ b/src/Moonglade.Web/wwwroot/css/admin.css @@ -386,4 +386,8 @@ div.mce-fullscreen { [data-bs-theme="dark"] .image-drop-target { background-color: var(--bs-secondary-bg-subtle); border: 2px dashed #4F4F4F; +} + +[data-bs-theme="dark"] .admin-nav .list-group-item.active { + color: var(--bs-white) } \ No newline at end of file