From 07b8550b0425f53203d01e06f1cbc459f54f3c07 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Tue, 11 Oct 2022 20:21:47 +0800 Subject: [PATCH] fix code style --- source/css/_common/highlight.styl | 2 +- source/css/_common/pre.styl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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