reintroduce behavior from 55b9f7286d

i can't repro the fix but... if it's fixed :marseyshrug:
pull/29/head
justcool393 2022-11-28 16:48:15 -06:00
parent 4a2f4b5a5d
commit 3d20cdf71e
2 changed files with 16 additions and 14 deletions

View File

@ -23,5 +23,6 @@
</head>
<body {% block body_attributes %}id="{%block pagetype %}{% endblock %}"{% endblock %}>
{% block body required %}{% endblock %}
{{html_head.stylesheets_lower()}}
</body>
</html>

View File

@ -107,20 +107,6 @@
{% macro stylesheets(include_user_css) %}
<link rel="stylesheet" href="{{'css/main.css' | asset}}">
<link id="favicon" rel="icon" type="image/webp" href="{{'icon.webp' | asset_siteimg}}">
{% if SITE_NAME == 'rDrama' and (not v or v.is_banned or v.agendaposter) %}
{% set background = '/assets/images/backgrounds/glitter/1.webp?v=3' %}
{% elif v and v.background %}
{% set background = '/assets/images/backgrounds/' + v.background %}
{% endif %}
<style>
body {
background:url({{background}}) center center fixed;
background-color: var(--background);
{% if 'anime' not in background %}background-size: cover;{% endif %}
}
</style>
{% if v %}
<style>:root{--primary:#{{v.themecolor}}}</style>
{% if v.agendaposter %}
@ -169,6 +155,21 @@
{% endif %}
{% endmacro %}
{% macro stylesheets_lower() %}
{% if SITE_NAME == 'rDrama' and (not v or v.is_banned or v.agendaposter) %}
{% set background = '/assets/images/backgrounds/glitter/1.webp?v=3' %}
{% elif v and v.background %}
{% set background = '/assets/images/backgrounds/' + v.background %}
{% endif %}
<style>
body {
background:url({{background}}) center center fixed;
background-color: var(--background);
{% if 'anime' not in background %}background-size: cover;{% endif %}
}
</style>
{% endmacro %}
{% macro default_theme() %}
<style>:root{--primary:#{{DEFAULT_COLOR}}}</style>
<link rel="stylesheet" href="{{('css/'~DEFAULT_THEME~'.css') | asset}}">