]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Rename margin and padding utilities from .{property}-{side} to .{property}{side}...
authorMark Otto <markdotto@gmail.com>
Fri, 9 Sep 2016 05:15:34 +0000 (22:15 -0700)
committerMark Otto <markdotto@gmail.com>
Fri, 9 Sep 2016 05:15:34 +0000 (22:15 -0700)
scss/utilities/_spacing.scss

index b7ff044b6dba2dd2e9534f1a074800dbbdb677f2..c81a6aa887a630032a8f8caf8f55f37e641d0240 100644 (file)
@@ -4,7 +4,7 @@
 
 // Margin and Padding
 
-.m-x-auto {
+.mx-auto {
   margin-right: auto !important;
   margin-left:  auto !important;
 }
     $length-x:   map-get($lengths, x);
     $length-y:   map-get($lengths, y);
 
-    .#{$abbrev}-a-#{$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; }
-    .#{$abbrev}-l-#{$size} { #{$prop}-left:   $length-x !important; }
+    .#{$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; }
+    .#{$abbrev}l-#{$size} { #{$prop}-left:   $length-x !important; }
 
     // Axes
-    .#{$abbrev}-x-#{$size} {
+    .#{$abbrev}x-#{$size} {
       #{$prop}-right:  $length-x !important;
       #{$prop}-left:   $length-x !important;
     }
-    .#{$abbrev}-y-#{$size} {
+    .#{$abbrev}y-#{$size} {
       #{$prop}-top:    $length-y !important;
       #{$prop}-bottom: $length-y !important;
     }