-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Document new
hide-scrollbar
mixin
- Loading branch information
Showing
2 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
title: hide-scrollbar | ||
description: More Sass - the library of useful SCSS mixins and functions. | ||
position: 251 | ||
category: Mixins | ||
fullscreen: true | ||
--- | ||
|
||
Visually hides any scrollbar. | ||
|
||
## Arguments | ||
|
||
— | ||
|
||
### Example | ||
|
||
<code-group> | ||
|
||
<code-block label="SCSS" active> | ||
|
||
```scss | ||
@use 'more-sass' as more; | ||
|
||
.block { | ||
@include more.hide-scrollbar; | ||
} | ||
``` | ||
|
||
</code-block> | ||
|
||
<code-block label="Output"> | ||
|
||
```css | ||
.block { | ||
-webkit-overflow-scrolling: touch; | ||
scrollbar-width: none; | ||
} | ||
|
||
.block::-webkit-scrollbar { | ||
display: none; | ||
width: 0; | ||
height: 0; | ||
appearance: none; | ||
} | ||
``` | ||
|
||
</code-block> | ||
|
||
</code-group> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
title: hide-scrollbar | ||
description: More Sass - библиотека полезных миксинов и функций для SCSS. | ||
position: 251 | ||
category: Миксины | ||
fullscreen: true | ||
--- | ||
|
||
Визуально прячет любой скроллбар элемента. | ||
|
||
## Параметры | ||
|
||
— | ||
|
||
### Пример использования | ||
|
||
<code-group> | ||
|
||
<code-block label="SCSS" active> | ||
|
||
```scss | ||
@use 'more-sass' as more; | ||
|
||
.block { | ||
@include more.hide-scrollbar; | ||
} | ||
``` | ||
|
||
</code-block> | ||
|
||
<code-block label="Output"> | ||
|
||
```css | ||
.block { | ||
-webkit-overflow-scrolling: touch; | ||
scrollbar-width: none; | ||
} | ||
|
||
.block::-webkit-scrollbar { | ||
display: none; | ||
width: 0; | ||
height: 0; | ||
appearance: none; | ||
} | ||
``` | ||
|
||
</code-block> | ||
|
||
</code-group> |