Last active
August 29, 2015 14:24
-
-
Save sdempsey/d3864c4f7f6379f1cd67 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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
// ---- | |
// 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; | |
} | |
} |
This file contains 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
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