croix: create theme (#74056) #164
|
@ -0,0 +1,264 @@
|
|||
// typo
|
||||
h1, h2, h3, h4, h5 {
|
||||
color: $blue-2;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
// Header / nav
|
||||
.site-header {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#top {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
@media($max-mobile-viewport) {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.has-logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
@media($max-mobile-viewport) {
|
||||
#logo.has-logo {
|
||||
padding-left: 0;
|
||||
a::before {
|
||||
width: 104px;
|
||||
height: 43px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#toplinks {
|
||||
position: static;
|
||||
align-self: center;
|
||||
flex-grow: 0;
|
||||
|
||||
.login, .logged-in {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
a {
|
||||
@extend %button;
|
||||
margin: 0 5px;
|
||||
|
||||
@media ($max-mobile-viewport) {
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.gru-nav-wrapper {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
div.gru-nav .gru-nav-button {
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 13px;
|
||||
|
||||
.icon-bar {
|
||||
height: 5px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
&:not(.toggled) .icon-bar-3 {
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
div.gru-nav {
|
||||
@media($min-desktop-viewport) {
|
||||
.menu {
|
||||
margin-top: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
&--link {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
&--label {
|
||||
text-transform: uppercase;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: end;
|
||||
font-weight: 600;
|
||||
|
||||
&::after {
|
||||
background: $blue-2;
|
||||
height: 3px;
|
||||
width: 0;
|
||||
|
||||
content: "";
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
&:hover::after {
|
||||
width: 40px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.submenu {
|
||||
&--item {
|
||||
margin: 1rem 2rem;
|
||||
}
|
||||
|
||||
&--link {
|
||||
display: list-item;
|
||||
margin-left: 1rem;
|
||||
padding: 0;
|
||||
list-style: disc outside;
|
||||
font-weight: normal;
|
||||
|
||||
&:hover {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media($max-mobile-viewport) {
|
||||
.gru-nav-button + ul,
|
||||
.gru-nav-button + ul li:last-child {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// content
|
||||
.gru-content div.cell.foldable {
|
||||
h2:first-child {
|
||||
border-bottom: 1px solid $blue-1;
|
||||
background: $gray-1;
|
||||
color: $blue-1;
|
||||
font-size: 1.25rem;
|
||||
text-transform: uppercase;
|
||||
text-shadow: none;
|
||||
|
||||
&::after {
|
||||
width: auto;
|
||||
height: auto;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
links-list {
|
||||
transition: all 0.2s;
|
||||
}
|
||||
}
|
||||
|
||||
&.folded > div > h2:first-child::after {
|
||||
content: $cell-close-foldable-icon;
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
|
||||
%cell-links-list {
|
||||
> li > a {
|
||||
margin: 10px 0px;
|
||||
padding: 8px 24px;
|
||||
background: $gray-2;
|
||||
border-radius: $border-radius-1;
|
||||
transition: all ease 0.3s;
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div#footer {
|
||||
hr {
|
||||
border: 1px solid white;
|
||||
}
|
||||
|
||||
div.links-list ul li a,
|
||||
div.menucell li a {
|
||||
background: none;
|
||||
}
|
||||
|
||||
%button {
|
||||
border: 2px solid white;
|
||||
}
|
||||
}
|
||||
|
||||
.text-cell {
|
||||
h1, h2:not(:first-child) {
|
||||
margin: 1.5em 1rem -20px 0;
|
||||
padding-bottom: 30px;
|
||||
position: relative;
|
||||
color: $blue-2;
|
||||
font-weight: normal;
|
||||
text-shadow: $text-shadow-1;
|
||||
|
||||
&::before {
|
||||
width: 100%;
|
||||
height: 4.2em;
|
||||
position: absolute;
|
||||
top: -1.7em;
|
||||
z-index: -1;
|
||||
background: top left / contain no-repeat url("img/title-image.svg");
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
@extend %title;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// widgets
|
||||
.form-content--title {
|
||||
background: $blue-1;
|
||||
text-shadow: none;
|
||||
font-size: $font-size-2;
|
||||
color: white;
|
||||
text-transform: uppercase;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
|
||||
@media($min-desktop-viewport) {
|
||||
width: fit-content;
|
||||
margin-left: -50vw;
|
||||
padding: 20px 60px 20px 50vw;
|
||||
}
|
||||
}
|
||||
|
||||
%button {
|
||||
box-shadow: none;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover {
|
||||
box-shadow: none;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
}
|
||||
|
||||
.pk-dark-button {
|
||||
@extend %button;
|
||||
background: $blue-1;
|
||||
|
||||
&:hover {
|
||||
background: $blue-1;
|
||||
}
|
||||
}
|
||||
|
||||
.field--label {
|
||||
font-weight: 700;
|
||||
|
||||
.required {
|
||||
color: $red-1;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,85 @@
|
|||
// colors
|
||||
$blue-1: #0B2A42;
|
||||
$blue-2: #217DC6;
|
||||
$gray-1: lightgray;
|
||||
$gray-2: #f5f5f5;
|
||||
$red-1: #c02b0a;
|
||||
|
||||
$border-radius-1: 4px;
|
||||
|
||||
$font-poppins: 'Poppins', sans-serif;
|
||||
|
||||
$text-shadow-1: 2px 2px 0 rgba(33,125,198,0.35);
|
||||
|
||||
// typo
|
||||
$primary-color: $blue-2;
|
||||
|
||||
$font-family: $font-poppins;
|
||||
$font-color: $blue-1;
|
||||
$font-size: 0.875rem;
|
||||
$font-size-1: 4rem;
|
||||
$font-size-2: 2.75rem;
|
||||
$font-size-3: 2.3rem;
|
||||
$font-size-4: 1.6rem;
|
||||
|
||||
$link-color: $blue-2;
|
||||
$link-decoration: underline;
|
||||
$footer-link-color: white;
|
||||
|
||||
$title-color: $blue-2;
|
||||
$title-background: transparent;
|
||||
$title-font-style: normal !default;
|
||||
$title-font-size: $font-size-4;
|
||||
$title-weight: bold;
|
||||
$title-transform: uppercase;
|
||||
$title-border-radius: none;
|
||||
|
||||
// header& nav
|
||||
$header-background-color: white;
|
||||
$width: 1200px;
|
||||
$header-logo-size: 184px 76px;
|
||||
$toplinks-style: none;
|
||||
|
||||
$nav-color: $blue-1;
|
||||
$nav-item-hover-color: $blue-2;
|
||||
$nav-item-selected-background: transparent;
|
||||
$nav-item-selected-color: $blue-1;
|
||||
$nav-submenu-background: $blue-1;
|
||||
$nav-submenu-color: white;
|
||||
$nav-background: white;
|
||||
$nav-button-background: white;
|
||||
$nav-menu-side: 35px;
|
||||
$nav-button-color: $blue-2;
|
||||
|
||||
$nav-mobile-menu-background: white;
|
||||
$nav-mobile-menu-item-color: $blue-1;
|
||||
|
||||
// cells
|
||||
$cell-background: transparent;
|
||||
$cell-border: none;
|
||||
$cell-border-radius: 0;
|
||||
$cell-color: black;
|
||||
|
||||
$cell-title-cover-border: true !default;
|
||||
$cell-entry-font-weight: 600;
|
||||
$cell-entry-hover-color: white;
|
||||
$cell-entry-hover-background: $blue-2;
|
||||
$cell-entry-border: none;
|
||||
|
||||
// widgets
|
||||
|
||||
$form-accent-color: null !default;
|
||||
$error-color: red !default;
|
||||
$button-background: $blue-2;
|
||||
$button-color: white;
|
||||
$button-border: 1px solid transparent !default;
|
||||
$button-hover-background: $blue-2;
|
||||
$button-hover-color: white;
|
||||
$button-border-radius: $border-radius-1;
|
||||
$cancel-button-style: ".pk-dark-button";
|
||||
$buttons-order: previous, cancel (grow), submit;
|
||||
|
||||
$widget-border: 1px solid $blue-1;
|
||||
$widget-border-radius: $border-radius-1;
|
||||
|
||||
$footer-background: $blue-2;
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"label": "Croix",
|
||||
"variables": {
|
||||
"theme_color": "#018B9D",
|
||||
"email_header_asset": "emails:logo"
|
||||
},
|
||||
"settings": {
|
||||
"combo": {
|
||||
"COMBO_ASSET_SLOTS.update": {
|
||||
"header:background": { "label": "Têtière : fond" },
|
||||
"header:logo": { "label": "Têtière : logo" },
|
||||
"emails:logo": { "label": "Emails : logo" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
<svg id="b15323be-8c30-4404-98c4-dad8b102b7d7" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" width="72.6" height="130" viewBox="0 0 72.6 130"><path id="fb8621d0-407e-452d-aa80-f4a5c15fb802" data-name="Tracé 698" d="M72.6,0,26.73,53.82,0,22.53V44.88L17.17,65,0,85.12v22.35L26.73,76.18,72.6,130V107.56L36.21,65,72.6,22.35Z" style="fill:#217dc6;isolation:isolate;opacity:0.12399999797344208"/></svg>
|
After Width: | Height: | Size: 407 B |
|
@ -0,0 +1,7 @@
|
|||
@charset "UTF-8";
|
||||
|
||||
@import '../includes/fonts/poppins';
|
||||
|
||||
@import 'vars';
|
||||
@import '../includes/publik';
|
||||
@import 'custom';
|
Loading…
Reference in New Issue