Sha256: 8c5b15a64667e0d65a10fa3364b49f1e4ec9b735643354ee41dd4f19a5d54fd4

Contents?: true

Size: 232 Bytes

Versions: 50

Compression:

Stored size: 232 Bytes

Contents

// Convert pixels to ems
// eg. for a relational value of 12px write em(12) when the parent is 16px
// if the parent is another value say 24px write em(12, 24)

@function em($pxval, $base: 16) {
  @return ($pxval / $base) * 1em;
}

Version data entries

50 entries across 50 versions & 8 rubygems

Version Path
daiblogs-0.2.1 _sass/bourbon/functions/_px-to-em.scss
daiblogs-0.2.0 _sass/bourbon/functions/_px-to-em.scss
daiblogs-0.1.5 _sass/bourbon/functions/_px-to-em.scss
daiblogs-0.1.4 _sass/bourbon/functions/_px-to-em.scss
daiblogs-0.1.2 assets/_sass/bourbon/functions/_px-to-em.scss
daiblogs-0.1.1 assets/_sass/bourbon/functions/_px-to-em.scss
daiblogs-0.1.0 assets/_sass/bourbon/functions/_px-to-em.scss
moovui-0.1.4 app/assets/stylesheets/bourbon/functions/_px-to-em.scss
stump-cli-0.1.3 lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_px-to-em.scss
stump-cli-0.1.2 lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_px-to-em.scss
moovui-0.1.3 app/assets/stylesheets/bourbon/functions/_px-to-em.scss
moovui-0.1.2 app/assets/stylesheets/bourbon/functions/_px-to-em.scss
moovui-0.1.1 app/assets/stylesheets/bourbon/functions/_px-to-em.scss
moovui-0.0.2 bourbon/functions/_px-to-em.scss
moovui-0.0.1 bourbon/functions/_px-to-em.scss
stump-cli-0.1.1 lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_px-to-em.scss
blogelator-0.2.5 vendor/assets/stylesheets/blogelator/bourbon/functions/_px-to-em.scss
blocky-0.0.11 vendor/assets/stylesheets/blocky/bourbon/functions/_px-to-em.scss
blogelator-0.2.4 vendor/assets/stylesheets/blogelator/bourbon/functions/_px-to-em.scss
blocky-0.0.10 vendor/assets/stylesheets/blocky/bourbon/functions/_px-to-em.scss