Skip to content

TimoWestland/family.scss

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Family.scss

Gitter

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.

Install

Use the mixins

Input :

ul li {
  background: blue;

  @include first(3) {
    background: red
  }
}

Output :

ul li {
  background: blue;
}
ul li:nth-child(-n + 3) {
  background: red;
}

Why only Sass ?

It's true, I did it for Sass, but some awesome contributors extended it to :

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 48.8%
  • JavaScript 24.4%
  • CSS 22.9%
  • Ruby 3.9%