From ab4af46218c9477f931b7aa4113c02963bf61c18 Mon Sep 17 00:00:00 2001 From: Iris Lightshard Date: Mon, 18 Mar 2024 13:17:31 -0600 Subject: [PATCH] fix bg positioning, login template --- static/style.css | 2 +- static/theme.js | 1 + templates/login.html | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/static/style.css b/static/style.css index 78a0c07..fa55a48 100644 --- a/static/style.css +++ b/static/style.css @@ -26,7 +26,7 @@ body { background: url('/static/bg2.png'); background: url(var(--main_bg)); background-size: cover; - background-position: top left; + background-position: center center; background-attachment: fixed; } diff --git a/static/theme.js b/static/theme.js index 28546c0..ade4a0f 100644 --- a/static/theme.js +++ b/static/theme.js @@ -144,6 +144,7 @@ function resetBG(screen) { rule.style.setProperty("background", `url('${dataUrl}')`); rule.style.setProperty("background-size", "cover"); rule.style.setProperty("background-attachment", "fixed"); + rule.style.setProperty("background-position", "center"); } } diff --git a/templates/login.html b/templates/login.html index 9e9b985..1b095e1 100644 --- a/templates/login.html +++ b/templates/login.html @@ -9,6 +9,7 @@ Nirvash — Login +
@@ -25,4 +26,5 @@
+