123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851 |
- // @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/colors';
- @import 'base/shared_variables';
- @import 'base/grid';
- @import 'base/layout';
- @import 'base/fonts';
- @mixin spining-loader-square{
- @keyframes rotation {
- from {transform: rotate(0deg);}
- to {transform: rotate(359deg);}
- }
- animation: rotation 2s infinite linear;
- }
- @mixin entrie-micro-square {
- display:inline-block;
- $s:8px;
- width:$s; height:$s;
- background-color: black;
- margin-right: 3px;
- &[tid='134']{background-color: $e_col_134;}
- &[tid='121']{background-color: $e_col_121;}
- &[tid='125']{background-color: $e_col_125;}
- &[tid='119']{background-color: $e_col_119;}
- &[tid='132']{background-color: $e_col_132;}
- &[tid='122']{background-color: $e_col_122;}
- &[tid='129']{background-color: $e_col_129;}
- &[tid='120']{background-color: $e_col_120;}
- &[tid='130']{background-color: $e_col_130;}
- &[tid='118']{background-color: $e_col_118;}
- &[tid='127']{background-color: $e_col_127;}
- &[tid='133']{background-color: $e_col_133;}
- &[tid='128']{background-color: $e_col_128;}
- &[tid='124']{background-color: $e_col_124;}
- &[tid='116']{background-color: $e_col_116;}
- &[tid='117']{background-color: $e_col_117;}
- &[tid='131']{background-color: $e_col_131;}
- &[tid='126']{background-color: $e_col_126;}
- &[tid='123']{background-color: $e_col_123;}
- }
- .layout-container{
- pointer-events: none;
- }
- // _ _
- // | |_ ___ __ _ __| |___ _ _
- // | ' \/ -_) _` / _` / -_) '_|
- // |_||_\___\__,_\__,_\___|_|
- header[role="banner"]{
- position: relative;
- padding:0 0 0.5em 0;
- border-bottom: 1px solid red;
- pointer-events: all;
- // TODO: what header height to fit well with player ??
- height:70px;
- }
- #block-edlptheme-branding{
- display: inline-block;
- h1{
- margin:0; display: inline-block;
- font-size: 1.5em;
- text-transform: lowercase;
- a{
- $col_w:3.74em;
- $col_gap:2em;
- line-height: 0.93;
- text-align: center;
- color: inherit;
- text-decoration: none;
- display: inline-block;
- columns:$col_w 2;
- column-gap: $col_gap;
- word-break:break-all;
- hyphens:auto;
- position: relative;
- &:after, &:before{
- content: '';
- position: absolute;
- top:50%;
- height:0;
- }
- &:before{
- left:$col_w;
- border-bottom:0.08em solid #000;
- width:2.5em;
- transform: rotateZ(-45deg);
- }
- &:after{
- $w:0.5em;
- top:47%;
- left:($col_w+$col_gap/2);
- border-top:0.2em solid red;
- width:$w;
- transform: rotateZ(45deg);
- }
- }
- }
- }
- #block-mainnavigation{
- float:right;
- ul{
- margin:0; padding: 0;
- white-space: nowrap;
- li{
- margin:0; padding:0;
- display: inline-block;
- a{
- font-size: 0.756em;
- color:inherit;
- text-decoration: none;
- text-transform: uppercase;
- margin-left: 1em;
- &:before{
- content: "";
- display:inline-block;
- $sq:0.6em;
- width: $sq; height:$sq;
- border: 1px solid #000;
- margin-right: 0.3em;
- }
- &.ajax-loading:before{
- @include spining-loader-square;
- }
- &.is-active:before,
- &:hover:before{
- border-color: red;
- background-color: red;
- }
- }
- }
- }
- }
- // _
- // _ __ __ _(_)_ _
- // | ' \/ _` | | ' \
- // |_|_|_\__,_|_|_||_|
- main[role="main"]{
- .layout-content{
- pointer-events: none;
- .row{
- pointer-events: none;
- height:100%;
- overflow: hidden;
- .col{
- pointer-events: none;
- height: 100%;
- position: relative;
- &>.wrapper{
- pointer-events:all;
- position: relative;
- box-sizing: border-box;
- border-top: 1px solid red;
- border-bottom: 1px solid red;
- background-color: $transparent-bg;
- max-height: 100%; // this is not working :(
- padding:0 0 1em;
- &>*{
- padding:0 1em;
- }
- }
- }
- }
- .field.text-formatted{
- a.audio-link{
- border-bottom: 1px dotted red;
- }
- }
- }
- article.node>h2{
- @include content_titles;
- }
- article.node p{
- @include content_courant;
- }
- img{
- max-width: 100%;
- height: auto;
- }
- ul, li, ul.inline li:first-child{
- margin:0; padding:0;
- list-style: none;
- }
- // ajax loading effects
- .layout-content{
- transition: opacity 0.5s ease-in-out;
- opacity: 1;
- }
- body.ajax-loading &{
- .layout-content{
- opacity:0.2;
- }
- &:before{
- content:"";
- display: block;
- position: absolute;
- z-index: 10;
- $s:60px;
- width:$s; height:$s;
- top:calc(50% - #{$s/2}); left:calc(50% - #{$s/2});
- // padding:1em;
- background-color: rgba(255,255,255, 0.5);
- background-image: url(../img/edlp-loader-anim.svg);
- background-size: 50%;
- background-repeat: no-repeat;
- background-position: center;
- // border-radius: $s/2;
- }
- }
- }
- // _ _ _ ___ _
- // /_\ _ _ __| (_)___| _ \ |__ _ _ _ ___ _ _
- // / _ \ || / _` | / _ \ _/ / _` | || / -_) '_|
- // /_/ \_\_,_\__,_|_\___/_| |_\__,_|\_, \___|_|
- // |__/
- #audio-player{
- position: absolute;
- top:0; left:0;
- background-color: white;
- height:100%; min-width:300px;
- z-index: 20;
- opacity: 0;
- // outline: 1px solid blue;
- pointer-events: none;
- transition: opacity 0.7s ease-in-out;
- &.visible{
- opacity: 1;
- pointer-events:all;
- }
- &>*{
- display: inline-block;
- vertical-align: middle;
- padding:0;
- max-height: 100%;
- // outline: 1px solid green;
- }
- .btns{
- // outline: 1px dotted orange;
- &>*{
- display: inline-block;
- vertical-align: middle;
- width:20px;height:30px;
- background-position: center;
- background-size: contain;
- }
- .previous{
- background-image: url(../img/audio-player-previous.svg);
- opacity: 0.3;}
- .play-pause{
- background-image: url(../img/audio-player-play.svg);
- padding:0 0.3em;}
- cursor: pointer;
- .next{
- background-image: url(../img/audio-player-next.svg);
- opacity: 0.3;}
- }
- .time-line-container{
- .time-line{
- position: relative;
- width:70px; height:1px;
- background-color: #000;
- overflow: visible;
- transform: rotateZ(-45deg);
- .loader{
- width:0; height:100%;
- background-color: red;
- top:0;left:0;
- }
- .cursor{
- height:10px;width:0;
- border-left: 2px solid red;
- position:absolute;
- left:0; top:-5px;
- }
- }
- }
- .time{
- &>*{
- width:70px;
- text-align: right;
- }
- .current-time{
- font-size: 1.4em;
- font-weight: 600;
- }
- .duration{
- font-size: 0.75em;
- font-weight: 400;
- }
- }
- .favoris{
- height:100%;
- }
- .cartel{
- // TODO: set max-width regarding responsive
- position: relative;
- max-width: 400px;
- margin-left: 1em;
- background-color: white;
- opacity: 1;
- transition: opacity 0.5s ease-in-out;
- &.loading{opacity: 0;}
- .first-cartel{
- .entrees{
- line-height: 0;
- span{
- @include entrie-micro-square;
- }
- }
- h2.node-title{
- margin:0.2em 0 0;
- font-size: 1em;
- }
- p{
- margin:0;
- font-size: 0.75em;
- }
- }
- .second-cartel{
- position: absolute;
- top: 0; left:0;
- background-color: white;
- height:100%; min-width: 100%;
- opacity: 0;
- transition: opacity 0.2s ease-in-out;
- &>*{
- display: inline-block;
- vertical-align: top;
- }
- .col-left{
- a{
- display: block;
- font-size: 0.90em;
- font-weight: 600;
- }
- }
- .col-right{
- font-size: 0.75em;
- }
- }
- &:hover{
- .second-cartel{
- opacity: 1;
- }
- }
- }
- &.is-playing{
- .btns .play-pause{background-image: url(../img/audio-player-pause.svg);}
- }
- }
- // _ _ _ _ _
- // /_\ (_)__ ___ __ | \| |___ __| |___
- // / _ \ | / _` \ \ / | .` / _ \/ _` / -_)
- // /_/ \_\/ \__,_/_\_\ |_|\_\___/\__,_\___|
- // |__/
- // body.path-edlp-node main{
- // main .col>.wrapper, .edlp-ajax-node{
- // height: 100%;
- // }
- // }
- // _ _
- // /_\ __ _ ___ _ _ __| |__ _
- // / _ \/ _` / -_) ' \/ _` / _` |
- // /_/ \_\__, \___|_||_\__,_\__,_|
- // |___/
- body.path-agenda main .col{
- &>.wrapper{
- height:100%;
- }
- }
- #agenda{
- position: relative;
- white-space: nowrap;
- height: 100%;
- div.column{
- white-space: normal;
- display: inline-block;
- vertical-align: top;
- height:100%;
- }
- div.next-event{
- width:65%;
- }
- div.future-past-events{
- width:33%;
- }
- ul,li{
- margin:0; padding:0;
- list-style: none;
- }
- article.node--type-evenement{
- h2{ @include content_titles; }
- }
- }
- // ___ _ _ _
- // | _ \_ _ ___ __| |_ _ __| |_(_)___ _ _ ___
- // | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-<
- // |_| |_| \___/\__,_|\_,_\__|\__|_\___/_||_/__/
- body.path-productions{
- .layout-content .row{
- white-space: normal;
- .col{
- height:auto;
- &.col-2:last-child{
- padding-left: 0em;
- padding-right: 1em;
- }
- >.wrapper{
- margin-bottom: 1em;
- padding:0;
- >*{padding:0;}
- article.node{
- .field--name-field-visuel{
- a,img{
- display: block;
- width: 100%; height:auto;
- }
- }
- header{
- background-color: rgba(255,255,255,0.95);
- padding:0.5em 1em;
- h2.node-title{
- margin:0;
- }
- p{margin: 0;}
- }
- &.node--view-mode-image-2-columns{
- header{
- position: absolute;
- bottom: 0; left:0;
- h2.node-title{
- font-size: 1.6em;
- font-weight: 500;
- }
- }
- }
- &.node--view-mode-image-1-columns{
- h2.node-title{
- font-size: 1.2em;
- font-weight: 500;
- }
- }
- &.node--view-mode-text-1-column{
- padding:0 1em;
- }
- }
- }
- }
- }
- }
- // ___ _
- // | __|__ ___| |_ ___ _ _
- // | _/ _ \/ _ \ _/ -_) '_|
- // |_|\___/\___/\__\___|_|
- @mixin oblique-list {
- display: inline-block;
- position: relative;
- list-style: none;
- margin: 0 1.5em 0 0;
- // width:2em; height:10em;
- padding: 0;
- a{
- position: absolute;
- bottom: 0;
- transform-origin: left bottom;
- transform: rotateZ(-45deg);
- color: #000;
- text-decoration: none;
- text-transform: uppercase;
- font-size: 0.756em;
- white-space: nowrap;
- }
- }
- footer{
- pointer-events: none;
- // outline: 1px dotted blue;
- // text-align: center;
- display: table;
- padding: 0 0 0.5em 0;
- >.region{
- display: table-cell;
- white-space: nowrap;
- // pointer-events: none;
- // outline: 1px dotted purple;
- // position: relative;
- }
- .region-footer-left{text-align: left;}
- .region-footer-center{text-align: center;}
- .region-footer-right{text-align: right;min-width: 30px;}
- nav.block-menu{
- display: inline-block;
- ul{
- margin:0;
- padding:0;
- li{
- pointer-events: all;
- @include oblique-list;
- }
- }
- }
- .block-language{
- display: inline-block;
- position: relative;
- ul{
- position: absolute;
- bottom:0;
- margin:0;
- padding:0;
- transform-origin: left bottom;
- transform: rotateZ(-45deg);
- white-space: nowrap;
- pointer-events: all;
- li{
- margin:0; padding:0;
- list-style: none;
- display: inline-block;
- &:last-of-type{
- &:before{
- content:"/";
- margin:0 0.2em;
- }
- }
- a{
- color: inherit;
- text-decoration: none;
- font-size: 0.756em;
- }
- &.is-active{
- a{color: red;}
- }
- }
- }
- }
- #block-productions{
- pointer-events: none;
- body:not(.path-productions) & {display:none}
- ul{
- white-space: nowrap;
- li{
- a{
- // outline: 1px solid blue;
- pointer-events: all;
- background-color: #fff;
- padding-right: 0.4em;
- &:before{
- content: "";
- display:inline-block;
- $sq:7px;
- width: $sq; height:$sq;
- border: 1px solid red;
- margin-right: 0.5em;
- }
- &:hover:before{
- background-color: red;
- }
- &.ajax-loading:before{
- @include spining-loader-square;
- }
- }
- }
- }
- }
- .block-block-edlp-entrees{
- pointer-events: none;
- body.path-productions & {display:none}
- display: inline-block;
- // vertical-align: top;
- ul{
- white-space: nowrap;
- li{
- @include oblique-list;
- margin:0;
- white-space: nowrap;
- pointer-events: none;
- span.oblique-wrapper{
- display: inline-block;
- vertical-align: bottom;
- position: relative;
- width:1.5em;
- }
- a.term-link{
- // outline: 1px solid blue;
- pointer-events: all;
- background-color: #fff;
- padding-right: 0.4em;
- &:before{
- content: "";
- display:inline-block;
- $sq:7px;
- width: $sq; height:$sq;
- border: 1px solid #000;
- margin-right: 0.5em;
- }
- }
- .entree-content{
- display: inline-block;
- // outline: 1px solid green;
- width:0;
- overflow: hidden;
- opacity: 0;
- transition: all 300ms ease-in-out;
- transition-property: width,opacity;
- span.oblique-wrapper:first-of-type{
- margin-left: 0.5em;
- }
- span.oblique-wrapper a{
- text-transform: none;
- pointer-events: auto;
- &:before{
- content: "";
- display:inline-block;
- $sq:5px;
- width: $sq; height:$sq;
- border: 1px solid #000;
- margin-right: 0.5em;
- }
- }
- .term-description{
- display: inline-block;
- margin-left: 1.5em;
- text-align: left;
- width:250px;
- word-wrap:break-word;
- // word-break:break-all;
- hyphens: auto;
- white-space: normal;
- background-color: $transparent-bg;
- padding:0.5em;
- padding-bottom:0;
- p{
- font-size: 0.65em;
- margin:0;
- }
- }
- }
- &[tid='134']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_134;background-color: $e_col_134;}}
- &[tid='121']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_121;background-color: $e_col_121;}}
- &[tid='125']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_125;background-color: $e_col_125;}}
- &[tid='119']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_119;background-color: $e_col_119;}}
- &[tid='132']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_132;background-color: $e_col_132;}}
- &[tid='122']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_122;background-color: $e_col_122;}}
- &[tid='129']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_129;background-color: $e_col_129;}}
- &[tid='120']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_120;background-color: $e_col_120;}}
- &[tid='130']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_130;background-color: $e_col_130;}}
- &[tid='118']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_118;background-color: $e_col_118;}}
- &[tid='127']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_127;background-color: $e_col_127;}}
- &[tid='133']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_133;background-color: $e_col_133;}}
- &[tid='128']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_128;background-color: $e_col_128;}}
- &[tid='124']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_124;background-color: $e_col_124;}}
- &[tid='116']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_116;background-color: $e_col_116;}}
- &[tid='117']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_117;background-color: $e_col_117;}}
- &[tid='131']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_131;background-color: $e_col_131;}}
- &[tid='126']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_126;background-color: $e_col_126;}}
- &[tid='123']{
- a.term-link:before, .entree-content span.oblique-wrapper a:before{
- border-color: $e_col_123;background-color: $e_col_123;}}
- // &.highlighted{
- // a.term_link{
- // color: red;
- // }
- // }
- .entree-content span.oblique-wrapper a:not(:hover):not(.is-active):before{background-color: #fff!important;}
- &:not(.opened){
- a.term-link:not(:hover):not(.highlighted):before{
- background-color: #fff!important;
- }
- }
- &.opened{
- // outline: 1px solid purple;
- a.term-link:after {
- content: '';
- position: absolute;
- left: 15px; right:0;
- bottom: -3px;
- border-bottom: 1px solid grey;
- }
- .entree-content{
- width:350px;
- opacity: 1;
- }
- }
- // &:not(:first-of-type) .entree-content{display: none;}
- }
- }
- }
- #block-userlogin{
- // outline: 1px solid blue;
- $wh:20px;
- position: relative;
- width:$wh; height: $wh;
- // background-color: blue;
- h2{
- position: relative;
- width:$wh; height:$wh;
- background-image: url(../img/user.svg);
- // background-color: red;
- background-size: contain;
- text-indent: $wh*2;
- margin: 0;
- overflow: hidden;
- z-index: 1;
- cursor: pointer;
- }
- .block-content{
- z-index: 0;
- position:absolute;
- right:0;bottom:$wh;
- padding:0.5em;
- padding-bottom: 20px;
- background-color: $transparent-bg;
- overflow: hidden;
- box-sizing:border-box;
- height: 0px;
- opacity:0;
- pointer-events:none;
- transition: all 0.5s ease-in-out;
- transition-property: height,opacity;
- // &:hover{
- // height:200px;
- // opacity:1;
- // pointer-events: auto;
- // }
- form{
- font-size: 0.75em;
- }
- .item-list{
- ul{margin:0;}
- li{
- margin:0;
- list-style: none;
- a{
- color: inherit;
- text-decoration: none;
- font-size: 0.75em;
- white-space:nowrap;
- }
- }
- }
- }
- &:hover{
- .block-content{
- height:200px;
- opacity: 1;
- pointer-events:auto;
- }
- }
- }
- }
- // _ _ _ ___
- // | \| |___ __| |___ | _ \___ _ __ _ _ _ __
- // | .` / _ \/ _` / -_) | _/ _ \ '_ \ || | '_ \
- // |_|\_\___/\__,_\___| |_| \___/ .__/\_,_| .__/
- // |_| |_|
- .node-popup{
- .inner{
- .entrees{
- span{
- @include entrie-micro-square;
- }
- }
- .title{
- margin:0.3em 0;
- font-size: 1.2em;
- font-weight: 500;
- }
- .description{
- p{
- margin:0;
- font-size: 0.75em;
- }
- }
- }
- }
|