replace dedicated clear float tags by ".clearfix" class (#45365)

This commit is contained in:
Thomas Jund 2020-07-22 12:13:49 +02:00
parent 204db7774c
commit b460a1fe74
16 changed files with 28 additions and 57 deletions

View File

@ -409,10 +409,6 @@ div#gauche {
background: white;
}
#main-content > br.clear {
display: none;
}
.gru-content #columns div.textcell {
padding: 0 3rem;
line-height: 140%;

View File

@ -450,10 +450,6 @@ div.cell.links-list#demande-d-information {
}
}
#main-content br.clear {
display: none;
}
#login-page.methods2 {
max-width: 60rem;
margin: 0 auto;

View File

@ -82,10 +82,6 @@ div#footer div.cell.test-banner p {
}
}
br.clear {
clear: both;
}
div#login-methods label {
display: block;
}

View File

@ -65,3 +65,22 @@ $black: #000000 !default;
.sr-only {
@include sr-only();
}
// clearifx
@mixin clearfix {
&::after {
display: block;
clear: both;
content: "";
}
@supports (display: flow-root) {
display: flow-root;
&::after {
content: none;
}
}
}
.clearfix {
@include clearfix();
}

View File

@ -1097,9 +1097,6 @@ body.authentic-page {
div#login-page > div.block {
margin: 0 0 1rem 0;
}
br.clear {
display: none;
}
}
}
#sidebar {

View File

@ -149,10 +149,6 @@ div#content a:hover {
text-decoration: underline;
}
br.clear {
clear: both;
}
/* for templates/combo/wcs/form_categories.html
* and templates/combo/wcs/current_forms.html
*/

View File

@ -195,10 +195,6 @@ div#content {
}
}
#main-content > br.clear {
display: none;
}
/* wcs */
div#gauche {

View File

@ -396,11 +396,6 @@ div.title label {
}
}
br.clear {
height: 1px;
display: block;
}
#login-title {
font-family: $title-font-family;
font-size: 1.125rem;
@ -504,9 +499,6 @@ div#rub_service form[action="."] { // target form pages
@media screen and ($max-mobile-viewport) {
br.clear {
display: none;
}
#columns {
padding: 0;
}

View File

@ -294,7 +294,7 @@ nav {
}
}
}
div#apa-domicile {
color: white;
@include leftsidebg(#84d3e2);
@ -508,10 +508,6 @@ div.cell.links-list#demande-d-information {
}
}
#main-content br.clear {
display: none;
}
#login-page.methods2 {
max-width: 60rem;
margin: 0 auto;

View File

@ -423,11 +423,6 @@ div.hint {
}
}
br.clear {
height: 1px;
display: block;
}
#login-title {
font-family: $title-font-family;
font-size: 1.125rem;
@ -515,9 +510,6 @@ div#rub_service form[action="."] { // target form pages
}
@media screen and ($max-mobile-viewport) {
br.clear {
display: none;
}
#columns {
padding: 0;
}

View File

@ -83,5 +83,4 @@
{% endblock %}
{% block account-management-post %}{% endblock %}
</div>
<br class="clear" />
{% endblock %}

View File

@ -17,7 +17,7 @@
{% block content %}
{% block login-pre %}{% endblock %}
<div id="login-page" class="methods{{ blocks|length }}">
<div id="login-page" class="clearfix methods{{ blocks|length }}">
{% block login-top %}{% endblock %}
{% block login-blocks %}
@ -33,7 +33,7 @@
{% endfor %}
{% endblock %}
{% block login-bottom %}<br class="clear"/>{% endblock %}
{% block login-bottom %}{% endblock %}
</div>
{% block login-post %}{% endblock %}

View File

@ -2,7 +2,7 @@
<h2>Les bénéficiaires reliés à mon compte</h2>
<div class="apa-users">
<div class="apa-users clearfix">
{% for item in json.data|dictsort:"id" %}
{% with individu=item.information.individu %}
@ -19,7 +19,4 @@
</div>
{% endwith %}
{% endfor %}
<div style="clear: both;"></div>
</div>

View File

@ -30,11 +30,10 @@
<h3>Compte usager</h3>
</div>
<div class="a2-block">
<div class="a2-block clearfix">
{% block content %}
{% endblock %}
</div>
<br class="clear">
<p id="help">
<a href="{% firstof help_url 'https://compte-citoyen.montpellier3m.fr/aide/' %}">Contacter le support pour l'aide</a>
</p>

View File

@ -36,7 +36,7 @@ Métropole mais aussi celles des différentes communes de la métropole.</p>
{% if commune_name == request.session.mellon_session.city.0 %}
<div class="ma_commune categories-list">
<h3><a href="{{ categories.base_url }}tryauth">Démarches de ma commune : {{ request.session.mellon_session.city.0 }}</a></h3>
<ul>
<ul class="clearfix">
{% for category in categories.data %}
<li class="category-{{category.slug}}" data-keywords="{{category.keywords|join:' '}}">
<a href="{{ category.url }}tryauth">{{ category.title }}</a>
@ -84,7 +84,7 @@ Métropole mais aussi celles des différentes communes de la métropole.</p>
<h3><a href="{{ categories.base_url }}tryauth">Démarches de {{ commune_name }}</a></h3>
{% endwith %}
{% if categories.data %}
<ul>
<ul class="clearfix">
{% for category in categories.data %}
<li class="category-{{category.slug}}" data-keywords="{{category.keywords|join:' '}}">
<a href="{{ category.url }}tryauth">{{ category.title }}</a>
@ -102,7 +102,6 @@ Métropole mais aussi celles des différentes communes de la métropole.</p>
{% endif %}
{% endfor %}
</div>
<div style="clear: both;"></div>
<script type="text/javascript">
function displayCommune(slug) {

View File

@ -1,4 +1,5 @@
{% load combo %}
<div class="clearfix">
<div class="stats-tile-table grid-1-2">
<table>
<tr><th>Infos utilisateurs</th></tr>
@ -19,7 +20,7 @@
{% endfor %}
</table>
</div>
<br style="clear: both;">
</div>
<style>
.stats-tile-table tr:hover td {
background: #eee;