Family.scss is a set of 20 smart Sass mixins which will help you to manage the style of :nth-child
'ified elements, in an easy and classy way.
- Clone the project
$ middleman
( You don't use middleman ? Goto https://middlemanapp.com/ )
Input :
ul li {
background: blue;
@include first(3) {
background: red
}
}
Output :
ul li {
background: blue;
}
ul li:nth-child(1) {
background: red
}
ul li:nth-child(2) {
background: red
}
ul li:nth-child(3) {
background: red
}