From e01ba1824ee27ebafe8cde79e0e0e0d36dcf3467 Mon Sep 17 00:00:00 2001 From: Andreas Eliasson Date: Fri, 13 Sep 2024 10:45:18 +0200 Subject: [PATCH] Doc: Pad text and pre code blocks in tabs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the pre element selector, not the .pre class selector to add correct padding to pre code blocks and non-code blocks. Pick-to: 6.8 6.7 6.5 6.2 Change-Id: I14886f44597354c81840a866c75caa62387a7375 Reviewed-by: Tor Arne Vestbø --- doc/global/template/style/htmltabs.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/global/template/style/htmltabs.css b/doc/global/template/style/htmltabs.css index f904fb1635d..8dd310fffd3 100644 --- a/doc/global/template/style/htmltabs.css +++ b/doc/global/template/style/htmltabs.css @@ -47,11 +47,11 @@ div.tabcontent { border-top: 1px solid #ccc; } -div.tabcontent >:first-child:not(.pre) { - padding-top: 2px; +div.tabcontent >:first-child:not(pre) { + padding-top: 10px; } -div.tabcontent >:not(.pre) { +div.tabcontent >:not(pre) { padding-left: 10px; }