Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Philipp Partosch 46a936d7de added all files to project 2 years ago
..
README.md added all files to project 2 years ago
index.js added all files to project 2 years ago

README.md

media-feature-name-value-whitelist

Deprecated: Instead use the media-feature-name-value-allowed-list rule.

Specify a list of allowed media feature name and value pairs.

@media screen and (min-width: 768px) {}
/**                ↑          ↑
 *    These features and values */

Options

{
  "unprefixed-media-feature-name": ["array", "of", "values"],
  "/unprefixed-media-feature-name/": ["/regex/", "non-regex", /real-regex/]
}

If a media feature name is found in the object, only its allowed-listed values are allowed. If the media feature name is not included in the object, anything goes.

If a name or value is surrounded with / (e.g. "/width$/"), it is interpreted as a regular expression. For example, /width$/ will match max-width and min-width.

Given:

{
  "min-width": ["768px", "1024px"],
  "/resolution/": ["/dpcm$/"]
}

The following patterns are considered violations:

@media screen and (min-width: 1000px) {}
@media screen and (min-resolution: 2dpi) {}
@media screen and (min-width > 1000px) {}

The following patterns are not considered violations:

@media screen and (min-width: 768px) {}
@media screen and (min-width: 1024px) {}
@media screen and (orientation: portrait) {}
@media screen and (min-resolution: 2dpcm) {}
@media screen and (resolution: 10dpcm) {}
@media screen and (768px < min-width) {}