A Pen by Thomas Nägele on CodePen.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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: ""; |