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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. # unit-blacklist
  2. **_Deprecated: Instead use the [`unit-disallowed-list`](../unit-disallowed-list/README.md) rule._**
  3. Specify a list of disallowed units.
  4. <!-- prettier-ignore -->
  5. ```css
  6. a { width: 100px; }
  7. /** ↑
  8. * These units */
  9. ```
  10. ## Options
  11. `array|string`: `["array", "of", "units"]|"unit"`
  12. Given:
  13. ```
  14. ["px", "em", "deg"]
  15. ```
  16. The following patterns are considered violations:
  17. <!-- prettier-ignore -->
  18. ```css
  19. a { width: 100px; }
  20. ```
  21. <!-- prettier-ignore -->
  22. ```css
  23. a { font-size: 10em; }
  24. ```
  25. <!-- prettier-ignore -->
  26. ```css
  27. a { transform: rotate(30deg); }
  28. ```
  29. The following patterns are _not_ considered violations:
  30. <!-- prettier-ignore -->
  31. ```css
  32. a { font-size: 1.2rem; }
  33. ```
  34. <!-- prettier-ignore -->
  35. ```css
  36. a { line-height: 1.2; }
  37. ```
  38. <!-- prettier-ignore -->
  39. ```css
  40. a { height: 100vmin; }
  41. ```
  42. <!-- prettier-ignore -->
  43. ```css
  44. a { animation: animation-name 5s ease; }
  45. ```
  46. ## Optional secondary options
  47. ### `ignoreProperties: { unit: ["property", "/regex/", /regex/] }`
  48. Ignore units in the values of declarations with the specified properties.
  49. For example, with `["px", "vmin"]`.
  50. Given:
  51. ```
  52. {
  53. "px": [ "font-size", "/^border/" ],
  54. "vmin": [ "width" ]
  55. }
  56. ```
  57. The following patterns are _not_ considered violations:
  58. <!-- prettier-ignore -->
  59. ```css
  60. a { font-size: 13px; }
  61. ```
  62. <!-- prettier-ignore -->
  63. ```css
  64. a { border-bottom-width: 6px; }
  65. ```
  66. <!-- prettier-ignore -->
  67. ```css
  68. a { width: 100vmin; }
  69. ```
  70. The following patterns are considered violations:
  71. <!-- prettier-ignore -->
  72. ```css
  73. a { line-height: 12px; }
  74. ```
  75. <!-- prettier-ignore -->
  76. ```css
  77. a { -moz-border-radius-topright: 40px; }
  78. ```
  79. <!-- prettier-ignore -->
  80. ```css
  81. a { height: 100vmin; }
  82. ```
  83. ### `ignoreMediaFeatureNames: { unit: ["property", "/regex/", /regex/] }`
  84. Ignore units for specific feature names.
  85. For example, with `["px", "dpi"]`.
  86. Given:
  87. ```
  88. {
  89. "px": [ "min-width", "/height$/" ],
  90. "dpi": [ "resolution" ]
  91. }
  92. ```
  93. The following patterns are _not_ considered violations:
  94. <!-- prettier-ignore -->
  95. ```css
  96. @media (min-width: 960px) {}
  97. ```
  98. <!-- prettier-ignore -->
  99. ```css
  100. @media (max-height: 280px) {}
  101. ```
  102. <!-- prettier-ignore -->
  103. ```css
  104. @media not (resolution: 300dpi) {}
  105. ```
  106. The following patterns are considered violations:
  107. <!-- prettier-ignore -->
  108. ```css
  109. @media screen and (max-device-width: 500px) {}
  110. ```
  111. <!-- prettier-ignore -->
  112. ```css
  113. @media all and (min-width: 500px) and (max-width: 200px) {}
  114. ```
  115. <!-- prettier-ignore -->
  116. ```css
  117. @media print and (max-resolution: 100dpi) {}
  118. ```