new theme: région réunion (#39600)

This commit is contained in:
Thomas Jund 2020-02-06 15:30:19 +01:00
parent 9691600c7e
commit d98a7c77e2
6 changed files with 293 additions and 0 deletions

View File

@ -0,0 +1,205 @@
%cancel-button {
@extend %button;
background-color: white;
border-color: $cyan;
color: $cyan;
&:hover {
background-color: white;
border-color: $primary-color;
color: $primary-color;
}
}
* {
box-sizing: border-box;
&::before, &::after {
box-sizing: inherit;
}
}
// HEADER
#header-wrapper {
background: url(img/menu_top_fond.png) no-repeat top right;
border-bottom: 3px solid $primary-color;
}
#logo {
padding: 15px;
a {
color: $cyan;
$logo-height: 75px;
display: block;
font-weight: bold;
font-size: 18px;
padding-top: $logo-height + 5;
background: url(img/logo-regionreunion-bleu.svg) no-repeat;
background-size: auto $logo-height;
@media (min-width: $mobile-limit + 1) {
padding-left: 150px;
padding-top: 60px;
font-size: 24px;
line-height: 20px;
background-size: contain;
}
&::before {
content: "#";
color: $primary-color;
font-weight: bold;
}
}
}
#toplinks {
border: none;
box-shadow: none;
}
// NAV
.gru-nav-wrapper {
@media (max-width: $nav-mobile-limit) {
margin-top: -$nav-menu-side - 15px;
}
}
div.gru-nav > ul {
font-size: .85em;
margin: 0;
> li a {
font-weight: normal;
text-transform: uppercase;
}
// submenu
ul a {
&:hover {
background-color: white;
color: $font-color;
}
}
}
// burger btn
div.gru-nav .gru-nav-button {
border: 1px solid $primary-color;
&.toggled {
background-color: $primary-color;
.icon-bar {
border-color: white;
}
}
}
body.has-picture nav::after {
position: static;
}
// PWA nav
.pwa-navigation {
background-color: transparent;
text-transform: uppercase;
div > ul li {
border: 1px solid transparent;
background-color: $nav-mobile-bottom-bar-background;
background-clip: padding-box;
a {
background-position: 50% 5px;
background-size: auto 25px;
span {
display: flex;
justify-content: center;
align-items: center;
}
}
}
}
// MAIN
main {
background-image:
linear-gradient(178deg, transparent 700px, white 701px),
linear-gradient(173deg, $xlight-gray 350px, $light-gray 351px)
;
}
// White bloc with shadow
div#main-content-wrapper {
background-color: white;
margin-top: 40px;
padding-top: 1rem;
padding-bottom: 1rem;
box-shadow: 0 0px 30px 10px #ccc;
z-index: 0;
@media (min-width: $mobile-limit + 1) {
margin-top: 120px;
padding-left: 1rem;
padding-right: 1rem;
}
}
main {
&::after {
content: "";
display: block;
background-color: white;
height: 50px;
position: relative;
box-shadow: 0 0px 30px 20px white;
}
}
// CELLS
// more link
div.wcsformsofcategorycell ul li.more-items {
width: 1.5em;
height: 1.5em;
margin: auto;
font-size: 1.2em;
background-color: $orange;
display: flex;
transform: rotate(45deg);
a {
color: white;
font-weight: bold;
padding: 0;
display: block;
border: none;
margin: auto;
transform: rotate(-45deg);
}
&:hover {
background-color: $primary-color;
a {
background-color: transparent;
}
}
}
div.wcs-form-cell a {
@extend .pk-button;
display: block;
}
// WCS
div#rub_service h2 {
font-size: 2rem;
color: $primary-color;
}
// FOOTER
div#footer {
font-size: .9em;
img {
max-width: 100%;
height: auto;
}
// inclined top footer
@media (min-width: $width) {
position: relative;
margin-top: 60px;
&::before {
position: absolute;
bottom: 100%;
left: 0;
content: "";
display: block;
border-top: 60px solid transparent;
border-right: $width solid $footer-background;
}
}
}

View File

@ -0,0 +1,72 @@
// Colors
$dark-blue: #00579e;
$pale-blue: #d6e0e8;
$cyan: #00b1e6;
$orange: #e56611;
$green: #74bd04;
$pink: #c7017f;
$xlight-gray: #f5f3f1;
$light-gray: #efece7;
$gray: #c7bca9;
$desaturate-orange: #a9987b;
// Core Vars
$mobile-limit: 960px;
$width: 1160px;
$primary-color: $dark-blue;
$link-color: $primary-color;
$font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
$footer-background: $light-gray;
$footer-full-width-background: false;
$footer-color: #000;
$nav-border-color: none;
$nav-menu-color: white;
$nav-active-color: $primary-color;
$nav-item-selected-background: transparent;
$nav-item-selected-color: $primary-color;
$nav-item-hover-color: white;
$nav-item-hover-background: $primary-color;
$nav-submenu-background: $primary-color;
$nav-mobile-menu-background: $primary-color;
$nav-mobile-menu-item-color: white;
$nav-menu-side: 40px;
$nav-button-background: white;
$nav-button-color: $primary-color;
$nav-mobile-menu-item-hover-background: white;
$nav-mobile-menu-item-hover-color: $primary-color;
$nav-mobile-bottom-bar-background: $cyan;
$nav-mobile-bottom-bar-color: white;
$cell-border: 1px solid $light-gray;
$cell-entry-hover-color: $primary-color;
$cell-entry-hover-background: $pale-blue;
$cell-entry-hover-color: black;
$cell-entry-border-color: white;
$cell-background: $xlight-gray;
$cell-image-padding: 0;
$title-font-size: 1.4rem;
$title-border-bottom: $cell-border;
$title-padding: .5em 0;
$title-color: $cyan;
$title-weight: bold;
$wcs-step-border-bottom: none;
$wcs-step-background: $xlight-gray;
$wcs-step-color: $desaturate-orange;
$button-color: white;
$button-background: $cyan;
$button-hover-background: $primary-color;
$buttons-order: previous, cancel, submit;
$buttons-alignment: space-around;
$widget-border: 1px solid $gray;
$widget-focus-border: 1px solid $primary-color;
$widget-focus-color: $primary-color;
// $widget-border: 2px solid $light-gray;

View File

@ -0,0 +1,7 @@
{
"label": "Région Réunion",
"variables": {
"pwa_display": "standalone",
"theme_color": "#00579e"
}
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@ -0,0 +1,6 @@
@charset "UTF-8";
@import '../includes/font-source-sans-pro.scss';
@import 'vars';
@import '../includes/publik';
@import 'custom';