fix bg positioning, login template
This commit is contained in:
parent
7d876d8419
commit
ab4af46218
3 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<title>Nirvash — Login</title>
|
<title>Nirvash — 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>
|
||||||
|
|
Loading…
Reference in a new issue