all repos — nirvash @ ab4af46218c9477f931b7aa4113c02963bf61c18

modular CMS using the quartzgun library

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-----
commit

ab4af46218c9477f931b7aa4113c02963bf61c18

parent

7d876d841930e9797bde3cabd80ff7935d909872

3 files changed, 4 insertions(+), 1 deletions(-)

jump to
M static/style.cssstatic/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.jsstatic/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.htmltemplates/login.html

@@ -9,6 +9,7 @@ <meta name='viewport' content='width=device-width,initial-scale=1'>

<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 @@ <input type="submit" value="Login">

</form> </div> </body> + <script src='/static/theme2.js' type='text/javascript'></script> </html>