From 5d6de5ecb1febac645b56cca7596ad0ce2ab9054 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 31 Dec 2020 17:01:26 +0530 Subject: [PATCH] post-single(css): fix scroll-bar in code hiding background --- assets/css/post-single.css | 8 ++++++++ assets/css/reset.css | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/css/post-single.css b/assets/css/post-single.css index 631313b0..393a86ac 100644 --- a/assets/css/post-single.css +++ b/assets/css/post-single.css @@ -337,3 +337,11 @@ h6:hover .anchor { margin-inline-start: 8px; font-weight: 500 } + +.post-content ::-webkit-scrollbar-thumb { + background: rgba(255, 255, 255, 0.32) +} + +.post-content ::-webkit-scrollbar-thumb:hover { + background: rgba(255, 255, 255, 0.64) +} diff --git a/assets/css/reset.css b/assets/css/reset.css index 96fb9af1..e00a762e 100644 --- a/assets/css/reset.css +++ b/assets/css/reset.css @@ -114,7 +114,7 @@ img { } ::-webkit-scrollbar-track { - background: var(--theme) + background: 0 0 } .list:not(.dark)::-webkit-scrollbar-track {