misc: target a2 blocks content with .cell--body class (#70451) #217

Merged
tjund merged 1 commits from wip/70451-cell-body-a2blocks into main 2023-04-04 13:48:20 +02:00
4 changed files with 10 additions and 14 deletions

View File

@ -57,9 +57,7 @@ $cell-close-foldable-icon: "\f106" !default; // angle-up
margin: 4em auto;
max-width: 45em;
& form, & p {
margin: 1em 0.5em;
}
p {
margin: 1em 0;
line-height: 1.4;
}
@media screen and ($max-mobile-viewport) {
@ -92,7 +90,7 @@ div.a2-block,
@extend %cell;
}
.column div.a2-block,
.a2-block,
.gru-content div.cell,
.block {
margin-top: 0;
@ -658,11 +656,6 @@ div.bookingcalendar {
float: left;
}
#registration-blocks > .a2-block > div,
#login-page > .block > div {
padding: 1em;
}
#registration-blocks.methods2 > .a2-block,
#registration-blocks.methods3 > .a2-block,
#login-page.methods2 > .block,

View File

@ -755,7 +755,6 @@ div.leaflet-control-gps {
}
#fc-linking {
padding: 0 1rem;
&.no-account {
text-align: center;
}

View File

@ -13,7 +13,7 @@
<h2>Données du compte</h2>
{% endblock %}
{% block profile-data %}
<div id="profile">
<div id="profile" class="cell--body">
{% if attributes %}
{% for attribute in attributes %}
<div class="field">
@ -81,7 +81,9 @@
{% if id != "password" %}
<div class="block" id="account-management-{{ id }}">
<h2>{{ block.name }}</h2>
{{ block.content|safe }}
<div class="cell--body">
{{ block.content|safe }}
</div>
</div>
{% endif %}
{% endfor %}

View File

@ -6,8 +6,10 @@
{% block form-title %}
{% if view.title %}<h2>{{ view.title }}</h2>{% endif %}
{% endblock %}
{% block content %}
{% endblock %}
<div class="cell--body">
{% block content %}
{% endblock %}
</div>
</div>
{% block a2-block-post %}{% endblock %}
{% endblock %}