feat: enhance scrollbar style (#56)

* feat: enhance scrollbar style

* chore: set `color-scheme` for document element
This commit is contained in:
Xin
2023-09-13 19:01:38 -04:00
committed by GitHub
parent 84ac7fe773
commit e9ea9786e9
9 changed files with 60 additions and 4 deletions

View File

@ -15,7 +15,7 @@
<div class="px-4 pt-4 md:hidden">
{{ partial "search.html" }}
</div>
<div class="overflow-y-auto overflow-x-hidden p-4 grow md:h-[calc(100vh-var(--navbar-height)-var(--menu-height))]">
<div class="hextra-scrollbar overflow-y-auto overflow-x-hidden p-4 grow md:h-[calc(100vh-var(--navbar-height)-var(--menu-height))]">
<ul class="flex flex-col gap-1 md:hidden">
<!-- Nav -->
{{ template "sidebar-main" (dict "context" site.Home "pageURL" $pageURL "page" $context "toc" true) -}}