diff --git a/source/css/_common/highlight.styl b/source/css/_common/highlight.styl index 92116ed..f3c1a47 100644 --- a/source/css/_common/highlight.styl +++ b/source/css/_common/highlight.styl @@ -11,7 +11,7 @@ p>code:not([class]),li>code:not([class]) padding: .2em .4em border-radius: 4px -article.md .highlight, .tag-plugin pre:not([class]) +article.md .highlight, pre:not([class]):has(>code) margin: var(--gap-p) 0 border-radius: $border-block overflow: hidden diff --git a/source/css/_common/pre.styl b/source/css/_common/pre.styl index 694be44..1ca1247 100644 --- a/source/css/_common/pre.styl +++ b/source/css/_common/pre.styl @@ -1,4 +1,4 @@ -.tag-plugin pre:not([class]) +pre:not([class]):has(>code) display: block padding: 1rem overflow: scroll