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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # declaration-property-value-blacklist
  2. **_Deprecated: Instead use the [`declaration-property-value-disallowed-list`](../declaration-property-value-disallowed-list/README.md) rule._**
  3. Specify a list of disallowed property and value pairs within declarations.
  4. <!-- prettier-ignore -->
  5. ```css
  6. a { text-transform: uppercase; }
  7. /** ↑ ↑
  8. * These properties and these values */
  9. ```
  10. ## Options
  11. `object`: `{ "unprefixed-property-name": ["array", "of", "values"], "unprefixed-property-name": ["/regex/", "non-regex", /regex/] }`
  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. The same goes for values. Keep in mind that a regular expression value is matched against the entire value of the declaration, not specific parts of it. For example, a value like `"10px solid rgba( 255 , 0 , 0 , 0.5 )"` will _not_ match `"/^solid/"` (notice beginning of the line boundary) but _will_ match `"/\\s+solid\\s+/"` or `"/\\bsolid\\b/"`.
  14. Be careful with regex matching not to accidentally consider quoted string values and `url()` arguments. For example, `"/red/"` will match value such as `"1px dotted red"` as well as `"\"foo\""` and `"white url(/mysite.com/red.png)"`.
  15. Given:
  16. ```
  17. {
  18. "transform": ["/scale3d/", "/rotate3d/", "/translate3d/"],
  19. "position": ["fixed"],
  20. "color": ["/^green/"],
  21. "/^animation/": ["/ease/"]
  22. }
  23. ```
  24. The following patterns are considered violations:
  25. <!-- prettier-ignore -->
  26. ```css
  27. a { position: fixed; }
  28. ```
  29. <!-- prettier-ignore -->
  30. ```css
  31. a { transform: scale3d(1, 2, 3); }
  32. ```
  33. <!-- prettier-ignore -->
  34. ```css
  35. a { -webkit-transform: scale3d(1, 2, 3); }
  36. ```
  37. <!-- prettier-ignore -->
  38. ```css
  39. a { color: green; }
  40. ```
  41. <!-- prettier-ignore -->
  42. ```css
  43. a { animation: foo 2s ease-in-out; }
  44. ```
  45. <!-- prettier-ignore -->
  46. ```css
  47. a { animation-timing-function: ease-in-out; }
  48. ```
  49. <!-- prettier-ignore -->
  50. ```css
  51. a { -webkit-animation-timing-function: ease-in-out; }
  52. ```
  53. The following patterns are _not_ considered violations:
  54. <!-- prettier-ignore -->
  55. ```css
  56. a { position: relative; }
  57. ```
  58. <!-- prettier-ignore -->
  59. ```css
  60. a { transform: scale(2); }
  61. ```
  62. <!-- prettier-ignore -->
  63. ```css
  64. a { -webkit-transform: scale(2); }
  65. ```
  66. <!-- prettier-ignore -->
  67. ```css
  68. a { color: lightgreen; }
  69. ```
  70. <!-- prettier-ignore -->
  71. ```css
  72. a { animation: foo 2s linear; }
  73. ```
  74. <!-- prettier-ignore -->
  75. ```css
  76. a { animation-timing-function: linear; }
  77. ```
  78. <!-- prettier-ignore -->
  79. ```css
  80. a { -webkit-animation-timing-function: linear; }
  81. ```