Sha256: 5f8ee9efa9fdc60d3c18a4cb53b5a026bbae78f52ccdcfd451afb52986ea048f

Contents?: true

Size: 346 Bytes

Versions: 17

Compression:

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

17 entries across 17 versions & 2 rubygems

Version Path
bourbon-7.3.0 spec/fixtures/validators/is-size.scss
bourbon-7.2.0 spec/fixtures/validators/is-size.scss
bourbon-7.1.0 spec/fixtures/validators/is-size.scss
bourbon-7.0.0 spec/fixtures/validators/is-size.scss
bourbon-6.0.0 spec/fixtures/validators/is-size.scss
bourbon-5.1.0 spec/fixtures/validators/is-size.scss
bourbon-5.0.1 spec/fixtures/validators/is-size.scss
bourbon-5.0.0 spec/fixtures/validators/is-size.scss
bourbon-5.0.0.beta.8 spec/fixtures/validators/is-size.scss
bourbon-5.0.0.beta.7 spec/fixtures/validators/is-size.scss
doggystyle-0.1.0 spec/fixtures/validators/is-size.scss
bourbon-5.0.0.beta.6 spec/fixtures/validators/is-size.scss
bourbon-5.0.0.beta.5 spec/fixtures/validators/is-size.scss
bourbon-5.0.0.beta.4 spec/fixtures/validators/is-size.scss
bourbon-5.0.0.beta.3 spec/fixtures/validators/is-size.scss
bourbon-5.0.0.beta.2 spec/fixtures/validators/is-size.scss
bourbon-5.0.0.beta.1 spec/fixtures/functions/is-size.scss