refactor: consolidate code block rendering and enhance styling features (#665)

reference issues: #312, #476
This commit is contained in:
Cell
2025-12-19 23:31:18 +08:00
parent 0a614e1763
commit f2b6218edc
12 changed files with 461 additions and 467 deletions
@@ -19,11 +19,6 @@
display: block;
background-color: var(#{$rootPrefix}code-highlight-color);
box-shadow: -0.75rem 0 0 var(#{$rootPrefix}code-highlight-color), 0.75rem 0 0 var(#{$rootPrefix}code-highlight-color);
#{$rootPrefix}code-highlight-color: #{$code-highlight-color};
[data-theme='dark'] & {
#{$rootPrefix}code-highlight-color: #{$code-highlight-color-dark};
}
}
@import '../_code-syntax/light';