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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # selector-max-combinators
  2. Limit the number of combinators in a selector.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a > b + c ~ d e { color: pink; }
  6. /** ↑ ↑ ↑ ↑
  7. * These are combinators */
  8. ```
  9. This rule resolves nested selectors before counting the number of combinators selectors. Each selector in a [selector list](https://www.w3.org/TR/selectors4/#selector-list) is evaluated separately.
  10. ## Options
  11. `int`: Maximum combinators selectors allowed.
  12. For example, with `2`:
  13. The following patterns are considered violations:
  14. <!-- prettier-ignore -->
  15. ```css
  16. a b ~ c + d {}
  17. ```
  18. <!-- prettier-ignore -->
  19. ```css
  20. a b ~ c {
  21. & > d {}
  22. }
  23. ```
  24. <!-- prettier-ignore -->
  25. ```css
  26. a b {
  27. & ~ c {
  28. & + d {}
  29. }
  30. }
  31. ```
  32. The following patterns are _not_ considered violations:
  33. <!-- prettier-ignore -->
  34. ```css
  35. a {}
  36. ```
  37. <!-- prettier-ignore -->
  38. ```css
  39. a b {}
  40. ```
  41. <!-- prettier-ignore -->
  42. ```css
  43. a b ~ c {}
  44. ```
  45. <!-- prettier-ignore -->
  46. ```css
  47. a b {
  48. & ~ c {}
  49. }
  50. ```
  51. <!-- prettier-ignore -->
  52. ```css
  53. /* each selector in a selector list is evaluated separately */
  54. a b,
  55. c > d {}
  56. ```