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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. # unit-whitelist
  2. **_Deprecated: Instead use the [`unit-allowed-list`](../unit-allowed-list/README.md) rule._**
  3. Specify a list of allowed 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: 100%; }
  20. ```
  21. <!-- prettier-ignore -->
  22. ```css
  23. a { font-size: 10rem; }
  24. ```
  25. <!-- prettier-ignore -->
  26. ```css
  27. a { animation: animation-name 5s ease; }
  28. ```
  29. The following patterns are _not_ considered violations:
  30. <!-- prettier-ignore -->
  31. ```css
  32. a { font-size: 1.2em; }
  33. ```
  34. <!-- prettier-ignore -->
  35. ```css
  36. a { line-height: 1.2; }
  37. ```
  38. <!-- prettier-ignore -->
  39. ```css
  40. a { height: 100px; }
  41. ```
  42. <!-- prettier-ignore -->
  43. ```css
  44. a { height: 100PX; }
  45. ```
  46. <!-- prettier-ignore -->
  47. ```css
  48. a { transform: rotate(30deg); }
  49. ```
  50. ## Optional secondary options
  51. ### `ignoreProperties: { unit: ["property", "/regex/", /regex/] }`
  52. Ignore units in the values of declarations with the specified properties.
  53. For example, with `["px", "em"]`.
  54. Given:
  55. ```
  56. {
  57. "rem": [ "line-height", "/^border/" ],
  58. "%": [ "width" ]
  59. }
  60. ```
  61. The following patterns are _not_ considered violations:
  62. <!-- prettier-ignore -->
  63. ```css
  64. a { line-height: 0.1rem; }
  65. ```
  66. <!-- prettier-ignore -->
  67. ```css
  68. a { border-bottom-width: 6rem; }
  69. ```
  70. <!-- prettier-ignore -->
  71. ```css
  72. a { width: 100%; }
  73. ```
  74. The following patterns are considered violations:
  75. <!-- prettier-ignore -->
  76. ```css
  77. a { margin: 0 20rem; }
  78. ```
  79. <!-- prettier-ignore -->
  80. ```css
  81. a { -moz-border-radius-topright: 20rem; }
  82. ```
  83. <!-- prettier-ignore -->
  84. ```css
  85. a { height: 100%; }
  86. ```