forked from rDrama/rDrama
disable site background in profiles
parent
aeeeabbfd7
commit
87573936e7
|
@ -161,22 +161,24 @@
|
|||
{% endmacro %}
|
||||
|
||||
{% macro stylesheets_lower() %}
|
||||
{% if SITE_NAME == 'rDrama' and (not v or v.is_banned or v.agendaposter) %}
|
||||
{% set background = '/i/backgrounds/glitter/1.webp?v=4' %}
|
||||
{% elif v and v.background %}
|
||||
{% set background = v.background %}
|
||||
{% endif %}
|
||||
{% if not request.path.startswith('/@') %}
|
||||
{% if SITE_NAME == 'rDrama' and (not v or v.is_banned or v.agendaposter) %}
|
||||
{% set background = '/i/backgrounds/glitter/1.webp?v=4' %}
|
||||
{% elif v and v.background %}
|
||||
{% set background = v.background %}
|
||||
{% endif %}
|
||||
|
||||
{% if background %}
|
||||
<style>
|
||||
body {
|
||||
background:url("{{background}}") center center fixed;
|
||||
background-color: var(--background);
|
||||
{% if 'anime/' not in background and not background.startswith('/images/') -%}
|
||||
background-size: cover;
|
||||
{%- endif %}
|
||||
}
|
||||
</style>
|
||||
{% if background %}
|
||||
<style>
|
||||
body {
|
||||
background:url("{{background}}") center center fixed;
|
||||
background-color: var(--background);
|
||||
{% if 'anime/' not in background and not background.startswith('/images/') -%}
|
||||
background-size: cover;
|
||||
{%- endif %}
|
||||
}
|
||||
</style>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue