Skip to content

Instantly share code, notes, and snippets.

View xhoskin's full-sized avatar

Aleksey Ivanov xhoskin

View GitHub Profile
anonymous
anonymous / gist:ce7c5287e1e20619d8aa
Created March 20, 2016 14:56
px to rem mixin
@function rem($pxs) {
@if type_of($pxs) == list {
$rem: ();
@each $px in $pxs {
$rem: append($rem, $px / 16 * 1rem);
}
} @else {
$rem: $pxs / 16 * 1rem;
}