Last active
December 30, 2015 16:46
-
-
Save wochap/0bd763c75bf770e38fa5 to your computer and use it in GitHub Desktop.
Preprocesadores
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
@import 'foo'; // requires _foo.scss | |
$string: ".foo" | |
$list: () | |
@mixin foo($color: blue) { | |
color: $color; | |
} | |
#{$string} { // .foo { | |
color: red | |
} | |
if($suf, "-#{$suf}", ""); | |
%placeholder { | |
color: blue; | |
} | |
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
@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