Skip to content

michelle/rework-matches

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rework-matches

An implementation of the :matches pseudo-selector for rework, based on CSS Selectors Level 4.

Installation

npm install rework-matches

Usage

a:matches(:hover, :active, :focus) > :matches(span, div) {
  color: red;
}

..becomes..

a:hover > span,
a:hover > div,
a:active > span,
a:active > div,
a:focus > span,
a:focus > div {
  color: red;
}

About

Implements the :matches CSS pseudo-selector for rework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published