better blabla/article display
This commit is contained in:
parent
b6c38341b4
commit
b32e609538
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,5 @@
|
||||||
$transparent-bg: rgba(255,255,255, 0.95);
|
$transparent-bg: rgba(255,255,255, 0.95);
|
||||||
|
$transparent-bg-blk: rgba(0,0,0, 0.75);
|
||||||
|
|
||||||
$color-base:#69cdcf;
|
$color-base:#69cdcf;
|
||||||
$color-showrooms:#50aa3c;
|
$color-showrooms:#50aa3c;
|
||||||
|
|
|
@ -619,6 +619,18 @@ article.card{
|
||||||
}
|
}
|
||||||
|
|
||||||
#main-content > article.article{
|
#main-content > article.article{
|
||||||
|
div.cols{
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: 1fr;
|
||||||
|
grid-template-columns: repeat(6, 1fr);
|
||||||
|
grid-gap: 1em;
|
||||||
|
div.col-left{
|
||||||
|
grid-column: 1;
|
||||||
|
}
|
||||||
|
div.col-right{
|
||||||
|
grid-column: 2/6;
|
||||||
|
}
|
||||||
|
}
|
||||||
section.accroche{
|
section.accroche{
|
||||||
figure{
|
figure{
|
||||||
width:$column_width*2 + $column_goutiere;
|
width:$column_width*2 + $column_goutiere;
|
||||||
|
@ -637,9 +649,20 @@ article.card{
|
||||||
padding:0 0.5em 0 0;
|
padding:0 0.5em 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
section.videos{
|
||||||
|
ul{
|
||||||
|
margin:0; padding:0;
|
||||||
|
li{
|
||||||
|
margin:0; padding:0;
|
||||||
|
display: inline-block;
|
||||||
|
width:100%; overflow: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
section.visuels{
|
section.visuels{
|
||||||
width:calc(100% + #{$column_goutiere});
|
width:calc(100% + #{$column_goutiere});
|
||||||
figure{
|
figure{
|
||||||
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
width:$column_width*2 + $column_goutiere;
|
width:$column_width*2 + $column_goutiere;
|
||||||
|
@ -647,6 +670,11 @@ article.card{
|
||||||
img{
|
img{
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
caption{
|
||||||
|
position: absolute; bottom: 0; left:0;
|
||||||
|
box-sizing: border-box; width: 100%; padding:0.5em;
|
||||||
|
background-color: $transparent-bg-blk; color: #fff;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
aside.linked-materials{
|
aside.linked-materials{
|
||||||
|
|
|
@ -23,59 +23,65 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<section class="accroche">
|
<div class="cols">
|
||||||
<figure>
|
<div class="col col-left">
|
||||||
<img
|
<section class="accroche">
|
||||||
:src="content.image_accroche.src"
|
<figure>
|
||||||
:alt="content.image_accroche.alt"
|
<img
|
||||||
:title="content.image_accroche.title"
|
:src="content.image_accroche.src"
|
||||||
/>
|
:alt="content.image_accroche.alt"
|
||||||
</figure>
|
:title="content.image_accroche.title"
|
||||||
</section>
|
|
||||||
<section class="taxonomy">
|
|
||||||
<div class="thesaurus">
|
|
||||||
<ul>
|
|
||||||
<li
|
|
||||||
v-for="term in content.field_thesaurus" v-bind:key="term.id"
|
|
||||||
>{{ term.name }}</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="tags">
|
|
||||||
<ul>
|
|
||||||
<li
|
|
||||||
v-for="term in content.field_tags" v-bind:key="term.id"
|
|
||||||
>{{ term.name }}</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
<section class="body" v-html="content.body"></section>
|
|
||||||
<section class="video">
|
|
||||||
<ul>
|
|
||||||
<li v-for="video in content.videos" v-bind:key="video.id">
|
|
||||||
<vimeo-player
|
|
||||||
v-if="video.provider == 'vimeo'"
|
|
||||||
ref="player"
|
|
||||||
:video-id="video.id"
|
|
||||||
/>
|
/>
|
||||||
<youtube
|
</figure>
|
||||||
v-if="video.provider == 'youtube'"
|
</section>
|
||||||
:video-id="video.id"
|
<section class="taxonomy">
|
||||||
/>
|
<div class="thesaurus">
|
||||||
</li>
|
<ul>
|
||||||
</ul>
|
<li
|
||||||
</section>
|
v-for="term in content.field_thesaurus" v-bind:key="term.id"
|
||||||
<section class="visuels">
|
>{{ term.name }}</li>
|
||||||
<figure
|
</ul>
|
||||||
v-for="visuel in content.field_visuel" v-bind:key="visuel.id"
|
</div>
|
||||||
>
|
<div class="tags">
|
||||||
<img
|
<ul>
|
||||||
:src="visuel.src"
|
<li
|
||||||
:alt="visuel.alt"
|
v-for="term in content.field_tags" v-bind:key="term.id"
|
||||||
:title="visuel.title"
|
>{{ term.name }}</li>
|
||||||
/>
|
</ul>
|
||||||
<caption></caption>
|
</div>
|
||||||
</figure>
|
</section>
|
||||||
</section>
|
<section class="body" v-html="content.body"></section>
|
||||||
|
<section v-if="content.videos" class="videos">
|
||||||
|
<ul>
|
||||||
|
<li v-for="video in content.videos" v-bind:key="video.id">
|
||||||
|
<vimeo-player
|
||||||
|
v-if="video.provider == 'vimeo'"
|
||||||
|
ref="player"
|
||||||
|
:video-id="video.id"
|
||||||
|
:player-width="480"
|
||||||
|
/>
|
||||||
|
<youtube
|
||||||
|
v-if="video.provider == 'youtube'"
|
||||||
|
:video-id="video.id"
|
||||||
|
:player-width="480"
|
||||||
|
/>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
</div> <!-- //col-left -->
|
||||||
|
<div class="col col-right">
|
||||||
|
<section class="visuels">
|
||||||
|
<figure v-for="visuel in content.field_visuel" v-bind:key="visuel.id">
|
||||||
|
<img
|
||||||
|
:src="visuel.src"
|
||||||
|
:alt="visuel.alt"
|
||||||
|
:title="visuel.title"
|
||||||
|
/>
|
||||||
|
<caption v-if="visuel.title">{{ visuel.title }}</caption>
|
||||||
|
</figure>
|
||||||
|
</section>
|
||||||
|
</div> <!-- // col-right -->
|
||||||
|
</div> <!-- // cols -->
|
||||||
<aside class="linked-materials">
|
<aside class="linked-materials">
|
||||||
<h3 class="field__label">Linked Materials</h3>
|
<h3 class="field__label">Linked Materials</h3>
|
||||||
<div class="card-list">
|
<div class="card-list">
|
||||||
|
|
Loading…
Reference in New Issue