Debian Codegraph @

sass-spec/spec/libsass/bourbon/lib/functions/_px-to-em.scss

raw
1 // Convert pixels to ems
2 // eg. for a relational value of 12px write em(12) when the parent is 16px
3 // if the parent is another value say 24px write em(12, 24)
4
5 @function em($pxval, $base: 16) {
6 @return ($pxval / $base) * 1em;
7 }
8