Sha256: 80975bb3f72052d411f45373c7513def75922b6fed199b5f6193a508bb90da33

Contents?: true

Size: 468 Bytes

Versions: 22

Compression:

Stored size: 468 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

22 entries across 22 versions & 3 rubygems

Version Path
bourbon-4.3.4 spec/fixtures/functions/contains.scss
bourbon-4.3.3 spec/fixtures/functions/contains.scss
bourbon-4.3.2 spec/fixtures/functions/contains.scss
bourbon-4.3.1 spec/fixtures/functions/contains.scss
bourbon-4.3.0 spec/fixtures/functions/contains.scss
bourbon-4.2.7 spec/fixtures/functions/contains.scss
styler-sass-0.1.8.alpha spec/fixtures/functions/contains.scss
styler-sass-0.1.7 spec/fixtures/functions/contains.scss
styler-sass-0.1.7.alpha spec/fixtures/functions/contains.scss
styler-sass-0.1.5.alpha spec/fixtures/functions/contains.scss
bourbon-4.2.6 spec/fixtures/functions/contains.scss
bourbon-4.2.5 spec/fixtures/functions/contains.scss
bourbon-5.0.0.alpha.0 spec/fixtures/functions/contains.scss
bourbon-4.2.4 spec/fixtures/functions/contains.scss
solidus_backend-1.0.0.pre3 vendor/bundle/gems/bourbon-4.2.3/spec/fixtures/functions/contains.scss
solidus_backend-1.0.0.pre2 vendor/bundle/gems/bourbon-4.2.3/spec/fixtures/functions/contains.scss
bourbon-4.2.3 spec/fixtures/functions/contains.scss
bourbon-4.2.2 spec/fixtures/functions/contains.scss
bourbon-4.2.1 spec/fixtures/functions/contains.scss
bourbon-4.2.0 spec/fixtures/functions/contains.scss