add theme for rouen (#23382)

This commit is contained in:
Emmanuel Cazenave 2018-04-25 14:49:39 +02:00
parent 194f8ff753
commit 14b488dd1b
6 changed files with 112 additions and 0 deletions

View File

@ -57,6 +57,7 @@ css: data_uris
cd static/publik/ && sass style.scss:style.css
cd static/dauphine/ && sass style.scss:style.css
cd static/rochefort/ && sass style.scss:style.css
cd static/rouen/ && sass style.scss:style.css
cd static/saint-lo-agglo/ && sass style.scss:style.css
cd static/saint-vallier-de-thiey/ && sass style.scss:style.css
cd static/saone-et-loire-cd71/ && sass style.scss:style.css

81
static/rouen/_custom.scss Normal file
View File

@ -0,0 +1,81 @@
@import '../includes/font-roboto';
h1#logo a {
background: url(img/logo.svg) no-repeat left bottom;
display: block;
height: 83px;
width: 243px;
background-size: 100%;
color: transparent;
}
div#nav li {
border-right: 0.1em solid #fff;
}
div#footer {
display: flex;
}
div#footer > div {
background: $primary-color;
}
div#footer > div.logos {
margin-right: 0.5em;
padding: 2.5em 2.5em;
}
div#footer div.logos img {
display: block;
}
div#footer > div.logos > div > div {
display: flex;
justify-content: space-between;
}
div#footer > div.logos > div > div:first-child {
margin-bottom: 0.6em;
}
div#footer > div.footer-mentions {
padding-top: 1em;
}
div#footer > div.footer-mentions ul {
padding-left: 0.8em;
}
div#footer a {
color: #000;
}
.footer-mentions li {
display: inline;
font-weight: 700;
line-height: 1.5em;
}
.footer-mentions li a {
display: inline-block;
margin-right: 0.5em;
margin-left: 0.5em;
}
.footer-mentions li:not(:last-child)::after {
content: "\f111"; // circle
font-family: FontAwesome;
color: black;
font-size: 35%;
vertical-align: middle;
}
div#rub_service h2 {
color: #C64A59;
font-size: 237%;
}
button {
font-weight: bold;
}

15
static/rouen/_vars.scss Normal file
View File

@ -0,0 +1,15 @@
$primary-color: #EE787C;
$button-background: $primary-color;
$button-border-radius: unset;
$cell-border: none;
$font-family: Roboto, sans-serif;
$font-size: 18px;
$footer-background: #FFFFFF;
$link-color: #198468;
$mobile-limit: 800px;
$nav-background: $primary-color;
$nav-item-selected-background: #2D2D2D;
$sidebar-width: 240px;
$title-weight: bold;
$width: 1243.97px;

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" height="68.9" width="330" version="1.1" viewBox="0 0 330 68.917"><g fill="#2d2d2d"><path d="m97.5 58.4c8.51 0 12.7-3.98 14.5-9.6 1.02-3.2 1.02-6.79 1.02-10.5v-37.1h-3.82v35.8c0 3.82 0 7.57-0.859 10.9-1.09 4.06-4.22 6.95-10.8 6.95-6.32 0-9.29-2.97-10.6-7.18-0.859-2.73-0.859-5.93-0.859-9.21v-37.2h-3.82v37c0 3.75 0 7.26 0.859 10.5 1.56 5.7 5.62 9.76 14.4 9.76z"/><path d="m54 58.4c10.5 0 17.3-7.03 17.3-30.8 0-18.9-5.3-27.6-16.7-27.6-10.9 0-17.7 9.21-17.7 28 0 24.1 7.4 30.4 17.1 30.4zm0.3-54.7c7.65 0 13 5.54 13 24 0 21.8-5.46 27.2-13.4 27.2-7.88 0-13-7.42-13-26.8 0-17.7 5.5-24.4 13.4-24.4z"/><polygon points="183 20.7 183 76.8 186 76.8 186 27 211 76.8 215 76.8 215 20.7 211 20.7 211 69.7 188 20.7" transform="translate(-21 -19.5)"/><polygon points="173 24.3 173 20.7 148 20.7 148 76.8 174 76.8 174 73.3 152 73.3 152 49.4 170 49.4 170 45.6 152 45.6 152 24.3" transform="translate(-21 -19.5)"/><path d="m213 1.13v61.9h-182l-9.92-32.5c3.9-2.11 8.12-6.25 8.12-14.8 0-10.4-5.93-14.5-14.8-14.5h-14.6v56.1h3.82v-25.7h13.7l11.1 36.4h0.099 3.96 189 5.41 10.3v-57.3h33.9v11.5h-19.7v11.2h16.5v11.3h-16.5v23.3h29v-57.3h18.3c11.1 0 18.6 4.23 18.6 16.2 0 7.9-3.03 13.2-7.65 16.1l10.3 25h9.76v-66.9h-117zm-199 27.1h-10.6v-23.4h10.5c7.26 0 10.9 3.12 10.9 11.6 0 7.88-4.76 11.9-10.9 11.9z"/><path d="m303 28.2c0-5.42-1.75-6.62-5.34-6.62h-3.11v13.6h3.35c3.03 0 5.1-2.31 5.1-6.94z"/><polygon points="318 65.6 316 65.6 316 87.6 327 87.6" transform="translate(-21 -19.5)"/></g><ellipse rx="6.77" ry="7.7" cy="61.2" cx="219" fill="#5fc2e0"/></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

5
static/rouen/style.scss Normal file
View File

@ -0,0 +1,5 @@
@charset "UTF-8";
@import 'vars';
@import '../includes/publik';
@import 'custom';

View File

@ -351,6 +351,14 @@
"theme_color": "#D24E38"
}
},
{"id": "rouen",
"label": "Rouen",
"variables": {
"css_variant": "rouen",
"no_extra_js": true,
"theme_color": "#EE787C"
}
},
{"id": "saint-lo-agglo",
"label": "Saint-Lô Agglo",
"variables": {