Debian Codegraph @

debian/missing-sources/bourbon/app/assets/stylesheets/functions/_contains.scss

raw
1 @charset "UTF-8";
2
3 /// Checks if a list contains a value(s).
4 ///
5 /// @access private
6 ///
7 /// @param {List} $list
8 /// The list to check against.
9 ///
10 /// @param {List} $values
11 /// A single value or list of values to check for.
12 ///
13 /// @example scss - Usage
14 /// contains($list, $value)
15 ///
16 /// @return {Bool}
17
18 @function contains($list, $values...) {
19 @if $output-bourbon-deprecation-warnings == true {
20 @warn "[Bourbon] [Deprecation] `contains` is deprecated and will be " +
21 "removed in 5.0.0.";
22 }
23
24 @each $value in $values {
25 @if type-of(index($list, $value)) != "number" {
26 @return false;
27 }
28 }
29
30 @return true;
31 }