added episodes label, imporved display

This commit is contained in:
2017-02-27 17:16:16 +01:00
parent f8417f3db2
commit 8a2a116c11
6 changed files with 131 additions and 43 deletions
@@ -236,6 +236,8 @@ body,
.group-video .field-name-field-description h3,
.group-description .field-name-field-ecouter,
.node-documentair .field-name-field-doc,
.node-documentair .field-name-title-field,
.field-name-field-episodes .field-label,
.node-episode .field-name-title-field{
color: #aaa;//lighten(desaturate($coul, 40%), 20%);
}
@@ -245,6 +247,8 @@ body,
.group-video .field-name-field-description h3,
.group-description .field-name-field-ecouter,
.node-documentair .field-name-field-doc,
.node-documentair .field-name-title-field,
.field-name-field-episodes .field-label,
.node-episode .field-name-title-field{color: $coul;}
}
}
@@ -289,11 +293,11 @@ body,
>h2{
font-size: 3em;
font-weight: 400;
padding-left: 0.18em;
// padding-left: 0.18em;
position:relative;
span{
position: absolute;
top:-177px;
top:-170px;
}
}
@@ -305,7 +309,7 @@ body,
$main_w : 69.5%;
$right_w : 30.5%;
$gouttiere: 1em;
$gouttiere: 1.2em;
// _
// ____ ___ ____ _(_)___
@@ -319,7 +323,7 @@ body,
overflow: hidden;
.field-name-body{
position: relative; z-index: 3;
>*{padding:0 1em 0 0.2em;}
>*{padding:0 1em 0 0;}
.summary{
position: relative;
height:5.75em; overflow: hidden;
@@ -327,7 +331,7 @@ body,
transition: background-color 0.5 ease-in-out;
p{
font-size: 1.1em;
padding:0.5em;
padding:0.5em 0.5em 0.5em 0;
font-weight: 500;
}
}
@@ -351,6 +355,8 @@ body,
} //field-name-body
.group-video{
position: relative;
min-height: 432px;
.field-name-field-emvideo a{ display: block; line-height: 0;}
.group-description{
cursor: pointer; pointer-events: none;
box-sizing: border-box;
@@ -398,32 +404,48 @@ body,
width: $right_w;
.field-name-field-eclairages{
padding-left:1em;
.field-item:not(:last-child){
padding-bottom: $gouttiere;
}
}
.node-documentair{
padding-bottom: $gouttiere;
min-height: 160px;
background-color: #fff;
.content{
position: relative;
.group-txt{
cursor: pointer; pointer-events: none;
box-sizing: border-box;
position:absolute; z-index: 2; overflow: hidden;
top:0; left:0; width:90%; max-height:80%;
margin:5%; padding:5%;
background-color: rgba(255, 255, 255, 0.9);
top:0; left:0; width:90%; height:80%;
margin:5%;
// opacity: 0;
.field-name-field-doc{
display: inline-block;
z-index:5;
font-size: 1em;
font-weight: 500;
padding: 7px;
background-color: rgba(255, 255, 255, 0.9);
transition:background-color 0.3s ease-in-out;
}
.field-name-title-field{
font-size: 2em;
font-weight: 600;
height:1px; overflow: hidden;
transition:height 0.3s ease-in-out;
position: absolute; z-index: -1;
top:0; left:0; width: 100%;
font-size: 1.5em;
font-weight: 500;
padding: 30px 7px 10px;
background-color: rgba(255, 255, 255, 0.9);
opacity: 0;
transition:opacity 0.3s ease-in-out;
}
}
.group-video a{ display: block; line-height: 0;}
}
&:not(.en_attente):hover .group-txt{
.field-name-field-doc{background-color: transparent;}
.field-name-title-field{opacity: 1;}
}
&:not(.en_attente):hover .group-txt .field-name-title-field{height:70%;}
&.en_attente>.content{
position: relative;
@@ -447,9 +469,18 @@ body,
// \___/ .___/_/____/\____/\__,_/\___/____/
// /_/
aside.bottom{
padding-top: $gouttiere;
padding-top: $gouttiere*0.5;
.field-name-field-episodes{
// letter-spacing: -0.25em;
.field-label{
font-size: 1.3em;
font-weight: 400;
background-color: #fff;
display: inline-block;
padding:0.2em 0.4em 0;
margin-bottom: 0.3em;
}
&>.field-items{
display: flex;
flex-flow: row nowrap;
@@ -460,7 +491,8 @@ body,
// display: inline-block;
width:19%;
// padding-right:1%;
// min-height: 110px;
background-color: #fff;
.node-episode{
.content{
position: relative;
@@ -480,6 +512,7 @@ body,
text-align: center;
}
}
.group-video a{ display: block; line-height: 0;}
}
&:not(.en_attente):hover .content .group-txt{