From eb64b4122d0ea4026c187e4878cbba1b5498ed84 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 26 Aug 2021 02:21:55 +0200 Subject: [PATCH] Improve iframe and image rendering --- static/src/scss/style.scss | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index 3994015..831fb33 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -147,6 +147,23 @@ table td { margin-top: $headings-margin-bottom * 2.2; } + img { + width: 100%; + } + + iframe { + width: 100%; + + &:not([height]) { + height: 75vh; + } + + &.youtube-embed { + margin-bottom: $paragraph-margin-bottom; + height: 50vh; + } + } + table { @extend .table, .table-dark, .table-striped; margin: 0 auto;