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

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