Projet

Général

Profil

0002-misc-target-a2-blocks-content-with-.cell-body-class-.patch

Thomas Jund (congés, retour le 29/04), 18 octobre 2022 17:36

Télécharger (2,89 ko)

Voir les différences:

Subject: [PATCH 2/2] misc: target a2 blocks content with .cell--body class
 (#70451)

 static/includes/_cells.scss         | 10 +++-------
 static/includes/_misc.scss          |  1 -
 templates/authentic2/accounts.html  |  6 ++++--
 templates/authentic2/base-page.html |  6 ++++--
 4 files changed, 11 insertions(+), 12 deletions(-)
static/includes/_cells.scss
57 57
	margin: 4em auto;
58 58
	max-width: 45em;
59 59
	& form, & p {
60
		margin: 1em 0.5em;
61
	}
62
	p {
63
		line-height: 1.4;
60
		margin: 1em 0;
64 61
	}
65 62
	@media screen and ($max-mobile-viewport) {
66 63
		margin: 0 auto;
......
92 89
	@extend %cell;
93 90
}
94 91

  
95
.column div.a2-block,
92
.a2-block,
96 93
.gru-content div.cell,
97 94
.block {
98 95
	margin-top: 0;
......
658 655
	float: left;
659 656
}
660 657

  
661
#registration-blocks > .a2-block > div,
662
#login-page > .block > div {
658
#registration-blocks > .a2-block > div {
663 659
	padding: 1em;
664 660
}
665 661

  
static/includes/_misc.scss
772 772
}
773 773

  
774 774
#fc-linking {
775
	padding: 0 1rem;
776 775
	&.no-account {
777 776
		text-align: center;
778 777
	}
templates/authentic2/accounts.html
13 13
        <h2>Données du compte</h2>
14 14
      {% endblock %}
15 15
      {% block profile-data %}
16
        <div id="profile">
16
        <div id="profile" class="cell--body">
17 17
          {% if attributes %}
18 18
            {% for attribute in attributes %}
19 19
              <div class="field">
......
81 81
        {% if id != "password" %}
82 82
          <div class="block" id="account-management-{{ id }}">
83 83
            <h2>{{ block.name }}</h2>
84
            {{ block.content|safe }}
84
            <div class="cell--body">
85
              {{ block.content|safe }}
86
            </div>
85 87
          </div>
86 88
        {% endif %}
87 89
      {% endfor %}
templates/authentic2/base-page.html
6 6
    {% block form-title %}
7 7
      {% if view.title %}<h2>{{ view.title }}</h2>{% endif %}
8 8
    {% endblock %}
9
    {% block content %}
10
    {% endblock %}
9
    <div class="cell--body">
10
      {% block content %}
11
      {% endblock %}
12
    </div>
11 13
  </div>
12 14
  {% block a2-block-post %}{% endblock %}
13 15
{% endblock %}
14
-