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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # shorthand-property-no-redundant-values
  2. Disallow redundant values in shorthand properties.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { margin: 1px 1px 1px 1px; }
  6. /** ↑ ↑ ↑
  7. * These values */
  8. ```
  9. This rule alerts you when you use redundant values in the following shorthand properties:
  10. - `margin`
  11. - `padding`
  12. - `border-color`
  13. - `border-radius`
  14. - `border-style`
  15. - `border-width`
  16. - `grid-gap`
  17. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  18. ## Options
  19. ### `true`
  20. The following patterns are considered violations:
  21. <!-- prettier-ignore -->
  22. ```css
  23. a { margin: 1px 1px; }
  24. ```
  25. <!-- prettier-ignore -->
  26. ```css
  27. a { margin: 1px 1px 1px 1px; }
  28. ```
  29. <!-- prettier-ignore -->
  30. ```css
  31. a { padding: 1px 2px 1px; }
  32. ```
  33. <!-- prettier-ignore -->
  34. ```css
  35. a { border-radius: 1px 2px 1px 2px; }
  36. ```
  37. <!-- prettier-ignore -->
  38. ```css
  39. a { -webkit-border-radius: 1px 1px 1px 1px; }
  40. ```
  41. The following patterns are _not_ considered violations:
  42. <!-- prettier-ignore -->
  43. ```css
  44. a { margin: 1px; }
  45. ```
  46. <!-- prettier-ignore -->
  47. ```css
  48. a { margin: 1px 1px 1px 2px; }
  49. ```
  50. <!-- prettier-ignore -->
  51. ```css
  52. a { padding: 1px 1em 1pt 1pc; }
  53. ```
  54. <!-- prettier-ignore -->
  55. ```css
  56. a { border-radius: 10px / 5px; }
  57. ```