feat(theme): align custom themes with Gitea 1.27

Import upstream Gitea light and dark themes so new defaults and syntax styles remain compatible across upgrades. Replace the custom navbar template with CSS-based logo overrides and remove redundant Chroma and CodeMirror assets.

Add theme color-scheme metadata, correct relative asset paths, apply CSP nonces to analytics scripts, and document installation, compatibility, upgrade, and licensing requirements.
This commit is contained in:
cole-maxwell1
2026-09-07 16:24:29 -05:00
parent 1532ef27be
commit 0483209214
12 changed files with 76 additions and 551 deletions
+13 -3
View File
@@ -1,13 +1,23 @@
@import "./theme-codecraftsmen-light.css" (prefers-color-scheme: light);
@import "./theme-codecraftsmen-dark.css" (prefers-color-scheme: dark);
#navbar-logo .nav-logo-dark { display: none; }
@media (prefers-color-scheme: light) {
html[data-theme="codecraftsmen-auto"] #navbar-logo img {
content: url("../img/logo-light-no-slogan.svg");
width: 60px;
height: 30px;
}
}
@media (prefers-color-scheme: dark) {
html[data-theme="codecraftsmen-auto"] #navbar-logo .nav-logo-light { display: none; }
html[data-theme="codecraftsmen-auto"] #navbar-logo .nav-logo-dark { display: inline; }
html[data-theme="codecraftsmen-auto"] #navbar-logo img {
content: url("../img/logo-dark-no-slogan.svg");
width: 60px;
height: 30px;
}
}
gitea-theme-meta-info {
--theme-display-name: "CodeCraftsmen Auto";
--theme-color-scheme: "auto";
}