index.module.less 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .menuItem {
  2. box-sizing: border-box;
  3. border-right: 4px solid transparent;
  4. .icon1 {
  5. background: url('./images/1.png') no-repeat center;
  6. background-size: contain;
  7. }
  8. .icon2 {
  9. background: url('./images/2.png') no-repeat center;
  10. background-size: contain;
  11. }
  12. .icon3 {
  13. background: url('./images/3.png') no-repeat center;
  14. background-size: contain;
  15. }
  16. .icon4 {
  17. background: url('./images/4.png') no-repeat center;
  18. background-size: contain;
  19. }
  20. .icon5 {
  21. background: url('./images/5.png') no-repeat center;
  22. background-size: contain;
  23. }
  24. .icon6 {
  25. background: url('./images/6.png') no-repeat center;
  26. background-size: contain;
  27. }
  28. &.active,
  29. &:hover {
  30. background-color: #e9fff8;
  31. color: #2dc7aa;
  32. border-right-color: #2dc7aa;
  33. .icon1 {
  34. background: url('./images/1-active.png') no-repeat center;
  35. background-size: contain;
  36. }
  37. .icon2 {
  38. background: url('./images/2-active.png') no-repeat center;
  39. background-size: contain;
  40. }
  41. .icon3 {
  42. background: url('./images/3-active.png') no-repeat center;
  43. background-size: contain;
  44. }
  45. .icon4 {
  46. background: url('./images/4-active.png') no-repeat center;
  47. background-size: contain;
  48. }
  49. .icon5 {
  50. background: url('./images/5-active.png') no-repeat center;
  51. background-size: contain;
  52. }
  53. .icon6 {
  54. background: url('./images/6-active.png') no-repeat center;
  55. background-size: contain;
  56. }
  57. }
  58. }