Skip to content

Instantly share code, notes, and snippets.

@wochap
Last active December 30, 2015 16:46
Show Gist options
  • Save wochap/0bd763c75bf770e38fa5 to your computer and use it in GitHub Desktop.
Save wochap/0bd763c75bf770e38fa5 to your computer and use it in GitHub Desktop.
Preprocesadores
@import 'foo'; // requires _foo.scss
$string: ".foo"
$list: ()
@mixin foo($color: blue) {
color: $color;
}
#{$string} { // .foo {
color: red
}
if($suf, "-#{$suf}", "");
%placeholder {
color: blue;
}
@import 'foo' // requires foo.styl
$string = ".foo"
$list= ()
push($list, foo)
foo($color = blue)
color: $color
{$string} // .foo {
color: red
$suf ? {'-' + $suf} : ""
for $item in $items
placeholder =
width: 20px
height: 20px
width 'calc(100% - %s)' % ($tratamientos-padding * 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment