Projet

Général

Profil

0001-scss-make-form-title-the-page-h1-58805.patch

Frédéric Péters, 20 novembre 2021 20:53

Télécharger (1,67 ko)

Voir les différences:

Subject: [PATCH 1/2] scss: make form title the page <h1> (#58805)

 static/includes/wcs/_bulk.scss |  1 +
 templates/wcs/base.html        | 10 +++++++---
 2 files changed, 8 insertions(+), 3 deletions(-)
static/includes/wcs/_bulk.scss
79 79
	width: 100%;
80 80
}
81 81

  
82
.form-content--title,
82 83
div#tracking-code h3,
83 84
div#rub_service h2 {
84 85
	@extend %title;
templates/wcs/base.html
17 17

  
18 18
{% block placeholder-content %}
19 19
  {% block content %}
20
    <div class="form-content {% if gauche %}form-content--with-sidebox{% endif %}">
21
    {% if title %}
22
      <div><h1 class="form-content--title">{{title}}</h1></div>
23
    {% endif %}
20 24
    {% if gauche %}
21
      <div id="gauche">
25
      <div class="form-content--sidebox" id="gauche">
22 26
        {{ gauche|safe }}
23 27
      </div>
24 28
    {% endif %}
25 29

  
26
    <div id="{{bigdiv|default:'rub_service'}}" class="{% if gauche %}has-sidebox{% endif %}">
27
    {% if title %}<h2>{{ title }}</h2>{% endif %}
30
    <div id="{{bigdiv|default:'rub_service'}}" class="form-content--body {% if gauche %}has-sidebox{% endif %}">
28 31
    {% block body %}
29 32
    {{ body|safe }}
30 33
    {% endblock %}
31 34
    </div>
35
    </div>
32 36
  {% endblock %}
33 37
{% endblock %}
34
-