1
0
mirror of https://github.com/thangisme/notes.git synced 2024-09-26 14:06:00 -04:00
notes/node_modules/stylelint/lib/rules/media-feature-name-blacklist
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00
..
index.js Initial commit 2017-03-09 13:16:08 -05:00
README.md Initial commit 2017-03-09 13:16:08 -05:00

media-feature-name-blacklist

Specify a blacklist of disallowed media feature names.

@media (min-width: 700px) {}
/**     ↑
 * These media feature names */

Caveat: Media feature names within a range context are currently ignored.

Options

array|string|regex: ["array", "of", "unprefixed", "media-features" or "regex"]|"media-feature"|/regex/

Given:

["max-width", "/^my-/"]

The following patterns are considered warnings:

@media (max-width: 50em) {}
@media (my-width: 50em) {}

The following patterns are not considered warnings:

@media (min-width: 50em) {}
@media print and (min-resolution: 300dpi) {}