styles.css 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. .box {
  2. width: 600px;
  3. height: 300px;
  4. display: inline-block;
  5. margin: 20px 20px 0;
  6. /* min-height: 100vh; */
  7. }
  8. .linear-simple {
  9. background: linear-gradient(cyan, blue, magenta) no-repeat;
  10. }
  11. .linear-hsl {
  12. background: linear-gradient(
  13. hsl(180, 100%, 50%),
  14. hsl(240, 100%, 50%),
  15. hsl(300, 100%, 50%)
  16. );
  17. }
  18. .linear-stop {
  19. background: linear-gradient(
  20. hsl(180, 100%, 50%) 50px,
  21. hsl(240, 100%, 50%) 100px,
  22. hsl(300, 100%, 50%)
  23. );
  24. }
  25. .linear-without-range {
  26. background: linear-gradient(
  27. hsl(180, 100%, 50%) 100px,
  28. hsl(300, 100%, 50%) 100px,
  29. hsl(300, 100%, 50%) 200px,
  30. hsl(60, 100%, 50%) 200px
  31. );
  32. }
  33. .linear-to-right {
  34. background: linear-gradient(
  35. to right,
  36. hsl(180, 100%, 50%) 200px,
  37. hsl(300, 100%, 50%) 200px,
  38. hsl(300, 100%, 50%) 400px,
  39. hsl(60, 100%, 50%) 400px
  40. );
  41. }
  42. .linear-to-top-right {
  43. background: linear-gradient(
  44. to top right,
  45. hsl(180, 100%, 50%) 200px,
  46. hsl(300, 100%, 50%) 200px,
  47. hsl(300, 100%, 50%) 400px,
  48. hsl(60, 100%, 50%) 400px
  49. );
  50. }
  51. .linear-angle {
  52. background: linear-gradient(
  53. 120deg,
  54. hsl(180, 100%, 50%) 200px,
  55. hsl(300, 100%, 50%) 200px,
  56. hsl(300, 100%, 50%) 400px,
  57. hsl(60, 100%, 50%) 400px
  58. );
  59. }