Created
June 4, 2013 21:36
-
-
Save astanush/5709816 to your computer and use it in GitHub Desktop.
Revisions
-
Aaron Stanush created this gist
Jun 4, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ // Clearfix @mixin clearfix { *zoom: 1; &:before, &:after { display: table; content: ""; } &:after { clear: both; } } // EM calculator: http://viljamis.com/blog/2013/prototyping-responsive-typography // Converts pixels to EMs // Example: font-size: em(16) --> font-size: 1em $browser-context: 16; // Default @function em($pixels, $context: $browser-context) { @return #{$pixels/$context}em }