racket/new-racket-web/sass/functions/_typography.scss
2014-03-01 19:55:48 -07:00

16 lines
394 B
SCSS

// Typography mixins
// Fonts in rems with px fallback
@mixin font-size($size, $is-important: false) {
$size: if(unitless($size), $size, $size / 1px);
@if $is-important {
font-size: $size + px !important;
font-size: ($size / strip-units($base-font-size)) + rem !important;
} @else {
font-size: $size + px;
font-size: ($size / strip-units($base-font-size)) + rem;
}
}