scss: add variable to define form's background color (#68612)

This commit is contained in:
Serghei Mihai 2022-09-01 11:02:06 +02:00
parent f9b7496c8b
commit b0d93e382f
2 changed files with 10 additions and 4 deletions

View File

@ -477,6 +477,11 @@ paramètre, la deuxième sa description et la troisième la valeur par défaut.
pour les éléments.</p></td>
<td><p><var>classic</var></p></td>
</tr>
<tr>
<td><p><code>$form-background</code></p></td>
<td><p>Couleur de fond d'une démarche.</p></td>
<td><p><var>$body-background</var></p></td>
</tr>
<tr>
<td><p><code>$form-sidebar-position</code></p></td>
<td><p>Position du code de suivi et des étapes, « left », « right » ou

View File

@ -7,6 +7,7 @@ $form-sidebar-gutter: 2% !default;
// * page: full page width (i.e. sidebar + form content)
// * form: form width (+ margin to be aligned on top of form)
$form-titlebar-mode: page !default;
$form-background: $body-background !default;
// hide a bunch of elements
div#droite,
@ -22,7 +23,7 @@ div#gauche, div#rub_service {
}
div#rub_service {
background: $body-background;
background: $form-background;
}
@if ($form-sidebar-position == top) {
@ -262,7 +263,7 @@ ul#evolutions > li:after {
ul#evolutions div.evolution-metadata {
width: auto;
display: inline-block;
background: $body-background;
background: $form-background;
margin-left: 60px;
padding: 0.7em;
padding-top: 30px;
@ -297,7 +298,7 @@ ul#evolutions li div.msg {
padding: 0.7em;
padding-top: 0;
position: relative;
background: $body-background;
background: $form-background;
margin-left: 60px;
margin-right: 30px;
p.wf-attachment {
@ -329,7 +330,7 @@ ul#evolutions li span.item {
border: 1px solid #888;
top: 24px;
background: $button-color !important;
box-shadow: 0 0 0px 5px $body-background;
box-shadow: 0 0 0px 5px $form-background;
&::before {
content: "";
display: block;