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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # selector-max-universal
  2. Limit the number of universal selectors in a selector.
  3. <!-- prettier-ignore -->
  4. ```css
  5. * {}
  6. /** ↑
  7. * This universal selector */
  8. ```
  9. This rule resolves nested selectors before counting the number of universal selectors. Each selector in a [selector list](https://www.w3.org/TR/selectors4/#selector-list) is evaluated separately.
  10. The logical combinations pseudo-class (e.g. `:not`, `:has`) 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.
  11. ## Options
  12. `int`: Maximum universal selectors allowed.
  13. For example, with `2`:
  14. The following patterns are considered violations:
  15. <!-- prettier-ignore -->
  16. ```css
  17. * * * {}
  18. ```
  19. <!-- prettier-ignore -->
  20. ```css
  21. * * {
  22. & * {}
  23. }
  24. ```
  25. <!-- prettier-ignore -->
  26. ```css
  27. * * {
  28. & > * {}
  29. }
  30. ```
  31. The following patterns are _not_ considered violations:
  32. <!-- prettier-ignore -->
  33. ```css
  34. * {}
  35. ```
  36. <!-- prettier-ignore -->
  37. ```css
  38. * * {}
  39. ```
  40. <!-- prettier-ignore -->
  41. ```css
  42. .foo * {}
  43. ```
  44. <!-- prettier-ignore -->
  45. ```css
  46. *.foo * {}
  47. ```
  48. <!-- prettier-ignore -->
  49. ```css
  50. /* each selector in a selector list is evaluated separately */
  51. *.foo,
  52. *.bar * {}
  53. ```
  54. <!-- prettier-ignore -->
  55. ```css
  56. /* `*` is inside `:not()`, so it is evaluated separately */
  57. * > * .foo:not(*) {}
  58. ```