Skip to content

Instantly share code, notes, and snippets.

@gorillawit
Last active January 2, 2016 13:19
Show Gist options
  • Save gorillawit/8309439 to your computer and use it in GitHub Desktop.
Save gorillawit/8309439 to your computer and use it in GitHub Desktop.
New simplified if statements in Sass
.ifStatement {
background: green;
}
div {
background: red;
}
div + div {
background: green;
}
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
//New if statements
.ifStatement {
$a: true;
$b: green;
background: if($a, $b, $c);
}
div{
background: red;
& + &{
background: green;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment