Projet

Général

Profil

0001-portal-agent-add-templates-for-two-columns-layout-25.patch

Frédéric Péters, 11 août 2018 20:08

Télécharger (2,87 ko)

Voir les différences:

Subject: [PATCH] portal agent: add templates for two columns layout (#25636)

 .../themes/gadjo/static/css/agent-portal.scss | 19 ++++++++++++++++
 .../templates/combo/page_template_2cols.html  | 15 +++++++++++++
 .../combo/page_template_2cols_sidebar.html    | 22 +++++++++++++++++++
 3 files changed, 56 insertions(+)
 create mode 100644 data/themes/gadjo/templates/combo/page_template_2cols.html
 create mode 100644 data/themes/gadjo/templates/combo/page_template_2cols_sidebar.html
data/themes/gadjo/static/css/agent-portal.scss
2 2
$cell-entry-border-color: #ccc;
3 3
$cell-entry-hover-color: $cell-entry-color;
4 4
$cell-entry-hover-background: #eee;
5
$mobile-limit: 760px;
6

  
7
div#page-content.columns {
8
	display: -ms-flexbox;
9
	display: flex;
10
	> div {
11
		box-sizing: border-box;
12
		width: 50%;
13
		padding-right: 1rem;
14
		@media screen and (max-width: $mobile-limit) {
15
			width: auto;
16
			padding: 0;
17
		}
18
	}
19
	@media screen and (max-width: $mobile-limit) {
20
		-ms-flex-direction: column;
21
		flex-direction: column;
22
	}
23
}
5 24

  
6 25
div.welcome {
7 26
	border: 1px solid #e4e4e4;
data/themes/gadjo/templates/combo/page_template_2cols.html
1
{% extends "combo/page_template.html" %}
2
{% load combo i18n %}
3

  
4
{% block combo-content %}
5
<div id="page-content" class="columns">
6
<div id="left">
7
{% trans "Left column" as name %}
8
{% placeholder "content" name=name %}
9
</div>
10
<div id="right">
11
{% trans "Right column" as name %}
12
{% placeholder "right" name=name %}
13
</div>
14
</div>
15
{% endblock %}
data/themes/gadjo/templates/combo/page_template_2cols_sidebar.html
1
{% extends "combo/page_template.html" %}
2
{% load combo i18n %}
3

  
4
{% block combo-content %}
5
<div id="page-content" class="columns">
6
<div id="left">
7
{% trans "Left column" as name %}
8
{% placeholder "content" name=name %}
9
</div>
10
<div id="right">
11
{% trans "Right column" as name %}
12
{% placeholder "right" name=name %}
13
</div>
14
</div>
15
{% endblock %}
16

  
17
{% block sidebar %}
18
<aside id="sidebar">
19
{% trans "Sidebar" as name %}
20
{% placeholder "sidebar" name=name %}
21
</aside>
22
{% endblock %}
0
-