mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-22 18:17:09 +00:00
aadb22ffcf
- Add Bourbon and Neat
15 lines
340 B
SCSS
15 lines
340 B
SCSS
// Convert pixels to rems
|
|
// eg. for a relational value of 12px write rem(12)
|
|
// Assumes $em-base is the font-size of <html>
|
|
|
|
@function rem($pxval) {
|
|
@if not unitless($pxval) {
|
|
$pxval: strip-units($pxval);
|
|
}
|
|
|
|
$base: $em-base;
|
|
@if not unitless($base) {
|
|
$base: strip-units($base);
|
|
}
|
|
@return ($pxval / $base) * 1rem;
|
|
}
|