disable site background in profiles

pull/49/head
Aevann1 2022-12-05 06:05:20 +02:00
parent aeeeabbfd7
commit 87573936e7
1 changed files with 17 additions and 15 deletions

View File

@ -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 %}