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:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user