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.

README.md 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # selector-pseudo-class-whitelist
  2. **_Deprecated: Instead use the [`selector-pseudo-class-allowed-list`](../selector-pseudo-class-allowed-list/README.md) rule._**
  3. Specify a list of allowed pseudo-class selectors.
  4. <!-- prettier-ignore -->
  5. ```css
  6. a:hover {}
  7. /** ↑
  8. * This pseudo-class selector */
  9. ```
  10. This rule ignores selectors that use variable interpolation e.g. `:#{$variable} {}`.
  11. ## Options
  12. `array|string|regex`: `["array", "of", "unprefixed", /pseudo-classes/ or "/regex/"]|"pseudo-class"|/regex/`
  13. 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.
  14. Given:
  15. ```
  16. ["hover", "/^nth-/"]
  17. ```
  18. The following patterns are considered violations:
  19. <!-- prettier-ignore -->
  20. ```css
  21. a:focus {}
  22. ```
  23. <!-- prettier-ignore -->
  24. ```css
  25. a:first-of-type {}
  26. ```
  27. The following patterns are _not_ considered violations:
  28. <!-- prettier-ignore -->
  29. ```css
  30. a:hover {}
  31. ```
  32. <!-- prettier-ignore -->
  33. ```css
  34. a:nth-of-type(5) {}
  35. ```
  36. <!-- prettier-ignore -->
  37. ```css
  38. a:nth-child(2) {}
  39. ```