Projet

Général

Profil

0001-new-theme-Saint-Laurent-du-Var-39199.patch

Thomas Jund, 23 janvier 2020 15:13

Télécharger (114 ko)

Voir les différences:

Subject: [PATCH] new theme: Saint-Laurent-du-Var (#39199)

 static/saint-laurent-du-var/_custom.scss      | 279 ++++++++++++++++++
 static/saint-laurent-du-var/_vars.scss        |  55 ++++
 static/saint-laurent-du-var/config.json       |   7 +
 .../saint-laurent-du-var/img/background.jpg   | Bin 0 -> 8315 bytes
 static/saint-laurent-du-var/img/bg-header.jpg | Bin 0 -> 65969 bytes
 .../img/logo-sldv420x80.png                   | Bin 0 -> 11930 bytes
 static/saint-laurent-du-var/style.scss        |  14 +
 7 files changed, 355 insertions(+)
 create mode 100644 static/saint-laurent-du-var/_custom.scss
 create mode 100644 static/saint-laurent-du-var/_vars.scss
 create mode 100644 static/saint-laurent-du-var/config.json
 create mode 100644 static/saint-laurent-du-var/img/background.jpg
 create mode 100644 static/saint-laurent-du-var/img/bg-header.jpg
 create mode 100644 static/saint-laurent-du-var/img/logo-sldv420x80.png
 create mode 100644 static/saint-laurent-du-var/style.scss
static/saint-laurent-du-var/_custom.scss
1
%title {
2
	@extend %title;
3
	text-align: center;
4
}
5

  
6
%big-title {
7
	@extend %title;
8
	background-color: transparent;
9
	color: $font-color;
10
	padding: 0;
11
	font-size: 2em;
12
	text-align: left;
13
}
14

  
15
%title-secondary {
16
	@extend %title;
17
	display: flex;
18
	background-color: transparent;
19
	color: $font-color;
20
	text-align: left;
21
	border-bottom: 4px solid $orange;
22
	padding: 0;
23
	margin-bottom: 1rem;
24

  
25
	&::after {
26
		content: "";
27
		display: block;
28
		height: 4px;
29
		background-color: #2d2d2d;
30
		flex-grow: 1;
31
		align-self: flex-end;
32
		position: relative;
33
		top: 4px;
34
	}
35
}
36

  
37
%title-secondary-white {
38
	@extend %title-secondary;
39
	color: white;
40
	border-color: $primary-color;
41
	&::after {
42
		background-color: $font-color;
43
	}
44
}
45

  
46
%cancel-button {
47
	@extend %cancel-button;
48
	border: 1px solid currentColor;
49
	color: $primary-color;
50
	background-color: hsla(0, 0%, 100%, 0.6);
51

  
52
	&:hover {
53
		color: $dark-desaturated-blue;
54
		background-color: white;
55
	}
56
}
57

  
58

  
59
// typo
60
a:hover {
61
	color: black;
62
	background-color: $sldv-links-background-color;
63
}
64

  
65

  
66
#main-content {
67
	background-color: $sldv-main-color;
68
	@media (min-width: $mobile-limit + 1) {
69
		padding: 20px;
70
	}
71
}
72

  
73
// Page shadow
74
#page {
75
	position: relative;
76
	z-index: 1;
77
	&::after {
78
		content: "";
79
		display: block;
80
		height: 100vh;
81
		width: $width;
82
		max-width: 100%;
83
		position: fixed;
84
		box-shadow: 0 0 10px #7777774d;
85
		z-index: -1;
86

  
87
		@media (min-width: $width + 1) {
88
			left: calc( 50% - #{$width / 2});
89
		}
90
	}
91
}
92

  
93

  
94
div#header {
95
	font-family: $title-font-family;
96
	background-image: url(img/bg-header.jpg);
97
	background-position: center center;
98
	background-size: cover;
99
	padding: 0.7em;
100
	// keep free for top-links
101
	padding-top: 2rem;
102

  
103
	#logo {
104
		width: 420px;
105
		max-width: 100%;
106

  
107
		a {
108
			display: block;
109
			font-weight: 400;
110
			color: #222;
111
			font-size: 0.8em;
112
			text-align: right;
113
			padding: .3em;
114
			padding-top: 20%;
115
			// logo on top, white block on bottom
116
			background-image: url(img/logo-sldv420x80.png), linear-gradient(to top, hsla(0,100%,100%,.6) 80%, transparent);
117
			background-position: top center, center bottom;
118
			background-repeat: no-repeat;
119
			background-size: 100%, 100% 1.5em
120
		}
121
	}
122
}
123

  
124
div.gru-nav {
125
	font-family: $title-font-family;
126
	font-weight: 300;
127

  
128
	@media (max-width: $mobile-limit) {
129
		&-wrapper {
130
			margin-top: -50px;
131
		}
132
	}
133
	ul {
134
		margin: 0;
135
		li a {
136
			font-weight: normal;
137
			text-transform: uppercase;
138
		}
139
	}
140
}
141

  
142
body.has-picture nav::after {
143
	position: static;
144
	width: $width;
145
	max-width: 100%;
146
	margin: auto;
147
	background-clip: content-box;
148
	border: 0.7em solid $sldv-main-color;
149
	@media (min-width: $mobile-limit + 1 ) {
150
		border-width: 20px;
151
	}
152
}
153

  
154
// pwa nav
155
.pwa-navigation {
156
	box-shadow: 0 0 10px $primary-color;
157
	font-family: $title-font-family;
158
	text-transform: uppercase;
159

  
160
	div > ul li a {
161
		background-color: $primary-color;
162
		background-clip: padding-box;
163
		border: 1px solid transparent;
164
		border-width: 0 1px;
165

  
166
		span {
167
			font-size: 12px;
168
		}
169
	}
170
}
171

  
172

  
173
// Cells in sidebar
174
#sidebar, #gauche, .authentic-page .gru-content {
175
	// Cells titles
