The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 13/08/2014 by @aristretto
- Original post
| // Create REM values with PX fall back | |
| // | |
| // Generate a REM with PX fallback from | |
| // $baseFontSize. Enter the desired size based | |
| // on pixels in numerical form. Supports shorthand. | |
| // | |
| // Forked from: http://codepen.io/thejameskyle/pen/JmBjc | |
| // | |
| // @author Greg Rickaby | |
| // @since 1.0 |
| var arr = [1,1,2]; | |
| var arr = arr.filter(function (v, i, a) { return a.indexOf (v) == i }); // dedupe array |
| $placeholders: '-webkit-input-placeholder', | |
| '-moz-placeholder', | |
| '-ms-input-placeholder'; | |
| @mixin placeholder { | |
| @each $placeholder in $placeholders { | |
| @if $placeholder == "-webkit-input-placeholder" { | |
| &::#{$placeholder} { | |
| @content; |