Hide Scrollbar automatically

Hidden scrollbar that is only displayed when actually scrolling rather than the ugly right bar that is always there.
This commit is contained in:
Nick Bland 2022-07-25 13:32:55 +10:00
parent 26a2e0d891
commit a86517ef32
No known key found for this signature in database
GPG Key ID: B46CF88E4DAB4A2C

View File

@ -1,3 +1,14 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;
/* hide scrollbar but allow scrolling */
body {
-ms-overflow-style: none; /* for Internet Explorer, Edge */
scrollbar-width: none; /* for Firefox */
overflow-y: scroll;
}
body::-webkit-scrollbar {
display: none; /* for Chrome, Safari, and Opera */
}