Created
July 9, 2015 14:33
-
-
Save sdempsey/c24c9330b315a3e2bb1c 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: 15; | |
$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 + 0px; | |
} | |
} | |
$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 45px; | |
} | |
li li li a { | |
border-bottom: none; | |
padding: 5px 60px; | |
} | |
li li li li a { | |
border-bottom: none; | |
padding: 5px 75px; | |
} | |
li li li li li a { | |
border-bottom: none; | |
padding: 5px 90px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment