From b38917b7d1e8c8b7c76e1f538fb1026b27e41b9a Mon Sep 17 00:00:00 2001 From: geekifan Date: Mon, 28 Apr 2025 17:10:32 +0800 Subject: [PATCH] fix: modify _synatx.scss to make inline code style work --- assets/scss/base/_syntax.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/scss/base/_syntax.scss b/assets/scss/base/_syntax.scss index 69924fc..a533617 100644 --- a/assets/scss/base/_syntax.scss +++ b/assets/scss/base/_syntax.scss @@ -3,7 +3,7 @@ @use '../abstracts/mixins' as mx; @use '../abstracts/placeholders'; -.highlighter-rouge { +p > code { color: var(--highlighter-rouge-color); margin-top: 0.5rem; margin-bottom: 1.2em; /* Override BS Inline-code style */ @@ -63,7 +63,7 @@ code { hyphens: none; color: var(--code-color); - &.highlighter-rouge { + p > & { font-size: v.$code-font-size; padding: 3px 5px; word-break: break-word; @@ -78,12 +78,12 @@ code { padding: 0; } - a > &.highlighter-rouge { + a > & { padding-bottom: 0; /* show link's underlinke */ color: inherit; } - a:hover > &.highlighter-rouge { + a:hover > & { border-bottom: none; }