// @Author: Bachir Soussi Chiadmi // @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'; // header .layout-container{ pointer-events: none; } header[role="banner"]{ padding:0 0 1em 0; border-bottom: 1px solid red; pointer-events: all; } #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; } &.is-active:before, &:hover:before{ border-color: red; background-color: red; } } } } } // main main[role="main"]{ .layout-content{ pointer-events: none; .row{ pointer-events: none; height:100%; overflow: hidden; .col{ pointer-events:all; height: 100%; position: relative; &>.wrapper{ position: relative; box-sizing: border-box; border-top: 1px solid red; border-bottom: 1px solid red; background-color: $transparent-bg; max-height: 100%; padding:0 0 1em; &>*{ padding:0 1em; } } } } } article.node>h2{ @include content_titles; } article.node p{ @include content_courant; } img{ max-width: 100%; } ul, li, ul.inline li:first-child{ margin:0; padding:0; list-style: none; } } 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; } } } // Footer @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{ // text-align: center; display: table; padding: 0 0 0.5em 0; >.region{ display: table-cell; white-space: nowrap; pointer-events: all; // 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{ @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; 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-block-edlp-entrees{ 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):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; } } } }