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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # property-whitelist
  2. **_Deprecated: Instead use the [`property-allowed-list`](../property-allowed-list/README.md) rule._**
  3. Specify a list of allowed properties.
  4. <!-- prettier-ignore -->
  5. ```css
  6. a { display: block; }
  7. /** ↑
  8. * This property */
  9. ```
  10. This rule ignores variables (`$sass`, `@less`, `--custom-property`).
  11. ## Options
  12. `array|string`: `["array", "of", "unprefixed", /properties/ or "regex"]|"property"|"/regex/"`|/regex/
  13. If a string is surrounded with `"/"` (e.g. `"/^background/"`), it is interpreted as a regular expression. This allows, for example, easy targeting of shorthands: `/^background/` will match `background`, `background-size`, `background-color`, etc.
  14. Given:
  15. ```
  16. ["display", "animation", "/^background/"]
  17. ```
  18. The following patterns are considered violations:
  19. <!-- prettier-ignore -->
  20. ```css
  21. a { color: pink; }
  22. ```
  23. <!-- prettier-ignore -->
  24. ```css
  25. a {
  26. animation: my-animation 2s;
  27. color: pink;
  28. }
  29. ```
  30. <!-- prettier-ignore -->
  31. ```css
  32. a { borkgrund: orange; }
  33. ```
  34. The following patterns are _not_ considered violations:
  35. <!-- prettier-ignore -->
  36. ```css
  37. a { display: block; }
  38. ```
  39. <!-- prettier-ignore -->
  40. ```css
  41. a { -webkit-animation: my-animation 2s; }
  42. ```
  43. <!-- prettier-ignore -->
  44. ```css
  45. a {
  46. animation: my-animation 2s;
  47. -webkit-animation: my-animation 2s;
  48. display: block;
  49. }
  50. ```
  51. <!-- prettier-ignore -->
  52. ```css
  53. a { background: pink; }
  54. ```
  55. <!-- prettier-ignore -->
  56. ```css
  57. a { background-color: pink; }
  58. ```