Make video class not talk specific

This commit is contained in:
Oliver Davies 2019-05-30 23:05:39 +01:00
parent e36755013d
commit 969dc5e17e
3 changed files with 7 additions and 4 deletions

View file

@ -47,8 +47,8 @@ p.lead {
@import 'components/button.css';
@import 'components/markup.css';
@import 'components/note.css';
@import 'components/talks/video.css';
@import 'components/table.css';
@import 'components/video.css';
@import 'components/widget.css';
@tailwind utilities;

View file

@ -1,4 +1,7 @@
.talk-video {
.video-full {
@apply w-full relative;
padding-top: 56.25%;
iframe,
embed {
@apply absolute h-full left-0 top-0 w-full

View file

@ -1,8 +1,8 @@
{% if page.youtube.id or page.vimeo.id %}
<div class="talk-video mt-4">
<div class="mt-4">
<h2 class="mb-2">Video</h2>
<div class="w-full relative" style="padding-top: 56.25%">
<div class="video-full">
{% if page.youtube.id %}
<iframe
width="678"