-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
resize.scss
33 lines (33 loc) · 884 Bytes
/
resize.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
/// No MS support as of 2019, sets if an element is resizable and how
/// @param {string} $value
/// @returns {CSS} - `Property: Value` with prefixed properties
/// @see {link} - https://developer.mozilla.org/en-US/docs/Web/CSS/resize
/// @example - Available values
/// - `none`
/// - `both`
/// - `horizontal`
/// - `vertical`
/// - `initial`
/// - `inherit`
/// @example scss - Usage of resize
/// .example-class {
/// @include resize($value: both);
/// }
/// @example css - Results of resize
/// .example-class {
/// -moz-resize: both;
/// resize: both;
/// }
/// @requires {mixin} render-vendor-prefixes
/// @author S0AndS0
/// @license AGPL-3.0
@mixin resize($value) {
@include render-vendor-prefixes(
$property: resize,
$value: $value,
$vendor-list: (
-moz, // Firefox 5.0/4.0
),
$prefix: property,
);
}