Change to rems
This commit is contained in:
parent
1c26a1bb56
commit
0b2f6414e2
7 changed files with 121 additions and 34 deletions
|
@ -44,4 +44,14 @@
|
|||
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from($from), to($to));
|
||||
background-image: -moz-linear-gradient($from, $to);
|
||||
background-image: -o-linear-gradient($from, $to);
|
||||
}
|
||||
|
||||
@function calculate-rem($size) {
|
||||
$remSize: $size / 10;
|
||||
@return #{$remSize}rem;
|
||||
}
|
||||
|
||||
@mixin font-size($size) {
|
||||
font-size: $size + px; //Fallback in px
|
||||
font-size: calculate-rem($size);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue