Projet

Général

Profil

0001-nantes-new-theme-66170.patch

Thomas Jund (congés, retour le 29/04), 07 juillet 2022 16:27

Télécharger (22,3 ko)

Voir les différences:

Subject: [PATCH] nantes: new theme (#66170)

 static/nantes/_custom.scss                    | 665 ++++++++++++++++--
 static/nantes/_vars.scss                      | 167 ++++-
 static/nantes/config.json                     |  31 +-
 .../category-header/forms_of_category.html    |  18 +
 .../category-link/forms_of_category.html      |  16 +
 .../cells/forms-only/forms_of_category.html   |   3 +
 .../variants/nantes/combo/page_template.html  |  20 +
 .../nantes/combo/page_template_homepage.html  |   1 +
 8 files changed, 808 insertions(+), 113 deletions(-)
 create mode 100644 templates/variants/nantes/combo/cells/category-header/forms_of_category.html
 create mode 100644 templates/variants/nantes/combo/cells/category-link/forms_of_category.html
 create mode 100644 templates/variants/nantes/combo/cells/forms-only/forms_of_category.html
 create mode 100644 templates/variants/nantes/combo/page_template.html
 create mode 100644 templates/variants/nantes/combo/page_template_homepage.html
static/nantes/_custom.scss
1
h1#logo.has-logo a {
2
	display: block;
3
	height: 40px;
4
	min-width: 200px;
1
//
2
//	Typo
3
//
4

  
5
@mixin orange-focus {
6
	&:focus-visible {
7
		outline: 1px solid $orange;
8
		outline-offset: 2px;
9
	}
10
}
11

  
12
html {
13
	@media ($min-desktop-viewport) {
14
		font-size: 112.5%;
15
	}
16
}
17
h1, .h1 {
18
	font-size: $fz-1;
19
	color : $green;
20
	font-weight: normal;
21
	line-height: 1.2;
22
}
23
h2, .h2 {
24
	font-size: $fz-2;
25
	line-height: 1.2;
26
	font-weight: bold;
27
}
28
h3, .h3 {
29
	font-size: $fz-3;
30
	line-height: 1.3;
31
	font-weight: normal;
32
}
33
h4, .h4 {
34
	font-size: $fz-4;
35
	line-height: 1.3;
36
	font-weight: normal;
37
}
38
a, .a {
39
	text-decoration: underline dotted;
40
	text-underline-offset: 3px;
41
	&:hover, &:focus {
42
		color: $blue-dark;
43
		text-decoration: underline;
44
	}
45
	@include orange-focus;
46
}
47
.description, .theme-description {
48
	font-size: $font-small;
49
	color: $font-color;
50
	padding-top: 0;
51
	*:first-child {
52
		margin-top: 0;
53
	}
54
	a:not(:hover) {
55
		color: inherit;
56
		text-decoration: none;
57
	}
58
}
59

  
60
//
61
// buttons
62
//
63

  
64
%button {
65
	text-decoration: none;
66
	border-radius: $button-border-radius !important;
67
	&::before {
68
		content: none;
69
		display: inline-block;
70
		width: 1em;
71
		height: 1em;
72
		color: inherit;
73
		font-family: "FontAwesome";
74
		margin-right: .33em;
75
	}
76
	@include orange-focus;
77
}
78

  
79
a.pk-inverted-button,
80
div.link-cell.pk-inverted-button ul > li > a {
81
	@extend %inverted-button;
82
	display: inline-block;
83
}
84

  
85
%button.icon-back,
86
.link-cell.icon-back ul > li > a {
87
	&::before {
88
		content: "\f060" !important;
89
	}
90
}
91

  
92
// hexagone
93
@mixin hexagon($width, $radius) {
94
	$sqtr3: 1.7320508075688772;
95
	border-radius: $radius;
96
	height: calc(#{$width / $sqtr3} + #{$radius / 2});
97
	&:before,
98
	&:after {
99
		content: '';
100
		display: block;
101
		position: absolute;
102
		top: 0;
103
		bottom: 0;
104
		left: 0;
105
		right: 0;
106
		width: 100%;
107
		height: 100%;
108
		background-color: inherit;
109
		border-radius: inherit;
110
		transform: rotate(60deg);
111
		z-index: -1;
112
	}
113
	&:after {
114
		transform: rotate(-60deg);
115
	}
116
}
117

  
118

  
119
//
120
//	HEADER
121
//
122

  
123
#top {
124
	display: flex;
125
	align-items: center;
126
	min-height: $header-height;
127
}
128

  
129
h1#logo.has-logo {
130
	flex-grow: 1;
131
	line-height: 0;
132
	margin-right: 1rem;
133
	@media ($min-desktop-viewport) {
134
		padding-left: 0;
135
	}
136
	a {
137
		&:before {
138
			margin-right: 0;
139
			@media ($min-desktop-viewport) {
140
				width: 360px;
141
				height: 55px;
142
			}
143
		}
144
	}
5 145
}
6 146

  
7 147
#toplinks {
8
	box-sizing: content-box;
