-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flex-shrink.scss
32 lines (32 loc) · 956 Bytes
/
flex-shrink.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
/// Defines shrink factor of flex item
/// @param {string} $value
/// @returns {CSS} - `Property: Value` with prefixed properties
/// @see {link} - https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink
/// @example - Available values
/// - `_number_`
/// - `initial`
/// - `inherit`
/// @example scss - Usage of flex-shrink
/// .example-class {
/// @include flex-shrink($value: none);
/// }
/// @example css - Results of flex-shrink
/// .example-class {
/// -webkit-flex-shrink: none;
/// -moz-flex-shrink: none;
/// flex-shrink: none;
/// }
/// @requires {mixin} render-vendor-prefixes
/// @author S0AndS0
/// @license AGPL-3.0
@mixin flex-shrink($value) {
@include render-vendor-prefixes(
$property: flex-shrink,
$value: $value,
$vendor-list: (
-webkit, // Chrome 29.0/21.0, Opera 37.0/15.0, Safari 9.0/6.1
-moz, // Firefox 28.0/18.0
),
$prefix: property,
);
}