Added new design
[wolnelektury.git] / src / wolnelektury / static / 2022 / styles / utils / bourbon / validators / _contains.scss
1 @charset "UTF-8";
2
3 /// Checks if a list contains a value(s).
4 ///
5 /// @argument {list} $list
6 ///   The list to check against.
7 ///
8 /// @argument {list} $values
9 ///   A single value or list of values to check for.
10 ///
11 /// @return {boolean}
12 ///
13 /// @access private
14
15 @function _contains(
16   $list,
17   $values...
18 ) {
19   @each $value in $values {
20     @if type-of(index($list, $value)) != "number" {
21       @return false;
22     }
23   }
24
25   @return true;
26 }