forked from rDrama/rDrama
reintroduce behavior from 55b9f7286d
i can't repro the fix but... if it's fixed :marseyshrug:master
parent
4a2f4b5a5d
commit
3d20cdf71e
|
@ -23,5 +23,6 @@
|
|||
</head>
|
||||
<body {% block body_attributes %}id="{%block pagetype %}{% endblock %}"{% endblock %}>
|
||||
{% block body required %}{% endblock %}
|
||||
{{html_head.stylesheets_lower()}}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -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}}">
|
||||
|
|
Loading…
Reference in New Issue