diff --git a/public/assets/img/header-background.svg b/public/assets/img/header-background.svg new file mode 100644 index 0000000000..ba453e0343 --- /dev/null +++ b/public/assets/img/header-background.svg @@ -0,0 +1,233 @@ + + + +image/svg+xml diff --git a/public/assets/img/mokoonyx-bg.svg b/public/assets/img/mokoonyx-bg.svg deleted file mode 100644 index f49e1d9996..0000000000 --- a/public/assets/img/mokoonyx-bg.svg +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/web_src/css/mokogit-brand.css b/web_src/css/mokogit-brand.css index 49de873e64..cd6bb28247 100644 --- a/web_src/css/mokogit-brand.css +++ b/web_src/css/mokogit-brand.css @@ -86,12 +86,12 @@ footer.page-footer { text-decoration-thickness: from-font; } -/* ---- Login / auth screens: MokoOnyx branded backdrop ---- +/* ---- Login / auth screens: MokoGIT branded backdrop ---- * Gitea reuses the "signin" body class across the whole auth family: the sign-in, * sign-up, 2FA (twofa / scratch), OpenID, WebAuthn, and change-password pages all * render
; link-account uses "link-account". * Targeting those two classes brands every login/auth screen consistently. - * We paint the MokoOnyx site pattern (vendored at public/assets/img/mokoonyx-bg.svg, + * We paint the MokoGIT brand header background (vendored at public/assets/img/header-background.svg, * served at /assets/img/) behind the centered form via :has() on — no template * markup is touched, so this survives upstream merges. The form is then lifted onto a * clean surface so it stays legible over the pattern in both light and dark themes. @@ -99,7 +99,7 @@ footer.page-footer { * WebAuthn prompt, whose grid omits the `middle` class. */ body:has(.page-content.user.signin), body:has(.page-content.user.link-account) { - background-image: url("/assets/img/mokoonyx-bg.svg"); + background-image: url("/assets/img/header-background.svg"); background-size: cover; background-position: center center; background-repeat: no-repeat;