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

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