From e2a90e81cb7676d4f642268400109883f040ae10 Mon Sep 17 00:00:00 2001 From: s-ol Date: Wed, 30 Oct 2019 11:51:43 +0100 Subject: fix embed in static rendered markdown --- scss/_content.scss | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'scss') diff --git a/scss/_content.scss b/scss/_content.scss index 5b6e73b..7aa7b2c 100644 --- a/scss/_content.scss +++ b/scss/_content.scss @@ -11,7 +11,6 @@ .markdown, .markdown > p, - .markdown > p > a, .markdown > a { > img, > video { display: block; @@ -21,6 +20,10 @@ padding: 0 2em; box-sizing: border-box; } + + a, p { + max-width: 100%; + } } .markdown { @@ -38,6 +41,7 @@ } .embed { + display: block; width: inherit; height: inherit; @@ -55,6 +59,10 @@ margin: 0.2em; background: $gray-bright; } + + > *:not(.description) { + max-width: 100%; + } } pre > code { -- cgit v1.2.3