9
	right: 0;
10
	top: 4px;
11
	font-size: 90%;
12
	width: 280px;
13
	max-width: 280px;
14
	box-sizing: border-box;
148
	position: static;
15 149
	text-align: center;
16
	overflow: hidden;
17
	text-overflow: ellipsis;
18
	font-size: 90%;
19
	background: #45ccb1;
20
	border-radius: 20px;
21
	padding: 10px;
22
	box-shadow: none;
23
	border: none;
150
	font-size: $font-small;
151
	word-spacing: 1rem;
24 152
	a {
25
		text-decoration: underline;
26
		color: black;
153
		vertical-align: middle;
154
	}
155
	.login-link,
156
	.account-link {
157
		display: inline-block;
158
		white-space: nowrap;
159
		@media ($max-mobile-viewport) {
160
			max-width: 9em;
161
			overflow: hidden;
162
			text-overflow: ellipsis;
163
		}
164
		@extend %button;
165
		margin-right: 0;
166
		&::before {
167
			content: "\f2be";
168
		}
27 169
	}
28 170
}
29 171

  
30
.site-header {
31
	z-index: 100;
32
	#header {
33
		transition: all ease 0.2s;
34
		margin-top: 3rem;
35
		h1 {
36
			margin-top: 0.4rem;
37
			a {
38
				padding-left: 1rem;
172

  
173
//
174
//	NAV
175
//
176
.gru-nav-wrapper {
177
	@media ($max-mobile-viewport) {
178
		margin-top: -$header-height;
179
	}
180
}
181
div.gru-nav .gru-nav-button {
182
	height: 80px;
183
	border: 0 solid transparent;
184
	border-width: #{($header-height - $nav-menu-side) / 2} 0;
185
	.icon-bar {
186
		height: 3px;
187
	}
188
	&:not(.toggled) {
189
		.icon-bar-1, .icon-bar-3 {
190
			width: 50%;
191
			left: 25%;
192
		}
193
	}
194
	+ ul {
195
		margin: 0;
196
		a {
197
			font-weight: 600;
198
			&:hover {
199
				text-decoration: underline;
200
				text-decoration-thickness: 2px;
201
				text-underline-offset: 5px;
39 202
			}
40 203
		}
41 204
	}
42 205
}
43 206

  
44
div#nav {
45
	padding-right: 1rem;
46
	z-index: 10;
47
	margin-top: 0;
48
	& > ul {
49
		transition: all ease 0.2s;
50
		margin-top: 2rem;
51
		margin-bottom: 2rem;
52
		li > a {
53
			font-weight: normal;
207
// Page image
208
body.has-picture .site-nav::after {
209
	position: static;;
210
	margin-bottom: -3rem;
211
	@media ($max-mobile-viewport) {
212
		height: 125px;
213
	}
214
}
215

  
216
//
217
//	Main
218
//
219

  
220
main {
221
	padding-left: 1em;
222
	padding-right: 1em;
223
}
224
#columns-wrapper {
225
	padding: 0;
226
}
227

  
228
// Page header
229
.theme-page-header {
230
	display: flow-root;
231
	background-color: white;
232
	border-radius: $radius-l;
233
	padding: 1rem;
234
	@media (max-width: $width) {
235
		margin: 0 0.33rem;
236
	}
237
	@media ($min-desktop-viewport) {
238
		padding: 3rem;
239
	}
240
	h1:first-child {
241
		margin-top: 0;
242
	}
243
	.cell + .default-header {
244
		display: none;
245
	}
246
	.page-header--description {
247
		font-size: $fz-5;
248
	}
249
}
250

  
251
// Home page page header
252
body {
253
	overflow-x: hidden;
254
}
255
.page-template-homepage {
256
	&.has-picture .site-nav::after {
257
		content: none;
258
	}
259
	.theme-page-header {
260
		background-color: transparent;
261
		padding: 0;
262
		.banner.text-cell {
263
			border-radius: 0;
264
			background-image: $gradient;
265
			padding-top: 50px;
266
			padding-bottom: 50px;
267
			// fill viewport
268
			width: 100vw;
269
			margin-left: calc(-50vw + 50%);
270
			padding-left: calc(50vw - 50%);
271
			padding-right: calc(50vw - 50%);
272
			color: white !important;
273
			@media ($min-desktop-viewport) {
274
				padding-top: 100px;
275
				padding-bottom: 100px;
276
				position: relative;
277
				> div {
278
					width: 50%;
279
				}
280
				// Page image
281
				&::after {
282
					content: "";
283
					background: var(--page-picture) no-repeat;
284
					background-size: contain;
285
					background-position: bottom left;
286
					display: block;
287
					position: absolute;
288
					top: 0;
289
					bottom: 0;
290
					left: 50%;
291
					right: 0;
292
				}
293
			}
294
			* {
295
				color: inherit;
296
				margin: 0;
297
				font-weight: normal;
298
			}
299

  
300
			+ .tracking-code-input-cell {
301
				margin-top: -3rem;
302
				@media ($min-desktop-viewport) {
303
					margin-top: -4rem;
304
					max-width: 60%;
305
					position: relative;
306
				}
307
			}
308
		}
309
	}
310
}
311

  
312
//
313
//	Cells
314
//
315

  
316
.column div.a2-block,
317
.gru-content div.cell,
318
.block {
319
	margin-bottom: 1.5rem;
320
	& h2 + div,
321
	.cell--body {
322
		padding-top: 0;
323
	}
324
	&.has-asset-picture picture {
325
		padding-left: $title-padding;
326
		display: block;
327
		img {
328
			width: 48px;
329
			height: 48px;
330
			padding: 8px;
331
		}
332
	}
333
	&.foldable {
334
		h2:first-child {
335
			&:hover {
336
				color: $blue-dark;
337
			}
54 338
		}
55 339
	}
56 340
}
57 341

  
58
div#main-content-wrapper {
59
	padding-top: 2rem;
342
%cell-links-list {
343
	& > li {
344
		> a {
345
			@extend .a;
346
		}
347
	}
348
	li div.description {
349
		padding: 0;
350
		@extend .theme-description;
351
		padding-bottom: 0.5rem;
352

  
353
	}
60 354
}
61 355

  
62
body.has-picture {
63
	div#main-content-wrapper {
64
		padding-top: 1rem;
356
.bordered-cell {
357
	.gru-content &.cell {
358
		border: $cell-entry-border;
359
		h2:first-child {
360
			@extend .h4;
361
			font-weight: bold;
362
		}
363
		.links-list ul li a {
364
			.form-number, .form-status {
365
				color: $font-color;
366
				text-decoration: none;
367
			}
368
			&:hover {
369
				background-color: $gray-light;
370
			}
371

  
372
		}
65 373
	}
66 374
}
67 375

  
376
// For tracking code cells
377
.violet-cell {
378
		background-color: $violet-xlight;
379
		background-image:
380
			repeating-linear-gradient(
381
				-45deg,
382
				$violet-light,
383
				$violet-light 4px,
384
				$violet 4px,
385
				$violet 8px
386
			)
387
		;
388
		background-repeat: no-repeat;
389
		background-size: 5px 100%;
390
		h2:first-child, h3 {
391
			color: $violet
392
		}
393
}
68 394

  
69
#logo a {
70
	color: $primary-color;
71
	font-weight: normal;
395
// Custom text-cell
396
.green-cell {
397
	.gru-content &.text-cell {
398
		background-color: $green-light;
399
		border-radius: $radius-l;
400
		padding: 1rem;
401
		padding-bottom: 2rem;
402
	}
403
}
404
.gray-cell {
405
	.gru-content &.text-cell {
406
		@extend .green-cell;
407
		background-color: $gray-xlight;
408
	}
409
}
410
.true-title {
411
	.gru-content &.text-cell {
412
		h2:first-child {
413
			font-size: $fz-2;
414
			font-weight: bold;
415
		}
416
	}
417
}
418

  
419

  
420
.tracking-code-input-cell {
421
	.gru-content &.cell {
422
		@extend .violet-cell;
423
	}
72 424
}
73 425

  
74
@media screen and ($max-mobile-viewport) {
75
	.site-header #header h1 a {
76
		margin-top: 1em;
426
// Custom forms-of-category cells
427
.category-link {
428
	.gru-content &.wcs-forms-of-category-cell {
429
		border-top: $cell-entry-border;
430
		.cell--title {
431
			@extend %title;
432
			@extend .a;
433
			font-size: 1rem;
434

  
435
		}
436
		picture + .cell--title {
437
			padding-top: 0;
438
		}
77 439
	}
78
	div#nav, header.site-header {
79
		padding-right: 0;
80
		border-bottom: 0;
81
		#header h1 a {
82
			padding-left: 0;
440
}
441
.forms-only-2-cols {
442
	.gru-content &.wcs-forms-of-category-cell {
443
		.links-list ul {
444
			@extend .fx-grid;
445
			> li {
446
				border-top: $cell-entry-border;
447
				border-bottom: none;
448
				@media ($min-grid-tablet-viewport) {
449
					flex-basis: calc( 50% - #{$fx-grid-gutter});
450
				}
451
			}
83 452
		}
84 453
	}
454
}
455
.category-header {
456
	.gru-content &.wcs-forms-of-category-cell {
457
		.cell--title {
458
			display: flex;
459
			picture {
460
				flex: 0 0 1em;
461
				height: 1em;
85 462

  
86
	div.site-nav > ul {
87
		margin-top: 2rem;
88
		margin-bottom: 1rem;
463
				padding-left: 0;
464
				margin-right: .33em;
465
				align-self: center;
466
				img {
467
					width: 100%;
468
					height: 100%;
469
					padding: 0;
470
					filter: hue-rotate(340deg) brightness(120%);
471
				}
472
			}
473
		}
89 474
	}
475
}
476

  
477
// menu-cell
478
.menu-cell {
479
	.gru-content & {
480
		.links-list ul {
481
			> li {
482
				border: none;
483
				> a {
484
					&:not(:hover) {
485
						color: $font-color;
486
						text-decoration: none;
487
					}
488
				}
489

  
490
				&.selected > a {
491
					color: white;
492
					background-color: $blue;
493
					display: flex;
494
					border-radius: $radius-s;
495
					span {
496
						text-decoration: underline 2px;
497
					}
498
					&::after {
499
						content: "\f061"; // arrow right
500
						font-family: fontawesome;
501
						flex-grow: 1;
502
						text-align: right;
503
					}
504
				}
505
			}
506
		}
507
	}
508
}
509

  
510

  
511
//
512
//	WCS
513
//
514

  
515
.wcs-page {
516
	.theme-page-header {
517
		display: none;
90 518

  
91
	#toplinks {
92
		right: 0;
93
		left: 0;
94
		top: -3rem;
95
		width: 100%;
96
		max-width: none;
97
		border-radius: 0;
519
	}
520
	.form-content--sidebox .tracking-code-part,
521
	.form-content--body #tracking-code {
522
		@extend .violet-cell;
523
	}
524
	.form-content--body #tracking-code {
525
		padding: 1em;
98 526
	}
99 527
}
100 528

  
101
div.textcell {
102
	h1 {
103
		padding-left: 0.7rem;
529
.form-content--title {
530
	@extend .h1;
531
	padding-left: 0;
532
}
533

  
534
div#rub_service {
535
	h3 {
536
		font-weight: bold;
537
	}
538
	.section.foldable h2:first-child {
539
		padding-left: 0;
540
		@extend .h2;
541
		&:hover {
542
			color: $blue;
543
			text-decoration: underline;
544
		}
545
	}
546
}
547

  
548
label {
549
	font-weight: 600;
550
}
551

  
552
.widget .error {
553
	font-weight: normal;
554
	color: $red-dark;
555
}
556

  
557

  
558
// steps
559
.wcs-step {
560
	margin-bottom: $wcs-steps-spacing * 2;
561
	&.current {
104 562
		font-weight: normal;
105 563
	}
564
	&.step-before {
565
		color: $blue;
566
	}
567
	&.step-before &--marker {
568
		color: white;
569
		background-color: $blue;
570
	}
106 571
}
572
@media ($mq-max--wcs-steps-small-layout) {
573
	.wcs-step.current .wcs-step--marker{
574
		background-color: white;
575
		color: $blue-dark;
576
		width: auto;
577
		&-nb {
578
			display: inline-block;
579
			background-color: $blue-dark;
580
			color: white;
581
			width: 2em;
582
			@include hexagon(2em, 5px);
583
		}
584
	}
585
}
586
@media ($mq-min--wcs-steps-horizontal-layout) {
587
	.wcs-steps {
588
		font-size: 1em;
589
	}
590
	.wcs-step {
591
		&--marker {
592
			@include hexagon($wcs-step-marker-size, 5px);
593
			.step-after & {
594
				filter: drop-shadow(0 0 2px #333);
595
			}
596
			&-nb {
597
				line-height: 0;
598
			}
599
		}
600
	}
601
	.wcs-step--label {
602
		font-size: 1em;
603
	}
604
}
605
@include desktop-vertical-steps() {
606
	.wcs-steps {
607
		margin-top: 2rem;
608
	}
609
}
610

  
611

  
612
//
613
//	FOOTER
614
//
107 615

  
108 616
#footer-wrapper {
109
	background-image: linear-gradient(45deg, #087FA3 20%, #20A791 100%);
110
}
617
	background-image: $gradient-reverse;
618
	padding-top: 2.5rem;
619
	padding-botom: 2.5rem;
111 620

  
112
.form-content--title {
113
	font-size: 180%;
621
	%cell-links-list {
622
		> li {
623
			border: none;
624
		}
625
		> li > a {
626
			padding-top: 0;
627
			padding-bottom: 0;
628
		}
629
	}
630
}
631
.back-top--link:not(:hover) {
632
	text-decoration: none;
114 633
}
static/nantes/_vars.scss
1
$primary-color:#087FA3;
2
$nav-active-color: $primary-color;
3
$nav-item-selected-mode: bottom-border;
4
$sidebar-width: 33%;
1
// colors
2
$blue: #087FA3;
3
$blue-dark: #055A81;
4
$blue-light: #E4F4FB;
5

  
6
$green: #20A791;
7
$green-light: #E0F6EE;
8
$green-dark: #167E6A;
9
$green-xdark: #0F5B4C;
10

  
11
$orange: #E17120;
12

  
13
$violet: #6D29B1;
14
$violet-light: #ba9cd9;
15
$violet-xlight: #efeaf4;
16

  
17
$gray: #D4D1CE;
18
$gray-light: #EFEDEB;
19
$gray-xlight: #F6F5F4;
20
$gray-dark: #949494;
21
$gray-xdark: #707070;
22

  
23
$red-dark: #A61010;
24

  
25
$gradient: linear-gradient(
26
	45deg,
27
	$green,
28
	$blue-dark
29
);
30
$gradient-reverse: linear-gradient(
31
	225deg,
32
	$green,
33
	$blue-dark
34
);
35

  
36
// typo
37
$title-ratio: 1.2;
38
$fz-5: $title-ratio*1em;
39
$fz-4: $fz-5*$title-ratio;
40
$fz-3: $fz-4*$title-ratio;
41
$fz-2: $fz-3*$title-ratio;
42
$fz-1: $fz-2*$title-ratio;
43

  
44
$font-small: 0.875em;
45

  
46
// border radius
47
$radius-s: 0.2rem;
48
$radius-l: 1rem;
49

  
50
// Layout
51
$header-height: 80px;
52

  
53
// Core vars
54
$primary-color: $blue;
55

  
56
$font-color: black;
5 57
$font-family: "Source sans pro", Ubuntu, Cantarell, Noto Sans, sans-serif;
6
$font-color: #000000;
7
$font-size: 100%;
8 58
$link-color: $primary-color;
9
$footer-color: white;
10
$footer-link-color: #FFFFFF;
59

  
11 60
$width: 1280px;
12
$border-radius: 1rem;
13
$grid-gutter: 2rem;
14 61
$columns-gutter: 2rem;
62
$grid-gutter: 2rem;
63
$sidebar-width: 33%;
15 64
$sidebar-min-width: 300px;
16
$footer-background: #087fa3;
65

  
66
$header-logo-size: 137px 30px;
67
$toplinks-style: none;
68

  
69
$nav-border-color: none;
70
$nav-background: black;
71
$nav-full-width-background: true;
72
$nav-color: white;
73
$nav-border-radius: 0;
74
$nav-item-selected-background: $gray-xdark;
75
$nav-item-hover-background: $nav-background;
76
$nav-submenu-color: $nav-color;
77

  
78
$nav-button-background: transparent;
79
$nav-button-color: black;
80
$nav-menu-side: 35px;
81
$nav-mobile-menu-background: $nav-background;
82
$nav-mobile-menu-item-hover-background: $nav-item-selected-background;
83
$nav-mobile-menu-item-color: $nav-color;
84

  
85
$nav-after-image-height: 200px;
86

  
17 87
$title-border-radius: 0;
18
$title-font-size: $font-size * 1.2;
19
$title-padding: 1em 0 .75em 1rem;
20
$title-border-top: 2px solid;
88
$title-font-size: $fz-3;
89
$title-padding: 1rem;
21 90
$title-background: transparent;
22
$title-weight: bold;
91
$title-weight: normal;
92

  
93
$cell-border-radius: $radius-s;
94
$cell-image-padding: 0;
95
$cell-border: none;
96
$cell-background: transparent;
97

  
98
$cell-entry-color: $link-color;
99
$cell-entry-hover-background: transparent;
100
$cell-entry-border-color: $gray;
101

  
23 102
$form-sidebar-width: 25%;
103
$form-sidebar-gutter: $columns-gutter;
104

  
105
$button-color: white;
24 106
$button-hover-background: #055A81;
25 107
$button-background: $link-color;
26
$widget-background: #F6F5F4;
27
$button-color: #FFFFFF;
28
$widget-focus-background: #FFFFFF;
29
$widget-border-radius: $border-radius;
30
$form-sidebar-gutter: $columns-gutter;
31
$widget-focus-border: 1px solid #087FA3;
32
$widget-focus-box-shadow: inset 0 0 0 1px #087FA3;
33
$nav-active-color: #087FA3;
34
$nav-submenu-color: $font-color;
35
$nav-after-image-height: 250px;
36
$nav-border-radius: 0;
37 108
$button-border: none;
109
$button-border-radius: $radius-l;
110
$cancel-button-style: '%inverted-button';
111
$buttons-order: cancel (grow), previous, submit;
112

  
113
$form-accent-color: $primary-color;
114
$widget-unique-checkbox-position: left;
115
$widget-background: white;
116
$widget-border-radius: $radius-l;
117
$widget-border: 1px solid $gray;
118
$widget-focus-border: 1px solid $blue;
119
$widget-focus-box-shadow: inset 0 0 0 1px $blue;
120
$widget-focus-outline: 2px solid $blue-light;
121
$widget-focus-outline-offset: 1px;
122

  
38 123
$wcs-step-current-color: $link-color;
39 124
$wcs-step-marker-type: disc;
40
$widget-border:1px solid #d2d2d2;
41
$widget-custom-radio-checkbox: 1;
42
$widget-unique-checkbox-position: left;
125

  
126
$wcs-steps-spacing: 1rem;
127
$wcs-step-color: $gray-dark;
43 128
$wcs-step-border-bottom: none;
44
$wcs-step-current-border-bottom: none;
45
$wcs-step-marker-background: transparent;
46
$wcs-step-current-marker-background: transparent;
47
$cell-border-radius: 0;
48
$cell-image-padding: 0;
49
$cell-entry-color: #055A81;
50
$cell-border: none;
51
$cell-background: transparent;
52
$table-headers-color: #000000;
129
$wcs-step-marker-size: 1.8em;
130
$wcs-step-marker-background: white;
131
$wcs-step-current-marker-color: white;
132
$wcs-step-current-marker-background: $blue-dark;
133
$wcs-step-marker-type: square tied;
134
$wcs-step-marker-tie-width: 2px;
135

  
136
$table-headers-color: black;
53 137
$table-headers-background: #E4F3F9;
54 138
$table-caption-color: $font-color;
55 139
$table-headers-font-family: $font-family;
......
57 141
$table-headers-font-weight: bold;
58 142
$table-headers-text-transform: none;
59 143
$table-headers-font-style: normal;
144

  
145
$footer-color: white;
146
$footer-link-color: white;
147
$footer-background: #087fa3;
148

  
60 149
$back-top-display: block;
150
$back-top-icon-character: "\f062";
151
$back-top-icon-size: 1em;
static/nantes/config.json
1 1
{
2 2
  "label": "Nantes",
3 3
  "variables": {
4
    "theme_color": "#087FA3"
4
    "theme_color": "#087FA3",
5
    "email_header_asset": "emails:logo"
5 6
  },
6 7
  "settings": {
7 8
    "combo": {
8 9
      "COMBO_ASSET_SLOTS.update": {
9
        "header:logo": { "label": "Têtière : logo" }
10
        "header:logo": {"label": "Têtière : logo"},
11
        "emails:logo": {"label": "Emails : logo"}
12
      },
13
      "COMBO_PUBLIC_TEMPLATES.update": {
14
        "category_detail": {
15
          "name": "Catégorie",
16
          "template": "combo/page_category.html"
17
        }
18
      },
19
      "COMBO_CELL_TEMPLATES.update" : {
20
        "wcs_wcsformsofcategorycell" : {
21
          "category-link" : {
22
            "extra-css-classes" : "category-link",
23
            "label" : "Lien catégorie",
24
            "template" : "combo/cells/category-link/forms_of_category.html"
25
          },
26
          "category-header" : {
27
            "extra-css-classes" : "category-header",
28
            "label" : "Entête catégorie",
29
            "template" : "combo/cells/category-header/forms_of_category.html"
30
          },
31
          "forms-only" : {
32
            "extra-css-classes" : "forms-only-2-cols",
33
            "label" : "Démarches uniquement, 2 colonnes",
34
            "template" : "combo/cells/forms-only/forms_of_category.html"
35
          }
36
        }
10 37
      }
11 38
    }
12 39
  }
templates/variants/nantes/combo/cells/category-header/forms_of_category.html
1
{% load assets %}
2
{% get_asset cell=cell type='picture' as asset %}
3

  
4
{% block cell-content %}
5
{% if forms or combo_display_even_empty_categories %}
6
{% block cell-header %}
7
	<h1 class="cell--title">
8
		{% include "combo/asset_picture_fragment.html" %}
9
		{{ title }}
10
	</h1>
11
	{% if description %}
12
	<div class="description page-header--description">
13
		{{ description|safe }}
14
	</div>
15
	{% endif %}
16
{% endblock %}
17
{% endif %}
18
{% endblock %}
templates/variants/nantes/combo/cells/category-link/forms_of_category.html
1
{% load assets i18n %}
2
{% block cell-content %}
3
{% if forms or combo_display_even_empty_categories %}
4
{% block cell-header %}
5
	{% include "combo/asset_picture_fragment.html" %}
6
	<h3 class="cell--title">
7
	<a href="{{ portal_url }}{{ category_path }}{{ slug }}">{{ title }}</a>
8
	</h3>
9
	{% if description %}
10
	<div class="cell--body description">
11
	{{ description|safe }}
12
	</div>
13
{% endif %}
14
{% endblock %}
15
{% endif %}
16
{% endblock %}
templates/variants/nantes/combo/cells/forms-only/forms_of_category.html
1
{% extends "combo/wcs/forms_of_category.html" %}
2

  
3
{% block cell-header %}{% endblock %}
templates/variants/nantes/combo/page_template.html
1
{% extends "combo/page_template.html" %}
2
{% load combo %}
3

  
4
{% block content-pre %}
5
	<header class="theme-page-header gru-content">
6
	    {% placeholder "page_header" name="Entête de la page" optional=False acquired=False %}
7
		<div class="default-header">
8
			{% block default_page_header_content %}
9
				<h1>
10
					{{ page.title }}
11
				</h1>
12
				{% if page.description %}
13
				<div class="description page-header--description">
14
					<p>{{ page.description }}</p>
15
				</div>
16
				{% endif %}
17
			{% endblock %}
18
		</div>
19
	</header>
20
{% endblock %}
templates/variants/nantes/combo/page_template_homepage.html
1
{% extends "combo/page_template.html" %}
0
-