The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
// Mixin that allows to specify arbitrary CSS properties with | |
// unitless numbers. The output has rem unit with pixel fallback. | |
// Shorthand assignments are supported too! | |
$base_line: 10; | |
@mixin rem($property, $values, $important:"") | |
{ | |
// Placeholder variables | |
$shorthand_px: ""; | |
$shorthand_rem: ""; |
A Pen by Thomas Nägele on CodePen.