Sha256: 1e0cd8d42a2001bd7128f02a2a592f912df36a72c325247cf2d2181997df8c93

Contents?: true

Size: 1.58 KB

Versions: 5

Compression:

Stored size: 1.58 KB

Contents

// stylelint-disable declaration-no-important

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

    @each $prop, $prop-abbr in (margin: m, padding: p) {
      @each $size, $value in $spacers {
        .#{$prop-abbr}#{$infix}-#{$size} {
          #{$prop}: $value !important;
        }

        .#{$prop-abbr}t#{$infix}-#{$size} {
          #{$prop}-top: $value !important;
        }

        .#{$prop-abbr}r#{$infix}-#{$size} {
          #{$prop}-right: $value !important;
        }

        .#{$prop-abbr}b#{$infix}-#{$size} {
          #{$prop}-bottom: $value !important;
        }

        .#{$prop-abbr}l#{$infix}-#{$size} {
          #{$prop}-left: $value !important;
        }

        .#{$prop-abbr}x#{$infix}-#{$size} {
          #{$prop}-right: $value !important;
          #{$prop}-left: $value !important;
        }

        .#{$prop-abbr}y#{$infix}-#{$size} {
          #{$prop}-top: $value !important;
          #{$prop}-bottom: $value !important;
        }
      }
    }

    .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

5 entries across 5 versions & 1 rubygems

Version Path
material-sass-4.1.1 assets/stylesheets/material/utilities/_spacing.scss
material-sass-4.1.0 assets/stylesheets/material/utilities/_spacing.scss
material-sass-4.0.0 assets/stylesheets/material/utilities/_spacing.scss
material-sass-4.0.0.beta3 assets/stylesheets/material/utilities/_spacing.scss
material-sass-4.0.0.beta2 assets/stylesheets/material/utilities/_spacing.scss