forked from rDrama/rDrama
background improvements
parent
b18e43487c
commit
d0874f614b
|
@ -6662,3 +6662,7 @@ select {
|
||||||
padding-top: 0 !important;
|
padding-top: 0 !important;
|
||||||
padding-bottom: 0 !important;
|
padding-bottom: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: rgb(var(--background));
|
||||||
|
}
|
||||||
|
|
|
@ -396,8 +396,7 @@ def get_css(id):
|
||||||
if not css: css = ''
|
if not css: css = ''
|
||||||
css += f'''
|
css += f'''
|
||||||
body {{
|
body {{
|
||||||
background:url("{bg}") center center fixed;
|
background: url("{bg}") center center fixed;
|
||||||
background-color: rgb(var(--background));
|
|
||||||
}}
|
}}
|
||||||
'''
|
'''
|
||||||
if 'anime/' not in bg and not bg.startswith('/images/'):
|
if 'anime/' not in bg and not bg.startswith('/images/'):
|
||||||
|
@ -418,8 +417,12 @@ def get_profilecss(id):
|
||||||
|
|
||||||
if bg:
|
if bg:
|
||||||
if not css: css = ''
|
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)
|
if not css: abort(404)
|
||||||
|
|
||||||
resp = make_response(css)
|
resp = make_response(css)
|
||||||
|
|
Loading…
Reference in New Issue