Created
August 24, 2012 19:41
-
-
Save robtarr/3454905 to your computer and use it in GitHub Desktop.
SCSS mixin for REMs (done with jondaiello)
This file contains 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
@mixin rem-width( $em-size ) { | |
width: $em-size * $base-font-multiplier * 16px; | |
width: $em-size * 1rem; | |
} |
This file contains 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
html { | |
font-size: $base-font-size; | |
} |
This file contains 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
$base-font-multiplier: 1; // master font size integer | |
$base-font-size: $base-font-multiplier * 100%; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment