From: harry Date: Tue, 7 Feb 2017 14:54:38 +0000 (+0530) Subject: Spacing Utilities: Added negative margin to the code! X-Git-Tag: v6.4.0-rc1~23^2~20^2~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d0a1f80c787d84aa67dfb5cde0b84b84b209794;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Spacing Utilities: Added negative margin to the code! --- diff --git a/scss/prototype/_spacing.scss b/scss/prototype/_spacing.scss index 770bc1f6a..9cf0e9628 100644 --- a/scss/prototype/_spacing.scss +++ b/scss/prototype/_spacing.scss @@ -53,6 +53,7 @@ $prototype-spacers: ( $length-x: map-get($lengths, x); $length-y: map-get($lengths, y); + // Positive Margin & Padding .#{$abbrev}-a-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides @@ -78,6 +79,35 @@ $prototype-spacers: ( #{$prop}-top: $length-y !important; #{$prop}-bottom: $length-y !important; } // y = vertical line + + // Negative margin + @if ($prop == margin ) { + .#{$abbrev}-a-#{$size}n { + #{$prop}: ($length-y * -1) ($length-x * -1) !important; + } // a = All sides + .#{$abbrev}-t-#{$size}n { + #{$prop}-top: ($length-y * -1) !important; + } // t = top + .#{$abbrev}-r-#{$size}n { + #{$prop}-right: ($length-x * -1) !important; + } // r = right + .#{$abbrev}-b-#{$size}n { + #{$prop}-bottom: ($length-y * -1) !important; + } // b = bottom + .#{$abbrev}-l-#{$size}n { + #{$prop}-left: ($length-x * -1) !important; + } // l = left + + // Axes + .#{$abbrev}-x-#{$size}n { + #{$prop}-right: ($length-x * -1) !important; + #{$prop}-left: ($length-x * -1) !important; + } // x = Horizontal Line + .#{$abbrev}-y-#{$size}n { + #{$prop}-top: ($length-y * -1) !important; + #{$prop}-bottom: ($length-y * -1) !important; + } // y = vertical line + } } } }