Projet

Général

Profil

0001-replace-dedicated-clear-float-tags-by-.clearfix-clas.patch

Thomas Jund, 22 juillet 2020 16:39

Télécharger (2,82 ko)

Voir les différences:

Subject: [PATCH 01/10] replace dedicated clear float tags by ".clearfix" class
 (#45365)

 static/includes/_misc.scss          |  4 ----
 static/includes/_utils.scss         | 19 +++++++++++++++++++
 templates/authentic2/accounts.html  |  1 -
 templates/authentic2/login.html     |  4 ++--
 templates/combo/json/apa-users.html |  5 +----
 5 files changed, 22 insertions(+), 11 deletions(-)
static/includes/_misc.scss
82 82
	}
83 83
}
84 84

  
85
br.clear {
86
	clear: both;
87
}
88

  
89 85
div#login-methods label {
90 86
	display: block;
91 87
}
static/includes/_utils.scss
65 65
.sr-only {
66 66
	@include sr-only();
67 67
}
68

  
69
// clearifx
70
@mixin clearfix {
71
	&::after {
72
	  display: block;
73
	  clear: both;
74
	  content: "";
75
	}
76
	@supports (display: flow-root) {
77
		display: flow-root;
78
		&::after {
79
			content: none;
80
		}
81
	}
82
}
83

  
84
.clearfix {
85
	@include clearfix();
86
}
templates/authentic2/accounts.html
83 83
  {% endblock %}
84 84
  {% block account-management-post %}{% endblock %}
85 85
</div>
86
<br class="clear" />
87 86
{% endblock %}
templates/authentic2/login.html
17 17
{% block content %}
18 18

  
19 19
{% block login-pre %}{% endblock %}
20
<div id="login-page" class="methods{{ blocks|length }}">
20
<div id="login-page" class="clearfix methods{{ blocks|length }}">
21 21
{% block login-top %}{% endblock %}
22 22

  
23 23
{% block login-blocks %}
......
33 33
{% endfor %}
34 34
{% endblock %}
35 35

  
36
{% block login-bottom %}<br class="clear"/>{% endblock %}
36
{% block login-bottom %}{% endblock %}
37 37
</div>
38 38
{% block login-post %}{% endblock %}
39 39

  
templates/combo/json/apa-users.html
2 2

  
3 3
<h2>Les bénéficiaires reliés à mon compte</h2>
4 4

  
5
<div class="apa-users">
5
<div class="apa-users clearfix">
6 6

  
7 7
{% for item in json.data|dictsort:"id" %}
8 8
{% with individu=item.information.individu %}
......
19 19
   </div>
20 20
{% endwith %}
21 21
{% endfor %}
22

  
23
<div style="clear: both;"></div>
24

  
25 22
</div>
26
-