Add custom css background

This commit is contained in:
cuom1999 2023-09-01 19:42:58 -05:00
parent 036509c47f
commit 5f80859022
7 changed files with 148 additions and 80 deletions

View file

@ -193,6 +193,15 @@
}
</style>
</noscript>
{% if request.profile.css_background %}
<style>
@media(min-width: 800px) {
#page-container {
background: {{request.profile.css_background|safe}};
}
}
</style>
{% endif %}
</head>
<body>
<svg width="0" height="0" style="display: block">

View file

@ -173,6 +173,10 @@
{% endif %}
</div>
<br><hr>
<span class="block-header">{{ _('CSS background') }}:</span>
{{ form.css_background }}
<div><i>{{form.css_background.help_text}}</i></div>
<br><br>
<div class="block-header">{{ _('User-script') }}:</div>
{{ form.user_script }}
<hr>