Sha256: 35375acd3e92f3927c9730f3be140b6bcc003181ab86ed8a096768e5e603a50a
Contents?: true
Size: 890 Bytes
Versions: 7
Compression:
Stored size: 890 Bytes
Contents
$margin-xs: $global-margin * .5; $margin-s: $global-margin * 1; $margin-sm: $global-margin * 2; $margin-m: $global-margin * 3; $margin-l: $global-margin * 5; //Sections .section{ margin-bottom: $margin-sm; @include breakpoint(large){ margin-bottom: $margin-m; } } .m-bottom{ margin-bottom: $margin-s; } // helpers $size:( none: 0, xs: $margin-xs, s: $margin-s, sm: $margin-sm, m: $margin-m, l: $margin-l ) !default; $property:( p: padding, m: margin ) !default; $side:( t: top, r: right, b: bottom, l: left ) !default; @mixin make-spaces(){ @each $p-key, $prop in $property{ @each $v-key, $value in $size{ .#{$p-key}-#{$v-key}{ #{$prop}: #{$value}; } @each $s-key, $side in $side{ .#{$p-key}#{$s-key}-#{$v-key}{ #{$prop}-#{$side}: #{$value}; } } } } } @include make-spaces()
Version data entries
7 entries across 7 versions & 1 rubygems