Skip to content

Commit f1ae819

Browse files
committed
add no-scrollbar css utility
1 parent dbaa949 commit f1ae819

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

styles/globals.css

+15
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
@layer utilities {
6+
@variants responsive {
7+
/* Hide scrollbar for Chrome, Safari and Opera */
8+
.no-scrollbar::-webkit-scrollbar {
9+
display: none;
10+
}
11+
12+
/* Hide scrollbar for IE, Edge and Firefox */
13+
.no-scrollbar {
14+
-ms-overflow-style: none; /* IE and Edge */
15+
scrollbar-width: none; /* Firefox */
16+
}
17+
}
18+
}
19+
520
html,
621
body {
722
padding: 0;

0 commit comments

Comments
 (0)