This repository has been archived on 2022-08-01. You can view files and clone it, but cannot push or open issues or pull requests.
Oldphaloskepsis/plugins/jetpack/scss/atoms/typography/_functions.scss

13 lines
386 B
SCSS
Raw Permalink Normal View History

2017-01-12 23:10:07 +00:00
// ==========================================================================
// em()
//
// Convert px to em in a readable fashion.
// ==========================================================================
// Examples:
// 1. font-size: em(14px);
// 2. font-size: em(30px/14px);
@function em($value, $context: map-get($root-font, font-size)) {
@return ($value / $context * 1em);
}