From b00b799d18713468b5dab781ab9445ba241a8db2 Mon Sep 17 00:00:00 2001 From: Cuong Nguyen Date: Thu, 21 Oct 2021 15:58:41 +0700 Subject: [PATCH] dark mode for scroll bar --- admin_reskin/templates/admin/base_site.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/admin_reskin/templates/admin/base_site.html b/admin_reskin/templates/admin/base_site.html index 8fcb8c4..f165988 100644 --- a/admin_reskin/templates/admin/base_site.html +++ b/admin_reskin/templates/admin/base_site.html @@ -195,6 +195,20 @@ } @media (prefers-color-scheme: dark) { + #nav-sidebar::-webkit-scrollbar-track { + -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); + background-color: #212121; + } + + #nav-sidebar::-webkit-scrollbar { + background-color: #464646; + } + + #nav-sidebar::-webkit-scrollbar-thumb { + background-color: #4c4c4c; + border: 1px solid #383838; + } + #nav-sidebar { background-color: #212121; }