update _syntax.scss

This commit is contained in:
geekifan
2025-04-28 19:52:51 +08:00
parent 63f87d1887
commit 13dc3b9771

View File

@ -3,7 +3,7 @@
@use '../abstracts/mixins' as mx; @use '../abstracts/mixins' as mx;
@use '../abstracts/placeholders'; @use '../abstracts/placeholders';
p > code { code:not([class]):not([id]) {
color: var(--highlighter-rouge-color); color: var(--highlighter-rouge-color);
margin-top: 0.5rem; margin-top: 0.5rem;
margin-bottom: 1.2em; /* Override BS Inline-code style */ margin-bottom: 1.2em; /* Override BS Inline-code style */
@ -57,13 +57,7 @@ p > code {
} }
} /* .highlight */ } /* .highlight */
code { code:not([class]):not([id]) {
-webkit-hyphens: none;
-ms-hyphens: none;
hyphens: none;
color: var(--code-color);
p > & {
font-size: v.$code-font-size; font-size: v.$code-font-size;
padding: 3px 5px; padding: 3px 5px;
word-break: break-word; word-break: break-word;
@ -71,6 +65,13 @@ code {
background-color: var(--inline-code-bg); background-color: var(--inline-code-bg);
} }
code {
-webkit-hyphens: none;
-ms-hyphens: none;
hyphens: none;
color: var(--code-color);
&.filepath { &.filepath {
background-color: inherit; background-color: inherit;
color: var(--filepath-text-color); color: var(--filepath-text-color);