add background when a form is show

This commit is contained in:
Simon Vieille 2022-05-08 18:38:55 +02:00
parent e428ae5674
commit 67a5890573
Signed by: deblan
GPG key ID: 579388D585F70417
4 changed files with 23 additions and 1 deletions

View file

@ -31,6 +31,11 @@ body {
overflow-x: hidden;
}
.body.has-form {
min-height: 100vh;
background: lighten(map-get($theme-colors, 'dark-blue'), 75%);
}
#logo {
width: 30px;
}
@ -394,6 +399,19 @@ th {
margin-right: 4px;
}
#form-main {
> .tab-content {
padding: 30px;
background: lighten(map-get($theme-colors, 'dark-blue'), 75%);
.tab-form {
padding: 30px;
background: #fff;
border: 1px solid #ccc;
}
}
}
.custom-file-label::after {
content: "Parcourir";
}

View file

@ -2,6 +2,8 @@
{% set context = context ?? 'edit' %}
{% block body_class %}has-form{% endblock %}
{% block title %}{{ configuration.pageTitle(context)|trans|build_string(entity) }} - {{ parent() }}{% endblock %}
{% block body %}

View file

@ -2,6 +2,8 @@
{% set context = context ?? 'new' %}
{% block body_class %}has-form{% endblock %}
{% block title %}{{ configuration.pageTitle(context)|trans|build_string(entity) }} - {{ parent() }}{% endblock %}
{% block body %}

View file

@ -44,7 +44,7 @@
{{ include('@Core/admin/module/menu.html.twig') }}
</div>
</nav>
<div class="body">
<div class="body {% block body_class %}{% endblock %}">
{% block body %}
{% endblock %}
</div>