add theme for grand chambery (#32278)

This commit is contained in:
Frédéric Péters 2019-10-23 11:24:54 +02:00
parent 61ff58af30
commit 0880397be7
13 changed files with 720 additions and 0 deletions

View File

@ -0,0 +1,586 @@
@import '../includes/font-opensans';
$header-height: 150px;
%title {
@extend %title;
background-image: url(img/white-skew.png);
background-position: top right;
background-repeat: no-repeat;
text-align: center;
}
div#header {
max-width: 1280px;
height: $header-height;
h1#logo {
width: 50%;
position: relative;
z-index: 100;
}
h1#logo.has-logo a {
background-size: auto 80px;
background-position: bottom 15px right 80px;
display: block;
height: 150px;
&::after {
z-index: 200;
content: "";
display: block;
background: url(img/home.png) top 10px right 20px no-repeat;
background-size: auto 40px;
top: 65px;
height: 75px;
width: 100px;
position: absolute;
right: -30px;
}
}
h1#logo::after {
content: "";
display: block;
background: white;
position: absolute;
width: 100px;
top: 55px;
right: -60px;
height: 75px;
transform: skewX(-21deg);
transform-origin: top right;
}
#toplinks {
background: $red;
border: none;
box-shadow: none;
border-radius: 0;
height: $header-height;
width: 50%;
padding: 0;
a:hover {
text-decoration: underline;
}
&::before {
content: "";
display: block;
top: 0;
left: 0;
height: $header-height;
background: $red;
width: 100px;
transform-origin: top left;
transform: skewX(-21deg);
}
> span {
position: absolute;
bottom: 0;
right: 50px;
background: white;
border-radius: 10px 10px 0 0;
line-height: 50px;
font-weight: bold;
padding: 0 10px;
}
.sep {
color: $red;
}
@media screen and (max-width: $mobile-limit) {
display: none;
}
}
@media screen and (max-width: $mobile-limit) {
height: 80px;
h1#logo.has-logo::after {
content: none;
}
h1#logo.has-logo a {
height: 80px;
width: calc(100vw - 100px);
background-position: bottom 4px left 0;
background-size: auto 40px;
&::after {
content: none;
}
}
}
}
#content-top-wrapper {
background: $gray;
padding-top: 2rem;
padding-bottom: 2rem;
@media screen and (max-width: $mobile-limit) {
padding: 0.5rem 0.5rem 1rem 0.5rem;
box-sizing: border-box;
}
.content-top {
position: relative;
width: $width;
max-width: 100vw;
margin: 0 auto;
box-sizing: border-box;
@media screen and (max-width: $mobile-limit) {
width: auto;
}
h1 {
font-size: 300%;
color: $red;
margin-bottom: 6rem;
@media screen and (max-width: $mobile-limit) {
margin-bottom: 3rem;
font-size: 200%;
}
}
@media screen and (max-width: $mobile-limit) {
div.cell {
margin-left: 0;
}
}
}
}
.content-top {
div.trackingcodeinputcell {
@extend div.block;
h2 {
@extend %title;
}
}
}
div.trackingcodeinputcell {
input {
width: 60%;
height: 2.5rem;
}
button {
@extend %button;
width: 35%;
margin-right: 0;
height: 2.5rem;
position: relative;
top: -2px;
}
}
div#anomalies {
background: $bgblue url(/assets/picture:anomalie) center center no-repeat;
background-size: 100% auto;
padding-top: 250px;
padding-right: 0;
@media screen and (max-width: $mobile-limit) {
background: $bgblue;
padding-top: 0;
}
> div {
background: $bgblue;
color: white;
h2 {
margin: 0;
font-size: $font-size * 1.1;
color: $blue;
background: white;
display: inline-block;
position: relative;
padding: 0.5rem 2rem 0.5rem 1rem;
text-transform: uppercase;
&::after {
z-index: 80;
content: "";
display: block;
background: $bgblue;
position: absolute;
width: 40px;
top: 0;
right: -40px;
height: 101%;
transform: skewX(-21deg);
transform-origin: top right;
}
}
p {
margin: 0;
}
ul {
list-style: none;
margin: 0;
padding: 0;
width: 50%;
float: left;
@media screen and (max-width: $mobile-limit) {
width: auto;
float: none;
}
padding-bottom: 1rem;
li {
margin: 0;
padding: 0;
a {
color: white;
border-bottom: 1px solid white;
display: block;
margin: 0 1rem;
padding: 5px 5px;
&:hover {
background: white;
color: $blue;
}
}
}
}
&:last-child::after {
content: "";
display: block;
clear: both;
}
}
}
nav {
display: none;
@media screen and (max-width: $mobile-limit) {
display: block;
#nav button {
transform: skewX(-21deg);
transform-origin: bottom right;
width: 120px;
margin-left: -50px;
.icon-bar {
left: 60px;
}
+ ul {
border-top-width: 3px;
}
}
}
}
div#main-content-wrapper {
padding-top: 30px;
}
#col1, #col2, #col3 {
float: left;
width: 33%;
@media screen and (max-width: $mobile-limit) {
float: none;
width: 100%;
}
}
#content div.linkcell {
border: none;
a {
@extend %title;
text-align: left;
border-bottom: 0;
font-size: $font-size;
}
}
#content div.wcsformsofcategorycell {
border: 0;
h2 {
background: white;
text-align: left;
color: black;
text-transform: uppercase;
padding-left: 0;
font-weight: bold;
padding-top: 5px;
}
&.foldable h2::after {
background: url(img/fold.png) top right no-repeat;
background-size: 25px 25px;
content: '';
display: block;
width: 25px;
height: 25px;
position: absolute;
top: 5px;
right: 0;
}
&.foldable.folded h2::after {
background-image: url(img/unfold.png);
}
li a {
padding: 5px 2px;
color: black;
border-bottom: 1px solid black;
}
padding-bottom: 10px;
picture {
height: 150px;
}
}
footer {
#footer-wrapper {
padding-bottom: 0;
}
div.red {
background: $red;
color: white;
text-align: right;
background-image: url(img/white-skew.png);
background-position: top right;
background-repeat: no-repeat;
height: 115px;
h3 {
padding-right: 1rem;
font-size: $font-size * 1.5;
}
}
}
div#gauche {
width: 25%;
+ div#rub_service {
width: 71%;
}
div#tracking-code {
height: 45px;
margin: 0;
padding: 0;
position: absolute;
top: -45px;
left: 29%;
background: $red;
div {
padding: 0 1rem 0 0.5rem;
display: inline-block;
h3, a {
background: transparent;
display: inline-block;
height: 45px;
font-size: 1rem;
color: white;
}
a {
font-weight: bold;
}
float: left;
}
form {
float: left;
display: inline-block;
margin: 0;
button {
margin-left: 1rem;
margin-right: 0;
box-shadow: none;
&:hover {
text-decoration: underline;
}
}
}
}
div#steps {
position: absolute;
top: -45px;
width: 25%;
h2 {
display: block;
color: black;
font-weight: normal;
margin-top: 0;
margin-left: 1rem;
text-transform: uppercase;
color: $red;
}
ol {
li {
box-shadow: 0 5px 5px #666;
border-radius: 10px;
display: flex;
align-items: center;
padding: 0;
border: 0;
span {
font-size: 1.1rem;
padding: 0 1rem;
color: black;
}
span.marker {
padding: 1rem;
background: $red;
font-weight: normal;
color: white;
&::after {
content: "-";
}
border-radius: 10px 0 0 10px;
}
&.current {
span {
font-weight: normal;
color: white;
}
}
}
}
}
@media screen and (max-width: $mobile-limit) {
width: 100%;
+ div#rub_service {
width: 100%;
clear: both;
}
div#side {
display: block;
}
div#tracking-code, div#steps {
position: static;
clear: both;
width: 100%;
background: transparent;
}
div.tracking-code-part {
background: $red;
height: 45px;
width: 100%;
box-sizing: border-box;
}
div#tracking-code {
margin-top: -90px;
height: auto;
text-align: center;
form {
margin-top: 0.5rem;
float: none;
}
}
div#steps {
h2 {
display: none;
}
margin-top: 1rem;
ol {
li {
margin-bottom: 0.5rem;
}
}
}
}
}
#columns div#rub_service {
h3[data-field-id] {
color: $red;
border: 0;
text-transform: uppercase;
font-size: 1.5rem;
font-weight: normal;
}
h4[data-field-id] {
color: $red;
}
div.buttons {
display: flex;
@media screen and (max-width: $width) {
flex-wrap: wrap;
}
div.savedraft-button {
display: none;
}
div.widget {
div.content,
button {
width: 100%;
text-align: left;
box-shadow: none;
border: 0;
padding: 1rem 1rem;
background-size: contain;
background-repeat: no-repeat;
}
div.content {
padding-right: 1rem;
box-sizing: border-box;
@media screen and (max-width: $mobile-limit) {
padding: 0 1rem;
}
}
@media screen and (max-width: $width) {
margin-bottom: 0.75rem;
}
}
div.previous-button {
flex: 1;
order: 0;
button {
background-image: url(img/white-skew.png);
background-position: top right;
&::before {
content: "\f0d9"; // caret-left
font-family: FontAwesome;
padding-right: 0.5rem;
}
}
@media screen and (max-width: 500px) {
-webkit-flex-basis: 50%;
flex-basis: 50%;
}
@media screen and (max-width: 320px) {
-webkit-flex-basis: 100%;
flex-basis: 100%;
}
}
div.cancel-button {
flex: 1;
order: 1;
button {
background-color: #e6e7e8;
background-image: url(img/white-skew.png), url(img/left-white-skew.png);
background-position: top right, top left;
background-repeat: no-repeat, no-repeat;
color: $red;
text-align: center;
}
@media screen and (max-width: 500px) {
-webkit-flex-basis: 50%;
flex-basis: 50%;
}
@media screen and (max-width: 320px) {
-webkit-flex-basis: 100%;
flex-basis: 100%;
}
}
div.submit-button {
flex: 1;
order: 2;
button {
background-image: url(img/left-white-skew.png);
background-position: top left;
text-align: right;
&::after {
content: "\f0da"; // caret-right
font-family: FontAwesome;
padding-left: 0.5rem;
}
}
@media screen and (max-width: 500px) {
-webkit-flex-basis: 100%;
flex-basis: 100%;
}
}
}
}
#pwa-navigation {
ul {
li:last-child {
background: $red url(img/white-skew.png) top right no-repeat;
a {
background-size: 40px;
background-position: right 30px top 50%;
}
&:hover a {
background-color: transparent;
}
span {
display: none;
}
}
}
}

