fixed image caption #2564
This commit is contained in:
parent
88be181204
commit
4dc5644898
@ -394,13 +394,32 @@ body{
|
|||||||
}
|
}
|
||||||
|
|
||||||
section.entite{
|
section.entite{
|
||||||
|
|
||||||
>section{
|
>section{
|
||||||
padding-bottom: 2em;
|
padding-bottom: 2em;
|
||||||
}
|
}
|
||||||
>section.image{
|
>section.image{
|
||||||
img{
|
figure{
|
||||||
max-width: 100%;
|
// border: #333 1px solid;
|
||||||
|
position: relative;
|
||||||
|
img{
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
figcaption{
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
@include font_reponses();
|
||||||
|
background-color: rgba(0,0,0,0.8);
|
||||||
|
// opacity: 0.8;
|
||||||
|
color: #fff;
|
||||||
|
padding: 0.3em;
|
||||||
|
opacity: 0;
|
||||||
|
transition: all 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
&:hover figcaption{
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.sources{
|
.sources{
|
||||||
|
@ -43,7 +43,10 @@ export default {
|
|||||||
<template>
|
<template>
|
||||||
<section class="entite">
|
<section class="entite">
|
||||||
<section v-if="entite.image.length" class="image">
|
<section v-if="entite.image.length" class="image">
|
||||||
<img :src="entite.image[0].url" :alt="entite.image[0].alt"/>
|
<figure>
|
||||||
|
<img :src="entite.image[0].url" :alt="entite.image[0].alt"/>
|
||||||
|
<figcaption>{{ entite.image[0].alt }}</figcaption>
|
||||||
|
</figure>
|
||||||
</section>
|
</section>
|
||||||
<section v-if="entite.action" class="action">
|
<section v-if="entite.action" class="action">
|
||||||
<label v-if="ct_entite">{{ ct_entite.field_action.description }}</label>
|
<label v-if="ct_entite">{{ ct_entite.field_action.description }}</label>
|
||||||
@ -74,7 +77,10 @@ export default {
|
|||||||
<figure
|
<figure
|
||||||
v-for="(image, j) in source.images"
|
v-for="(image, j) in source.images"
|
||||||
:key="j">
|
:key="j">
|
||||||
<img :src="image.url" :alt="image.alt"/>
|
<figure>
|
||||||
|
<img :src="image.url" :alt="image.alt"/>
|
||||||
|
<figcaption>{{ image.alt }}</figcaption>
|
||||||
|
</figure>
|
||||||
</figure>
|
</figure>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user