diff --git a/files/assets/css/main.css b/files/assets/css/main.css index 4f859e1e9..9329dfc9d 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -6662,3 +6662,7 @@ select { padding-top: 0 !important; padding-bottom: 0 !important; } + +body { + background-color: rgb(var(--background)); +} diff --git a/files/routes/users.py b/files/routes/users.py index aa5047839..bf725226b 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -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)