fix bg positioning, login template

This commit is contained in:
Iris Lightshard 2024-03-18 13:17:31 -06:00
parent 7d876d8419
commit ab4af46218
Signed by: Iris Lightshard
GPG key ID: 688407174966CAF3
3 changed files with 4 additions and 1 deletions

View file

@ -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;
}

View file

@ -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");
}
}

View file

@ -9,6 +9,7 @@
<title>Nirvash &mdash; 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 @@
</form>
</div>
</body>
<script src='/static/theme2.js' type='text/javascript'></script>
</html>