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

selector-pseudo-class-allowed-list

Specify a list of allowed pseudo-class selectors.

  a:hover {}
/** ↑
 * This pseudo-class selector */

This rule ignores selectors that use variable interpolation e.g. :#{$variable} {}.

Options

array|string|regex: ["array", "of", "unprefixed", /pseudo-classes/ or "/regex/"]|"pseudo-class"|/regex/

If a string is surrounded with "/" (e.g. "/^nth-/"), it is interpreted as a regular expression. This allows, for example, easy targeting of shorthands: /^nth-/ will match nth-child, nth-last-child, nth-of-type, etc.

Given:

["hover", "/^nth-/"]

The following patterns are considered violations:

a:focus {}
a:first-of-type {}

The following patterns are not considered violations:

a:hover {}
a:nth-of-type(5) {}
a:nth-child(2) {}