fix caption on video
This commit is contained in:
parent
d3c0e1e466
commit
ef199a5d52
@ -256,7 +256,7 @@ footer a {
|
||||
}
|
||||
|
||||
|
||||
.share, .author {
|
||||
.share, .author-meta {
|
||||
text-align: center;
|
||||
height: auto;
|
||||
position: relative;
|
||||
@ -310,25 +310,30 @@ a.google {
|
||||
background-position: -172px 0 !important;
|
||||
}
|
||||
|
||||
.author img.circle {
|
||||
.author-meta img.circle {
|
||||
border-radius: 50%;
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
.author {
|
||||
.author-meta {
|
||||
padding-bottom: 7em;
|
||||
}
|
||||
|
||||
.author-meta {
|
||||
.author-info {
|
||||
color: #ccc;
|
||||
font-style: italic;
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
.author h4 {
|
||||
.author-info h4 {
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
font-family: 'crimson', serif;
|
||||
color: black;
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
}
|
||||
.author .desc {
|
||||
.author-info .desc {
|
||||
width: 350px;
|
||||
margin: auto;
|
||||
padding-bottom: 10px;
|
||||
@ -343,7 +348,7 @@ a.google {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
z-index: 0;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
@ -1,13 +1,14 @@
|
||||
{% set image = Image(section.image) %}
|
||||
{{ image.copy() }}
|
||||
<div class="author">
|
||||
<div class="author-meta">
|
||||
<img src={{ image.generate_thumbnail("200x200") }} alt="" class="circle">
|
||||
<div>
|
||||
<span class=author-meta>Story by</span>
|
||||
<span class=author-info>Story by
|
||||
<h4>{{ section.name }}</h4>
|
||||
{% if section.text %}
|
||||
<div class=desc>{{ section.text }}</div>
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
<div class="separator"></div>
|
||||
<div>
|
||||
|
@ -6,6 +6,7 @@
|
||||
<div class="pictures-line">
|
||||
{% for image in line %}
|
||||
{% if image.type == "video" %}
|
||||
{% set caption = image.text %}
|
||||
{% set video = Video(image) %}
|
||||
{{ video.copy() }}
|
||||
{% else %}
|
||||
@ -19,6 +20,11 @@
|
||||
<video class="lazy" id="video" poster="{{ video.generate_thumbnail("600") }}" alt="" autoplay="autoplay" loop="loop" preload="auto" muted>
|
||||
<source src="{{ video }}" type="video/webm" data-source="{{ video }}" data-format="vp8" data-extension="webm">
|
||||
</video>
|
||||
{% if caption %}
|
||||
<div class="caption__overlay">
|
||||
<h5 class="caption__overlay__title">{{ caption }}</h5>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% set video = "" %}
|
||||
{% else %}
|
||||
<a href="{{ image }}" {% if caption %}data-caption="{{ caption }}"{% endif %}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user