123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731 |
- // @Author: Bachir Soussi Chiadmi <bach>
- // @Date: 18-12-2017
- // @Email: bachir@figureslibres.io
- // @Filename: app.scss
- // @Last modified by: bach
- // @Last modified time: 20-12-2017
- // @License: GPL-V3
- @import './base/reset';
- @import './base/variables';
- @import './base/colors';
- @import './base/grid';
- @import './base/layout';
- // $mdi-font-path: "./mdi/fonts";
- // @import './mdi/scss/materialdesignicons.scss';
- @import './base/fonts';
- html{
- // background-color: red;
- }
- aside.messages{
- border:none;
- }
- // _ _ _
- // | || |___ __ _ __| |___ _ _
- // | __ / -_) _` / _` / -_) '_|
- // |_||_\___\__,_\__,_\___|_|
- header[role="banner"]{
- padding:0.2em 0 0 0;
- %header-fs{
- font-size: 0.9em;
- // line-height: 1;
- font-weight: 400;
- }
- #block-sitebranding{
- h1{
- margin:0;
- line-height: 1;
- }
- }
- #block-userlogin{
- position: relative;
- // width:8em;
- padding:0 1em;
- overflow: visible;
- h2{
- @extend %header-fs;
- line-height: 1.38;
- margin: 0;
- }
- &>section{
- background-color: #fff;
- overflow: hidden;
- width:11em;
- height:1px;
- padding:0.01em 1em;
- // margin:0 0 0 -1em;
- box-sizing:content-box;
- transition: all 0.4s ease-in-out;
- // outline: 1px solid blue;
- transition-delay: 2s;
- position: absolute;
- right:0;
- top:1.7em;
- box-sizing: content-box;
- }
- &:hover{
- &>section{
- transition-delay: 0s;
- height:12em;
- padding:1em 1em;
- box-shadow: 0 0 10px #ccc;
- }
- }
- .form-item{
- margin:0;
- position: relative;
- width:100%;
- &.form-item-name{
- margin:2px 0 0.5em 0;
- input{
- width:90%;
- padding:0;
- box-sizing: content-box;
- }
- }
- &.form-item-pass{
- margin:0 0 0.5em 0;
- input{
- width:90%;
- padding:0;
- box-sizing: content-box;
- }
- }
- &.form-item-persistent-login{
- font-size: 0.756em;
- label{
- vertical-align: top;
- }
- }
- }
- #edit-actions{
- margin:0;
- }
- .item-list{
- ul{
- margin:0;
- li{
- list-style: none;
- margin:0;
- a{
- font-size: 0.756em;
- }
- }
- }
- }
- }
- // non-vue userblock
- #block-userblock{
- h2{display:none;}
- a{
- margin-right: 1em;
- }
- }
- // vue userblock
- #user-tools{
- }
- // menu
- #block-header{
- margin-right: 1em;
- padding-left: 1em;
- border-left: 1px solid #000;
- ul.menu{
- margin:0;
- li{
- padding:0;
- display: inline-block;
- &:not(:first-of-type){
- margin-left: 0.5em;
- }
- a{
- @extend %header-fs;
- }
- }
- }
- }
- #block-languageswitcher{
- text-align: right;
- h2{
- margin: 0.1em 0 0 0;
- font-size: 0.756em;
- font-weight: 400;
- padding:0.1em 0.4em 0.2em;
- border-radius: 3px;
- background-color: #444;
- color: #fff;
- display: inline-block;
- vertical-align: top;
- }
- &>ul.links{
- // background-color: #fff;
- overflow: hidden;
- width:3.5em;
- // display: inline-block;
- height:1px;
- padding:0.01em 0;
- margin:0;
- box-sizing:content-box;
- transition: all 0.4s ease-in-out;
- // outline: 1px solid blue;
- // transition-delay: 2s;
- }
- &:hover{
- &>ul.links{
- transition-delay: 0s;
- height:2em;
- padding:0.3em 0;
- // box-shadow: 0 0 10px #ccc;
- }
- }
- li{
- list-style: none;
- padding:0;
- display: inline-block;
- &.is-active{
- display:none;
- }
- a{
- margin: 0;
- font-size: 0.756em;
- font-weight: 400;
- padding:0.2em 0.4em;
- border-radius: 3px;
- background-color: #444;
- color: #fff;
- }
- }
- }
- // header bottom
- #block-pagetitle{
- float: left;
- padding:1em 0;
- h2{
- margin:0;
- font-size: 1.512em;
- text-transform: capitalize;
- font-weight: 300;
- body:not(.path-home) & {
- padding:0.5em 1em;
- }
- body.path-blabla & {
- color: #fff;
- background-color: $color-blabla;
- }
- body.path-showrooms & {
- color: #fff;
- background-color: $color-showrooms;
- }
- body.path-base & {
- color: #fff;
- background-color: $color-base;
- }
- }
- }
- #block-materiosapisearchblock{
- float:right;
- display:inline-block;
- // box-shadow: 0 0 5px rgba(0,0,0,0.2);
- padding:0;
- #materio-sapi-search-form{
- .form-item, input.button{
- display: inline-block;
- }
- #edit-search{
- border:1px #BBB solid;
- border-radius: 14px;
- padding:0.3em;
- color:#666;
- }
- #edit-submit{
- border:0;
- text-indent: 50px;
- overflow: hidden;
- width:20px; height:20px;
- margin:0;
- // border-radius: 7px;
- background-image: url('../img/search.png');
- background-position: center;
- background-repeat: no-repeat;
- background-size: contain;
- }
- }
- }
- }
- // main
- aside.messages{
- padding: 0;
- }
- // content top
- // #content-top{
- // &:after{
- // content:"";
- // clear:both;
- // display: block;
- // }
- // }
- // __ _
- // / _|_ _ ___ _ _| |_
- // | _| '_/ _ \ ' \ _|
- // |_| |_| \___/_||_\__|
- article.node--type-frontpage{
- %front-col-field__label{
- font-size: 3.5em;
- line-height: 1;
- }
- %front-col-descritpion{
- font-size: 0.9em;
- line-height: 1.3;
- }
- %part-centered-layout{
- padding:1.5em 0;
- background-color: #fff;
- >div:nth-child(1){
- width:80%;
- margin: 0 auto;
- text-align: center;
- .field__label{
- @extend %front-col-field__label;
- }
- .field__item{
- @extend %front-col-descritpion;
- }
- }
- }
- %part-columned-layout{
- display:grid;
- grid-template-columns: 300px 1fr;
- grid-column-gap: 2em;
- padding:2em 1em;
- >div:nth-child(1){
- color: #fff;
- grid-column: 1;
- .field__label{
- @extend %front-col-field__label;
- }
- .field__item{
- @extend %front-col-descritpion;
- }
- }
- >div:nth-child(2){
- grid-column: 2;
- }
- }
- .node__content{
- &>section{
- &.home-intro{
- @extend %part-centered-layout;
- }
- &.home-database{
- background-color: $color-base;
- @extend %part-columned-layout;
- .field--name-field-a-database{}
- .cards-list-home{
- position: relative;
- // max-height: (130px*1.4)*3;
- max-height: 580px;
- overflow-y: hidden;
- ul{
- width:100%;
- margin:0; padding:0;
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(50px, 130px));
- grid-template-rows: 1fr;
- grid-gap: 1em;
- justify-content:start;
- li{
- position: relative;
- list-style: none;
- margin:0; padding:0;
- padding-top: 140%;
- .card{
- position:absolute;
- top:0; bottom:0;
- left:0; right:0;
- width: auto;
- height: auto;
- .field--name-field-short-description{
- font-size: 0.756em;
- line-height: 0.9;
- }
- }
- }
- }
- }
- }
- &.home-showrooms{
- background-color: $color-showrooms;
- @extend %part-columned-layout;
- .field--name-field-showrooms{
- }
- .field--name-computed-showrooms-reference{
- position:relative;
- // height:550px;
- display: grid;
- grid-template-rows: 1fr;
- $bp: ($column_width + $column_goutiere )*7;
- @media only screen and (max-width: $bp){
- grid-template-columns: 1fr;
- >.field__item{
- grid-column: 1;
- }
- }
- @media only screen and (min-width: $bp + 1px){
- grid-template-columns: 1fr 1fr;
- grid-gap: 1em;
- >.field__item:nth-child(odd){
- grid-column: 1;
- }
- >.field__item:nth-child(even){
- grid-column: 2;
- }
- }
- >.field__item{
- grid-row: 1;
- // position: absolute;
- // top:0; left:0;
- // width:100%; height:100%;
- // overflow: hidden;
- .taxonomy-term{
- position: relative;
- width:100%; height:100%;
- div.visuel{
- width:100%;
- padding-bottom: 10em;
- img{
- max-width: 100%;
- height: auto;
- }
- }
- section.text{
- position: absolute;
- bottom:0; left:0;
- width:100%;
- box-sizing:border-box;
- padding:1em 0;
- background-color:$color-showrooms;
- color: #fff;
- >*{
- // display: inline-block;
- font-size: 0.9em;
- }
- h2,p{
- margin:0;
- }
- }
- }
- }
- }
- }
- &.home-blabla{
- background-color: $color-blabla;
- @extend %part-columned-layout;
- .cards-list-home{
- position: relative;
- $bp: ($column_width + $column_goutiere );
- overflow-y: hidden;
- @media only screen and (max-width: $bp * 6){
- max-height: 630px;
- }
- @media only screen and (min-width: ($bp * 6) + 1px){
- max-height: 310px;
- }
- ul{
- width:100%;
- margin:0; padding:0;
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(80px, 220px));
- // grid-template-rows: 1fr;
- grid-gap: 1em;
- justify-content:start;
- li{
- position: relative;
- list-style: none;
- margin:0; padding:0;
- padding-top: 140%;
- overflow: hidden;
- .card{
- position:absolute;
- top:0; bottom:0;
- left:0; right:0;
- width: auto;
- height: auto;
- .field--name-title{
- font-size: 0.756em;
- line-height: 0.9;
- }
- }
- }
- }
- }
- }
- &.home-pricing{
- @extend %part-centered-layout;
- }
- }
- }
- }
- // ___ _
- // / __|__ _ _ _ __| |___
- // | (__/ _` | '_/ _` (_-<
- // \___\__,_|_| \__,_/__/
- .infinite-loading-container{
- .infinite-status-prompt{
- i[class^="loading-"]{
- width:15px; height:15px;
- }
- }
- }
- .cards-list{
- position: relative;
- .search-info{
- font-size: 0.756em;
- font-weight: 500;
- margin: 0;
- padding: 0 0 0.5em 0;
- }
- &>ul{
- // outline: 1px green solid;
- margin:0; padding:0;
- width: calc(100% + #{$column_goutiere});
- &>li{
- list-style: none;
- margin:0 $column_goutiere $column_goutiere 0; padding:0;
- display: inline-block;
- vertical-align: top;
- }
- }
- }
- article.card{
- position: relative;
- box-shadow: 0 0 5px rgba(0,0,0,0.2);
- width:$column_width; height:295px;
- // &.card-small{
- // width:100px; height:140px;
- // }
- // focused
- // box-shadow: 0 0 7px rgba(0,0,0,0.9);
- // &.article{
- // width: $column_width * 2 + $column_goutiere;
- //
- // }
- header{
- position: absolute;
- bottom:0;
- z-index:10;
- color: #000;
- background-color: rgba(255,255,255,0.8);
- padding: 0.3em 0.3em;
- box-sizing:border-box;
- width:100%;
- h1, h4{ margin:0; padding:0; }
- h1{
- font-size: 1.3em;
- font-weight: 700;
- line-height: 0.85;
- margin-bottom: 0.2em;
- }
- h4{
- font-size: 0.882em;
- font-weight: 300;
- line-height: 1;
- // margin-bottom: 0.1em;
- }
- span.ref{
- font-size: 0.693em;
- font-weight: 300;
- line-height: 1;
- }
- }
- section.images{
- position: relative;
- &, *{width: 100%; height:100%;}
- figure{
- margin:0;
- position: absolute;
- top:0; left:0;
- // width: 100%; height:100%;
- &:first-of-type{
- z-index:5
- }
- img{
- // width: 100%; height:100%;
- &.blank{
- position: absolute;
- top:0; left:0;
- z-index: 20;
- }
- }
- }
- }
- }
- // ___ _ _ _
- // | _ ) |__ _| |__| |__ _
- // | _ \ / _` | '_ \ / _` |
- // |___/_\__,_|_.__/_\__,_|
- #blabla{
- }
- #main-content > article.article{
- section.taxonomy{
- ul{
- margin:1em 0 0;
- }
- li{
- display:inline-block;
- padding:0 0.5em 0 0;
- }
- }
- section.visuels{
- width:calc(100% + #{$column_goutiere});
- figure{
- display: inline-block;
- vertical-align: top;
- width:$column_width;
- margin:0 $column_goutiere 0 0;
- img{
- width:100%;
- }
- }
- }
- aside.linked-materials{
- ul{
- width:calc(100% + #{$column_goutiere});
- li{
- display: inline-block;
- vertical-align: top;
- width:$column_width;
- margin:0 $column_goutiere 0 0;
- }
- }
- h3.field__label{
- font-size: 1em;
- font-weight: 500;
- margin: 2em 0 1em 0;
- }
- h1.title{
- font-size: 1em;
- font-weight: 400;
- }
- h3.ref{
- font-size: 0.756em;
- font-weight: 600;
- }
- h2.description{
- font-size: 0.756em;
- font-weight: 400;
- }
- }
- nav.prevnext{
- &.bottom{
- margin:2em 0;
- }
- ul{
- padding:0;
- margin:0;
- display: grid;
- grid-template-columns: 1fr 1fr;
- }
- li{
- padding:0;
- margin:0;
- list-style: none;
- a{
- font-size: 0.756em;
- font-weight: 700;
- }
- &:nth-child(1){
- grid-column: 1;
- a:before{
- content:'< ';
- }
- }
- &:nth-child(2){
- grid-column: 2;
- text-align: right;
- a:after{
- content:' >';
- }
- }
- }
- }
- }
- // ___ _
- // / __| |_ _____ __ ___ _ ___ ___ _ __ ___
- // \__ \ ' \/ _ \ V V / '_/ _ \/ _ \ ' \(_-<
- // |___/_||_\___/\_/\_/|_| \___/\___/_|_|_/__/
- #showrooms{
- width: calc(100% + #{$column_goutiere});
- article.showroom{
- width: $column_width * 2 + $column_goutiere;
- display: inline-block;
- vertical-align: top;
- margin: 0 $column_goutiere $column_goutiere 0;
- h1{
- margin:0;
- font-weight: 4;
- }
- p{ margin:0; }
- figure{
- margin:0;
- img{
- max-width: 100%;
- }
- }
- }
- }
|