themes: new theme 'hautes-alpes-territoire' (#46353)

This commit is contained in:
Thomas Jund 2020-09-01 10:17:29 +02:00
parent 0a2bfa7773
commit e3866596aa
5 changed files with 303 additions and 0 deletions

View File

@ -0,0 +1,220 @@
%cancel-button {
background-color: $gray-light;
&:hover {
background-color: $gray-light;
}
}
body {
line-height: 1.4;
}
// forms
label {
color: $red;
}
input, select, textarea {
&[readonly] {
border-bottom-color: $font-color;
background-color: transparent;
}
}
//
// HEADER
//
// hide default site-header logo
// if user use headerLogo placeholder
.site-header--logo > .cell + #logo {
display: none;
}
// hide default site-header title
// if user use headerTitle placeholder
.site-header--title > .cell + h1 {
display: none;
}
div#header h1 {
padding-left: 0;
background-position: 0;
}
#top {
display: flex;
align-items: center;
padding: .7rem;
padding-top: 2.5rem;
@media ($max-mobile-viewport) {
padding-left: $nav-menu-side + 10;
flex-wrap: wrap;
}
}
.site-header--logo {
margin-right: 2em;
@media ($min-desktop-viewport) {
flex: 1 0 auto;
}
}
//hide #logo if no image defined
#logo a:not(.has-logo) {
display: none;
}
// logo size
#logo a,
.site-header--logo img {
height: 100px !important;
width: auto !important;
display: block;
}
.site-header--logo .text-cell {
*:not(img) {
margin: 0;
padding: 0;
}
&.empty-cell {
display: none;
}
}
// title
.site-header--title {
@media ($min-desktop-viewport) {
flex: 1 1 100%;
text-align: center;
}
h1 {
font-size: 1.5rem;
font-weight: 600;
padding: .5em 0;
@media ($min-desktop-viewport) {
font-size: 2rem;
}
}
}
//
// USER LINKS
//
#toplinks {
//reset
border: none;
box-shadow: none;
border-radius: 0;
line-height: 1;
padding: .33em;
@media ($min-desktop-viewport) {
padding: .5em;
}
a {
color: #6e6e6e;
// sep
&:not(:last-child) {
&::after {
content: "";
width: 1px;
height: 1.5em;
background-color: $red;
display: inline-block;
margin: 0 .66em;
vertical-align: middle;
}
}
}
.sep {
display: none;
}
}
//
// NAV
//
@media ($min-desktop-viewport) {
div.gru-nav {
line-height: $nav-height;
}
}
//
// MAIN
//
main {
margin-top: 1.5rem;
}
//
// WCS
//
div#rub_service, #gauche {
background-color: $cell-background;
padding: 1em;
}
div#tracking-code {
text-align: center;
h3 {
font-size: 1rem;
margin: 0.33em;
padding: 0;
> a {
padding: 0.5em 0;
font-size: 1.4em;
}
}
// delet draft button
button {
margin-right: 0;
}
}
.wcs-steps--list {
justify-content: center;
@media ($mq-min--wcs-steps-horizontal-layout) {
text-align: center;
}
@include desktop-vertical-steps() {
text-align: left;
}
}
.wcs-step {
justify-content: center;
}
.wcs-step--label {
text-align: inherit;
}
div#rub_service {
h2 {
font-size: 2em;
padding-left: 0.5rem;
}
h3 {
font-size: 1.5em;
font-weight: normal;
}
div.error {
@extend .errornotice;
font-weight: normal;
min-height: 1.5em;
margin-bottom: 0;
&::before {
font-size: 30px;
top: 0;
}
}
.previous-button button {
@extend %cancel-button;
}
}
ul#evolutions div.evolution-metadata,
ul#evolutions li div.msg {
background-color: $gray-light;
}
// Footer
// hide hautes-alpes-cd05-2020 default footer logo
.footer-logo {
display: none;
}

View File

@ -0,0 +1,45 @@
$red: #B73720;
$orange: #ecb500;
$orange-light: #FFCB20;
$gray-dark: #202020;
$gray-light: #efefef;
$primary-color: $red;
$width: 1170px;
$font-family: Asap, sans-serif;
$font-color: $gray-dark;
$link-color: $primary-color;
$nav-background: $gray-light;
$nav-full-width-background: true;
$nav-color: $font-color;
$nav-active-color: $red;
$nav-item-selected-color: $nav-active-color;
$nav-item-selected-background: transparent;
$nav-height: 4.5em;
$nav-submenu-color: $font-color;
$nav-button-background: transparent;
$nav-button-color: $nav-active-color;
$title-background: transparent;
$title-font-size: 1.5rem;
$title-weight: 500;
$cell-background: $gray-light;
$cell-border: none;
// $cell-entry-color: $font-color;
$cell-entry-hover-background: fade-out($red, 0.9);
$button-background: $orange;
$button-hover-background: $orange-light;
$button-color: $font-color;
$button-border: none;
$button-border-radius: 8px;
$buttons-order: cancel, previous, submit;
$buttons-alignment: flex-end;
$or-separator: false;
$footer-background: $font-color;
$footer-color: white;
$footer-menucell-separator: 1px solid;

View File

@ -0,0 +1,16 @@
{
"label": "Hautes-Alpes Territoire",
"variables": {
"theme_color": "#cccccc",
"email_header_asset": "emails:logo"
},
"settings": {
"combo": {
"COMBO_ASSET_SLOTS.update": {
"header:logo": { "label": "Têtière : logo" },
"emails:logo": {"label": "Emails : logo"}
}
}
}
}

View File

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

View File

@ -0,0 +1,16 @@
{% extends 'combo/page_template.html' %}
{% load assets %}
{% block header-title %}
{% get_asset "header:logo" as header_logo %}
<div class="site-header--logo">
{% placeholder "headerlogo" name="Logo entête" %}
{% if header_logo %}
{{ block.super }}
{% endif %}
</div>
<div class="site-header--title">
{% placeholder "headertitle" name="Titre entête" %}
<h1>{% firstof global_title site_title "Compte Citoyen" %}</h1>
</div>
{% endblock %}