1
0
mirror of https://github.com/kidoman/embd synced 2025-02-10 20:53:20 +01:00
2014-03-31 06:33:08 +05:30

15 lines
393 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;
}
}