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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # function-linear-gradient-no-nonstandard-direction
  2. Disallow direction values in `linear-gradient()` calls that are not valid according to the
  3. [standard syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient#Syntax).
  4. <!-- prettier-ignore -->
  5. ```css
  6. .foo { background: linear-gradient(to top, #fff, #000); }
  7. /** ↑
  8. * This (optional) first argument is the "direction" */
  9. ```
  10. A valid and standard direction value is one of the following:
  11. - an angle
  12. - `to` plus a side-or-corner (`to top`, `to bottom`, `to left`, `to right`; `to top right`, `to right top`, `to bottom left`, etc.)
  13. A common mistake (matching outdated non-standard syntax) is to use just a side-or-corner without the preceding `to`.
  14. ## Options
  15. ### `true`
  16. The following patterns are considered violations:
  17. <!-- prettier-ignore -->
  18. ```css
  19. .foo { background: linear-gradient(top, #fff, #000); }
  20. ```
  21. <!-- prettier-ignore -->
  22. ```css
  23. .foo { background: linear-gradient(bottom, #fff, #000); }
  24. ```
  25. <!-- prettier-ignore -->
  26. ```css
  27. .foo { background: linear-gradient(left, #fff, #000); }
  28. ```
  29. <!-- prettier-ignore -->
  30. ```css
  31. .foo { background: linear-gradient(45, #fff, #000); }
  32. ```
  33. <!-- prettier-ignore -->
  34. ```css
  35. .foo { background: linear-gradient(to top top, #fff, #000); }
  36. ```
  37. The following patterns are _not_ considered violations:
  38. <!-- prettier-ignore -->
  39. ```css
  40. .foo { background: linear-gradient(to top, #fff, #000); }
  41. ```
  42. <!-- prettier-ignore -->
  43. ```css
  44. .foo { background: linear-gradient(to bottom right, #fff, #000); }
  45. ```
  46. <!-- prettier-ignore -->
  47. ```css
  48. .foo { background: linear-gradient(45deg, #fff, #000); }
  49. ```
  50. <!-- prettier-ignore -->
  51. ```css
  52. .foo { background: linear-gradient(1.57rad, #fff, #000); }
  53. ```
  54. <!-- prettier-ignore -->
  55. ```css
  56. /* Direction defaults to "to bottom" */
  57. .foo { background: linear-gradient(#fff, #000); }
  58. ```