hide-scrollbar

Visually hides any scrollbar.

Arguments

Example

@use 'more-sass' as more;

.block {
    @include more.hide-scrollbar;
}
.block {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.block::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  appearance: none;
}
Edit this page on GitHub Updated at Mon, Jan 30, 2023