function convert-to-media-queries-ems

This function is especific to convert the values to ems for media queries. Because the media queries only have in consideration the browser default font size, and we have no way to know what are the current settings, we will use the default font size for most browsers that is 16px.

It does not have in consideration your base font size.

Warning: Currently we only support convertions from px to ems.


@function convert-to-media-queries-em(



Currently we only accept px as a source value to convertion.


480px = 30em.