css: replace selector `div#gauche` by `.form-content--sidebox` (#72136)

This commit is contained in:
Thomas Jund 2022-12-07 11:54:23 +01:00 committed by Gitea
parent f078a191f1
commit cf93ae5f8a
55 changed files with 85 additions and 86 deletions

View File

@ -668,7 +668,7 @@ div#social-steps ol {
}
/* tracking code */
div#gauche {
.form-content--sidebox {
text-align: left;
div#tracking-code {
display: block;

View File

@ -719,7 +719,7 @@ span.required {
padding-left: 0.5rem;
padding-right: 0.5rem;
}
#gauche #tracking-code {
.form-content--sidebox #tracking-code {
font-size: 1em;
order: 0;
* {

View File

@ -153,7 +153,7 @@
max-width: $column-width;
// inside the div resides the form and its title
#gauche, #rub_service {
.form-content--sidebox, #rub_service {
@extend %wcs-form;
flex: 1 1 0;
padding: 1em;
@ -165,7 +165,7 @@
}
}
#gauche + #rub_service {
.form-content--sidebox + #rub_service {
@extend %two-thirds;
margin: 0;
padding: 3em;
@ -187,7 +187,7 @@
}
}
#gauche {
.form-content--sidebox {
@extend %one-third;
flex: 1 1 0;
order: 1;
@ -226,7 +226,7 @@
#page #main-content-wrapper #main-content #content #columns {
flex-direction: column;
#gauche {
.form-content--sidebox {
order: 0;
width: 100%;
padding: 0;

View File

@ -115,7 +115,7 @@ body.has-picture {
padding-top: 2rem;
}
> div#rub_service,
> div#gauche {
> .form-content--sidebox {
padding-top: 0rem;
background: white;
}

View File

@ -316,7 +316,7 @@ body.has-picture {
padding-top: 2rem;
}
> div#rub_service,
> div#gauche {
> .form-content--sidebox {
padding-top: 0rem;
background: white;
}
@ -346,4 +346,4 @@ span.helptext, div.hint {
}
}
}
}
}

View File

@ -522,7 +522,7 @@ div#tracking-code {
padding-left: 0.5rem;
color: $font-color;
}
#gauche {
.form-content--sidebox {
order: -1;
}
}

View File

@ -242,7 +242,7 @@ body {
#columns {
align-items: stretch;
#gauche {
.form-content--sidebox {
margin: 0;
border-right: 1px solid $secondary-color;
height: 100%;
@ -531,7 +531,7 @@ body #page {
border:none;
}
#columns #gauche {
#columns .form-content--sidebox {
border:none;
height: auto;

View File

@ -296,7 +296,7 @@ div#rub_service {
}
}
#gauche + #rub_service {
.form-content--sidebox + #rub_service {
max-width: none;
margin: 0;
}

View File

@ -323,7 +323,7 @@ div#content {
}
}
div#gauche {
.form-content--sidebox {
float: none;
width: auto;
& + div#rub_service {

View File

@ -372,7 +372,7 @@ footer {
}
}
div#gauche {
.form-content--sidebox {
width: 25%;
+ div#rub_service {
width: 71%;

View File

@ -203,7 +203,7 @@ div.cell > div {
}
}
}
#gauche {
.form-content--sidebox {
display: none;
}
form {

View File

@ -362,18 +362,18 @@ div#content button {
}
}
div#gauche,
.form-content--sidebox,
div#rub_service {
margin-top: 6rem;
margin-bottom: 2rem;
}
div#gauche {
.form-content--sidebox {
width: $sidebar-width;
padding-right: 20px;
}
div#gauche + div#rub_service {
.form-content--sidebox + div#rub_service {
width: calc(100% - #{$sidebar-width} - 2rem);
}

View File

@ -460,7 +460,7 @@ div#tracking-code {
}
}
div#gauche {
.form-content--sidebox {
width: 23%;
@media screen and ($max-mobile-viewport) {
width: auto;

View File

@ -327,7 +327,7 @@ div.apa-user {
//
// WCS
//
div#rub_service, #gauche {
div#rub_service, .form-content--sidebox {
background-color: $cell-background;
padding: 1em;
}

View File

@ -174,7 +174,7 @@ main {
//
// WCS
//
div#rub_service, #gauche {
div#rub_service, .form-content--sidebox {
background-color: $cell-background;
padding: 1em;
}

View File

@ -18,7 +18,7 @@ div#sidebox div#links {
// general layout
div#gauche, div#rub_service {
.form-content--sidebox, div#rub_service {
margin-top: 15px;
}
@ -27,7 +27,7 @@ div#rub_service {
}
@if ($form-sidebar-position == top) {
div#gauche {
.form-content--sidebox {
text-align: center;
div#tracking-code {
display: inline-block;
@ -38,7 +38,7 @@ div#rub_service {
}
}
} @else {
div#gauche {
.form-content--sidebox {
clear: both;
width: $form-sidebar-width;
@if ($form-sidebar-position == left) {
@ -48,7 +48,7 @@ div#rub_service {
}
}
div#gauche + div#rub_service {
.form-content--sidebox + div#rub_service {
width: calc(100% - #{$form-sidebar-width} - #{$form-sidebar-gutter});
clear: none;
@if ($form-sidebar-position == left) {
@ -155,8 +155,8 @@ div#services div.block-custom-text {
@media screen and ($max-mobile-viewport) {
// move #gauche on top and tracking code after steps
div#gauche {
// move .form-content--sidebox on top and tracking code after steps
.form-content--sidebox {
float: none;
width: 100%;
}
@ -174,13 +174,13 @@ div#services div.block-custom-text {
}
@media screen and ($max-mobile-viewport) {
div#gauche + div#rub_service,
.form-content--sidebox + div#rub_service,
div#rub_service {
width: 100%;
margin: 0;
float: none;
}
div#gauche {
.form-content--sidebox {
text-align: left;
div#tracking-code a {
padding-left: 0.3em;

View File

@ -158,7 +158,7 @@ body.has-picture .site-nav::after {
}
div#gauche, div#rub_service {
.form-content--sidebox, div#rub_service {
background: white;
border-radius: $border-radius;
}

View File

@ -692,14 +692,14 @@ div#title-section {
}
}
div#gauche {
.form-content--sidebox {
position: relative;
width: 350px;
margin-top: 0;
max-width: 100%;
}
div#gauche + div#rub_service {
.form-content--sidebox + div#rub_service {
width: $width - 350px - 20px;
@media screen and ($max-mobile-viewport) {
width: 100%;
@ -710,7 +710,7 @@ div#gauche + div#rub_service {
}
div#gauche div#tracking-code {
.form-content--sidebox div#tracking-code {
background: $green;
height: 32px;
margin-top: -32px;

View File

@ -468,7 +468,7 @@ label {
}
}
div#gauche {
.form-content--sidebox {
padding: 0.5rem;
div#tracking-code {
@extend .shadowed-cell;

View File

@ -155,7 +155,7 @@ div.list-of-forms span.form-number {
}
// WCS
div#gauche,
.form-content--sidebox,
div#rub_service {
margin-top: 0;
}

View File

@ -268,7 +268,7 @@ div#nav {
}
}
}
div#gauche {
.form-content--sidebox {
width: 27.5%;
@media screen and ($max-mobile-viewport) {
width: 100%;

View File

@ -35,7 +35,7 @@ div#help h2,
div#info h2,
div#accessibility h2,
div#contact h2,
div#gauche h3,
.form-content--sidebox h3,
div.gru-content div#rub_service h3,
div#centre h3 {
padding: 0;

View File

@ -36,7 +36,7 @@ div#rub_agenda,
div#rub_annonce,
div#rub_consultation,
div#rub_service,
div#gauche + div#rub_service,
.form-content--sidebox + div#rub_service,
div#centre, div#profile {
float: none; width: 100%;
}
@ -48,7 +48,7 @@ div#centre, div#profile {
}
// COLONNE
div#gauche { float: none; width: 100%;
.form-content--sidebox { float: none; width: 100%;
div#side {
li { display: inline-block;}
}
@ -114,7 +114,7 @@ div#gauche { float: none; width: 100%;
div#info h2,
div#accessibility h2,
div#contact h2,
div#gauche h3,
.form-content--sidebox h3,
div.gru-content div#rub_service h3,
div#centre h3 {
&.title_form { font-size: em(16, $font-size-base); }

View File

@ -601,7 +601,7 @@ footer {
}
div#gauche + div#rub_service {
.form-content--sidebox + div#rub_service {
border-left: 2px solid #d6d6d6;
padding-left: 10px;
}

View File

@ -244,7 +244,7 @@ div#tracking-code {
font-size: 125%;
}
}
div#gauche div#tracking-code a {
.form-content--sidebox div#tracking-code a {
@media screen and ($max-mobile-viewport) {
padding-left: 30px;
}

View File

@ -177,7 +177,7 @@ body.has-picture {
}
div#gauche, div#rub_service {
.form-content--sidebox, div#rub_service {
background: white;
border-radius: $border-radius;
}

View File

@ -522,7 +522,7 @@ div#form-page {
@media screen and (max-width: $nav-mobile-limit) {
margin-top: 0;
}
div#gauche {
.form-content--sidebox {
clear: none;
float: none;
width: 420px;

View File

@ -197,7 +197,7 @@ div#content {
/* wcs */
div#gauche {
.form-content--sidebox {
width: 390px;
margin-top: -1em;
padding-top: 15px;
@ -265,7 +265,7 @@ div#tracking-code::before {
}
}
div#gauche + div#rub_service {
.form-content--sidebox + div#rub_service {
width: calc(100% - 420px);
}
@ -309,13 +309,13 @@ ul#evolutions .evolution-metadata {
@media screen and ($max-mobile-viewport) {
div#gauche {
.form-content--sidebox {
width: auto;
min-height: auto;
padding-bottom: 1ex;
}
div#gauche + div#rub_service {
.form-content--sidebox + div#rub_service {
width: 100%;
}
}

View File

@ -624,7 +624,7 @@ div#rub_service form[action="."] { // target form pages
}
}
div#gauche, div#rub_service {
.form-content--sidebox, div#rub_service {
margin-top: 0;
background: transparent;
@media screen and (max-width: $nav-mobile-limit) {

View File

@ -170,7 +170,7 @@ div.buttons button {
text-transform: uppercase;
}
div#gauche {
.form-content--sidebox {
width: 15%;
text-align: center;
@media screen and (max-width: $nav-mobile-limit) {

View File

@ -836,7 +836,7 @@ div.carrousel-content {
@extend h1;
}
div#gauche {
.form-content--sidebox {
@media ($max-mobile-viewport) {
margin-top: 0;
}
@ -873,7 +873,7 @@ div#gauche {
}
}
div#gauche + div#rub_service {
.form-content--sidebox + div#rub_service {
@media ($min-desktop-viewport) {
padding-left: 2rem;
padding-right: 2rem;

View File

@ -79,7 +79,7 @@ div#main-content {
margin-top: 15px;
}
div#gauche, div#rub_service {
.form-content--sidebox, div#rub_service {
margin-top: 0;
}

View File

@ -386,13 +386,13 @@ div#nav #nav-button.toggled + ul li {
}
}
div#gauche {
.form-content--sidebox {
clear: both;
width: auto;
float: none;
}
div#gauche + div#rub_service {
.form-content--sidebox + div#rub_service {
width: auto;
float: none;
}
@ -836,7 +836,7 @@ form[action="removedraft"] button {
}
}
div#gauche div#tracking-code {
.form-content--sidebox div#tracking-code {
display: block;
}

View File

@ -570,7 +570,7 @@ div#tracking-code, .wcs-steps {
margin: 0;
}
div#gauche div#tracking-code a {
.form-content--sidebox div#tracking-code a {
padding: 0 0.5em;
}

View File

@ -182,7 +182,7 @@ div.buttons button {
text-transform: uppercase;
}
div#gauche {
.form-content--sidebox {
width: 15%;
text-align: center;
@media screen and (max-width: $nav-mobile-limit) {

View File

@ -175,7 +175,7 @@ div#services > ul > li,
}
// Cells in sidebars & authentic pages
#sidebar, #gauche, .authentic-page .gru-content {
#sidebar, .form-content--sidebox, .authentic-page .gru-content {
// Cells titles
div#tracking-code h3,
div.links-list h2,

View File

@ -113,7 +113,7 @@ div.widget-with-error {
}
}
div#gauche {
.form-content--sidebox {
margin-top: 30px;
}

View File

@ -421,18 +421,18 @@ div#content button {
}
}
div#gauche,
.form-content--sidebox,
div#rub_service {
margin-top: 6rem;
margin-bottom: 2rem;
}
div#gauche {
.form-content--sidebox {
width: $sidebar-width;
padding-right: 20px;
}
div#gauche + div#rub_service {
.form-content--sidebox + div#rub_service {
width: calc(100% - #{$sidebar-width} - 2rem);
}

