From cadca8a68ac02aab951fb6f27b89c9e6eebcd825 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 26 Jan 2021 10:52:30 +0530 Subject: [PATCH] fix scroll-bar colors for tables --- assets/css/post-single.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/css/post-single.css b/assets/css/post-single.css index 9c382a55..d321e36a 100644 --- a/assets/css/post-single.css +++ b/assets/css/post-single.css @@ -346,20 +346,24 @@ h6:hover .anchor { font-weight: 500 } -.post-content ::-webkit-scrollbar-thumb { +.post-content :not(table) ::-webkit-scrollbar-thumb { border: 2px solid var(--hljs-bg); background: rgba(255, 255, 255, 0.32) } -.post-content ::-webkit-scrollbar-thumb:hover { +.post-content :not(table) ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.56) } -.gist ::-webkit-scrollbar-thumb { +.gist table::-webkit-scrollbar-thumb { border: 2px solid rgb(255, 255, 255); background: rgba(0, 0, 0, 0.32) } -.gist ::-webkit-scrollbar-thumb:hover { +.gist table::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.56) } + +.post-content table::-webkit-scrollbar-thumb { + border-width: 2px; +}