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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # declaration-property-value-disallowed-list
  2. Specify a list of disallowed property and value pairs within declarations.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { text-transform: uppercase; }
  6. /** ↑ ↑
  7. * These properties and these values */
  8. ```
  9. ## Options
  10. `object`: `{ "unprefixed-property-name": ["array", "of", "values"], "unprefixed-property-name": ["/regex/", "non-regex", /regex/] }`
  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. 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/"`.
  13. 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)"`.
  14. Given:
  15. ```
  16. {
  17. "transform": ["/scale3d/", "/rotate3d/", "/translate3d/"],
  18. "position": ["fixed"],
  19. "color": ["/^green/"],
  20. "/^animation/": ["/ease/"]
  21. }
  22. ```
  23. The following patterns are considered violations:
  24. <!-- prettier-ignore -->
  25. ```css
  26. a { position: fixed; }
  27. ```
  28. <!-- prettier-ignore -->
  29. ```css
  30. a { transform: scale3d(1, 2, 3); }
  31. ```
  32. <!-- prettier-ignore -->
  33. ```css
  34. a { -webkit-transform: scale3d(1, 2, 3); }
  35. ```
  36. <!-- prettier-ignore -->
  37. ```css
  38. a { color: green; }
  39. ```
  40. <!-- prettier-ignore -->
  41. ```css
  42. a { animation: foo 2s ease-in-out; }
  43. ```
  44. <!-- prettier-ignore -->
  45. ```css
  46. a { animation-timing-function: ease-in-out; }
  47. ```
  48. <!-- prettier-ignore -->
  49. ```css
  50. a { -webkit-animation-timing-function: ease-in-out; }
  51. ```
  52. The following patterns are _not_ considered violations:
  53. <!-- prettier-ignore -->
  54. ```css
  55. a { position: relative; }
  56. ```
  57. <!-- prettier-ignore -->
  58. ```css
  59. a { transform: scale(2); }
  60. ```
  61. <!-- prettier-ignore -->
  62. ```css
  63. a { -webkit-transform: scale(2); }
  64. ```
  65. <!-- prettier-ignore -->
  66. ```css
  67. a { color: lightgreen; }
  68. ```
  69. <!-- prettier-ignore -->
  70. ```css
  71. a { animation: foo 2s linear; }
  72. ```
  73. <!-- prettier-ignore -->
  74. ```css
  75. a { animation-timing-function: linear; }
  76. ```
  77. <!-- prettier-ignore -->
  78. ```css
  79. a { -webkit-animation-timing-function: linear; }
  80. ```