-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
overflow-y.scss
33 lines (33 loc) · 912 Bytes
/
overflow-y.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/// Sets block-level overflow behaviour for top and bottom edges
/// @param {string} $value
/// @returns {CSS} - `Property: Value` with prefixed properties
/// @see {link} - https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-y
/// @example - Available values
/// - `visible`
/// - `hidden`
/// - `scroll`
/// - `auto`
/// - `initial`
/// - `inherit`
/// @example scss - Usage of overflow-y
/// .example-class {
/// @include overflow-y($value: scroll);
/// }
/// @example css - Results of overflow-y
/// .example-class {
/// -ms-overflow-y: scroll;
/// overflow-y: scroll;
/// }
/// @requires {mixin} render-vendor-prefixes
/// @author S0AndS0
/// @license AGPL-3.0
@mixin overflow-y($value) {
@include render-vendor-prefixes(
$property: overflow-y,
$value: $value,
$vendor-list: (
-ms, // IE/Edge 9.0/8.0
),
$prefix: property,
);
}