Created
February 12, 2014 14:49
-
-
Save robertlyall/8956838 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.3.0.rc.3) | |
// Compass (v1.0.0.alpha.18) | |
// Breakpoint (v2.4.1) | |
// ---- | |
@import "breakpoint" | |
$mobile-font-size: 16px | |
$ipad-font-size: 18px | |
$ipad: 768px | |
@function calculateRem($size, $htmlSize) | |
$remSize: $size / $htmlSize | |
@return #{$remSize}rem | |
@mixin fontSize($size, $htmlSize) | |
font-size: $size | |
font-size: calculateRem($size, $htmlSize) | |
body | |
+fontSize(16px, $mobile-font-size) | |
+breakpoint($ipad) | |
+fontSize(32px, $ipad-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
body { | |
font-size: 16px; | |
font-size: 1rem; | |
} | |
@media (min-width: 768px) { | |
body { | |
font-size: 32px; | |
font-size: 1.77778rem; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment