Projet

Général

Profil

0001-vincennes-split-header-top-add-a-specific-logo-linke.patch

Thomas Noël, 11 janvier 2019 17:25

Télécharger (28,3 ko)

Voir les différences:

Subject: [PATCH] vincennes: split header top, add a specific logo linked to
 city website (#29683)

 static/vincennes-2018/_custom.scss            |  21 ++++++++++--------
 .../vincennes-2018/img/logo_rouge_et_bleu.png | Bin 20948 -> 4629 bytes
 templates/variants/vincennes-2018/theme.html  |   5 +++++
 3 files changed, 17 insertions(+), 9 deletions(-)
 create mode 100644 templates/variants/vincennes-2018/theme.html
static/vincennes-2018/_custom.scss
1 1
@import '../includes/font-opensans';
2 2

  
3 3
#header #top #logo {
4
	padding-top: 10px;
4
	padding-top: 20px;
5 5
	padding-bottom: 10px;
6
	a {
7
		display: block;
8
		background: url(img/logo_rouge_et_bleu.png) bottom right no-repeat;
9
		background-size: 300px;
10
		padding-top: 60px;
6
	display: block;
7
	a:first-child {
11 8
		color: $primary-color;
12 9
		text-transform: uppercase;
13 10
		font-weight: normal;
14 11
		font-size: 3rem;
15 12
	}
13
	a#link-to-city-site {
14
		padding-top: 40px;
15
		float: right;
16
		background: url(img/logo_rouge_et_bleu.png) bottom right no-repeat;
17
		width: 250px;
18
		text-indent: -5000px;
19
	}
16 20
}
17 21

  
18 22
@media screen and (max-width: $mobile-limit) {
19 23
	#header #top #logo {
20 24
		padding-left: 0;
21
		a {
22
			white-space: pre;
23
			padding-bottom: 50px;
25
		a#link-to-city-site {
26
			padding-top: 20px;
24 27
		}
25 28
	}
26 29
}
templates/variants/vincennes-2018/theme.html
1
{% extends '../../theme.html' %}
2

  
3
{% block header-title %}
4
  <h1 id="logo"><a accesskey="1" href="{% firstof logo_link_url portal_url '/' %}">{% firstof global_title site_title "Compte Citoyen" %}</a><a id="link-to-city-site" href="https://www.vincennes.fr/">vincennes.fr</a></h1>
5
{% endblock %}
0
-