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.0KB

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