Sha256: b7a5ba3841f0a388a10816249bd0950640959f8f5e0d95cae2709fe827bd6287

Contents?: true

Size: 1.04 KB

Versions: 9

Compression:

Stored size: 1.04 KB

Contents

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

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

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

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

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

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

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

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

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

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

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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spectre_scss-0.5.9.1 vendor/assets/stylesheets/spectre/mixins/_position.scss
spectre_scss-0.5.9.0 vendor/assets/stylesheets/spectre/mixins/_position.scss
spectre_scss-0.5.8.0 vendor/assets/stylesheets/spectre/mixins/_position.scss
spectre_scss-0.5.7.0 vendor/assets/stylesheets/spectre/mixins/_position.scss
spectre_scss-0.5.6.0 vendor/assets/stylesheets/spectre/mixins/_position.scss
spectre_scss-0.5.5.0 vendor/assets/stylesheets/spectre/mixins/_position.scss
spectre_scss-0.5.4.0 vendor/assets/stylesheets/spectre/mixins/_position.scss
spectre_scss-0.5.3.0 vendor/assets/stylesheets/spectre/mixins/_position.scss
spectre_scss-0.5.2.0 vendor/assets/stylesheets/spectre/mixins/_position.scss