Skip to content

Commit

Permalink
Doc: Pad text and pre code blocks in tabs
Browse files Browse the repository at this point in the history
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ø <[email protected]>
  • Loading branch information
andreaseliasson committed Sep 20, 2024
1 parent f0aa391 commit e01ba18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/global/template/style/htmltabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e01ba18

Please sign in to comment.