blob: c30fbd49e55c8a3e7da5cb9ace884696e73f3cb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
@charset "UTF-8";
/// Checks for a valid CSS size.
///
/// @param {String} $value
///
/// @require {function} contains
/// @require {function} is-length
@function is-size($value) {
@if $output-bourbon-deprecation-warnings == true {
@warn "[Bourbon] [Deprecation] `is-size` is deprecated and will be " +
"removed in 5.0.0.";
}
$user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
$output-bourbon-deprecation-warnings: false !global;
@return is-length($value)
or contains("fill" "fit-content" "min-content" "max-content", $value);
$output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
}
|