Skip to content

Commit

Permalink
Doc: Fix padding inside tab content
Browse files Browse the repository at this point in the history
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.

Pick-to: 6.3
Change-Id: I8f331924c5d01c8971660bb7a5b3aad25e3dee8a
Reviewed-by: Venugopal Shivashankar <[email protected]>
  • Loading branch information
andreaseliasson committed May 9, 2022
1 parent 19a5273 commit 0e087c9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions doc/global/template/style/htmltabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ input[type="radio"],
input[type="radio"] ~ .tabcontent {
display: none;
margin: 0;
padding: 0;
}

input[type="radio"] + label {
Expand Down Expand Up @@ -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;
}

0 comments on commit 0e087c9

Please sign in to comment.