💄 Style: scrollbar styles compatible with modern and legacy browsers

This commit is contained in:
Cell
2024-06-25 12:23:21 +08:00
parent 678e2c0053
commit ca73ca2066
13 changed files with 65 additions and 72 deletions
+8 -4
View File
@@ -348,12 +348,16 @@ pre:not(.mermaid[data-processed='true']) {
}
.table-wrapper {
.highlight,
&::-webkit-scrollbar {
background-color: #f6f8fa;
--#{$prefix}scrollbar-thumb-color: #{$code-background-color};
[data-theme='dark'] & {
--#{$prefix}scrollbar-thumb-color: #{$code-background-color-dark};
}
.highlight {
background-color: $code-background-color;
[data-theme='dark'] & {
background-color: #2d333b;
background-color: $code-background-color-dark;
}
}
}