vendee-cd85: create theme (#63340)

This commit is contained in:
Corentin Sechet 2022-03-30 10:32:43 +02:00
parent 46e1cecb17
commit 8a84aa9fdc
6 changed files with 347 additions and 0 deletions

View File

@ -0,0 +1,260 @@
@media ($max-mobile-viewport) {
.site-header {
background: white;
}
}
a {
text-decoration: underline;
}
div#header {
max-width: 100%;
@media ($max-mobile-viewport) {
h1 {
padding-left: 50px;
padding-top: 40px;
}
}
}
#toplinks {
align-items: center;
background-color: $gray;
display: flex;
height: 60px;
justify-content: right;
right: 0;
padding-right: 60px;
@media ($max-mobile-viewport) {
padding-right: 20px;
background-color: transparent;
}
width: 100%;
a {
color: $dark-gray;
font-size: 0.875rem;
font-weight: 700;
text-decoration: none;
&:hover {
color: $link-hover-color;
}
}
}
h1#logo.has-logo {
@media ($min-desktop-viewport) {
min-height: 160px;
padding-left: 100px;
padding-top: 60px;
a {
margin-top: 0.5rem;
min-height: 120px;
min-width: 100%;
}
}
@media ($max-mobile-viewport) {
a {
min-height: 60px;
background-size: cover;
}
}
}
a:hover {
color: $link-hover-color;
}
div#nav {
@media ($min-desktop-viewport) {
max-width: 100%;
padding-left: 100px;
padding-right: 100px;
}
> ul {
@media ($min-desktop-viewport) {
border-top: 2px solid black;
margin: 0px;
> li {
> a {
font-weight: 400;
position: relative;
&:hover {
color: $dark-gray;
}
&::before {
background: black;
bottom: 0.5rem;
content: '';
height: 1px;
left: 1rem;
position: absolute;
right: 1rem;
transform-origin: 100% 0;
transform: scaleX(0);
transition: transform 0.25s ease;
}
}
&.selected > a::before, > a:hover::before {
transform: scaleX(1);
transform-origin: 0 0;
color: $dark-gray;
}
ul {
li {
a {
font-size: 0.85rem;
font-weight: 400;
&:hover {
color: $dark-gray;
font-weight: 700;
}
}
}
}
}
}
}
}
div#page {
main {
background: $x-light-gray;
}
div#main-content-wrapper {
max-width: $width;
padding-top: 1rem;
padding-bottom: 1rem;
}
}
%cell {
box-shadow: 3px 3px 10px $gray;
}
%cell-links-list {
& > li > a {
display: inline-block;
&:hover {
text-decoration: $link-hover-decoration;
}
&::before {
color: $link-hover-color;
content: "\f0a9";
display: inline-block;
font-family: FontAwesome;
padding-right: 0.7rem;
text-decoration: none;
}
}
}
%button {
box-shadow: none;
font-size: 0.9rem;
font-weight: 700;
padding: 0.8rem 2rem 0.8rem 2rem;
transition-duration: 0.2s;
&:hover {
box-shadow: none;
border-color: $primary-color;
}
}
.form-content--title {
align-items: center;
background: transparent;
color: $dark-gray;
display: flex;
font-size: 1.75rem;
font-weight: 700;
justify-content: center;
padding: 1.5rem 0;
text-align: center;
&::before, &:after {
content: '';
display: block;
border-top: 1px solid black;
width: 10rem;
}
&::before {
margin-right: 2.5rem;
}
&::after {
margin-left: 2.5rem;
}
}
#footer-wrapper {
padding-top: 0;
&::before {
background: url(img/footer-top-logo.png) white no-repeat;
background-position: 100px 0;
content: " ";
display:block;
height: 180px;
padding-left: 100px;
@media ($max-mobile-viewport) {
padding-left: 10px;
background-position: 10px 0;
height: 150px;
}
}
#footer {
background: url(img/footer-background.png) $footer-background no-repeat;
background-size: contain;
background-position: 85% 100%;
margin: 50px 100px;
max-width: 100%;
position: relative;
&::before {
background: $x-dark-gray;
box-shadow: 0 -8px 8px 0 $gray;
content: " ";
left: -100px;
min-height: 80px;
position: absolute;
top: -130px;
transform-origin: 100% 100%;
transform: skewY(-2.1deg);
width: calc(100% + 200px);
}
}
@media ($max-mobile-viewport) {
#footer {
margin: 10px 10px;
&::before {
top: -80px;
left: -10px;
width: calc(100% + 20px);
}
}
&::before {
padding-left: 10px;
background-position: 10px 0;
height: 150px;
}
}
}

View File

@ -0,0 +1,67 @@
@import '../includes/fonts/lato';
$red: #ED1B24;
$x-light-gray: #F9F9F9;
$light-gray: #e6e7e9;
$gray: #dedfe1;
$dark-gray: #5a5e6b;
$x-dark-gray: #2C2C2C;
$black: rgb(44, 44, 44);
$primary-color: $red;
$width: 1440px;
$font-color: $black;
$font-family: Lato, sans-serif;
$link-color: $dark-gray;
$link-hover-color: $primary-color;
$link-hover-decoration: underline;
$header-full-width-background: true;
$header-background-color: $light-gray;
$toplinks-style: none;
$nav-item-selected-mode: none;
$nav-submenu-color: black;
$nav-background: $light-gray;
$nav-submenu-background: white;
$nav-button-background: transparent;
$nav-button-color: black;
$nav-border-color: transparent;
$nav-mobile-menu-item-background: transparent;
$nav-mobile-menu-item-hover-background: transparent;
$nav-mobile-menu-item-hover-color: $dark-gray;
$nav-mobile-menu-background: white;
$title-background: $dark-gray;
$title-color: white;
$title-border-radius: none;
$title-font-size: 1.25rem;
$title-transform: uppercase;
$title-font-weight: 700;
$title-padding: 0.4rem 1rem 0.33rem 1rem;
$error-color: $red;
$button-background: white;
$button-color: $black;
$button-border: 2px solid $black;
$button-hover-background: white;
$button-hover-color: $primary-color;
$button-border-radius: 1.5rem;
$widget-background: $x-light-gray;
$widget-border: 2px solid transparent;
$widget-focus-border: $dark-gray 2px solid;
$widget-box-shadow: null !default;
$cell-image-padding: 0;
$cell-border: none;
$cell-entry-color: $dark-gray;
$cell-entry-hover-color: $link-hover-color;
$cell-entry-hover-background: none;
$footer-background: $x-dark-gray;
$footer-link-color: white;
$buttons-order: previous, cancel (grow), submit;

View File

@ -0,0 +1,15 @@
{
"label": "Vendée (CD85)",
"variables": {
"pwa_display": "standalone",
"theme_color": "#ED1B24"
},
"settings": {
"combo": {
"COMBO_ASSET_SLOTS.update": {
"header:background": { "label": "Têtière : fond" },
"header:logo": { "label": "Têtière : logo" }
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

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