Skip to content

Commit

Permalink
🐛 Fix: fix code block scrollbar color error
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jul 4, 2024
1 parent 061a3e3 commit 4f56a40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
12 changes: 7 additions & 5 deletions assets/css/_page/_single.scss
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,13 @@
}

.table-wrapper {
overflow-x: auto;
--#{$prefix}scrollbar-thumb-color: #{$table-background-color};

[data-theme='dark'] & {
--#{$prefix}scrollbar-thumb-color: #{$table-background-color-dark};
&:not(> .lntable) {
overflow-x: auto;
--#{$prefix}scrollbar-thumb-color: #{$table-background-color};

[data-theme='dark'] & {
--#{$prefix}scrollbar-thumb-color: #{$table-background-color-dark};
}
}

> table {
Expand Down
5 changes: 0 additions & 5 deletions assets/css/_partials/_single/_code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -356,11 +356,6 @@ pre:not(.mermaid[data-processed='true']) {
}

.table-wrapper {
--#{$prefix}scrollbar-thumb-color: #{$code-background-color};

[data-theme='dark'] & {
--#{$prefix}scrollbar-thumb-color: #{$code-background-color-dark};
}
.highlight {
background-color: $code-background-color;

Expand Down

0 comments on commit 4f56a40

Please sign in to comment.