Skip to content

Commit 1f0a8dd

Browse files
committed
Handle when tabs have both codeblock and footer
1 parent eda8328 commit 1f0a8dd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/css/custom.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,14 @@ header {
678678
}
679679

680680
.tabs-container:has(
681-
> .margin-top--md > [role='tabpanel'] > .theme-code-block:only-child
682-
):not(:has(> .margin-top--md > [role='tabpanel'] > :nth-child(2))) {
681+
> .margin-top--md > [role='tabpanel'] > .theme-code-block:only-child
682+
),
683+
.tabs-container:has(
684+
> .margin-top--md
685+
> [role='tabpanel']
686+
> .theme-code-block:first-child
687+
+ .code-block-footer:last-child
688+
) {
683689
& > .margin-top--md {
684690
margin-top: 0 !important;
685691
}
@@ -715,7 +721,7 @@ header {
715721
border-bottom-color: var(--ifm-tabs-color-active-border);
716722
}
717723

718-
& [role='tabpanel'] > .theme-code-block:only-child {
724+
& [role='tabpanel'] > .theme-code-block:first-child {
719725
border-top: none;
720726
border-top-left-radius: 0;
721727
border-top-right-radius: 0;

0 commit comments

Comments
 (0)