[MTELENGA-8] Enghien : whole theme update

This commit is contained in:
Daniel Muyshond 2022-04-14 12:29:10 +02:00
parent ee2197a3ef
commit 6bcca58269
5 changed files with 151 additions and 5 deletions

129
static/enghien/_header.scss Normal file
View File

@ -0,0 +1,129 @@
$header-full-width-background: true !default;
$header-background-color: null !default;
@mixin header-background {
body.has-header-background & {
background: url(/assets/header:background) top center no-repeat;
background-size: cover;
}
background-color: $header-background-color;
}
@if ($header-full-width-background) {
.site-header {
@include header-background();
}
} @else {
#header {
@include header-background();
}
}
h1#logo.has-logo {
a {
background: transparent url(/assets/header:logo) center left no-repeat;
background-size: contain;
text-indent: -10000px;
min-width: 206px;
height: 206px;
display: inline-block;
}
}
div#page {
max-width: 1920px;
margin: auto;
}
body.has-header-background header {
background-position: 50% 62px;
@media screen and ($max-mobile-viewport) {
background-position: 50% 42px;
}
}
div#header-wrapper {
border-top: 62px solid $primary-color;
}
div#header {
max-width: none;
width: 100%;
margin: 0 auto;
position: relative;
top: -85px;
z-index: 0;
padding: 0 2ex;
height: 274px;
// @media screen and ($max-mobile-viewport) {
// height: 150px;
// h1 {
// padding-left: 0;
// }
// }
}
h1#logo a {
background: url(images/logo.png) 10px 0px no-repeat;
background-size: 140px;
height: 140px;
padding-left: 0;
color: #ffffff;
display: block;
font-size: 21px;
font-weight: normal;
@media screen and ($max-mobile-viewport) {
background-position: 0 0;
background-size: 80px;
padding-left: 90px;
}
span.site-title {
font-family: $title-font-family;
padding-top: 5px;
font-size: 18px;
display: block;
line-height: 50px;
text-transform: uppercase;
}
&:hover {
text-decoration: none;
}
}
#toplinks {
background: transparent;
box-shadow: none;
border: none;
padding-top: 20px;
a {
line-height: 52px;
color: white;
font-size: 16px;
}
.sep {
display: none;
}
.registration {
display: none;
}
@media screen and ($max-mobile-viewport) {
a {
display: inline-block;
padding-top: 5px;
padding-right: 5px;
line-height: 100%;
}
.connected-user {
display: none;
}
}
}
#nav-wrapper {
background-color: #f2f2f2;
}
#toplinks span.connected-user {
color: white;
font-style: oblique;
}

View File

@ -1,7 +1,7 @@
@charset "UTF-8";
/*STYLE*/
$primary-color: darken(#56c2cc, 10%);
$primary-color: #576265;
$width: 1200px;
$mobile-limit: 800px;
$font-size: 16px !default;
@ -10,7 +10,7 @@ $cell-entry-hover-effect: left-to-right;
$theme2019: true;
$link-color: darken($primary-color, 20%);
$font-family: "Din"; //!\\ : il faut bien importer la font (voir les imports en bas de la page)!
$border-radius: 3px;
$border-radius: 0;
/*BASKET*/
@ -24,7 +24,7 @@ $button-hover-background-color: darken($primary-color, 30%);
$button-background: $primary-color;
/*FOOTER*/
$footer-background-color: #2c3d53;
$footer-background-color: #172a42;
$footer-text-color: hsl(0, 0, 84%);
$footer-hover-text-color: hsl(0, 0, 100%);
@ -33,7 +33,7 @@ $header-banner: none;
$header-banner-image: false;
$header-banner-height: auto;
$header-logo: None;
$header-logo-margin: 1.7em 0 0 0.55em !default;
$header-logo-margin: 1.8em 0 0 2em !default;
$header-logo-padding: 0;
$toplinks-border: 0;
$toplinks-radius: 0;

View File

@ -3,7 +3,23 @@
"variables": {
"no_extra_js": false,
"pwa_display": "standalone",
"theme_color": "#56C2CC",
"theme_color": "#8A8A8A",
"favicon": "enghien/images/favicon.ico"
},
"settings": {
"combo": {
"COMBO_MAP_DEFAULT_POSITION": {
"lat": "50.6936",
"lng": "4.0395"
},
"COMBO_ASSET_SLOTS.update": {
"header:background": {
"label": "Image d'en tête du guichet"
},
"header:logo": {
"label": "Logo d'en tête du guichet"
}
}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@ -19,3 +19,4 @@
@import "../imio/responsive";
@import "custom";
@import "header";