Permalink
Browse files

Added in 'auto' as an available value on margins

.mha replaces having a class to center block-level elements in a container. The rest are added to make this a complete set.
  • Loading branch information...
1 parent 7f014ca commit 082ec3eefbfef5d91b3e0c36519857b3bc1783ab @mindofmicah committed Oct 25, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 core/spacing/space.css
View
@@ -48,3 +48,7 @@ s,m,l,n = small(5px),medium(10px),large(20px),none(0px)
.mls,.mhs,.mas{margin-left:5px !important}
.mlm,.mhm,.mam{margin-left:10px !important}
.mll,.mhl,.mal{margin-left:20px !important}
+.mta,.mva,.maa{margin-top:auto !important}
+.mra,.mha,.maa{margin-right:auto !important}
+.mba,.mva,.maa{margin-bottom:auto !important}
+.mla,.mha,.maa{margin-left:auto !important}

3 comments on commit 082ec3e

How would mta and mba behave?

Owner

mindofmicah replied Nov 12, 2012

Originally I had added them to 'complete the set' and intended to make use of the classes down the road; however after reading up on it, setting either margin-bottom or margin-top to auto effectively just sets the value to 0. Since that functionality is already handled in .mtn and .mbn, they could/should be removed. My repo has the rules affecting those properties removed now.

Please sign in to comment.