summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/static/style.css1
-rw-r--r--templates/blocks/video.html4
2 files changed, 4 insertions, 1 deletions
diff --git a/assets/static/style.css b/assets/static/style.css
index af14148..493b64b 100644
--- a/assets/static/style.css
+++ b/assets/static/style.css
@@ -302,6 +302,7 @@ div.previews{
}
.caption{
margin-bottom: 1vH;
+ font-size: 75%;
}
/*gallery end*/
diff --git a/templates/blocks/video.html b/templates/blocks/video.html
index b906e9d..55c55e5 100644
--- a/templates/blocks/video.html
+++ b/templates/blocks/video.html
@@ -1,9 +1,11 @@
<div class="videodiv">
- {%if this.caption %}<h2 class="gallerytitle">{{ this.caption }}</h2>{% endif %}
<div class="video">
<video max-width="720px" preload="metadata" controls="">
{% set video = record.attachments.videos.get(this.url) %}
<source src="{{ video|url }}" type="video/mp4">
</video>
+ {% if this.caption %}
+ <div class="caption">{{this.caption}}</div>
+ {% endif %}
</div>
</div>