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

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