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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # length-zero-no-unit
  2. Disallow units for zero lengths.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { top: 0px; }
  6. /** ↑↑
  7. * This zero and this type of length unit */
  8. ```
  9. _Lengths_ refer to distance measurements. A length is a _dimension_, which is a _number_ immediately followed by a _unit identifier_. However, for zero lengths the unit identifier is optional. The length units are: `em`, `ex`, `ch`, `vw`, `vh`, `cm`, `mm`, `in`, `pt`, `pc`, `px`, `rem`, `vmin`, and `vmax`.
  10. This rule ignores lengths within math functions (e.g. `calc`) in favor of the [`function-calc-no-invalid`](../function-calc-no-invalid/README.md) rule.
  11. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  12. ## Options
  13. ### `true`
  14. The following patterns are considered violations:
  15. <!-- prettier-ignore -->
  16. ```css
  17. a { top: 0px }
  18. ```
  19. <!-- prettier-ignore -->
  20. ```css
  21. a { top: 0.000em }
  22. ```
  23. The following patterns are _not_ considered violations:
  24. <!-- prettier-ignore -->
  25. ```css
  26. a { top: 0 } /* no unit */
  27. ```
  28. <!-- prettier-ignore -->
  29. ```css
  30. a { transition-delay: 0s; } /* dimension */
  31. ```
  32. <!-- prettier-ignore -->
  33. ```css
  34. a { top: 2in; }
  35. ```
  36. <!-- prettier-ignore -->
  37. ```css
  38. a { top: 1.001vh }
  39. ```
  40. ## Optional secondary options
  41. ### `ignore: ["custom-properties"]`
  42. #### `"custom-properties"`
  43. Ignore units for zero length in custom properties.
  44. The following pattern is _not_ considered a violation:
  45. <!-- prettier-ignore -->
  46. ```css
  47. a { --x: 0px; }
  48. ```