diff options
Diffstat (limited to 'debian/missing-sources/bourbon/app/assets/stylesheets/functions/_contains.scss')
-rw-r--r-- | debian/missing-sources/bourbon/app/assets/stylesheets/functions/_contains.scss | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/missing-sources/bourbon/app/assets/stylesheets/functions/_contains.scss b/debian/missing-sources/bourbon/app/assets/stylesheets/functions/_contains.scss new file mode 100644 index 0000000..4db1eaf --- /dev/null +++ b/debian/missing-sources/bourbon/app/assets/stylesheets/functions/_contains.scss @@ -0,0 +1,31 @@ +@charset "UTF-8"; + +/// Checks if a list contains a value(s). +/// +/// @access private +/// +/// @param {List} $list +/// The list to check against. +/// +/// @param {List} $values +/// A single value or list of values to check for. +/// +/// @example scss - Usage +/// contains($list, $value) +/// +/// @return {Bool} + +@function contains($list, $values...) { + @if $output-bourbon-deprecation-warnings == true { + @warn "[Bourbon] [Deprecation] `contains` is deprecated and will be " + + "removed in 5.0.0."; + } + + @each $value in $values { + @if type-of(index($list, $value)) != "number" { + @return false; + } + } + + @return true; +} |