Sha256: 6b1e65f80896bce948195fbf8a0009652049fb2299c00e7ac3f4ae44adaff7ff

Contents?: true

Size: 469 Bytes

Versions: 17

Compression:

Stored size: 469 Bytes

Contents

@import "setup";

$single: "apple";
$multiple: "pineapple", "banana", "cumquat";

@mixin color-contains($list, $values) {
  @if _contains($list, $values) {
    color: #fff;
  } @else {
    color: #000;
  }
}

.single {
  @include color-contains($single, "apple");
}

.single-missing {
  @include color-contains($single, "pear");
}

.multiple {
  @include color-contains($multiple, "banana");
}

.multiple-missing {
  @include color-contains($multiple, "strawberry");
}

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
bourbon-7.3.0 spec/fixtures/validators/contains.scss
bourbon-7.2.0 spec/fixtures/validators/contains.scss
bourbon-7.1.0 spec/fixtures/validators/contains.scss
bourbon-7.0.0 spec/fixtures/validators/contains.scss
bourbon-6.0.0 spec/fixtures/validators/contains.scss
bourbon-5.1.0 spec/fixtures/validators/contains.scss
bourbon-5.0.1 spec/fixtures/validators/contains.scss
bourbon-5.0.0 spec/fixtures/validators/contains.scss
bourbon-5.0.0.beta.8 spec/fixtures/validators/contains.scss
bourbon-5.0.0.beta.7 spec/fixtures/validators/contains.scss
doggystyle-0.1.0 spec/fixtures/validators/contains.scss
bourbon-5.0.0.beta.6 spec/fixtures/validators/contains.scss
bourbon-5.0.0.beta.5 spec/fixtures/validators/contains.scss
bourbon-5.0.0.beta.4 spec/fixtures/validators/contains.scss
bourbon-5.0.0.beta.3 spec/fixtures/validators/contains.scss
bourbon-5.0.0.beta.2 spec/fixtures/validators/contains.scss
bourbon-5.0.0.beta.1 spec/fixtures/functions/contains.scss