Skip to content
This repository has been archived by the owner on Dec 17, 2017. It is now read-only.

postcss-not-x-child adds :not-first-child and :not-last-child selectors.

License

Notifications You must be signed in to change notification settings

hudochenkov/postcss-not-x-child

Repository files navigation

PostCSS :not-X-child Build Status

PostCSS plugin transform :not-first-child and :not-last-child to :not(:first-child) and :not(:last-child).

Input:

div:not-first-child {
}
div:not-last-child {
}

Output:

div:not(:first-child) {
}
div:not(:last-child) {
}

Usage

postcss([ require('postcss-not-x-child') ])

See PostCSS docs for examples for your environment.

About

postcss-not-x-child adds :not-first-child and :not-last-child selectors.

Resources

License

Stars

Watchers

Forks

Packages