forked from rDrama/rDrama
1
0
Fork 0

settings: personal: wrap colors in required tags

settings: personal: put website backgrounds custom CSS
master
justcool393 2022-11-06 02:04:29 -06:00
parent 5fbe680fe5
commit 85e1d271b7
1 changed files with 13 additions and 13 deletions

View File

@ -1,25 +1,13 @@
{% extends "settings.html" %}
{% block pagetitle %}Personal Settings - {{SITE_NAME}}{% endblock %}
{% import 'settings_common.html' as common with context %}
<style>
.bg-image {
padding: 0.25rem;
width: 15rem;
height: 10rem;
object-fit: cover;
}
.bg-button {
margin: 0.25rem;
padding: 0;
}
</style>
{# common sections start #}
{% macro color_section(id, form_action, form_name, section_title, current_color) %}
<div class="d-lg-flex border-bottom">
<div class="title w-lg-25">
<label for="{{id}}">{{section_title}}</label>
</div>
<div class="body">
<div class="body w-lg-100 d-lg-flex">
<div class="d-flex">
<form action="{{form_action}}" id="{{id}}-form" method="post" class="color-picker" style="line-height: 0">
<input type="hidden" name="formkey" value="{{v.formkey}}">
@ -101,6 +89,18 @@
{% endmacro %}
{# common sections end #}
{% block content %}
<style>
.bg-image {
padding: 0.25rem;
width: 15rem;
height: 10rem;
object-fit: cover;
}
.bg-button {
margin: 0.25rem;
padding: 0;
}
</style>
<div class="row settings-page" id="settings-page-personal">
<div class="col col-lg-10">
<div class="settings">