View File

@ -0,0 +1,36 @@
$red: #e5112f;
$gray: #ededed;
$blue: #0b4361;
$bgblue: #577c90;
$primary-color: $red !default;
$width: 1210px !default;
$font-family: "Open Sans", sans-serif;
$font-color: #000 !default;
$font-size: 100% !default;
$nav-background: #fafafa !default;
$nav-submenu-background: #eee !default;
$nav-submenu-color: #333 !default;
$nav-color: $font-color !default;
$nav-active-color: $primary-color !default;
$nav-item-selected-color: white !default;
$nav-item-hover-color: white !default;
$border-radius: 0px !default;
$button-background: $primary-color !default;
$title-background: $primary-color !default;
$title-color: white !default;
$link-color: $red;
$footer-background: white;
$footer-color: $red;
$cell-image-position: top !default;
$cell-image-padding: none !default;
$cell-title-cover-border: false;
$cell-border: 2px solid $red;
$responsive-steps: normal;
$nav-mobile-bottom-bar-background: $bgblue;
$nav-mobile-bottom-bar-color: white;
$widget-custom-radio-checkbox: true;

View File

@ -0,0 +1,15 @@
{
"label": "Grand Chambéry",
"variables": {
"theme_color": "#E5112F",
"pwa_display": "standalone"
},
"settings": {
"combo": {
"COMBO_ASSET_SLOTS.update": {
"header:logo": { "label": "Têtière : logo" },
"picture:anomalie": { "label": "Photo accueil anomalie" }
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

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

View File

@ -0,0 +1,24 @@
{% extends "combo/page_template.html" %}
{% load combo %}
{% block user-info %}
{% skeleton_extra_placeholder user-info %}
{% if user.is_authenticated %}
<span class="logged-in">
{% if idp_account_url %}<a href="{{idp_account_url}}">{% endif %}
<span class="connected-user">{{user.first_name}} {{user.last_name}}</span>{% if idp_account_url %}</a>{% endif %}
<a accesskey="o" class="logout" href="{% url 'auth_logout' %}">Déconnexion</a>
</span>
{% else %}
<span class="login"><a accesskey="2" href="{% url 'auth_login' %}">Je me connecte</a>
<span class="sep">|</span>
<a class="registration" href="{{idp_registration_url}}">Je m'inscris</a></span>
{% endif %}
{% end_skeleton_extra_placeholder %}
{% endblock %}
{% block before-main-content %}
{{ block.super }}
{% skeleton_extra_placeholder topsection %}
{% end_skeleton_extra_placeholder %}
{% endblock %}

View File

@ -0,0 +1,24 @@
{% extends "combo/page_template_sidebar.html" %}
{% load combo i18n %}
{% block before-main-content %}
{{ block.super }}
<div id="content-top-wrapper">
<div class="content-top">
{% placeholder "top" name="Haut" %}
</div>
</div>
{% endblock %}
{% block combo-content %}
<div id="sidebar">
{% trans "Sidebar" as name %}
{% placeholder "sidebar" name=name %}
</div>
<div id="columns">
<div id="col1">{% placeholder "content" name="Colonne 1" %}</div>
<div id="col2">{% placeholder "right" name="Colonne 2" %}</div>
<div id="col3">{% placeholder "column3" name="Colonne 3" %}</div>
</div>
{% endblock %}

View File

@ -0,0 +1,30 @@
{% extends "wcs/base.html" %}
{% load static %}
{% block extra-body-class %}{{ block.super }} wcs-page{% endblock %}
{% block topsection %}
{% if title %}
<div id="content-top-wrapper">
<div class="content-top">
<h1>{{ title }}</h1>
</div>
</div>
{% endif %}
{% endblock %}
{% block content %}
{% block side %}
{% if gauche %}
<div id="gauche">
{{ gauche|safe }}
</div>
{% endif %}
{% endblock %}
<div id="{{bigdiv|default:'rub_service'}}">
{% block body %}
{{ body|safe }}
{% endblock %}
</div>
{% endblock %}