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.9 6.8 6.5
Change-Id: I6411dcda9cfed5f0f82d8bd9ea8dc809b1a3b4d6
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
This commit is contained in:
Andreas Eliasson 2025-02-12 12:11:19 +01:00
parent 41ffc92f18
commit 9e61bd2465

View File

@ -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;
}