From 750afd56a6aec5f4e4761bc7415c210cfb92d231 Mon Sep 17 00:00:00 2001 From: Michael Cook <entozoon@gmail.com> Date: Fri, 25 Nov 2016 12:11:27 +0000 Subject: [PATCH 1/2] Minor alignment fixes --- scss/utilities/_spacing.scss | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scss/utilities/_spacing.scss b/scss/utilities/_spacing.scss index 9c13b6022f..7386834980 100644 --- a/scss/utilities/_spacing.scss +++ b/scss/utilities/_spacing.scss @@ -1,6 +1,6 @@ // Width and height -.w-100 { width: 100% !important; } +.w-100 { width: 100% !important; } .h-100 { height: 100% !important; } // Margin and Padding @@ -13,8 +13,8 @@ @each $breakpoint in map-keys($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); + $length-x: map-get($lengths, x); + $length-y: map-get($lengths, y); @include media-breakpoint-up($breakpoint) { $min: breakpoint-min($breakpoint, $grid-breakpoints); @@ -22,7 +22,7 @@ @if $min { // everything else @media (min-width: $min) { - .#{$abbrev}-#{$breakpoint}-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides + .#{$abbrev}-#{$breakpoint}-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides .#{$abbrev}t-#{$breakpoint}-#{$size} { #{$prop}-top: $length-y !important; } .#{$abbrev}r-#{$breakpoint}-#{$size} { #{$prop}-right: $length-x !important; } .#{$abbrev}b-#{$breakpoint}-#{$size} { #{$prop}-bottom: $length-y !important; } @@ -38,7 +38,7 @@ } } @else { // xs - .#{$abbrev}-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides + .#{$abbrev}-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides .#{$abbrev}t-#{$size} { #{$prop}-top: $length-y !important; } .#{$abbrev}r-#{$size} { #{$prop}-right: $length-x !important; } .#{$abbrev}b-#{$size} { #{$prop}-bottom: $length-y !important; } -- GitLab From 6457aa71e90b60764e13cfe1174ac8c5f9d0f304 Mon Sep 17 00:00:00 2001 From: Michael Cook <entozoon@gmail.com> Date: Fri, 25 Nov 2016 14:11:23 +0000 Subject: [PATCH 2/2] Conforming to hound coding standards --- scss/utilities/_spacing.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scss/utilities/_spacing.scss b/scss/utilities/_spacing.scss index 7386834980..b8afe5c473 100644 --- a/scss/utilities/_spacing.scss +++ b/scss/utilities/_spacing.scss @@ -22,7 +22,7 @@ @if $min { // everything else @media (min-width: $min) { - .#{$abbrev}-#{$breakpoint}-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides + .#{$abbrev}-#{$breakpoint}-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides .#{$abbrev}t-#{$breakpoint}-#{$size} { #{$prop}-top: $length-y !important; } .#{$abbrev}r-#{$breakpoint}-#{$size} { #{$prop}-right: $length-x !important; } .#{$abbrev}b-#{$breakpoint}-#{$size} { #{$prop}-bottom: $length-y !important; } @@ -38,7 +38,7 @@ } } @else { // xs - .#{$abbrev}-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides + .#{$abbrev}-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides .#{$abbrev}t-#{$size} { #{$prop}-top: $length-y !important; } .#{$abbrev}r-#{$size} { #{$prop}-right: $length-x !important; } .#{$abbrev}b-#{$size} { #{$prop}-bottom: $length-y !important; } -- GitLab