Add custom css background
This commit is contained in:
parent
036509c47f
commit
5f80859022
7 changed files with 148 additions and 80 deletions
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue