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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # declaration-block-no-shorthand-property-overrides
  2. Disallow shorthand properties that override related longhand properties.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { background-repeat: repeat; background: green; }
  6. /** ↑
  7. * This overrides the longhand property before it */
  8. ```
  9. In almost every case, this is just an authorial oversight. For more about this behavior, see [MDN's documentation of shorthand properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties).
  10. ## Options
  11. ### `true`
  12. The following patterns are considered violations:
  13. <!-- prettier-ignore -->
  14. ```css
  15. a {
  16. padding-left: 10px;
  17. padding: 20px;
  18. }
  19. ```
  20. <!-- prettier-ignore -->
  21. ```css
  22. a {
  23. transition-property: opacity;
  24. transition: opacity 1s linear;
  25. }
  26. ```
  27. <!-- prettier-ignore -->
  28. ```css
  29. a {
  30. -webkit-transition-property: opacity;
  31. -webkit-transition: opacity 1s linear;
  32. }
  33. ```
  34. <!-- prettier-ignore -->
  35. ```css
  36. a {
  37. border-top-width: 1px;
  38. top: 0;
  39. bottom: 3px;
  40. border: 2px solid blue;
  41. }
  42. ```
  43. The following patterns are _not_ considered violations:
  44. <!-- prettier-ignore -->
  45. ```css
  46. a { padding: 10px; padding-left: 20px; }
  47. ```
  48. <!-- prettier-ignore -->
  49. ```css
  50. a { transition-property: opacity; } a { transition: opacity 1s linear; }
  51. ```
  52. <!-- prettier-ignore -->
  53. ```css
  54. a { transition-property: opacity; -webkit-transition: opacity 1s linear; }
  55. ```