Sha256: a7c94e9370315f238ffeace220f19cbda340a31df8aec6b11b6c67835c5566af

Contents?: true

Size: 412 Bytes

Versions: 22

Compression:

Stored size: 412 Bytes

Contents

@import "setup";

@mixin color-length($value) {
  @if is-length($value) {
    color: #fff;
  }
}

.integer {
  @include color-length(1);
}

.pixels {
  @include color-length(10px);
}

.ems {
  @include color-length(10em);
}

.percent {
  @include color-length(10%);
}

.calc {
  @include color-length(calc(2em - 5px));
}

.string {
  @include color-length("stringy");
}

.null {
  @include color-length(null);
}

Version data entries

22 entries across 22 versions & 3 rubygems

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