Sha256: 4ee88ea8bac6f18aad9c25752489ce1dd5d892f87811c01ea6f1198e4d333e8a

Contents?: true

Size: 375 Bytes

Versions: 22

Compression:

Stored size: 375 Bytes

Contents

@import "setup";

@mixin reverse-color($color) {
  @if is-light($color) {
    color: #000;
  } @else {
    color: #fff;
  }
}

.pink {
  @include reverse-color(#ffcccc);
}

.sky {
  @include reverse-color(#aaeeff);
}

.medium-gray {
  @include reverse-color(#888);
}

.charcoal {
  @include reverse-color(#333);
}

.translucent {
  @include reverse-color(rgba(#fff, 0.1));
}

Version data entries

22 entries across 22 versions & 3 rubygems

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