fix bg positioning, login template
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQT/foVVmI9pK13hPWFohAcXSWbK8wUCZfiTSwAKCRBohAcXSWbK 81wzAP964IP6SslZWBisDOcZFi9FQOfC3Bfi0ac1R7wxNldBrgD/Vzpzc81yntM+ VbV0it/4eO6HdhyRA5NKaxJ2W6MVnAc= =rfyW -----END PGP SIGNATURE-----
3 files changed,
4 insertions(+),
1 deletions(-)
M
static/style.css
→
static/style.css
@@ -26,7 +26,7 @@ color: var(--fg_color);
background: url('/static/bg2.png'); background: url(var(--main_bg)); background-size: cover; - background-position: top left; + background-position: center center; background-attachment: fixed; }
M
static/theme.js
→
static/theme.js
@@ -144,6 +144,7 @@ if (dataUrl) {
rule.style.setProperty("background", `url('${dataUrl}')`); rule.style.setProperty("background-size", "cover"); rule.style.setProperty("background-attachment", "fixed"); + rule.style.setProperty("background-position", "center"); } }
M
templates/login.html
→
templates/login.html
@@ -9,6 +9,7 @@ <meta name='viewport' content='width=device-width,initial-scale=1'>
<title>Nirvash — Login</title> <link rel='stylesheet' type='text/css' href='/static/style.css'> <link rel='shortcut icon' href='/static/favicon.png'> + <script src='/static/theme.js' type='text/javascript'></script> </head> <body class="login-body"> <div class="login">@@ -25,4 +26,5 @@ <input type="submit" value="Login">
</form> </div> </body> + <script src='/static/theme2.js' type='text/javascript'></script> </html>