From 83d57ff0aa3dab717184dbaa9f35bf114486bc23 Mon Sep 17 00:00:00 2001 From: Dair Aidarkhanov <36963426+aidarkhanov@users.noreply.github.com> Date: Sun, 8 Mar 2020 16:20:36 +0600 Subject: [PATCH] Reset iframe styles Updated styles for iframes as they are not responsive by default. Also addresses the border issue #17. --- src/reset.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/reset.css b/src/reset.css index ac41cf2..af066b3 100644 --- a/src/reset.css +++ b/src/reset.css @@ -46,10 +46,11 @@ a:not([class]) { text-decoration-skip-ink: auto; } -/* Make images easier to work with */ +/* Make images and iframes easier to work with */ +iframe, img { - max-width: 100%; display: block; + max-width: 100%; } /* Natural flow and rhythm in articles by default */ @@ -70,6 +71,11 @@ img:not([alt]) { filter: blur(10px); } +/* Remove border from iframes */ +iframe { + border: 0; +} + /* Remove all animations and transitions for people that prefer not to see them */ @media (prefers-reduced-motion: reduce) { * {