Sha256: c3d409236f2b3c7b22f3653526b04dee3dd176265fd71b71a64f811c5c64d061

Contents?: true

Size: 345 Bytes

Versions: 22

Compression:

Stored size: 345 Bytes

Contents

@import "setup";

@mixin size-margin($size) {
  @if is-size($size) {
    margin-top: $size;
  }
}

.integer {
  @include size-margin(1);
}

.px {
  @include size-margin(2px);
}

.em {
  @include size-margin(3em);
}

.rem {
  @include size-margin(4rem);
}

.percent {
  @include size-margin(5%);
}

.string {
  @include size-margin("stringy");
}

Version data entries

22 entries across 22 versions & 3 rubygems

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