background improvements

master
Aevann 2023-01-01 11:59:29 +02:00
parent b18e43487c
commit d0874f614b
2 changed files with 11 additions and 4 deletions

View File

@ -6662,3 +6662,7 @@ select {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
body {
background-color: rgb(var(--background));
}

View File

@ -396,8 +396,7 @@ def get_css(id):
if not css: css = ''
css += f'''
body {{
background:url("{bg}") center center fixed;
background-color: rgb(var(--background));
background: url("{bg}") center center fixed;
}}
'''
if 'anime/' not in bg and not bg.startswith('/images/'):
@ -418,8 +417,12 @@ def get_profilecss(id):
if bg:
if not css: css = ''
css += f"body {{background-image: url('{bg}') !important}}"
css += f'''
body {{
background: url("{bg}") center center fixed;
background-size: auto;
}}
'''
if not css: abort(404)
resp = make_response(css)