0001-nantes-new-theme-66170.patch
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 |
} |
|
77 | ||
78 |
a.pk-inverted-button, |
|
79 |
div.link-cell.pk-inverted-button ul > li > a { |
|
80 |
@extend %inverted-button; |
|
81 |
display: inline-block; |
|
82 |
} |
|
83 | ||
84 |
%button.icon-back, |
|
85 |
.link-cell.icon-back ul > li > a { |
|
86 |
&::before { |
|
87 |
content: "\f060" !important; |
|
88 |
} |
|
89 |
} |
|
90 | ||
91 |
// hexagone |
|
92 |
@mixin hexagon($width, $radius) { |
|
93 |
$sqtr3: 1.7320508075688772; |
|
94 |
border-radius: $radius; |
|
95 |
height: calc(#{$width / $sqtr3} + #{$radius / 2}); |
|
96 |
&:before, |
|
97 |
&:after { |
|
98 |
content: ''; |
|
99 |
display: block; |
|
100 |
position: absolute; |
|
101 |
top: 0; |
|
102 |
bottom: 0; |
|
103 |
left: 0; |
|
104 |
right: 0; |
|
105 |
width: 100%; |
|
106 |
height: 100%; |
|
107 |
background-color: inherit; |
|
108 |
border-radius: inherit; |
|
109 |
transform: rotate(60deg); |
|
110 |
z-index: -1; |
|
111 |
} |
|
112 |
&:after { |
|
113 |
transform: rotate(-60deg); |
|
114 |
} |
|
115 |
} |
|
116 | ||
117 | ||
118 |
// |
|
119 |
// HEADER |
|
120 |
// |
|
121 | ||
122 |
#top { |
|
123 |
display: flex; |
|
124 |
align-items: center; |
|
125 |
min-height: $header-height; |
|
126 |
} |
|
127 | ||
128 |
h1#logo.has-logo { |
|
129 |
flex-grow: 1; |
|
130 |
line-height: 0; |
|
131 |
margin-right: 1rem; |
|
132 |
@media ($min-desktop-viewport) { |
|
133 |
padding-left: 0; |
|
134 |
} |
|
135 |
a { |
|
136 |
&:before { |
|
137 |
margin-right: 0; |
|
138 |
@media ($min-desktop-viewport) { |
|
139 |
width: 360px; |
|
140 |
height: 55px; |
|
141 |
} |
|
142 |
} |
|
143 |
} |
|
5 | 144 |
} |
6 | 145 | |
7 | 146 |
#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; |
|
147 |
position: static; |
|
15 | 148 |
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; |
|
149 |
font-size: $font-small; |
|
150 |
word-spacing: 1rem; |
|
24 | 151 |
a { |
25 |
text-decoration: underline; |
|
26 |
color: black; |
|
152 |
vertical-align: middle; |
|
153 |
} |
|
154 |
.login-link, |
|
155 |
.account-link { |
|
156 |
display: inline-block; |
|
157 |
white-space: nowrap; |
|
158 |
@media ($max-mobile-viewport) { |
|
159 |
max-width: 9em; |
|
160 |
overflow: hidden; |
|
161 |
text-overflow: ellipsis; |
|
162 |
} |
|
163 |
@extend %button; |
|
164 |
margin-right: 0; |
|
165 |
&::before { |
|
166 |
content: "\f2be"; |
|
167 |
} |
|
27 | 168 |
} |
28 | 169 |
} |
29 | 170 | |
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; |
|
171 | ||
172 |
// |
|
173 |
// NAV |
|
174 |
// |
|
175 |
.gru-nav-wrapper { |
|
176 |
@media ($max-mobile-viewport) { |
|
177 |
margin-top: -$header-height; |
|
178 |
} |
|
179 |
} |
|
180 |
div.gru-nav .gru-nav-button { |
|
181 |
height: 80px; |
|
182 |
border: 0 solid transparent; |
|
183 |
border-width: #{($header-height - $nav-menu-side) / 2} 0; |
|
184 |
.icon-bar { |
|
185 |
height: 3px; |
|
186 |
} |
|
187 |
&:not(.toggled) { |
|
188 |
.icon-bar-1, .icon-bar-3 { |
|
189 |
width: 50%; |
|
190 |
left: 25%; |
|
191 |
} |
|
192 |
} |
|
193 |
+ ul { |
|
194 |
margin: 0; |
|
195 |
a { |
|
196 |
font-weight: 600; |
|
197 |
&:hover { |
|
198 |
text-decoration: underline; |
|
199 |
text-decoration-thickness: 2px; |
|
200 |
text-underline-offset: 5px; |
|
39 | 201 |
} |
40 | 202 |
} |
41 | 203 |
} |
42 | 204 |
} |
43 | 205 | |
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; |
|
206 |
// Page image |
|
207 |
body.has-picture .site-nav::after { |
|
208 |
position: static;; |
|
209 |
margin-bottom: -3rem; |
|
210 |
@media ($max-mobile-viewport) { |
|
211 |
height: 125px; |
|
212 |
} |
|
213 |
} |
|
214 | ||
215 |
// |
|
216 |
// Main |
|
217 |
// |
|
218 | ||
219 |
main { |
|
220 |
padding-left: 1em; |
|
221 |
padding-right: 1em; |
|
222 |
} |
|
223 |
#columns-wrapper { |
|
224 |
padding: 0; |
|
225 |
} |
|
226 | ||
227 |
// Page header |
|
228 |
.theme-page-header { |
|
229 |
display: flow-root; |
|
230 |
background-color: white; |
|
231 |
border-radius: $radius-l; |
|
232 |
padding: 1rem; |
|
233 |
@media (max-width: $width) { |
|
234 |
margin: 0 0.33rem; |
|
235 |
} |
|
236 |
@media ($min-desktop-viewport) { |
|
237 |
padding: 3rem; |
|
238 |
} |
|
239 |
h1:first-child { |
|
240 |
margin-top: 0; |
|
241 |
} |
|
242 |
.cell + .default-header { |
|
243 |
display: none; |
|
244 |
} |
|
245 |
.page-header--description { |
|
246 |
font-size: $fz-5; |
|
247 |
} |
|
248 |
} |
|
249 | ||
250 |
// Home page page header |
|
251 |
body { |
|
252 |
overflow-x: hidden; |
|
253 |
} |
|
254 |
.page-template-homepage { |
|
255 |
&.has-picture .site-nav::after { |
|
256 |
content: none; |
|
257 |
} |
|
258 |
.theme-page-header { |
|
259 |
background-color: transparent; |
|
260 |
padding: 0; |
|
261 |
.banner.text-cell { |
|
262 |
border-radius: 0; |
|
263 |
background-image: $gradient; |
|
264 |
padding-top: 50px; |
|
265 |
padding-bottom: 50px; |
|
266 |
// fill viewport |
|
267 |
width: 100vw; |
|
268 |
margin-left: calc(-50vw + 50%); |
|
269 |
padding-left: calc(50vw - 50%); |
|
270 |
padding-right: calc(50vw - 50%); |
|
271 |
color: white !important; |
|
272 |
@media ($min-desktop-viewport) { |
|
273 |
padding-top: 100px; |
|
274 |
padding-bottom: 100px; |
|
275 |
position: relative; |
|
276 |
> div { |
|
277 |
width: 50%; |
|
278 |
} |
|
279 |
// Page image |
|
280 |
&::after { |
|
281 |
content: ""; |
|
282 |
background: var(--page-picture) no-repeat; |
|
283 |
background-size: contain; |
|
284 |
background-position: bottom left; |
|
285 |
display: block; |
|
286 |
position: absolute; |
|
287 |
top: 0; |
|
288 |
bottom: 0; |
|
289 |
left: 50%; |
|
290 |
right: 0; |
|
291 |
} |
|
292 |
} |
|
293 |
* { |
|
294 |
color: inherit; |
|
295 |
margin: 0; |
|
296 |
font-weight: normal; |
|
297 |
} |
|
298 | ||
299 |
+ .tracking-code-input-cell { |
|
300 |
margin-top: -3rem; |
|
301 |
@media ($min-desktop-viewport) { |
|
302 |
margin-top: -4rem; |
|
303 |
max-width: 60%; |
|
304 |
position: relative; |
|
305 |
} |
|
306 |
} |
|
307 |
} |
|
308 |
} |
|
309 |
} |
|
310 | ||
311 |
// |
|
312 |
// Cells |
|
313 |
// |
|
314 | ||
315 |
.column div.a2-block, |
|
316 |
.gru-content div.cell, |
|
317 |
.block { |
|
318 |
margin-bottom: 1.5rem; |
|
319 |
& h2 + div, |
|
320 |
.cell--body { |
|
321 |
padding-top: 0; |
|
322 |
} |
|
323 |
&.has-asset-picture picture { |
|
324 |
padding-left: $title-padding; |
|
325 |
display: block; |
|
326 |
img { |
|
327 |
width: 48px; |
|
328 |
height: 48px; |
|
329 |
padding: 8px; |
|
330 |
} |
|
331 |
} |
|
332 |
&.foldable { |
|
333 |
h2:first-child { |
|
334 |
&:hover { |
|
335 |
color: $blue-dark; |
|
336 |
} |
|
54 | 337 |
} |
55 | 338 |
} |
56 | 339 |
} |
57 | 340 | |
58 |
div#main-content-wrapper { |
|
59 |
padding-top: 2rem; |
|
341 |
%cell-links-list { |
|
342 |
& > li { |
|
343 |
> a { |
|
344 |
@extend .a; |
|
345 |
} |
|
346 |
} |
|
347 |
li div.description { |
|
348 |
padding: 0; |
|
349 |
@extend .theme-description; |
|
350 |
padding-bottom: 0.5rem; |
|
351 | ||
352 |
} |
|
60 | 353 |
} |
61 | 354 | |
62 |
body.has-picture { |
|
63 |
div#main-content-wrapper { |
|
64 |
padding-top: 1rem; |
|
355 |
.bordered-cell { |
|
356 |
.gru-content &.cell { |
|
357 |
border: $cell-entry-border; |
|
358 |
h2:first-child { |
|
359 |
@extend .h4; |
|
360 |
font-weight: bold; |
|
361 |
} |
|
362 |
.links-list ul li a { |
|
363 |
.form-number, .form-status { |
|
364 |
color: $font-color; |
|
365 |
text-decoration: none; |
|
366 |
} |
|
367 |
&:hover { |
|
368 |
background-color: $gray-light; |
|
369 |
} |
|
370 | ||
371 |
} |
|
65 | 372 |
} |
66 | 373 |
} |
67 | 374 | |
375 |
// For tracking code cells |
|
376 |
.violet-cell { |
|
377 |
background-color: $violet-xlight; |
|
378 |
background-image: |
|
379 |
repeating-linear-gradient( |
|
380 |
-45deg, |
|
381 |
$violet-light, |
|
382 |
$violet-light 4px, |
|
383 |
$violet 4px, |
|
384 |
$violet 8px |
|
385 |
) |
|
386 |
; |
|
387 |
background-repeat: no-repeat; |
|
388 |
background-size: 5px 100%; |
|
389 |
h2:first-child, h3 { |
|
390 |
color: $violet |
|
391 |
} |
|
392 |
} |
|
68 | 393 | |
69 |
#logo a { |
|
70 |
color: $primary-color; |
|
71 |
font-weight: normal; |
|
394 |
// Custom text-cell |
|
395 |
.green-cell { |
|
396 |
.gru-content &.text-cell { |
|
397 |
background-color: $green-light; |
|
398 |
border-radius: $radius-l; |
|
399 |
padding: 1rem; |
|
400 |
padding-bottom: 2rem; |
|
401 |
} |
|
402 |
} |
|
403 |
.gray-cell { |
|
404 |
.gru-content &.text-cell { |
|
405 |
@extend .green-cell; |
|
406 |
background-color: $gray-xlight; |
|
407 |
} |
|
408 |
} |
|
409 |
.true-title { |
|
410 |
.gru-content &.text-cell { |
|
411 |
h2:first-child { |
|
412 |
font-size: $fz-2; |
|
413 |
font-weight: bold; |
|
414 |
} |
|
415 |
} |
|
416 |
} |
|
417 | ||
418 | ||
419 |
.tracking-code-input-cell { |
|
420 |
.gru-content &.cell { |
|
421 |
@extend .violet-cell; |
|
422 |
} |
|
72 | 423 |
} |
73 | 424 | |
74 |
@media screen and ($max-mobile-viewport) { |
|
75 |
.site-header #header h1 a { |
|
76 |
margin-top: 1em; |
|
425 |
// Custom forms-of-category cells |
|
426 |
.category-link { |
|
427 |
.gru-content &.wcs-forms-of-category-cell { |
|
428 |
border-top: $cell-entry-border; |
|
429 |
.cell--title { |
|
430 |
@extend %title; |
|
431 |
@extend .a; |
|
432 |
font-size: 1rem; |
|
433 | ||
434 |
} |
|
435 |
picture + .cell--title { |
|
436 |
padding-top: 0; |
|
437 |
} |
|
77 | 438 |
} |
78 |
div#nav, header.site-header { |
|
79 |
padding-right: 0; |
|
80 |
border-bottom: 0; |
|
81 |
#header h1 a { |
|
82 |
padding-left: 0; |
|
439 |
} |
|
440 |
.forms-only-2-cols { |
|
441 |
.gru-content &.wcs-forms-of-category-cell { |
|
442 |
.links-list ul { |
|
443 |
@extend .fx-grid; |
|
444 |
> li { |
|
445 |
border-top: $cell-entry-border; |
|
446 |
border-bottom: none; |
|
447 |
@media ($min-grid-tablet-viewport) { |
|
448 |
flex-basis: calc( 50% - #{$fx-grid-gutter}); |
|
449 |
} |
|
450 |
} |
|
83 | 451 |
} |
84 | 452 |
} |
453 |
} |
|
454 |
.category-header { |
|
455 |
.gru-content &.wcs-forms-of-category-cell { |
|
456 |
.cell--title { |
|
457 |
display: flex; |
|
458 |
picture { |
|
459 |
flex: 0 0 1em; |
|
460 |
height: 1em; |
|
85 | 461 | |
86 |
div.site-nav > ul { |
|
87 |
margin-top: 2rem; |
|
88 |
margin-bottom: 1rem; |
|
462 |
padding-left: 0; |
|
463 |
margin-right: .33em; |
|
464 |
align-self: center; |
|
465 |
img { |
|
466 |
width: 100%; |
|
467 |
height: 100%; |
|
468 |
padding: 0; |
|
469 |
filter: hue-rotate(340deg) brightness(120%); |
|
470 |
} |
|
471 |
} |
|
472 |
} |
|
89 | 473 |
} |
474 |
} |
|
475 | ||
476 |
// menu-cell |
|
477 |
.menu-cell { |
|
478 |
.gru-content & { |
|
479 |
.links-list ul { |
|
480 |
> li { |
|
481 |
border: none; |
|
482 |
> a { |
|
483 |
&:not(:hover) { |
|
484 |
color: $font-color; |
|
485 |
text-decoration: none; |
|
486 |
} |
|
487 |
} |
|
488 | ||
489 |
&.selected > a { |
|
490 |
color: white; |
|
491 |
background-color: $blue; |
|
492 |
display: flex; |
|
493 |
border-radius: $radius-s; |
|
494 |
span { |
|
495 |
text-decoration: underline 2px; |
|
496 |
} |
|
497 |
&::after { |
|
498 |
content: "\f061"; // arrow right |
|
499 |
font-family: fontawesome; |
|
500 |
flex-grow: 1; |
|
501 |
text-align: right; |
|
502 |
} |
|
503 |
} |
|
504 |
} |
|
505 |
} |
|
506 |
} |
|
507 |
} |
|
508 | ||
509 | ||
510 |
// |
|
511 |
// WCS |
|
512 |
// |
|
513 | ||
514 |
.wcs-page { |
|
515 |
.theme-page-header { |
|
516 |
display: none; |
|
90 | 517 | |
91 |
#toplinks {
|
|
92 |
right: 0;
|
|
93 |
left: 0;
|
|
94 |
top: -3rem;
|
|
95 |
width: 100%;
|
|
96 |
max-width: none;
|
|
97 |
border-radius: 0;
|
|
518 |
}
|
|
519 |
.form-content--sidebox .tracking-code-part,
|
|
520 |
.form-content--body #tracking-code {
|
|
521 |
@extend .violet-cell;
|
|
522 |
}
|
|
523 |
.form-content--body #tracking-code {
|
|
524 |
padding: 1em;
|
|
98 | 525 |
} |
99 | 526 |
} |
100 | 527 | |
101 |
div.textcell { |
|
102 |
h1 { |
|
103 |
padding-left: 0.7rem; |
|
528 |
.form-content--title { |
|
529 |
@extend .h1; |
|
530 |
padding-left: 0; |
|
531 |
} |
|
532 | ||
533 |
div#rub_service { |
|
534 |
h3 { |
|
535 |
font-weight: bold; |
|
536 |
} |
|
537 |
.section.foldable h2:first-child { |
|
538 |
padding-left: 0; |
|
539 |
@extend .h2; |
|
540 |
&:hover { |
|
541 |
color: $blue; |
|
542 |
text-decoration: underline; |
|
543 |
} |
|
544 |
} |
|
545 |
} |
|
546 | ||
547 |
label { |
|
548 |
font-weight: 600; |
|
549 |
} |
|
550 | ||
551 |
.widget .error { |
|
552 |
font-weight: normal; |
|
553 |
color: $red-dark; |
|
554 |
} |
|
555 | ||
556 | ||
557 |
// steps |
|
558 |
.wcs-step { |
|
559 |
margin-bottom: $wcs-steps-spacing * 2; |
|
560 |
&.current { |
|
104 | 561 |
font-weight: normal; |
105 | 562 |
} |
563 |
&.step-before { |
|
564 |
color: $blue; |
|
565 |
} |
|
566 |
&.step-before &--marker { |
|
567 |
color: white; |
|
568 |
background-color: $blue; |
|
569 |
} |
|
106 | 570 |
} |
571 |
@media ($mq-max--wcs-steps-small-layout) { |
|
572 |
.wcs-step.current .wcs-step--marker{ |
|
573 |
background-color: white; |
|
574 |
color: $blue-dark; |
|
575 |
width: auto; |
|
576 |
&-nb { |
|
577 |
display: inline-block; |
|
578 |
background-color: $blue-dark; |
|
579 |
color: white; |
|
580 |
width: 2em; |
|
581 |
@include hexagon(2em, 5px); |
|
582 |
} |
|
583 |
} |
|
584 |
} |
|
585 |
@media ($mq-min--wcs-steps-horizontal-layout) { |
|
586 |
.wcs-steps { |
|
587 |
font-size: 1em; |
|
588 |
} |
|
589 |
.wcs-step { |
|
590 |
&--marker { |
|
591 |
@include hexagon($wcs-step-marker-size, 5px); |
|
592 |
.step-after & { |
|
593 |
filter: drop-shadow(0 0 2px #333); |
|
594 |
} |
|
595 |
&-nb { |
|
596 |
line-height: 0; |
|
597 |
} |
|
598 |
} |
|
599 |
} |
|
600 |
.wcs-step--label { |
|
601 |
font-size: 1em; |
|
602 |
} |
|
603 |
} |
|
604 |
@include desktop-vertical-steps() { |
|
605 |
.wcs-steps { |
|
606 |
margin-top: 2rem; |
|
607 |
} |
|
608 |
} |
|
609 | ||
610 | ||
611 |
// |
|
612 |
// FOOTER |
|
613 |
// |
|
107 | 614 | |
108 | 615 |
#footer-wrapper { |
109 |
background-image: linear-gradient(45deg, #087FA3 20%, #20A791 100%); |
|
110 |
} |
|
616 |
background-image: $gradient-reverse; |
|
617 |
padding-top: 2.5rem; |
|
618 |
padding-botom: 2.5rem; |
|
111 | 619 | |
112 |
.form-content--title { |
|
113 |
font-size: 180%; |
|
620 |
%cell-links-list { |
|
621 |
> li { |
|
622 |
border: none; |
|
623 |
} |
|
624 |
> li > a { |
|
625 |
padding-top: 0; |
|
626 |
padding-bottom: 0; |
|
627 |
} |
|
628 |
} |
|
629 |
} |
|
630 |
.back-top--link:not(:hover) { |
|
631 |
text-decoration: none; |
|
114 | 632 |
} |
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 |
- |