init
This commit is contained in:
commit
58842c665e
69 changed files with 8357 additions and 0 deletions
15
function/_rem.scss
Normal file
15
function/_rem.scss
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
@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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue