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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # declaration-property-unit-allowed-list
  2. Specify a list of allowed property and unit pairs within declarations.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { width: 100px; }
  6. /** ↑ ↑
  7. * These properties and these units */
  8. ```
  9. ## Options
  10. `object`: `{ "unprefixed-property-name": ["array", "of", "units"] }`
  11. 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.
  12. Given:
  13. ```
  14. {
  15. "font-size": ["em", "px"],
  16. "/^animation/": ["s"],
  17. "line-height": []
  18. }
  19. ```
  20. The following patterns are considered violations:
  21. <!-- prettier-ignore -->
  22. ```css
  23. a { font-size: 1.2rem; }
  24. ```
  25. <!-- prettier-ignore -->
  26. ```css
  27. a { animation: animation-name 500ms ease; }
  28. ```
  29. <!-- prettier-ignore -->
  30. ```css
  31. a { -webkit-animation: animation-name 500ms ease; }
  32. ```
  33. <!-- prettier-ignore -->
  34. ```css
  35. a { animation-duration: 500ms; }
  36. ```
  37. <!-- prettier-ignore -->
  38. ```css
  39. a { line-height: 13px; }
  40. ```
  41. The following patterns are _not_ considered violations:
  42. <!-- prettier-ignore -->
  43. ```css
  44. a { font-size: 1em; }
  45. ```
  46. <!-- prettier-ignore -->
  47. ```css
  48. a { height: 100px; }
  49. ```
  50. <!-- prettier-ignore -->
  51. ```css
  52. a { animation: animation-name 5s ease; }
  53. ```
  54. <!-- prettier-ignore -->
  55. ```css
  56. a { -webkit-animation: animation-name 5s ease; }
  57. ```
  58. <!-- prettier-ignore -->
  59. ```css
  60. a { animation-duration: 5s; }
  61. ```
  62. <!-- prettier-ignore -->
  63. ```css
  64. a { line-height: 1; }
  65. ```
  66. ## Optional secondary options
  67. ### `ignore: ["inside-function"]`
  68. Ignore units that are inside a function.
  69. For example, given:
  70. ```
  71. {
  72. "/^border/": ["px"],
  73. "/^background/": ["%"],
  74. },
  75. {
  76. "ignore": ["inside-function"],
  77. },
  78. ```
  79. The following patterns are _not_ considered violations:
  80. <!-- prettier-ignore -->
  81. ```css
  82. a {
  83. border: 1px solid hsla(162deg, 51%, 35%, 0.8);
  84. }
  85. ```
  86. <!-- prettier-ignore -->
  87. ```css
  88. a {
  89. background-image: linear-gradient(hsla(162deg, 51%, 35%, 0.8), hsla(62deg, 51%, 35%, 0.8));
  90. }
  91. ```