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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # hue-degree-notation
  2. Specify number or angle notation for degree hues.
  3. <!-- prettier-ignore -->
  4. ```css
  5. a { color: hsl(198deg 28% 50%) }
  6. /** ↑
  7. * This notation */
  8. ```
  9. Because hues are so often given in degrees, a hue can also be given as a number, which is interpreted as a number of degrees.
  10. The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
  11. ## Options
  12. `string`: `"angle"|"number"`
  13. ### `"angle"`
  14. Degree hues _must always_ use angle notation.
  15. The following patterns are considered violations:
  16. <!-- prettier-ignore -->
  17. ```css
  18. a { color: hsl(198 28% 50%) }
  19. ```
  20. <!-- prettier-ignore -->
  21. ```css
  22. a { color: lch(56.29% 19.86 10 / 15%) }
  23. ```
  24. The following patterns are _not_ considered violations:
  25. <!-- prettier-ignore -->
  26. ```css
  27. a { color: hsl(198deg 28% 50%) }
  28. ```
  29. <!-- prettier-ignore -->
  30. ```css
  31. a { color: lch(56.29% 19.86 10deg / 15%) }
  32. ```
  33. ### `"number"`
  34. Degree hues _must always_ use the number notation.
  35. The following patterns are considered violations:
  36. <!-- prettier-ignore -->
  37. ```css
  38. a { color: hsl(198deg 28% 50%) }
  39. ```
  40. <!-- prettier-ignore -->
  41. ```css
  42. a { color: lch(56.29% 19.86 10deg / 15%) }
  43. ```
  44. The following patterns are _not_ considered violations:
  45. <!-- prettier-ignore -->
  46. ```css
  47. a { color: hsl(198 28% 50%) }
  48. ```
  49. <!-- prettier-ignore -->
  50. ```css
  51. a { color: lch(56.29% 19.86 10 / 15%) }
  52. ```