summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eliasson <andreas.eliasson@qt.io>2022-04-25 11:45:07 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-05-10 09:12:18 +0000
commit66802ddd1f393b42e71446bdde5177d4f9f9ab7d (patch)
tree6eed288bde7e5ea689c9cac7619e1f47c7c26330
parent935a5fde88238bfbd8a3c89ebe55d71017b76aa2 (diff)
Doc: Fix padding inside tab content
The previously defined padding for the tab content was overwritten to 0 by a more specific css selector. In addition, code snippets should not have any extra padding, hence the :not(.pre) css selector. Change-Id: I8f331924c5d01c8971660bb7a5b3aad25e3dee8a Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> (cherry picked from commit 0e087c9612e94d6a3d823cf0b130a08d96e4c435) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--doc/global/template/style/htmltabs.css11
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/global/template/style/htmltabs.css b/doc/global/template/style/htmltabs.css
index f09ec9f8c8..f904fb1635 100644
--- a/doc/global/template/style/htmltabs.css
+++ b/doc/global/template/style/htmltabs.css
@@ -13,7 +13,6 @@ input[type="radio"],
input[type="radio"] ~ .tabcontent {
display: none;
margin: 0;
- padding: 0;
}
input[type="radio"] + label {
@@ -44,12 +43,18 @@ input[type="radio"]:checked + label {
/* Some styling for the content */
div.tabcontent {
- padding-left: 10px;
- padding-top: 2px;
border-left: 3px solid #ccc;
border-top: 1px solid #ccc;
}
+div.tabcontent >:first-child:not(.pre) {
+ padding-top: 2px;
+}
+
+div.tabcontent >:not(.pre) {
+ padding-left: 10px;
+}
+
div.tabcontent pre {
margin-top: 0;
}