Fix for the scrollbar in the docs sidebar (#564)

* fix for the scrollbar in the docs sidebar

* fix
This commit is contained in:
trean
2024-02-01 10:36:12 +01:00
committed by GitHub
parent df32e0dca1
commit 2877608097
2 changed files with 13 additions and 10 deletions
@@ -63,33 +63,36 @@
max-height: calc(100vh - 90px);
}
&::-webkit-scrollbar {
display: none;
}
&::-webkit-scrollbar {
width: 1px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: var(--brand-gray);
background: transparent;
}
&:hover {
scrollbar-width: thin; /* Firefox */
scrollbar-width: none; /* Firefox */
scrollbar-color: var(--brand-gray) var(--brand-mid-grey) !important;
&::-webkit-scrollbar {
display: block;
}
&::-webkit-scrollbar-thumb {
background: var(--brand-gray);
}
}
@media (hover: none) {
scrollbar-width: thin; /* Firefox */
scrollbar-width: none; /* Firefox */
scrollbar-color: var(--brand-gray) var(--brand-mid-grey) !important;
&::-webkit-scrollbar {
display: block;
&::-webkit-scrollbar-thumb {
background: var(--brand-gray);
}
}
}