Skip to content

Commit

Permalink
implement hide scrollbar utility
Browse files Browse the repository at this point in the history
  • Loading branch information
yinkakun committed Oct 23, 2022
1 parent 0bf9763 commit 0831c03
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions storefront/styles/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
.scrollbar-hide {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera*/
}

.scrollbar-show {
-ms-overflow-style: auto; /* IE and Edge */
scrollbar-width: auto; /* Firefox */
}

.scrollbar-show::-webkit-scrollbar {
display: auto; /* Chrome, Safari, Opera*/
}
}

0 comments on commit 0831c03

Please sign in to comment.