176
	div#tracking-code h3,
177
	div.links-list h2,
178
	div.textcell h2:first-child,
179
	div.cell h2:first-child,
180
	div.block h2,
181
	div.a2-block h2 {
182
		@extend %title-secondary;
183
	}
184
	// Cells background {
185
	div.cell,
186
	div.block,
187
	.a2-block {
188
		background-color: transparent;
189
		border: none;
190
		margin-bottom: 1.5rem;
191
		margin-top: 1.5rem;
192

  
193
		h2:first-child ~ *:not(link) {
194
			background-color: $cell-background;
195
			border: $cell-border;
196
			border-radius: $cell-border-radius;
197
			margin: 0;
198
			padding: .7rem;
199
			display: block;
200

  
201
			& + * {
202
				border-top: 0;
203
				margin-top: -1px;
204
			}
205
		}
206
	}
207
}
208

  
209

  
210

  
211
// Don't overlaid link text & key icon
212
li.required-authentication a {
213
    padding-right: 1.7em !important
214
}
215

  
216
// Patch bg-color issue
217
div#rub_service,
218
ul#evolutions div.evolution-metadata,
219
ul#evolutions li div.msg {
220
	background: $sldv-main-color;
221
}
222
ul#evolutions li span.item {
223
	box-shadow: 0 0 0px 5px $sldv-main-color;
224
}
225

  
226
div#rub_service h2 {
227
	@extend %big-title;
228
}
229

  
230
div#tracking-code a {
231
	padding: 0 !important;
232
}
233
.wcs-steps {
234
	font-family: $title-font-family;
235
}
236

  
237

  
238
#footer-wrapper {
239
	background-color: transparent;
240
	padding: 0;
241
	margin: 0;
242
}
243
#footer {
244
	background-color: $footer-background;
245
	padding: 0.7em;
246
	// add simple clearfix
247
	overflow: hidden;
248

  
249
	@media (min-width: $mobile-limit + 1) {
250
		padding: 20px;
251
	}
252

  
253
}
254

  
255
// Cells in footer
256
#footer {
257

  
258
	a {
259
		color: #aaa;
260
		&:hover {
261
			color: white;
262
			background-color: black;
263
		}
264
	}
265
	// Cells titles
266
	div.links-list h2,
267
	div.textcell h2:first-child,
268
	div.cell h2:first-child {
269
		@extend %title-secondary-white;
270
	}
271
	// Footer Links-list
272
	div.links-list ul {
273
		& > li > a {
274
			border-bottom: 1px solid black;
275
			padding: .5em 0;
276
			transition: color 0.4s;
277
		}
278
	}
279
}
static/saint-laurent-du-var/_vars.scss
1
// Custom colors
2
$cyan: #00a3d3;
3
$light-grayish-cyan: #ecf0f1;
4
$dark-desaturated-blue: #34495e;
5
$orange: #f39c12;
6
$sldv-main-color: #ecf0f1;
7
$sldv-links-background-color: fade-out($orange, 0.8);
8

  
9
// Core vars
10
$primary-color: $cyan;
11
$secondary-color: $orange;
12
$body-background: #eee url(img/background.jpg);
13
$font-color: #333;
14
$font-family: Arial,Tahoma,Helvetica,FreeSans,sans-serif;
15
$link-color: $dark-desaturated-blue;
16
$width: 1200px;
17
$border-radius: 0;
18

  
19
$nav-background: $cyan;
20
$nav-color: white;
21
$nav-active-color: $dark-desaturated-blue;
22

  
23
$nav-button-background: $primary-color;
24
$nav-mobile-menu-background: $primary-color;
25
$nav-mobile-menu-item-color: white;
26
$nav-border-color: $primary-color;
27

  
28
$nav-mobile-bottom-bar-color: white;
29
$nav-mobile-bottom-bar-background: transparent;
30
$nav-mobile-bottom-bar-item-selected-background: $primary-color;
31

  
32
$title-font-family: Oswald,Tahoma,Helvetica,FreeSans,sans-serif;
33
$title-color: white;
34
$title-background: $dark-desaturated-blue;
35
$title-transform: uppercase;
36

  
37
$cell-border-radius: 3px;
38
$cell-image-padding: 0.7rem;
39
$cell-entry-hover-background: $sldv-links-background-color;
40

  
41
$wcs-steps-spacing: 0.5rem;
42
$wcs-step-current-color: $dark-desaturated-blue;
43
$wcs-step-current-border-bottom: 4px solid $secondary-color;
44

  
45
$widget-background: hsla(0, 0%, 100%, 0.6);
46
$widget-focus-background: white;
47
$widget-border: 1px solid #ccc;
48
$widget-focus-border: 1px solid $font-color;
49

  
50
$button-color: white;
51
$button-hover-background: $dark-desaturated-blue;
52
$button-focus-outline: 4px solid $secondary-color;
53

  
54
$footer-background: #222;
55
$footer-color: $light-grayish-cyan;
static/saint-laurent-du-var/config.json
1
{
2
  "label": "Saint-Laurent-du-Var",
3
  "variables": {
4
    "pwa_display": "standalone",
5
    "theme_color": "#00a3d3"
6
  }
7
}
static/saint-laurent-du-var/style.scss
1
@charset "UTF-8";
2
@import '../includes/font-oswald.scss';
3

  
4
* {
5
	box-sizing: border-box;
6

  
7
	&::before, &::after {
8
		box-sizing: inherit;
9
	}
10
}
11

  
12
@import 'vars';
13
@import '../includes/publik';
14
@import 'custom';
0
-