🎨 Merge branch 'develop'

This commit is contained in:
凡梦星尘
2022-06-12 15:34:38 +08:00
182 changed files with 7702 additions and 3249 deletions

View File

@@ -11,13 +11,11 @@
position: absolute;
transition: opacity $transition-ease;
@if $cfg_codeblock_copy_btn_style == 'flat' {
background: white;
border: 0;
font-size: $font-size-smaller;
right: 0;
top: 0;
} @else if $cfg_codeblock_copy_btn_style == 'mac' {
color: var(--highlight-foreground);
font-size: 14px;
right: 0;
@@ -33,7 +31,6 @@
}
}
@if $cfg_codeblock_copy_btn_style == 'mac' {
figure.highlight {
border-radius: 5px;
box-shadow: 0 10px 30px 0 rgba(0, 0, 0, .4);

View File

@@ -1,13 +1,8 @@
// Use `@use` to fix issue #67
// TODO Not understand how to import dymatic variable
// @import '(theme.highlight.enable && theme.highlight.light.file) ? theme.highlight.light.file : null';
// @import '(theme.prism.enable && theme.prism.light) ? theme.prism.light : null';
// @import '(theme.prism.enable && theme.prism.number) ? theme.prism.number : null';
// @media (prefers-color-scheme: dark) {
// @import '(theme.darkmode && theme.highlight.enable && theme.highlight.dark.file) ? theme.highlight.dark.file : null';
// @import '(theme.darkmode && theme.prism.enable && theme.prism.dark) ? theme.prism.dark : null';
// }
// @import 'theme.codeblock.copy_button.enable ? "copy-code" : null';
@@ -43,6 +38,7 @@
pre, code {
font-family: $code-font-family;
color: #fff;
}
code {
@@ -61,6 +57,7 @@ kbd {
font-family: inherit;
padding: .1em .3em;
white-space: nowrap;
color: #fff;
}
// `highlight.line_number: false` and `highlight.wrap: false`