everycss-nested

0.1.1 • Public • Published

EveryCSS-nested

Add support for nested rules.

li {
  a, abbr {
    color: blue;
  }

  // `&` usage
  &:before, &:after {
    content: '**';
  }
  
  fo {
    
  }

  // multiple `&` usage
  & > ul > & {
    list-style: circle;

    // deep nesting
    &:first-child {
      list-style: square;
    }
  }

  // back at root level
  @at-root {
    a {
      color: red;
    }
    abbr {
      color: #333;
    }
  }
}

Package Sidebar

Install

npm i everycss-nested

Weekly Downloads

2

Version

0.1.1

License

none

Last publish

Collaborators

  • cahnory