Sha256: 885d77c48bcb8e0444cc16b3e39cd1e338b118b73f7b46b4ec72bf2dcedfe7ff

Contents?: true

Size: 1.59 KB

Versions: 21

Compression:

Stored size: 1.59 KB

Contents

// Margin and Padding

@each $breakpoint in map-keys($grid-breakpoints) {
  @include media-breakpoint-up($breakpoint) {
    $infix: breakpoint-infix($breakpoint, $grid-breakpoints);

    @each $prop, $abbrev in (margin: m, padding: p) {
      @each $size, $lengths in $spacers {
        $length-x: map-get($lengths, x);
        $length-y: map-get($lengths, y);

        .#{$abbrev}#{$infix}-#{$size}  { #{$prop}:        $length-y $length-x !important; }
        .#{$abbrev}t#{$infix}-#{$size} { #{$prop}-top:    $length-y !important; }
        .#{$abbrev}r#{$infix}-#{$size} { #{$prop}-right:  $length-x !important; }
        .#{$abbrev}b#{$infix}-#{$size} { #{$prop}-bottom: $length-y !important; }
        .#{$abbrev}l#{$infix}-#{$size} { #{$prop}-left:   $length-x !important; }
        .#{$abbrev}x#{$infix}-#{$size} {
          #{$prop}-right: $length-x !important;
          #{$prop}-left:  $length-x !important;
        }
        .#{$abbrev}y#{$infix}-#{$size} {
          #{$prop}-top:    $length-y !important;
          #{$prop}-bottom: $length-y !important;
        }
      }
    }

    // Some special margin utils
    .m#{$infix}-auto  { margin:        auto !important; }
    .mt#{$infix}-auto { margin-top:    auto !important; }
    .mr#{$infix}-auto { margin-right:  auto !important; }
    .mb#{$infix}-auto { margin-bottom: auto !important; }
    .ml#{$infix}-auto { margin-left:   auto !important; }
    .mx#{$infix}-auto {
      margin-right: auto !important;
      margin-left:  auto !important;
    }
    .my#{$infix}-auto {
      margin-top:    auto !important;
      margin-bottom: auto !important;
    }
  }
}

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
solidus_backend-2.3.1 vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss
solidus_backend-2.2.2 vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss
card-1.92.2 mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_spacing.scss
card-1.92.1 mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_spacing.scss
card-1.92 mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_spacing.scss
card-1.91 mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_spacing.scss
solidus_backend-2.3.0 vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss
solidus_backend-2.3.0.rc3 vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss
solidus_backend-2.3.0.rc2 vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss
solidus_backend-2.3.0.rc1 vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss
solidus_backend-2.3.0.beta1 vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss
solidus_backend-2.2.1 vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss
solidus_backend-2.2.0 vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss
solidus_backend-2.2.0.rc1 vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss
solidus_backend-2.2.0.beta1 vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss
optimacms-0.3.9 app/assets/stylesheets/bootstrap4/utilities/_spacing.scss
optimacms-0.3.8 app/assets/stylesheets/bootstrap4/utilities/_spacing.scss
optimacms-0.3.7 app/assets/stylesheets/bootstrap4/utilities/_spacing.scss
optimacms-0.3.6 app/assets/stylesheets/bootstrap4/utilities/_spacing.scss
optimacms-0.3.5 app/assets/stylesheets/bootstrap4/utilities/_spacing.scss