1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 06:17:18 -04:00
notes/node_modules/stylelint/lib/rules/media-feature-name-case
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-case

Specify lowercase or uppercase for media feature names.

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

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

Options

string: "lower"|"upper"

"lower"

The following patterns are considered warnings:

@media (MIN-WIDTH: 700px) {}
@media not all and (MONOCHROME) {}
@media (min-width: 700px) and (ORIENTATION: landscape) {}

The following patterns are not considered warnings:

@media (min-width: 700px) {}
@media not all and (monochrome) {}
@media (min-width: 700px) and (orientation: landscape) {}

"upper"

The following patterns are considered warnings:

@media (min-width: 700px) {}
@media not all and (monochrome) {}
@media (MIN-WIDTH: 700px) and (orientation: landscape) {}

The following patterns are not considered warnings:

@media (MIN-WIDTH: 700px) {}
@media not all and (MONOCHROME) {}
@media (MIN-WIDTH: 700px) and (ORIENTATION: landscape) {}