From dc279b43463bf8bbd68ddf362617b1a9000662d8 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 12 Jul 2024 14:59:27 +0800 Subject: [PATCH] :bug: Fix: fix code block scrollbar color error --- assets/css/_page/_single.scss | 12 +++++------- assets/css/_partials/_single/_code.scss | 1 + 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/assets/css/_page/_single.scss b/assets/css/_page/_single.scss index 6e6aab9d..acb10f36 100644 --- a/assets/css/_page/_single.scss +++ b/assets/css/_page/_single.scss @@ -257,13 +257,11 @@ } .table-wrapper { - &:not(> .lntable) { - overflow-x: auto; - --#{$prefix}scrollbar-thumb-color: #{$table-background-color}; - - [data-theme='dark'] & { - --#{$prefix}scrollbar-thumb-color: #{$table-background-color-dark}; - } + overflow-x: auto; + --#{$prefix}scrollbar-thumb-color: #{$table-background-color}; + + [data-theme='dark'] & { + --#{$prefix}scrollbar-thumb-color: #{$table-background-color-dark}; } > table { diff --git a/assets/css/_partials/_single/_code.scss b/assets/css/_partials/_single/_code.scss index 8a1c40ae..e9dc18a2 100644 --- a/assets/css/_partials/_single/_code.scss +++ b/assets/css/_partials/_single/_code.scss @@ -58,6 +58,7 @@ pre:not(.mermaid[data-processed='true']) { font-family: $code-font-family; .table-wrapper { + --#{$prefix}scrollbar-thumb-color: initial; > table, > table thead, > table tr,