Skip to content

Instantly share code, notes, and snippets.

@hamishdickson
Last active August 29, 2015 14:09
Show Gist options
  • Save hamishdickson/1204f2ec03ec53908e1a to your computer and use it in GitHub Desktop.
Save hamishdickson/1204f2ec03ec53908e1a to your computer and use it in GitHub Desktop.
Final sassy file for demo
@import "partialSassFile";
@import "anotherSassFile";
$text-color: red;
$shift-color: green;
p {
color: $text-color + $shift-color;
}
// nesting
.items {
p {
color: #0000ff;
}
// note you can keep media types next to what they change
@media (max-width: 400px) {
p {
color: green;
}
}
li {
display: inline-block;
}
}
.ball {
//border-radius: 50%;
@include border-radius(50px);
background: #BADA55;
width: 100px;
height: 100px;
}
.first-ball {
@extend .ball;
background: blue;
}
.second-ball {
@extend .ball;
}
.third-ball {
@extend .ball;
margin-left: 20px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment