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(var(--main_bg));
|
||||
background-size: cover;
|
||||
background-position: top left;
|
||||
background-position: center center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
<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 @@
|
|||
</form>
|
||||
</div>
|
||||
</body>
|
||||
<script src='/static/theme2.js' type='text/javascript'></script>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue