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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # declaration-colon-newline-after
  2. Require a newline or disallow whitespace after the colon of declarations.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a {
  6. box-shadow:
  7. 0 0 0 1px #5b9dd9,
  8. 0 0 2px 1px rgba(30, 140, 190, 0.8);
  9. } /* ↑ */
  10. /** ↑
  11. * The newline after this colon */
  12. ```
  13. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  14. ## Options
  15. `string`: `"always"|"always-multi-line"`
  16. ### `"always"`
  17. There _must always_ be a newline after the colon.
  18. The following patterns are considered violations:
  19. <!-- prettier-ignore -->
  20. ```css
  21. a { color:pink; }
  22. ```
  23. <!-- prettier-ignore -->
  24. ```css
  25. a { color: pink; }
  26. ```
  27. The following patterns are _not_ considered violations:
  28. <!-- prettier-ignore -->
  29. ```css
  30. a {
  31. color:
  32. pink;
  33. }
  34. ```
  35. ### `"always-multi-line"`
  36. There _must always_ be a newline after the colon _if the declaration's value is multi-line_.
  37. The following patterns are considered violations:
  38. <!-- prettier-ignore -->
  39. ```css
  40. a {
  41. box-shadow: 0 0 0 1px #5b9dd9,
  42. 0 0 2px 1px rgba(30, 140, 190, 0.8);
  43. }
  44. ```
  45. The following patterns are _not_ considered violations:
  46. <!-- prettier-ignore -->
  47. ```css
  48. a {
  49. box-shadow:
  50. 0 0 0 1px #5b9dd9,
  51. 0 0 2px 1px rgba(30, 140, 190, 0.8);
  52. }
  53. ```
  54. <!-- prettier-ignore -->
  55. ```css
  56. a {
  57. color: pink;
  58. }
  59. ```