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