From 0d9fbcceb46bba5588edfceb9df2e1de18068b63 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 14 Feb 2020 08:20:48 +0100 Subject: [PATCH] Simplified pymdownx.tabbed selectors --- src/assets/stylesheets/extensions/pymdown/_tabbed.scss | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/assets/stylesheets/extensions/pymdown/_tabbed.scss b/src/assets/stylesheets/extensions/pymdown/_tabbed.scss index e1c497714..a3f449a82 100644 --- a/src/assets/stylesheets/extensions/pymdown/_tabbed.scss +++ b/src/assets/stylesheets/extensions/pymdown/_tabbed.scss @@ -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); }