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

13 lines
386 B
SCSS
Raw Normal View History

2018-03-21 18:19:20 +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);
}