Created
May 22, 2014 16:56
-
-
Save Anenth/403b332665145e8afee8 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.7) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
$base-font-size: 1em; | |
$font-size-h1 : $base-font-size * 2.25; // 16 * 2.25 = 36px | |
$font-size-h2 : $base-font-size * 2; // 16 * 2 = 32px | |
$font-size-h3 : $base-font-size * 1.75; // 16 * 1.75 = 28px | |
$font-size-h4 : $base-font-size * 1.5; // 16 * 1.5 = 24px | |
$font-size-h5 : $base-font-size * 1.25; // 16 * 1.25 = 20px | |
@for $i from 1 through 5 | |
h#{$i}{ | |
font-size: $font-size-h${$i}; | |
} |
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
Invalid CSS after "...e: $font-size-h": expected ";", was "${$i};" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment