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