Sha256: 6735a43675469a2a8101bee45976a7a77d664e0fdb322c1404c271ff64024852
Contents?: true
Size: 340 Bytes
Versions: 346
Compression:
Stored size: 340 Bytes
Contents
// 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; }
Version data entries
346 entries across 338 versions & 11 rubygems