Created
September 22, 2015 14:15
-
-
Save podo/79b092f8b5eea540d0b5 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$font-size-huge: 4.8rem; | |
$font-size-bigger: 3.4rem; | |
$font-size-big: 2.8rem; | |
$font-size-heading: 2.4rem; | |
$font-size-hero: 2.1rem; | |
$font-size-large: 1.8rem; | |
$font-size-normal: 1.6rem; | |
$font-size-medium: 1.4rem; | |
$font-size-default: 1.2rem; | |
$font-size-small: 1.1rem; | |
$font-size-tiny: 1rem; | |
$font-size-micro: 0.9rem; | |
$font-size-nano: 0.8rem; | |
$line-height-map: ( | |
1 : 1.5, | |
1.2 : 1.5, | |
1.4 : 1.5, | |
1.6 : 1.375, | |
1.8 : 1.33333333, | |
2.1 : 1.33333333, | |
2.4 : 1.25, | |
2.8 : 1.25, | |
3.2 : 1.25, | |
4.8 : 1.125 | |
); | |
@function strip-units($number) { | |
@return $number / ($number * 0 + 1); | |
} | |
@mixin font-size($size, $has-line-height: true, $important: false) { | |
$bang: ''; | |
$line-height: 1; | |
@if $important { | |
$bang: ' !important'; | |
} | |
@if $has-line-height == center { | |
$line-height: strip-units($size); | |
} | |
@if $has-line-height == true { | |
$line-height: map-get($line-height-map, strip-units($size)); | |
} | |
font-size: $size unquote($bang); | |
line-height: $line-height; | |
} | |
div { | |
@include font-size($font-size-large); | |
} |
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
div { | |
font-size: 1.8rem ; | |
line-height: 1.33333; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment