Sha256: 5aa93d3cf3b4b5be3f57c18af539d6c094d59404ddc27e4c5709aa9443a1bc36

Contents?: true

Size: 439 Bytes

Versions: 23

Compression:

Stored size: 439 Bytes

Contents

@charset "UTF-8";

/// Checks if a list contains a value(s).
///
/// @argument {list} $list
///   The list to check against.
///
/// @argument {list} $values
///   A single value or list of values to check for.
///
/// @return {boolean}
///
/// @access private

@function _contains(
  $list,
  $values...
) {
  @each $value in $values {
    @if type-of(index($list, $value)) != "number" {
      @return false;
    }
  }

  @return true;
}

Version data entries

23 entries across 23 versions & 4 rubygems

Version Path
baseline-scss-0.5.0 src/vendors/bourbon/validators/_contains.scss
baseline-scss-0.4.4 src/vendors/bourbon/validators/_contains.scss
baseline-scss-0.4.3 src/vendors/bourbon/validators/_contains.scss
baseline-scss-0.4.2 src/vendors/bourbon/validators/_contains.scss
baseline-scss-0.4.1 src/vendors/bourbon/validators/_contains.scss
baseline-scss-0.4.0 src/vendors/bourbon/validators/_contains.scss
baseline-scss-0.3.3 src/vendors/bourbon/validators/_contains.scss
baseline-scss-0.3.2 src/vendors/bourbon/validators/_contains.scss
baseline-scss-0.3.1 src/vendors/bourbon/validators/_contains.scss
baseline-scss-0.3.0 src/vendors/bourbon/validators/_contains.scss
bourbon-7.3.0 core/bourbon/validators/_contains.scss
bourbon-7.2.0 core/bourbon/validators/_contains.scss
bourbon-7.1.0 core/bourbon/validators/_contains.scss
geekspace-3.2.0 _sass/bourbon/bourbon/validators/_contains.scss
geekspace-3.1.2 _sass/bourbon/bourbon/validators/_contains.scss
geekspace-3.1.1 _sass/bourbon/bourbon/validators/_contains.scss
bourbon-7.0.0 core/bourbon/validators/_contains.scss
bourbon-6.0.0 core/bourbon/validators/_contains.scss
bourbon-5.1.0 core/bourbon/validators/_contains.scss
bourbon-5.0.1 core/bourbon/validators/_contains.scss