Nextrek
@ 1464
Nextrek / Aiba_backup / public / sass / plug-in / bourbon / functions / _px-to-rem.scss
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
// Convert pixels to rems // eg. for a relational value of 12px write rem(12) // Assumes $em-base is the font-size of <html> @function rem($pxval) { @if not unitless($pxval) { $pxval: strip-units($pxval); } $base: $em-base; @if not unitless($base) { $base: strip-units($base); } @return ($pxval / $base) * 1rem; } |
Commits for Nextrek/Aiba_backup/public/sass/plug-in/bourbon/functions/_px-to-rem.scss
Revision | Author | Commited | Message |
---|---|---|---|
1464 | MOliva | Tue 13 Oct, 2020 11:16:56 +0000 |