Files
grav-ouidade.com/user/themes/ouidade/scss/styles.scss
T

877 lines
21 KiB
SCSS

@import '../bower_components/foundation/scss/normalize.scss';
@import "_settings.scss";
@import '../bower_components/foundation/scss/foundation.scss';
@import '../bower_components/foundation/scss/foundation/components/_global.scss';
@import '../bower_components/foundation/scss/foundation/components/_grid.scss';
$column-gutter: rem-calc(15);
// colors
$maincolor: #5b2d87;
$secondcolor: #e30613;
$cat1: #e30613;
$cat2: #00acba;
$cat3: #5b2d87;
$cat4: #f7a939;
$cat5: #95c11f;
$cat6: #e5007d;
$cat7: #009641;
$cat8: #009fe3;
$catRadius: 12px;
// $font: "CiutadellaRounded", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
$font: "cocogoose", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
@mixin fontbold{
// TODO : media query
font: $font; font-size:0.95em; font-weight:500; font-variant: normal;
}
@mixin fontnormal{
// TODO : media query
font: $font; font-size:0.8em; font-weight:300; font-variant: normal;
}
body{
font-family: $font;
letter-spacing: 1px;
font-weight: 300;
font-variant: normal;
color: $maincolor;
}
h1,h2,h3,h4,h5,h6{font-family: $font;}
a, a:hover{color:inherit;}
ul,li{padding:0; margin:0; list-style: none;}
// @media $large-up {
// .row.fullwidth{width:1200px;}
// }
#container{
display: block; position: relative;
min-height: 100vh;
}
@media #{$medium-up}{
.row{width:41rem;}
}
@media #{$large-up}{
.row{width:62rem;}
}
@media #{$xlarge-up}{
.row{width:83rem;max-width:83rem;}
}
// @media #{$xxlarge-up}{
// .row{width:125rem;max-width:125rem;}
// }
/*
_ _ _
| | | | | |
| |__| | ___ __ _ __| | ___ _ __
| __ |/ _ \/ _` |/ _` |/ _ \ '__|
| | | | __/ (_| | (_| | __/ |
|_| |_|\___|\__,_|\__,_|\___|_|
*/
$headerborderH: 0.3em;
$headerpaddingtopH:0.9em;
$logoH: 9.3em;
$logo_mt:0.3em;
$logo_mb:0.5em;
$titleareaH: $logoH+$logo_mb+$logo_mt;
$titleReducedFactor:0.7;
$titleReducedFactorSmall:0.5;
$centerpaddingtop: $headerborderH+$headerpaddingtopH+$titleareaH;
$footerheight: 5em;
$centerpaddingbottom:$footerheight+1em;
header#top-bar{
position: fixed; top:0;
width:100%;
// TODO: flou sous le haeder
z-index: 9;
// &:before{
// content:"";
// background: transparent!important;
// border-top: $headerborderH solid $maincolor;
// display: block;
// padding-bottom: $headerpaddingtopH;
// }
>.bg{
padding-top: $headerpaddingtopH;
background-color: rgba(255, 255, 255, 0.95);
>.row{
position:relative; display:block;
padding:0 0.7em;
// box-sizing: border-box;
}
}
#title-area{
// overflow: hidden;
position:relative;
height:$titleareaH;
transition: height 0.4s ease-in-out;
h1{
font-size: 1em; margin: 0;
height:100%;
// min-height:$titleareaH*0.8;
overflow: hidden;
position: relative;
a{display: block;
height:$logoH;
margin:$logo_mt 0 $logo_mb;
color:$secondcolor;
transition-property: color, font-size;
transition-duration: 0.4s;
transition-timing-function: ease-out;
// transition: color 0.4s ease-out;
@include fontnormal;
font-weight: 500;
&:before{
content:"";
display: block;
$r: 95px;
width:$r; height:$r;
border-radius: $r/2;
border: $r/5.5 solid $maincolor;
transition-property: width, height, border-radius, border-color, border-width;
transition-duration: 0.4s;
transition-timing-function: ease-out;
// transition: border-color 0.4s ease-out;
margin: 0 auto 1em;
}
}
}
&:hover{
h1 a{
color: $maincolor;
transition-duration: 0.2s;
transition-timing-function: ease-in-out;
// transition: color 0.2s ease-in-out;
&:before{
border-color:$secondcolor;
transition-duration: 0.2s;
transition-timing-function: ease-in-out;
// transition: border-color 0.2s ease-in-out;
}
}
}
}
&.reduced{
#title-area{
height:$titleareaH*$titleReducedFactor;
h1 a:before{
$r: 50px;
width:$r; height:$r;
border-radius: $r/2;
border-width: $r/5.5;
}
// @media #{$medium-up}{
// height:$titleareaH*$titleReducedFactorSmall;
// }
}
}
h1, h2{
text-align: center;
a{
color: inherit;
}}
// .nav{
// padding:0;
// position:relative;
// height:100%;
// ul{padding: 0; margin: 0;}
// li{list-style: none;}
// // @include breakpoint(medium) {
// @media screen and (min-width:$small-breakpoint) {
// .wrapper{padding-top: $titleareaH/2-.5em;}
// }
// }
// #left-nav{
// // margin-right: -0.1rem;
// text-align: left;
//
// h4{
// @include fontnormal; margin:0; line-height: 1.9;
// a{color:$maincolor;}
// // a:hover{text-decoration: underline;}
// }
// ul{background-color: transparent; padding-bottom: 1em;}
// li{
// line-height: 1;
// // &:not(.active){
// overflow: hidden; height:0.01px; transition: height 0.3s ease-in;
// // }
// position: relative;
// // line-height: $catRadius;
// // min-width:$catRadius; height:$catRadius;
// a{
// display: block;
// &:before{
// content:"";
// opacity: 1;
// position: relative;
// display:inline-block;
// border-width: 3px;
// border-style: solid;
// // line-height: $catRadius;
// width:$catRadius; height:$catRadius;
// border-radius: $catRadius/2;
// }
// &.tag-1:before{ border-color: $cat1;}
// &.tag-2:before{ border-color: $cat2;}
// &.tag-3:before{ border-color: $cat3;}
// &.tag-4:before{ border-color: $cat4;}
// &.tag-5:before{ border-color: $cat5;}
// &.tag-6:before{ border-color: $cat6;}
// &.tag-7:before{ border-color: $cat7;}
// &.tag-8:before{ border-color: $cat8;}
// span{
// // position: absolute;
// // z-index: -1;
// // font-size: 0.7em;
// @include fontnormal;
// font-weight: 300;
// white-space: nowrap;
// // opacity: 0;
// // transition: opacity 0.3s ease-in-out;
// padding:0.15em 0.3em;
// // width:0;
// }
// // &:hover{
// // span{ opacity: 1; width:auto; z-index: 10;}
// // }
// }
// // &.active span{
// // display:inline-block;
// // position:relative;
// // &:after{
// // content: ""; height:0;
// // display: block; margin-top:-.7em; margin-bottom:.7em;
// // border-top:0.5em solid $maincolor;}
// // }
// }
// @media #{$medium-up}{
// &:hover{
// li{
// height:1.1em; transition: height 0.5s ease-out;
// &:hover span{
// // border-bottom: 1px solid #000;
// text-decoration: underline;
// }
// }
// }
// }
// }
// #right-nav{
// text-align: right;
// // margin-left: -0.1rem;
// line-height:0.5;
// a{@include fontnormal;}
// a:hover{@include fontnormal; text-decoration: underline;}
// }
div.line{
// position: absolute;
bottom: 0;
height: 1px;
// width: 100%;
// box-sizing: border-box;
content:" ";
border-bottom: 1px solid $secondcolor;
}
}
/*
_____ _
/ ____| | |
| | ___ _ __ | |_ ___ _ __
| | / _ \ '_ \| __/ _ \ '__|
| |___| __/ | | | || __/ |
\_____\___|_| |_|\__\___|_|
*/
@mixin catlist {
// line-height: 0.5;
// outline: 1px solid red;
margin:0;
ul{
margin: 0;
line-height: 1.2;
// outline: 1px solid blue;
li{
// line-height: 0.5;
// outline: 1px solid green;
position: relative;
display: inline-block;
// line-height: $catRadius;
min-width:$catRadius;
// height:$catRadius;
margin-right: -0.2em;
a{
// outline: 1px solid purple;
display: block;
overflow: hidden;
white-space: nowrap;
font-size: 0;
max-width: 15px;
transition: max-width 0.3s ease-in-out;
&:not(.active):before{
content:"";
opacity: 1;
position: relative;
display:inline-block;
vertical-align: middle;
border-width: 3px;
border-style: solid;
// line-height: $catRadius;
width:$catRadius; height:$catRadius;
border-radius: $catRadius/2;
// line-height: 10px;
}
&.active:before{
content: "\d7"; /* use the hex value here... \274c */
// font-weight: bold;
font-size: 35px;
line-height: 0.4;
width:$catRadius; height:$catRadius;
position: relative;
display:inline-block;
vertical-align: middle;
// outline: 1px solid red;
color: #000;
}
&.tag-1:before{ border-color: $cat1; color:$cat1; }
&.tag-2:before{ border-color: $cat2; color:$cat2; }
&.tag-3:before{ border-color: $cat3; color:$cat3; }
&.tag-4:before{ border-color: $cat4; color:$cat4; }
&.tag-5:before{ border-color: $cat5; color:$cat5; }
&.tag-6:before{ border-color: $cat6; color:$cat6; }
&.tag-7:before{ border-color: $cat7; color:$cat7; }
&.tag-8:before{ border-color: $cat8; color:$cat8; }
span{
// outline: 1px solid orange;
display: inline-block;
vertical-align: middle;
letter-spacing: normal;
font-size: 11px;
font-weight: 300;
// line-height: 2;
background-color: #fff;
white-space: nowrap;
opacity: 0;
transition: opacity 0.3s ease-in-out;
padding:1px 5px 0 1px;
}
// &:hover{
// max-width:300px;
// span{
// opacity: 1;
// }
// }
}
}
}
}
div#center{
padding-top:$centerpaddingtop;
padding-bottom: $centerpaddingbottom;
.columns{
padding: 0;
}
p{
line-height:1.5;
position:relative;
@include fontnormal;
span.stab{
display:inline-block; position:relative;
font-weight:bold;
}
a{
text-decoration: underline;
}
}
/*
* LIST PROJET
*/
.projet-block{
padding:0.7em 0.7em 2em;
text-align: left;
nav.categories{
@include catlist;
}
a.image-link{
display: block;
overflow: hidden;
img{
transition: transform 0.4s ease-out;
// &:hover{
// transition: transform 0.2s ease-in-out;
// transform-origin: center;
// transform: scale(1.2);
// }
}
}
header{
position:relative;
// margin-top:0;padding-top:0;
margin-top: -3em; padding-top: 3.5em; padding-bottom: 0.7em;
// transition:background-color 0.3s ease-in;
}
header>*{
font-family: $font;
// text-align: center;
padding:0; margin:0;
}
h1{
@include fontbold;
color: $maincolor;
transition: color 0.4s ease-out;
margin:0.4em 0 0.5em 0;
line-height: 1.6;
height:auto;
span.date{
font-weight: 200;
border-left: 1px solid $maincolor;
transition: border-left-color 0.4s ease-out;
padding:0.2em 0 0 0.5em;
margin-left: 0.2em;
}
}
h2{
@include fontnormal;
margin:0.4em 0 0;
line-height: 1;
a{color: $maincolor;}
}
&.projet-block-text{
text-align: left;
h1{margin-bottom: 0.3em;}
h2{
// font-weight:bold;
@include fontbold;
margin-bottom: 0.3em;
}
}
&:hover{
nav.categories a{
max-width:300px;
span{
opacity: 1;
}
}
a.image-link img{
transition: transform 0.3s ease-out;
transform-origin: center;
transform: scale(1.2);
}
header h1, header h2 a{
color:$secondcolor;
transition: color 0.2s ease-in-out;
}
header h1 span.date{
border-left-color: $secondcolor;
transition: border-left-color 0.2s ease-in-out;
}
}
}
/*
* PAGE PROJET
*/
.projet{
.row{margin:0;}
nav.categories{
@include catlist;
padding:0.7em 0.7em 0;
ul li a{
max-width: 500px;
span{
opacity:1;
}
}
}
h1{
@include fontbold;
color: $maincolor;
margin:0.4em 0 0.5em 0;
padding:0 0.7em;
line-height: 1.6;
height:auto;
span.date{
font-weight: 200;
border-left: 1px solid $maincolor;
padding:0.2em 0 0 0.5em;
margin-left: 0.2em;
}
}
h2{
@include fontnormal;
margin:0.3em 0 0.7em;
padding:0 0.7em;
line-height: 1;
color:$maincolor;
a{color: $maincolor;}
}
p{padding:0 0.7em 0.7em; margin:0;}
#images{
max-width: 100%;
// .row{margin:0;}
// .block{padding:0.7em;}
letter-spacing: 0px;
a{
// box-sizing: 100%;
max-width: calc(100% - 1em);
letter-spacing: normal;
display: inline-block;
margin:0.4em 0 0 0.5em;
overflow: hidden;
&:hover img{
transition: transform 0.4s ease-out;
transform-origin: center;
transform: scale(1.2);
}
}
}
img{
// width:100%;
// max-width:100%;
height:300px;
transition: transform 0.4s ease-out;
@media #{$small-only}{
max-width: 100%;
height: auto;
}
}
}
.default{
>*{padding-left:0.7em;padding-right:0.7em;}
}
// body.projet{
// nav.categories{
// ul.tags li a:hover span{
// text-decoration: underline;
// }
// }
// }
/*
* Catégories
*/
// body
nav.categories{
margin: 1em 0 0;
ul.tags{
margin:0; padding:0; text-align:center;
li{
list-style: none; display:inline-block;
margin:0 0.3em;
a{
display:block;
// &:hover{text-decoration: underline;}
&:not(.active):before{
content:"";
opacity: 1;
position: relative;
display:inline-block;
vertical-align: middle;
border-width: 3px;
border-style: solid;
// line-height: $catRadius;
width:$catRadius; height:$catRadius;
border-radius: $catRadius/2;
}
&.active:before{
content: "\d7"; /* use the hex value here... \274c */
// font-weight: bold;
font-size: 35px;
line-height: 0.4;
width:$catRadius; height:$catRadius;
position: relative;
display:inline-block;
vertical-align: middle;
// outline: 1px solid red;
color: #000;
}
&.tag-1:before{ border-color: $cat1; color:$cat1; }
&.tag-2:before{ border-color: $cat2; color:$cat2; }
&.tag-3:before{ border-color: $cat3; color:$cat3; }
&.tag-4:before{ border-color: $cat4; color:$cat4; }
&.tag-5:before{ border-color: $cat5; color:$cat5; }
&.tag-6:before{ border-color: $cat6; color:$cat6; }
&.tag-7:before{ border-color: $cat7; color:$cat7; }
&.tag-8:before{ border-color: $cat8; color:$cat8; }
}
span{
@include fontnormal;
display:inline-block;
vertical-align: middle;
padding:1px 5px 0 1px;
}
&.active span{
// display:inline-block;
// position:relative;
// font-weight: bold;
// @include fontbold;
// border-bottom: 1px solid #000;
// line-height: 0.2;
// &:after{
// content: ""; height:0;
// display: block; margin-top:-0.2em; margin-bottom:0.2em;
// border-top:0.5em solid $maincolor;}
}
}
}
}
// #diaporama{
// position:relative;
// height:20vw;
// margin:0 0 1.5em;
// >*{
// position:absolute; top:0; left:0;
// height:100%; width:100%;
// text-align: center;
// opacity:0;
// transition: opacity 0.2s ease-in;
// &.visible{opacity:1;}
//
// img{height:100%;}
// }
// }
// .client-block{
// margin:0 0 1em;
// padding:0.7em;
// h3{
// @include fontbold;
// line-height:0.6; display:inline-block; position:relative;
// margin:0; padding:0;
// // $maincolor overline
// // &:after{
// // content: "";
// // display: block; margin-top:-.5em; margin-bottom:.5em;
// // border-top:0.5em solid $maincolor;
// // transition:border-color 0.3s ease-in;
// // }
// }
// h4{
// margin:0;
// @include fontnormal;
// a:hover{text-decoration: underline;}
// }
//
// }
}
/*
_ _ _
(_) | | | |
_ __ ___ ___ _ __ ___ _ __ ___ ___ _____ | | __ _ _ _ ___ _ _| |_
| '__/ _ \/ __| '_ \ / _ \| '_ \/ __| \ \ / / _ \ | |/ _` | | | |/ _ \| | | | __|
| | | __/\__ \ |_) | (_) | | | \__ \ |\ V / __/ | | (_| | |_| | (_) | |_| | |_
|_| \___||___/ .__/ \___/|_| |_|___/_| \_/ \___| |_|\__,_|\__, |\___/ \__,_|\__|
| | __/ |
|_| |___/
*/
@media #{$small-only}{
header#top-bar{
&:before{
padding-bottom: $headerpaddingtopH*0.3;
}
#title-area{
height:$titleareaH - 3em;
// padding-top: $headerpaddingtopH;
h1{
height:100%;
min-height:($titleareaH - 7em)*0.8;
a{display: block;
height:$logoH - 3em;
// height:100%;
}
a:before{
$r: 60px;
width:$r; height:$r;
border-radius: $r/2;
border-width: $r/5.5;
}
}
}
&.reduced{
#title-area{
height:($titleareaH - 3.1em)*$titleReducedFactor;
// overflow: hidden;
h1{
font-size: 0.65em;
a:before{
$r: 30px;
width:$r; height:$r;
border-radius: $r/2;
border-width: $r/5.5;
}
}
}
}
// .nav{
// position:absolute;
// top:$headerborderH+$headerpaddingtopH*0.5;
// height:auto;
// }
// #left-nav{left:0;}
// #right-nav{right:0;}
}
div#center{
padding-top:$centerpaddingtop - 3.1em;
padding-bottom: $centerpaddingbottom;
}
body.categories{
a.projet-img{
display:none;
}
}
}
/*
__ _
/ _| | |
| |_ ___ ___ | |_ ___ _ __
| _/ _ \ / _ \| __/ _ \ '__|
| || (_) | (_) | || __/ |
|_| \___/ \___/ \__\___|_|
*/
footer#bottom-bar{
position:absolute; bottom:0;
width:100%; height:$footerheight;
background-color: $maincolor;
transition: background-color 0.4s ease-out;
color: white;
text-align: center;
padding:0.5em 0;
// margin: 5vh 0 0;
&:hover{
background-color: $secondcolor;
transition: background-color 0.2s ease-in-out;
}
h1{
@include fontbold; height:auto; display:inline-block; position:relative; margin:0;
color: inherit;
font-size: 0.75em;
a{
font-weight: inherit;
color: inherit;
}
// &:after{
// content: ""; height:0;
// display: block; margin-top:-.9em; margin-bottom:1em;
// border-top:0.5em solid #fff;
// transition:border-color 0.3s ease-in;}
}
address{
// font-size: 1em; font-weight: normal;
@include fontnormal;
font-size: 0.6em;
margin:-0.7em 0 0; line-height: 1.1; font-style: normal;
a{text-decoration: underline;}
}
ul.footer-menu{
text-align: center;
li{
display:inline-block;
a{
font-size: 0.6em;
}
}
}
}
div.featherlight:last-of-type{
background-color: rgba(255,255,255,0.9);
div.featherlight-content{
background: none;
span.featherlight-next, span.featherlight-previous{
// left:90%;
// outline: 1px solid red;
&:hover{
background: none;
}
span{
// outline: 1px solid green;
color:$maincolor;
text-shadow: none;
visibility: hidden;
position: relative;
left:0; right:0;
width:100%;
&:after{
// outline: 1px solid purple;
content:">";
display: block;
visibility: visible;
position: absolute;
top:0; width:100%;
text-align: right;
padding:0 0.5em;
// @include font;
font-weight: 500;
font-size: 1.2em;
}
}
}
span.featherlight-previous{
// left:25px;
// right:90%;
span{
&:after{
content:"<";
text-align: left;
}
}
}
}
}