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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. # declaration-block-no-duplicate-properties
  2. Disallow duplicate properties within declaration blocks.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { color: pink; color: orange; }
  6. /** ↑ ↑
  7. * These duplicated properties */
  8. ```
  9. This rule ignores variables (`$sass`, `@less`, `--custom-property`).
  10. ## Options
  11. ### `true`
  12. The following patterns are considered violations:
  13. <!-- prettier-ignore -->
  14. ```css
  15. a { color: pink; color: orange; }
  16. ```
  17. <!-- prettier-ignore -->
  18. ```css
  19. a { color: pink; background: orange; color: orange }
  20. ```
  21. The following patterns are _not_ considered violations:
  22. <!-- prettier-ignore -->
  23. ```css
  24. a { color: pink; }
  25. ```
  26. <!-- prettier-ignore -->
  27. ```css
  28. a { color: pink; background: orange; }
  29. ```
  30. ## Optional secondary options
  31. ### `ignore: ["consecutive-duplicates"]`
  32. Ignore consecutive duplicated properties.
  33. They can prove to be useful fallbacks for older browsers.
  34. The following patterns are considered violations:
  35. <!-- prettier-ignore -->
  36. ```css
  37. p {
  38. font-size: 16px;
  39. font-weight: 400;
  40. font-size: 1rem;
  41. }
  42. ```
  43. The following patterns are _not_ considered violations:
  44. <!-- prettier-ignore -->
  45. ```css
  46. p {
  47. font-size: 16px;
  48. font-size: 1rem;
  49. font-weight: 400;
  50. }
  51. ```
  52. ### `ignore: ["consecutive-duplicates-with-different-values"]`
  53. Ignore consecutive duplicated properties with different values.
  54. Including duplicate properties (fallbacks) is useful to deal with older browsers support for CSS properties. E.g. using `px` units when `rem` isn't available.
  55. The following patterns are considered violations:
  56. <!-- prettier-ignore -->
  57. ```css
  58. /* properties with the same value */
  59. p {
  60. font-size: 16px;
  61. font-size: 16px;
  62. font-weight: 400;
  63. }
  64. ```
  65. <!-- prettier-ignore -->
  66. ```css
  67. /* nonconsecutive duplicates */
  68. p {
  69. font-size: 16px;
  70. font-weight: 400;
  71. font-size: 1rem;
  72. }
  73. ```
  74. The following patterns are _not_ considered violations:
  75. <!-- prettier-ignore -->
  76. ```css
  77. p {
  78. font-size: 16px;
  79. font-size: 1rem;
  80. font-weight: 400;
  81. }
  82. ```
  83. ### `ignoreProperties: ["/regex/", "non-regex"]`
  84. Ignore duplicates of specific properties.
  85. Given:
  86. ```
  87. ["color", "/background-/"]
  88. ```
  89. The following patterns are considered violations:
  90. <!-- prettier-ignore -->
  91. ```css
  92. a { color: pink; background: orange; background: white; }
  93. ```
  94. <!-- prettier-ignore -->
  95. ```css
  96. a { background: orange; color: pink; background: white; }
  97. ```
  98. The following patterns are _not_ considered violations:
  99. <!-- prettier-ignore -->
  100. ```css
  101. a { color: pink; color: orange; background-color: orange; background-color: white; }
  102. ```
  103. <!-- prettier-ignore -->
  104. ```css
  105. a { color: pink; background-color: orange; color: orange; background-color: white; }
  106. ```