From 0b845d6f71dcf808ca3f528d62191d1f2a0c3641 Mon Sep 17 00:00:00 2001 From: Amneesh Singh Date: Wed, 2 Nov 2022 17:35:56 +0530 Subject: [PATCH] dailies: add a max-width of 100% to media Signed-off-by: Amneesh Singh --- css/default.css | 19 +++++++++++++++++++ dailies/1.org | 4 +++- dailies/2.org | 8 ++++++-- dailies/3.org | 4 +++- dailies/4.org | 6 ++++-- 5 files changed, 35 insertions(+), 6 deletions(-) diff --git a/css/default.css b/css/default.css index f73f665..9df5d49 100644 --- a/css/default.css +++ b/css/default.css @@ -213,6 +213,25 @@ pre { max-width: 40%; } +img, video { + max-width: 100%; +} + +.iframe-parent { + max-width: 100%; + position: relative; + height: 0; + padding-bottom: 56.25% +} + +.iframe-parent iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} + @media (max-width: 319px) { body { width: 90%; diff --git a/dailies/1.org b/dailies/1.org index 02dbba6..83ad7b0 100644 --- a/dailies/1.org +++ b/dailies/1.org @@ -20,7 +20,9 @@ Doing chores sucks but errands suck more. Also self hosting shit sucks, but I do * Song of the Day Been loving this one since my early adolescence. #+begin_export html -