Sha256: f438e3abdb73dcf03ba9daff903e2d5d17fff964a08a3565d0c5baac9da3b8af
Contents?: true
Size: 912 Bytes
Versions: 7
Compression:
Stored size: 912 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} !important; } @each $s-key, $side in $side{ .#{$p-key}#{$s-key}-#{$v-key}{ #{$prop}-#{$side}: #{$value} !important; } } } } } @include make-spaces()
Version data entries
7 entries across 7 versions & 1 rubygems