View File

@ -582,7 +582,7 @@ div#rub_service form[action="."] { // target form pages
}
}
div#gauche, div#rub_service {
.form-content--sidebox, div#rub_service {
margin-top: 0;
background: white;
@media screen and (max-width: $nav-mobile-limit) {

View File

@ -518,7 +518,7 @@ div#rub_service {
@extend %button2;
}
}
div#gauche {
.form-content--sidebox {
background-color: white;
@media ($min-desktop-viewport) {
padding: $columns-gutter;

View File

@ -528,7 +528,7 @@ div#rub_service div.drafts-recall,
}
#columns {
> #gauche {
> .form-content--sidebox {
display: none;
}
}

View File

@ -406,7 +406,7 @@ div#side {
flex-direction: row;
}
}
div#gauche {
.form-content--sidebox {
div#tracking-code {
min-width: 0;
font-size: 1rem;

View File

@ -922,7 +922,7 @@ section#section-professionnels {
}
}
div#gauche {
.form-content--sidebox {
box-shadow: 0 0 5px #ccc;
position: relative;
margin: 0 100px 0 100px;
@ -954,7 +954,7 @@ div#gauche {
}
}
div#gauche + div#rub_service {
.form-content--sidebox + div#rub_service {
margin-top: -30px;
position: relative;
z-index: 10;

View File

@ -938,7 +938,7 @@ section#section-professionnels {
}
}
div#gauche {
.form-content--sidebox {
position: relative;
div#tracking-code {
position: absolute;

View File

@ -184,7 +184,7 @@ $dashboard_items: profil, demandes, paiements, porte-documents;
padding-right: 20px;
}
div#gauche + div#rub_service {
.form-content--sidebox + div#rub_service {
border-left: 2px solid #d6d6d6;
padding-left: 10px;
}

View File

@ -931,7 +931,7 @@ body.no-overflow {
// layout
@media ($min-desktop-viewport) {
div#gauche {
.form-content--sidebox {
width: $sidebar-width;
& + div#rub_service {
width: calc( 100% - #{$sidebar-width});
@ -994,7 +994,7 @@ body.no-overflow {
}
}
div#gauche {
.form-content--sidebox {
margin-top: 0;
@media ($min-desktop-viewport) {
background-image: linear-gradient(to top, transparent, $gray-light 200px);

View File

@ -11,16 +11,15 @@
{% block side %}
{% if gauche %}
<div id="gauche">
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
</div>
{% endif %}
{% endblock %}
<div id="{{bigdiv|default:'rub_service'}}">
{% block body %}
{{ body|safe }}
{% endblock %}
<h1>body</h1>
{% block body %}{% endblock %}
</div>
{% endblock %}
{% endblock %}

View File

@ -14,7 +14,7 @@
{% block content %}
{% block side %}
{% if gauche %}
<div id="gauche">
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
</div>
{% endif %}

View File

@ -11,7 +11,7 @@
{% block side %}
{% if gauche %}
<div id="gauche">
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
</div>
{% endif %}

View File

@ -27,7 +27,7 @@
{% block side %}
{% if gauche %}
<div id="gauche">
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
</div>
{% endif %}

View File

@ -24,7 +24,7 @@
{% endif %}
{% if gauche %}
<div id="gauche">
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
</div>
{% endif %}

View File

@ -29,7 +29,7 @@
{% block placeholder-content %}
{% block content %}
{% if gauche %}
<div id="gauche">{{ gauche|safe }}</div>
<div class="form-content--sidebox" id="gauche">{{ gauche|safe }}</div>
{% endif %}
<div id="{{bigdiv|default:'rub_service'}}" class="{% if gauche %}has-sidebox{% endif %}">

View File

@ -11,7 +11,7 @@
{% block side %}
{% if gauche %}
<div id="gauche">
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
</div>
{% endif %}

View File

@ -29,7 +29,7 @@
{% endif %}
{% if gauche %}
<div id="gauche">
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
</div>
{% endif %}

View File

@ -29,7 +29,7 @@
{% endif %}
{% if gauche %}
<div id="gauche">
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
</div>
{% endif %}