Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Adding "auto" to acceptable margin values #113

Merged
merged 2 commits into from

2 participants

@mindofmicah

.mha replaces having a class to center block-level elements in a container. The rest are added to make this a complete set.

@mindofmicah mindofmicah 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.
082ec3e
@stubbornella

How would mta and mba behave?

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.

@mindofmicah mindofmicah Removed the unnecessary declarations
margin-top:auto; and margin-bottom:auto are the same as margin-top:0; and margin-bottom:0;
616c3b9
@stubbornella stubbornella merged commit 7223cd1 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 25, 2012
  1. @mindofmicah

    Added in 'auto' as an available value on margins

    mindofmicah authored
    .mha replaces having a class to center block-level elements in a container. The rest are added to make this a complete set.
Commits on Nov 12, 2012
  1. @mindofmicah

    Removed the unnecessary declarations

    mindofmicah authored
    margin-top:auto; and margin-bottom:auto are the same as margin-top:0; and margin-bottom:0;
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  core/spacing/space.css
View
2  core/spacing/space.css
@@ -48,3 +48,5 @@ 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}
+.mra,.mha{margin-right:auto !important}
+.mla,.mha{margin-left:auto !important}
Something went wrong with that request. Please try again.