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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # selector-max-pseudo-class
  2. Limit the number of pseudo-classes in a selector.
  3. <!-- prettier-ignore -->
  4. ```css
  5. .foo .bar:first-child:hover {}
  6. /* ↑ ↑
  7. ↑ ↑
  8. 1 2 -- this selector contains two pseudo-classes */
  9. ```
  10. This rule resolves nested selectors before counting the number of pseudo-classes in a selector. Each selector in a [selector list](https://www.w3.org/TR/selectors4/#selector-list) is evaluated separately.
  11. The content of the `:not()` pseudo-class is also evaluated separately. The rule processes the argument as if it were an independent selector, and the result does not count toward the total for the entire selector.
  12. ## Options
  13. `int`: Maximum pseudo-classes allowed.
  14. For example, with `1`:
  15. The following patterns are considered violations:
  16. <!-- prettier-ignore -->
  17. ```css
  18. a:first-child:focus {}
  19. ```
  20. <!-- prettier-ignore -->
  21. ```css
  22. .foo .bar:first-child:hover {}
  23. ```
  24. The following patterns are _not_ considered violations:
  25. <!-- prettier-ignore -->
  26. ```css
  27. a {}
  28. ```
  29. <!-- prettier-ignore -->
  30. ```css
  31. a:first-child {}
  32. ```
  33. <!-- prettier-ignore -->
  34. ```css
  35. .foo .bar:first-child {}
  36. ```