disable site background in profiles

master
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 %} {% 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 %}