123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690 |
- @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.7555;
- $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;
- @include fontnormal;
- font-weight: 500;
- &:before{
- content:"";
- display: block;
- $r: 95px;
- width:$r; height:$r;
- border-radius: $r/2;
- border: 17px solid $maincolor;
- margin: 0 auto 1em;
- }
- }
- }
- }
- &.reduced{
- #title-area{
- height:$titleareaH*$titleReducedFactor;
- // @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;
- }
- }
- /*
- _____ _
- / ____| | |
- | | ___ _ __ | |_ ___ _ __
- | | / _ \ '_ \| __/ _ \ '__|
- | |___| __/ | | | || __/ |
- \_____\___|_| |_|\__\___|_|
- */
- div#center{
- padding-top:$centerpaddingtop;
- padding-bottom: $centerpaddingbottom;
- .columns{
- padding: 0;
- }
- p{
- line-height:1.5;
- // display:inline-block;
- position:relative;
- @include fontnormal;
- span.stab{
- display:inline-block; position:relative;
- font-weight:bold;
- // &:after{
- // content: ""; height:0;
- // display: block; margin-top:-1em; //margin-bottom:.9em;
- // border-top:0.5em solid $maincolor;
- // // transition:border-color 0.3s ease-in;}
- // }
- }
- a{
- text-decoration: underline;
- }
- }
- /*
- * LIST PROJET
- */
- .projet-block{
- padding:0.7em 0.7em 2em;
- text-align: left;
- nav.categories{
- margin:0;
- ul{
- margin: 0;
- li{
- position: relative;
- display: inline-block;
- // line-height: $catRadius;
- min-width:$catRadius; height:$catRadius;
- margin-right: -0.2em;
- 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;
- font-weight: 300;
- background-color: #fff;
- white-space: nowrap;
- opacity: 0;
- transition: opacity 0.3s ease-in-out;
- padding:0.2em 0.3em;
- width:0;
- }
- &:hover{
- span{ opacity: 1; width:auto; z-index: 10;}
- }
- }
- }
- }
- }
- a.image-link{display: block;}
- 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;
- margin:0.4em 0 0.5em 0;
- line-height: 1.6;
- height:auto;
- span.date{
- font-weight: 200;
- border-left: 1px solid $maincolor;
- // font-size: 0.7em;
- // line-height: 0.5;
- // &:before{
- // content: "|";
- padding:0.2em 0 0 0.5em;
- margin-left: 0.2em;
- // display: inline-block;
- // }
- }
- }
- 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{
- // header{
- // background-color: rgba($maincolor, 0.7); transition-timing-function: ease-out;
- // h1:after{border-top:0.5em solid #FFF;transition-timing-function: ease-out;}
- // }
- }
- }
- /*
- * PAGE PROJET
- */
- .projet{
- .row{margin:0;}
- h1{
- @include fontbold;
- margin:0; padding:0 0.7em; line-height: 1;
- display: inline-block;
- // &:after{
- // content: "";
- // display: block; margin-top:-.7em; margin-bottom:.7em;
- // border-top:0.5em solid $maincolor;
- // transition:border-color 0.3s ease-in;}
- }
- h2{@include fontnormal; margin:-0.2em 0 0.7em; line-height: 1; padding:0 0.7em;}
- // .block{
- // display: inline-block;
- // }
- p{padding:0 0.7em 0.7em; margin:0;}
- #images{
- // .row{margin:0;}
- // .block{padding:0.7em;}
- letter-spacing: 0px;
- a{
- letter-spacing: normal;
- display: inline-block;
- margin:0 1em 1em 0;
- }
- }
- img{
- // width:100%;
- max-width:100%;
- height:300px;
- }
- }
- .default{
- >*{padding-left:0.7em;padding-right:0.7em;}
- }
- body.projet{
- nav.categories{
- ul.tags li a:hover span{
- text-decoration: underline;
- }
- }
- }
- /*
- * Catégories
- */
- nav.categories{
- margin: 1em 0;
- ul.tags{
- margin:0; padding:0; text-align:center;
- li{
- list-style: none; display:inline-block;
- margin:0 1em;
- a{
- display:block;
- // &:hover{text-decoration: underline;}
- }
- span{@include fontnormal;}
- &.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.5;
- }
- #title-area{
- height:$titleareaH -3.1em;
- // padding-top: $headerpaddingtopH;
- h1{
- height:100%;
- min-height:($titleareaH - 3.1em)*0.8;
- a{display: block;
- height:$logoH - 3em;
- // height:100%;
- }
- }
- }
- &.reduced{
- #title-area{
- height:($titleareaH - 3.1em)*$titleReducedFactor;
- // overflow: hidden;
- }
- }
- .nav{
- position:absolute;
- top:$headerborderH+$headerpaddingtopH*0.5;
- height:auto;
- }
- #left-nav{left:0;}
- #right-nav{right:0;}
- }
- div#center{
- padding-top:$centerpaddingtop - 1.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;
- color: white;
- text-align: center;
- padding:1em 0;
- // margin: 5vh 0 0;
- h1{
- @include fontbold; height:auto; display:inline-block; position:relative; margin:0;
- color: inherit;
- 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;
- margin:-0.7em 0 0; line-height: 1.1; font-style: normal;
- a{text-decoration: underline;}
- }
- }
- 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;
- }
- }
- }
- }
- }
|