Skip to content

Commit 1b427ca

Browse files
committed
feat (mixin) : add invisible scrollbar mixin
1 parent a97e928 commit 1b427ca

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 5.0.9
2+
- Add invisible scrollbar SCSS mixin
3+
14
# 5.0.8
25
- Fix filename for editor script and editor style
36

src/scss/abstract/_index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
@import "./m-hardware";
2727
@import "./m-hover";
2828
@import "./m-img-responsive";
29+
@import "./m-invisible-scrollbar";
2930
@import "./m-placeholder";
3031
@import "./m-placeholder-media";
3132
@import "./m-pseudo-content";
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Invisible scrollbar
3+
*
4+
* /!\ ALERT : Don't use this mixin neither on the html element, nor on the body element to avoid deteriorating accessibility
5+
*/
6+
7+
@mixin invisible-scrollbar {
8+
-ms-overflow-style: none; /* IE and Edge */
9+
scrollbar-width: none; /* Firefox */
10+
11+
&::-webkit-scrollbar {
12+
display: none;
13+
}
14+
}

0 commit comments

Comments
 (0)