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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # declaration-property-unit-whitelist
  2. **_Deprecated: Instead use the [`declaration-property-unit-allowed-list`](../declaration-property-unit-allowed-list/README.md) rule._**
  3. Specify a list of allowed property and unit pairs within declarations.
  4. <!-- prettier-ignore -->
  5. ```css
  6. a { width: 100px; }
  7. /** ↑ ↑
  8. * These properties and these units */
  9. ```
  10. ## Options
  11. `object`: `{ "unprefixed-property-name": ["array", "of", "units"] }`
  12. If a property name is surrounded with `"/"` (e.g. `"/^animation/"`), it is interpreted as a regular expression. This allows, for example, easy targeting of shorthands: `/^animation/` will match `animation`, `animation-duration`, `animation-timing-function`, etc.
  13. Given:
  14. ```
  15. {
  16. "font-size": ["em", "px"],
  17. "/^animation/": ["s"],
  18. "line-height": []
  19. }
  20. ```
  21. The following patterns are considered violations:
  22. <!-- prettier-ignore -->
  23. ```css
  24. a { font-size: 1.2rem; }
  25. ```
  26. <!-- prettier-ignore -->
  27. ```css
  28. a { animation: animation-name 500ms ease; }
  29. ```
  30. <!-- prettier-ignore -->
  31. ```css
  32. a { -webkit-animation: animation-name 500ms ease; }
  33. ```
  34. <!-- prettier-ignore -->
  35. ```css
  36. a { animation-duration: 500ms; }
  37. ```
  38. <!-- prettier-ignore -->
  39. ```css
  40. a { line-height: 13px; }
  41. ```
  42. The following patterns are _not_ considered violations:
  43. <!-- prettier-ignore -->
  44. ```css
  45. a { font-size: 1em; }
  46. ```
  47. <!-- prettier-ignore -->
  48. ```css
  49. a { height: 100px; }
  50. ```
  51. <!-- prettier-ignore -->
  52. ```css
  53. a { animation: animation-name 5s ease; }
  54. ```
  55. <!-- prettier-ignore -->
  56. ```css
  57. a { -webkit-animation: animation-name 5s ease; }
  58. ```
  59. <!-- prettier-ignore -->
  60. ```css
  61. a { animation-duration: 5s; }
  62. ```
  63. <!-- prettier-ignore -->
  64. ```css
  65. a { line-height: 1; }
  66. ```