mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-24 16:51:25 -05:00
9 lines
220 B
SCSS
9 lines
220 B
SCSS
|
//
|
||
|
// Convert px to the equivalent rem based on $base-font-size
|
||
|
//
|
||
|
// Usage example: pxrem(32) or pxrem(32px) => 2rem
|
||
|
//
|
||
|
@function pxrem($size) {
|
||
|
@return ((strip-unit($size) / strip-unit($base-font-size)) * 1rem);
|
||
|
}
|