Projet

Général

Profil

0008-guerande-globalize-page-header-block.patch

Thomas Jund, 11 août 2021 17:37

Télécharger (3,02 ko)

Voir les différences:

Subject: [PATCH 08/11] guerande: globalize page-header block

 static/guerande/_custom.scss                           | 10 ++++------
 static/guerande/config.json                            |  6 +++---
 templates/variants/guerande/combo/page_template.html   |  7 +++++++
 ...late_header_3cols.html => page_template_3cols.html} |  6 ------
 4 files changed, 14 insertions(+), 15 deletions(-)
 create mode 100644 templates/variants/guerande/combo/page_template.html
 rename templates/variants/guerande/combo/{page_template_header_3cols.html => page_template_3cols.html} (76%)
static/guerande/_custom.scss
108 108
	display: none;
109 109
}
110 110

  
111
.three-cols-page-header {
111
.page-header {
112 112
	margin-left: 7%;
113 113
	margin-right: 7%;
114
	.portal-title {
115
		text-align: center;
116
		font-size: 1.6rem;
114
	text-align: center;
115

  
116
	h1, h2 {
117 117
		font-weight: 300;
118 118
	}
119
	.portal-presentation {
120
		text-align: center;}
121 119
}
122 120

  
123 121
#content div.wcsformsofcategorycell {
static/guerande/config.json
7 7
  "settings": {
8 8
    "combo": {
9 9
      "COMBO_PUBLIC_TEMPLATES.update": {
10
        "header_three_columns": {
11
          "name": "En-tête et trois colonnes",
12
          "template": "combo/page_template_header_3cols.html"
10
        "three_columns": {
11
          "name": "Trois colonnes",
12
          "template": "combo/page_template_3cols.html"
13 13
        }
14 14
      },
15 15
      "COMBO_ASSET_SLOTS.update": {
templates/variants/guerande/combo/page_template.html
1
{% extends "combo/page_template.html" %}
2

  
3
{% block content-pre %}
4
  <div class="page-header">
5
    {% placeholder "header" name="Entête" %}
6
  </div>
7
{% endblock %}
templates/variants/guerande/combo/page_template_header_3cols.html → templates/variants/guerande/combo/page_template_3cols.html
1 1
{% extends "combo/page_template.html" %}
2 2

  
3
{% block content-pre %}
4
  <div class="three-cols-page-header">
5
    {% placeholder "header" name="Entête" %}
6
  </div>
7
{% endblock %}
8

  
9 3
{% block combo-content %}
10 4
  <div id="left-content" class="three-cols-column">
11 5
    {% placeholder "left" name="Colonne gauche" %}
12
-