Skip to content

Instantly share code, notes, and snippets.

@sdempsey
Last active August 29, 2015 14:24
Show Gist options
  • Save sdempsey/d3864c4f7f6379f1cd67 to your computer and use it in GitHub Desktop.
Save sdempsey/d3864c4f7f6379f1cd67 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$amt: 15px;
$sel: '';
@for $i from 1 through 5 {
$sel: if($i == 1, "li", selector-nest($sel, "li")) !global;
#{$sel} {
a {
border-bottom: none;
padding: 5px 15 + $amt;
}
}
@if ($i > 1) {
$amt: $amt + 15px;
}
}
li a {
border-bottom: none;
padding: 5px 30px;
}
li li a {
border-bottom: none;
padding: 5px 30px;
}
li li li a {
border-bottom: none;
padding: 5px 45px;
}
li li li li a {
border-bottom: none;
padding: 5px 60px;
}
li li li li li a {
border-bottom: none;
padding: 5px 75px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment