You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
242 B
15 lines
242 B
@function rem($pixel, $basis: 16) {
|
|
$negative: false;
|
|
@if ($pixel < 0) {
|
|
$negative: true;
|
|
$pixel: calc($pixel * -1);
|
|
}
|
|
|
|
$rem: calc($pixel / $basis);
|
|
|
|
@if ($negative) {
|
|
$rem: calc($rem * -1);
|
|
}
|
|
|
|
@return $rem + 0rem;
|
|
}
|