Last active
December 18, 2015 01:49
-
-
Save gtrufitt/5707007 to your computer and use it in GitHub Desktop.
Inline-block that works down to ie7 (maybe 6 I dunno), and removes the random white space between the elements.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Inline list */ | |
| .m-inline-list--item, .m-inline-elements > * { | |
| display: inline-block; | |
| } | |
| .lt-ie8 .m-inline-list--item, .lt-ie8 .m-inline-elements > * { | |
| zoom: 1; | |
| display: inline; | |
| } | |
| /* Inline elements */ | |
| .m-inline-elements { | |
| letter-spacing: -0.31em; | |
| } | |
| .m-inline-elements > * { | |
| letter-spacing: normal; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Inline list */ | |
| %m-inline-item { | |
| display: inline-block; | |
| .lt-ie8 & { | |
| zoom: 1; | |
| display: inline; | |
| } | |
| } | |
| .m-inline-list--item { | |
| @extend %m-inline-item; | |
| } | |
| /* Inline elements */ | |
| %m-inline-elements { | |
| letter-spacing:-0.31em; | |
| > * { | |
| @extend %m-inline-item; | |
| letter-spacing: normal; | |
| } | |
| } | |
| .m-inline-elements { /* Add to parent */ | |
| @extend %m-inline-elements; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment