marioblas / family.scss

Home Page:http://lukyvj.github.io/family.scss

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

http://lukyvj.github.io/family.scss


Languages

Language:CSS 46.1%Language:HTML 34.4%Language:JavaScript 16.8%Language:Ruby 2.7%