Sha256: 860d6f75eb9de52e29cf6474ed2fd17b2d041f826aa211ca15b1dedf03c82091

Contents?: true

Size: 868 Bytes

Versions: 2

Compression:

Stored size: 868 Bytes

Contents

// Margin utility mixin
@mixin margin-variant($id: 1, $size: $unit-1) {
  .m-#{$id} {
    margin: $size;
  }

  .mb-#{$id} {
    margin-bottom: $size;
  }

  .ml-#{$id} {
    margin-left: $size;
  }

  .mr-#{$id} {
    margin-right: $size;
  }

  .mt-#{$id} {
    margin-top: $size;
  }

  .mx-#{$id} {
    margin-left: $size;
    margin-right: $size;
  }

  .my-#{$id} {
    margin-bottom: $size;
    margin-top: $size;
  }
}

// Padding utility mixin
@mixin padding-variant($id: 1, $size: $unit-1) {
  .p-#{$id} {
    padding: $size;
  }

  .pb-#{$id} {
    padding-bottom: $size;
  }

  .pl-#{$id} {
    padding-left: $size;
  }

  .pr-#{$id} {
    padding-right: $size;
  }

  .pt-#{$id} {
    padding-top: $size;
  }

  .px-#{$id} {
    padding-left: $size;
    padding-right: $size;
  }
  
  .py-#{$id} {
    padding-bottom: $size;
    padding-top: $size;
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spectre_scss-0.5.1.0 vendor/assets/stylesheets/spectre/mixins/_position.scss
spectre_scss-0.5.0.0 vendor/assets/stylesheets/spectre/mixins/_position.scss