Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 082ec3eefbfef5d91b3e0c36519857b3bc1783ab 1 parent 7f014ca
@mindofmicah authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 core/spacing/space.css
View
4 core/spacing/space.css
@@ -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

@stubbornella

How would mta and mba behave?

@mindofmicah

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.

@stubbornella
Please sign in to comment.
Something went wrong with that request. Please try again.