Skip to content

Instantly share code, notes, and snippets.

@kawasako
Created August 24, 2013 06:40
Show Gist options
  • Save kawasako/6326468 to your computer and use it in GitHub Desktop.
Save kawasako/6326468 to your computer and use it in GitHub Desktop.
CSS "+"selector
// Example ul>li*3
// Bad
ul {
li{
margin-top: 10px;
border-top: 1px solid #ccc;
&:first-child {
margin-top: 0;
border-top: none;
}
}
}
// Good
ul {
li+li {
margin-top: 10px;
border-top: 1px solid #ccc;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment