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: nilix
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('/static/bg2.png');
background: url(var(--main_bg)); background: url(var(--main_bg));
background-size: cover; background-size: cover;
background-position: top left; background-position: center center;
background-attachment: fixed; background-attachment: fixed;
} }

View file

@ -144,6 +144,7 @@ function resetBG(screen) {
rule.style.setProperty("background", `url('${dataUrl}')`); rule.style.setProperty("background", `url('${dataUrl}')`);
rule.style.setProperty("background-size", "cover"); rule.style.setProperty("background-size", "cover");
rule.style.setProperty("background-attachment", "fixed"); rule.style.setProperty("background-attachment", "fixed");
rule.style.setProperty("background-position", "center");
} }
} }

View file

@ -9,6 +9,7 @@
<title>Nirvash &mdash; Login</title> <title>Nirvash &mdash; Login</title>
<link rel='stylesheet' type='text/css' href='/static/style.css'> <link rel='stylesheet' type='text/css' href='/static/style.css'>
<link rel='shortcut icon' href='/static/favicon.png'> <link rel='shortcut icon' href='/static/favicon.png'>
<script src='/static/theme.js' type='text/javascript'></script>
</head> </head>
<body class="login-body"> <body class="login-body">
<div class="login"> <div class="login">
@ -25,4 +26,5 @@
</form> </form>
</div> </div>
</body> </body>
<script src='/static/theme2.js' type='text/javascript'></script>
</html> </html>