Project

General

Profile

0002-portal-agent-use-flex-grid-for-2-cols-templates-6240.patch

Thomas Jund, 03 March 2022 06:04 PM

Download (2.16 KB)

View differences:

Subject: [PATCH 2/2] portal-agent: use flex grid for 2 cols templates (#62401)

 static/portal-agent/css/agent-portal.scss        | 16 ----------------
 .../portal-agent/combo/page_template_2cols.html  |  2 +-
 .../combo/page_template_2cols_sidebar.html       |  2 +-
 3 files changed, 2 insertions(+), 18 deletions(-)
static/portal-agent/css/agent-portal.scss
13 13
	overflow-y: visible;
14 14
}
15 15

  
16
div#page-content.columns {
17
	display: flex;
18
	> div {
19
		box-sizing: border-box;
20
		width: 50%;
21
		padding-right: 1rem;
22
		@media screen and (max-width: $mobile-limit) {
23
			width: auto;
24
			padding: 0;
25
		}
26
	}
27
	@media screen and (max-width: $mobile-limit) {
28
		flex-direction: column;
29
	}
30
}
31

  
32 16
div.welcome {
33 17
	border: 1px solid #e4e4e4;
34 18
	background: #fcfcfc;
templates/portal-agent/combo/page_template_2cols.html
2 2
{% load combo i18n %}
3 3

  
4 4
{% block page-content %}
5
<div id="page-content" class="columns">
5
<div id="page-content" class="fx-grid--d2">
6 6
<div id="left">
7 7
{% trans "Left column" as name %}
8 8
{% placeholder "content" name=name %}
templates/portal-agent/combo/page_template_2cols_sidebar.html
2 2
{% load combo i18n %}
3 3

  
4 4
{% block page-content %}
5
<div id="page-content" class="columns">
5
<div id="page-content" class="fx-grid--d2">
6 6
<div id="left">
7 7
{% trans "Left column" as name %}
8 8
{% placeholder "content" name=name %}
9
-