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.
24 lines
633 B
CSS
24 lines
633 B
CSS
@import "./theme-codecraftsmen-light.css" (prefers-color-scheme: light);
|
|
@import "./theme-codecraftsmen-dark.css" (prefers-color-scheme: dark);
|
|
|
|
@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 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";
|
|
}
|