Skip to content

Commit

Permalink
Simplified pymdownx.tabbed selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Feb 14, 2020
1 parent a348663 commit 0d9fbcc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/assets/stylesheets/extensions/pymdown/_tabbed.scss
Expand Up @@ -68,12 +68,14 @@
margin-bottom: px2rem(12px);
}

// Emulate original pymdownx.superfences behavior and stretch to full
// width and height when when a code block is the only child of a tab
> {
div.highlight,
div.codehilite,
pre,
table.highlighttable,
table.codehilitetable {
.highlight,
.highlighttable,
.codehilite,
.codehilitetable {
&:only-child {
margin: 0 px2rem(-12px);
}
Expand Down

0 comments on commit 0d9fbcc

Please sign in to comment.