Sha256: a49e51aaf85360a6e6a203d72e1f8ce04aaba20b6a338f8169a143e88e71a7b4

Contents?: true

Size: 354 Bytes

Versions: 22

Compression:

Stored size: 354 Bytes

Contents

@import "setup";

@mixin line-height($number) {
  @if is-number($number) {
    line-height: $number;
  }
}

.integer {
  @include line-height(1);
}

.px {
  @include line-height(2px);
}

.em {
  @include line-height(3em);
}

.rem {
  @include line-height(4rem);
}

.percent {
  @include line-height(5%);
}

.string {
  @include line-height("stringy");
}

Version data entries

22 entries across 22 versions & 3 rubygems

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