summaryrefslogtreecommitdiffstats
path: root/debian/missing-sources/bourbon/app/assets/stylesheets/functions/_contains-falsy.scss
blob: d5ab01b908130322a6fe82d7e2898c70575376e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@charset "UTF-8";

/// Checks if a list does not contains a value.
///
/// @access private
///
/// @param {List} $list
///   The list to check against.
///
/// @return {Bool}

@function contains-falsy($list) {
  @if $output-bourbon-deprecation-warnings == true {
    @warn "[Bourbon] [Deprecation] `contains-falsy` is deprecated and will be " +
    "removed in 5.0.0.";
  }

  @each $item in $list {
    @if not $item {
      @return true;
    }
  }

  @return false;
}