Sha256: 5dbe18b3420894d6e95ca5fc3adda9089dae06a020d2d4ee15568ddf7c59b0b8

Contents?: true

Size: 642 Bytes

Versions: 38

Compression:

Stored size: 642 Bytes

Contents

@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;
}

Version data entries

38 entries across 38 versions & 6 rubygems

Version Path
cortex-0.1.3 spec/dummy/node_modules/bourbon/app/assets/stylesheets/functions/_contains.scss
english_tea-0.6.2 vendor/assets/stylesheets/bourbon/functions/_contains.scss
english_tea-0.6.1 vendor/assets/stylesheets/bourbon/functions/_contains.scss
english_tea-0.6.0 vendor/assets/stylesheets/bourbon/functions/_contains.scss
english_tea-0.5.3 vendor/assets/stylesheets/bourbon/functions/_contains.scss
english_tea-0.5.2 vendor/assets/stylesheets/bourbon/functions/_contains.scss
english_tea-0.5.1 vendor/assets/stylesheets/bourbon/functions/_contains.scss
english_tea-0.5.0 vendor/assets/stylesheets/bourbon/functions/_contains.scss
english_tea-0.4.0 vendor/assets/stylesheets/bourbon/functions/_contains.scss
english_tea-0.3.0 vendor/assets/stylesheets/bourbon/functions/_contains.scss
wayfarer-jruby-0.0.3 docs/_sass/vendor/bourbon/functions/_contains.scss
wayfarer-0.0.3 docs/_sass/vendor/bourbon/functions/_contains.scss
wayfarer-jruby-0.0.2 docs/_sass/vendor/bourbon/functions/_contains.scss
wayfarer-jruby-0.0.1 docs/_sass/vendor/bourbon/functions/_contains.scss
bourbon-4.3.4 app/assets/stylesheets/functions/_contains.scss
dta_rapid-0.3.5 _sass/vendor/bourbon/functions/_contains.scss
dta_rapid-0.3.4 _sass/vendor/bourbon/functions/_contains.scss
dta_rapid-0.3.3 _sass/vendor/bourbon/functions/_contains.scss
dta_rapid-0.3.2 _sass/vendor/bourbon/functions/_contains.scss
dta_rapid-0.3.1 _sass/vendor/bourbon/functions/_contains.scss