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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # selector-combinator-space-after
  2. Require a single space or disallow whitespace after the combinators of selectors.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a > b + c ~ d e >>> f { color: pink; }
  6. /** ↑ ↑ ↑ ↑ ↑
  7. * These are combinators */
  8. ```
  9. Combinators are used to combine several different selectors into new and more specific ones. There are several types of combinators, including: child (`>`), adjacent sibling (`+`), general sibling (`~`), and descendant (which is represented by a blank space between two selectors).
  10. The descendant combinator is _not_ checked by this rule.
  11. Also, `+` and `-` signs within `:nth-*()` arguments are not checked (e.g. `a:nth-child(2n+1)`).
  12. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  13. ## Options
  14. `string`: `"always"|"never"`
  15. ### `"always"`
  16. There _must always_ be a single space after the combinators.
  17. The following patterns are considered violations:
  18. <!-- prettier-ignore -->
  19. ```css
  20. a +b { color: pink; }
  21. ```
  22. <!-- prettier-ignore -->
  23. ```css
  24. a>b { color: pink; }
  25. ```
  26. The following patterns are _not_ considered violations:
  27. <!-- prettier-ignore -->
  28. ```css
  29. a + b { color: pink; }
  30. ```
  31. <!-- prettier-ignore -->
  32. ```css
  33. a> b { color: pink; }
  34. ```
  35. ### `"never"`
  36. There _must never_ be whitespace after the combinators.
  37. The following patterns are considered violations:
  38. <!-- prettier-ignore -->
  39. ```css
  40. a + b { color: pink; }
  41. ```
  42. <!-- prettier-ignore -->
  43. ```css
  44. a> b { color: pink; }
  45. ```
  46. The following patterns are _not_ considered violations:
  47. <!-- prettier-ignore -->
  48. ```css
  49. a +b { color: pink; }
  50. ```
  51. <!-- prettier-ignore -->
  52. ```css
  53. a>b { color: pink; }
  54. ```