arpajon: add initial theme (#25338)

This commit is contained in:
Frédéric Péters 2018-08-29 14:48:37 +02:00
parent 54758be53f
commit 0ce5d97be4
6 changed files with 226 additions and 0 deletions

190
static/arpajon/_custom.scss Normal file
View File

@ -0,0 +1,190 @@
@import '../includes/font-din';
#header #top #logo a {
background: url(img/logo.png) bottom left no-repeat;
background-size: 340px;
height: 100px;
line-height: 190px;
font-weight: normal;
display: block;
color: $primary-color;
max-width: 340px;
padding-bottom: 20px;
position: relative;
left: -1rem;
padding-left: 370px;
@media screen and (max-width: $mobile-limit) {
padding-left: 0;
max-width: 90%;
background-size: contain;
left: 0;
text-indent: -10000px;
}
}
#page {
background: #f3f3f3;
}
#header-wrapper {
background: white;
}
#nav-wrapper {
background: white;
margin-bottom: 0px;
font-size: 24px;
border-bottom: 1px solid #e0e0e0;
div.gru-nav > ul {
padding-top: 2rem;
margin-top: 0;
margin-bottom: 10px;
ul {
font-size: 18px;
}
}
div.gru-nav > ul > li a {
line-height: 2em;
}
div.gru-nav > ul > li:first-child a {
padding-left: 0;
}
}
div#main-content-wrapper {
background: white;
margin-top: 1rem;
margin-bottom: 1rem;
padding: 1rem;
box-sizing: border-box;
}
@media screen and (max-width: $mobile-limit) {
#header #top #logo a {
display: block;
height: 75px;
}
.gru-nav-wrapper {
margin-top: -48px;
}
#nav-wrapper div.gru-nav > ul {
padding-top: 0;
margin-top: 0;
}
#nav-wrapper div.gru-nav > ul > li:first-child a {
padding-left: 20px;
}
}
body.has-picture nav::after {
top: 1px;
}
div#tracking-code h3,
div#rub_service h2,
div#rub_service div.category h3,
.gru-content div.a2-block h2,
.gru-content div.block h2,
div.links-list h2,
div#services > ul > li > strong > a,
.gru-content div.textcell h2,
.gru-content div.textcell h2:first-child,
.gru-content div.cell h2:first-child {
background: transparent;
color: $font-color;
font-size: 150%;
font-weight: bold;
padding-left: 0.5rem;
text-align: left;
&::after {
display: block;
content: "";
background: $primary-color;
margin-top: 7px;
width: 40px;
height: 4px;
}
}
div.title label {
font-weight: bold;
}
div#rub_service div.dataview,
div#rub_service form.quixote {
h3 {
font-size: 130%;
border-bottom: 0;
&::after {
display: block;
content: "";
background: $primary-color;
margin-top: 7px;
width: 30px;
height: 3px;
}
}
h4 {
font-size: 130%;
font-weight: normal;
border-bottom: 1px solid #e5e5e5;
}
}
div#rub_service > h2:first-child,
.gru-content div.textcell h1 {
font-size: 60px;
text-align: center;
&::after {
content: none;
}
}
div#left div.a2-block, div#right div.a2-block,
.gru-content div.cell,
div.block {
padding: 0;
margin: 0px 10px 10px 10px;
& h2 + div {
padding: 0.5rem;
}
}
div.cell a {
border-bottom: 1px dotted $link-color;
}
#footer {
background: url(img/blason.png) top left no-repeat;
min-height: 130px;
div.cell {
padding-left: 80px;
}
a.button {
border: 2px solid #fed30e;
background: #fed30e;
color: $font-color;
font-weight: bold;
padding: 0.5rem 1rem;
&:hover {
background: transparent;
}
}
ul {
padding: 0;
margin: 0;
margin-top: 2rem;
margin-left: 0.5rem;
li {
padding: 0;
margin: 0;
display: inline;
a {
color: $font-color;
border: none;
padding-right: 2rem;
}
}
}
}

24
static/arpajon/_vars.scss Normal file
View File

@ -0,0 +1,24 @@
$primary-color: #00d3cc;
$width: 1140px;
$font-color: #484848;
$font-family: Din, sans-serif;
$font-size: 16px;
$nav-background: transparent;
$nav-submenu-background: #eee;
$nav-submenu-color: #333;
$nav-color: $font-color;
$nav-active-color: $primary-color;
$nav-item-selected-background: transparent;
$nav-item-hover-background: transparent;
$nav-item-selected-color: $primary-color;
$nav-item-hover-color: $nav-item-selected-color;
$border-radius: 0px;
$button-background: $primary-color;
$title-background: $primary-color;
$title-color: white;
$footer-background: $primary-color;
$footer-color: #484848;
$cell-border: 1px solid transparent;
$widget-border-radius: 3px;
$link-color: #0b69e1;

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
static/arpajon/img/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

View File

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

View File

@ -29,6 +29,13 @@
"favicon": "alpes-maritimes/img/favicon.ico"
}
},
{"id": "arpajon",
"label": "Arpajon",
"variables": {
"css_variant": "arpajon",
"theme_color": "#00d3cc"
}
},
{"id": "blois",
"label": "Blois",
"variables": {