From 51a48e186912a445888de8b767aa44a49e46a7f6 Mon Sep 17 00:00:00 2001 From: Uchechukwu Obasi Date: Thu, 14 Oct 2021 15:43:33 +0100 Subject: [PATCH] Text Panel: fixes unnecessary scroll in markdown html tables (#40315) * Text Panel: fixes unnecessary scroll in tables * uses more robust solution that covers every edge case * chore: uses variables instead and sets first child margins to zero * override margin for only h1 and figure elements * remove override styles for h1,table markdown contents --- public/sass/base/_type.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/sass/base/_type.scss b/public/sass/base/_type.scss index 1537734ec8a..d26fbcd1c3f 100644 --- a/public/sass/base/_type.scss +++ b/public/sass/base/_type.scss @@ -213,8 +213,8 @@ a.external-link { margin-bottom: $spacer; } - table { - margin-bottom: $spacer; + *:not(:first-child) { + margin-top: $spacer; } table {