style: hide scrollbar on mobile

This commit is contained in:
Jing Hua 2023-03-04 08:07:57 +08:00
parent 8bfe692a40
commit 5572f20a6a

View file

@ -37,6 +37,13 @@
} }
} }
@media screen and (max-width: 768px) {
::-webkit-scrollbar {
display: none;
scrollbar-width: none; /* Firefox */
}
}
.dark::-webkit-scrollbar-thumb { .dark::-webkit-scrollbar-thumb {
--tw-bg-opacity: 1; --tw-bg-opacity: 1;
background-color: rgba(86, 88, 105, var(--tw-bg-opacity)); background-color: rgba(86, 88, 105, var(--tw-bg-opacity));