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,20 +1,20 @@
|
||||
@import "./chroma/dark.css";
|
||||
@import "./codemirror/dark.css";
|
||||
@import "./theme-gitea-dark.css";
|
||||
|
||||
gitea-theme-meta-info {
|
||||
--theme-display-name: "CodeCraftsmen Dark";
|
||||
--theme-color-scheme: "dark";
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Gotham";
|
||||
src: url("/assets/fonts/GothamNarrow-Medium.woff2") format("woff2");
|
||||
src: url("../fonts/GothamNarrow-Medium.woff2") format("woff2");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "alro";
|
||||
src: url("/assets/fonts/alro-bold-700.woff2") format("woff2");
|
||||
src: url("../fonts/alro-bold-700.woff2") format("woff2");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
@@ -293,8 +293,11 @@ gitea-theme-meta-info {
|
||||
--cc-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
}
|
||||
|
||||
html[data-theme="codecraftsmen-dark"] #navbar-logo .nav-logo-light { display: none; }
|
||||
html[data-theme="codecraftsmen-dark"] #navbar-logo .nav-logo-dark { display: inline; }
|
||||
html[data-theme="codecraftsmen-dark"] #navbar-logo img {
|
||||
content: url("../img/logo-dark-no-slogan.svg");
|
||||
width: 60px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
body,
|
||||
input,
|
||||
|
||||
Reference in New Issue
Block a user