From 54cc218f4659d70fb056ccc399f147810b71a672 Mon Sep 17 00:00:00 2001 From: Andreas Eliasson Date: Wed, 12 Feb 2025 12:11:19 +0100 Subject: [PATCH] Doc: Don't add padding to div that wraps the pre element The current style adds padding to non-pre elements, such as any p or div elements. The final html adds a wrapping div with a .pre class that also gets padding added to it. This patch removes the padding from this wrapping div. Fixes: QTBUG-133710 Pick-to: 6.8 6.5 Change-Id: I6411dcda9cfed5f0f82d8bd9ea8dc809b1a3b4d6 Reviewed-by: Venugopal Shivashankar (cherry picked from commit 9e61bd24659d7db1ac90fe3ce4f686c5cdb47874) Reviewed-by: Qt Cherry-pick Bot --- doc/global/template/style/htmltabs.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/global/template/style/htmltabs.css b/doc/global/template/style/htmltabs.css index 8dd310fffd3..87046f2c767 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) { +div.tabcontent >:first-child:not(pre, .pre) { padding-top: 10px; } -div.tabcontent >:not(pre) { +div.tabcontent >:not(pre, .pre) { padding-left: 10px; }