5.0.0 • Published 10 years ago

stylecow-plugin-matches v5.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

stylecow plugin matches

Build Status

Stylecow plugin to add support for the selector :matches() in all browsers

More info available in CSS Selectors Level 4

You write:

body :matches(p, a) {
	color: blue;
}
p {
	a :matches(span, strong) {
		color: red;
	}
}
h1 :matches(em, strong):matches(.one, .two) {
	color: yellow;
}

And stylecow converts to:

body p, body a {
	color: blue;
}
p {
	a span, a strong {
		color: red;
	}
}
h1 em.one, h1 em.two, h1 strong.one, h1 strong.two {
	color: yellow;
}

More demos in the tests folder

5.0.0

10 years ago

4.1.0

10 years ago

4.0.1

10 years ago

4.0.0

10 years ago

3.0.0

11 years ago

2.0.0

11 years ago

1.2.0

11 years ago

1.1.0

11 years ago

1.0.0

11 years ago