Projet

Général

Profil

0001-add-theme-for-sens-35402.patch

Nicolas Roche, 14 août 2019 14:51

Télécharger (1,49 Mo)

Voir les différences:

Subject: [PATCH] add theme for sens (#35402)

 static/sens/_custom.scss              | 133 ++++++++++++++++++++++++++
 static/sens/_vars.scss                |  33 +++++++
 static/sens/config.json               |   8 ++
 static/sens/img/background.jpg        | Bin 0 -> 925836 bytes
 static/sens/img/favicon.png           | Bin 0 -> 656 bytes
 static/sens/img/ville-sens-blason.svg |   1 +
 static/sens/img/ville-sens-logo.svg   |   1 +
 static/sens/style.scss                |   5 +
 8 files changed, 181 insertions(+)
 create mode 100644 static/sens/_custom.scss
 create mode 100644 static/sens/_vars.scss
 create mode 100644 static/sens/config.json
 create mode 100644 static/sens/img/background.jpg
 create mode 100644 static/sens/img/favicon.png
 create mode 100644 static/sens/img/ville-sens-blason.svg
 create mode 100644 static/sens/img/ville-sens-logo.svg
 create mode 100644 static/sens/style.scss
static/sens/_custom.scss
1
@import '../includes/font-bitter';
2
@import '../includes/font-worksans';
3

  
4
div#header-wrapper {
5
	background: white url(img/background.jpg) top center no-repeat;
6
	background-size: cover;
7
	background-attachment: fixed;
8
	background-position: center center;
9
	height: 295px;
10
	div#header h1 {
11
		padding-top: 80px;
12
		a {
13
			display: block;
14
			height: 120px;
15
			background: url(img/ville-sens-logo.svg) top left no-repeat;
16
			background-position-x: center;
17
			text-indent: -1000px;
18
			overflow: hidden;
19
		}
20
	}
21
}
22

  
23
div.gru-nav {
24
	ul > li a {
25
		font-family: "Work Sans", sans-serif;
26
		font-size: 19px;
27
		font-weight: 600;
28
		padding: 0 15px 0px 15px;
29
	}
30
	li:before {
31
		display: block;
32
		content: "";
33
		border: $nav-item-border;
34
		border-top-style: none;
35
		border-right-style: none;
36
		border-left-style: none;
37
		transform: scaleX(0);
38
		transition: transform .2s ease-in-out;
39
	}
40
	li.selected:before {
41
		transform: scaleX(1);
42
	}
43
	li:hover:before {
44
		transform: scaleX(1);
45
	}
46
}
47

  
48
div#nav {
49
	padding: 1px 0px 5px 0px;
50
	margin-bottom: 1px;
51
	text-align: center;
52
	& > ul {
53
		text-align: left;
54
		background: url(img/ville-sens-blason.svg) top left no-repeat;
55
		margin: 10px 0px 5px 10px;
56
		padding-left: 50px;
57
	}
58
	@media screen and (max-width: $mobile-limit) {
59
		text-align: left;
60
	}
61
}
62

  
63
#toplinks {
64
	background: $primary-color;
65
	border: none;
66
	box-shadow: none;
67
	border-radius: 0;
68
	a {
69
		display: inline-block;
70
		color: white;
71
		font-weight: bold;
72
		padding: 10px 10px 15px 10px;
73
	}
74
}
75

  
76
div.title {
77
	font-weight: 600;
78
}
79

  
80
span.required {
81
	margin-left: 4px;
82
	color: #790000
83
}
84

  
85
footer {
86
	padding-top: 30px;
87
	div[class*=grid-] {
88
		padding-right: 0px;
89
	}
90
	div.textcell p {
91
		margin: 12px 0px 12px 0px;
92
	}
93
	div.textcell a {
94
		color: white;
95
		text-decoration: underline;
96
	}
97
	div.textcell a:hover {
98
		text-decoration: none;
99
	}
100
	div a.yellow-btn {
101
		font-family: $title-font-family;
102
		font-size: 17px;
103
		font-weight: 500;
104
		color: black;
105
		text-transform: uppercase;
106
		text-decoration: none;
107
		background: $secondary-color;
108
		padding: 15px 20px 15px 20px;
109
		border: transparent 1px solid;
110
		transition: background 0.2s linear;
111
	}
112
	div a.yellow-btn:hover {
113
		background: white;
114
		border: black 1px solid;
115
	}
116
	p.widget-title {
117
		font-size: 19px;
118
		font-weight: bold;
119
	}
120
	li a {
121
		display: block;
122
		padding: 0.3125em 0;
123
	}
124
	ul {
125
		list-style: none;
126
		margin-left: -40px;
127
	}
128
	img {
129
		width: 137px;
130
		margin-top: -66px;
131
		margin-left: -8px;
132
	}
133
}
static/sens/_vars.scss
1
// colors comes from the logo
2
$primary-color: #008cd1;
3
$secondary-color: #f8db1c;
4
$tertiary-color: #006597;
5

  
6
$cell-border: none;
7
$width: 960px;
8

  
9
$nav-background: $tertiary-color;
10
$nav-item-selected-mode: none;
11
$nav-color: white;
12
$nav-active-color: $secondary-color;
13
$nav-full-width-background: true;
14
$nav-item-border: 3px solid $secondary-color;
15

  
16
$title-color: $primary-color;
17
$title-font-size: 24px;
18
$title-font-family: "Work Sans", sans-serif;
19

  
20
$font-color: black;
21
$font-size: 16px;
22
$font-family: Bitter, sans-serif;
23

  
24
$cell-entry-hover-background: $secondary-color;
25
$cell-entry-hover-color: black;
26

  
27
$widget-border: $primary-color 1px solid;
28

  
29
$button-color: white;
30
$button-background: $primary-color;
31

  
32
$footer-color: white;
33
$footer-background: $tertiary-color;
static/sens/config.json
1
{
2
    "label": "Sens",
3
    "variables": {
4
	"favicon": "sens/img/favicon.png",
5
	"logo_link_url": "https://www.ville-sens.fr/",
6
	"theme_color": "#008cd1"
7
    }
8
}
... Ce différentiel a été tronqué car il excède la taille maximale pouvant être affichée.