☰
Debian Codegraph
@
9.0.0+git20240724.107ded9+dfsg-1
/
/
sass-spec
/
spec
/
libsass
/
bourbon
/
lib
/
functions
/
_px-to-em.scss
☽
☼
sass-spec/spec/libsass/bourbon/lib/functions/_px-to-em.scss
code
plain
raw
Expat
2007-2014, The Sass Authors
debian/copyright
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