index.module.less 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .menuItem {
  2. .icon1 {
  3. background: url('./images/1.png') no-repeat center;
  4. background-size: contain;
  5. }
  6. .icon2 {
  7. background: url('./images/2.png') no-repeat center;
  8. background-size: contain;
  9. }
  10. .icon3 {
  11. background: url('./images/3.png') no-repeat center;
  12. background-size: contain;
  13. }
  14. .icon4 {
  15. background: url('./images/4.png') no-repeat center;
  16. background-size: contain;
  17. }
  18. .icon5 {
  19. background: url('./images/5.png') no-repeat center;
  20. background-size: contain;
  21. }
  22. &.active,
  23. &:hover {
  24. background: url('./images/menu_active.png') no-repeat left center;
  25. background-size: contain;
  26. @apply text-white;
  27. .icon1 {
  28. background: url('./images/1-active.png') no-repeat center;
  29. background-size: contain;
  30. }
  31. .icon2 {
  32. background: url('./images/2-active.png') no-repeat center;
  33. background-size: contain;
  34. }
  35. .icon3 {
  36. background: url('./images/3-active.png') no-repeat center;
  37. background-size: contain;
  38. }
  39. .icon4 {
  40. background: url('./images/4-active.png') no-repeat center;
  41. background-size: contain;
  42. }
  43. .icon5 {
  44. background: url('./images/5-active.png') no-repeat center;
  45. background-size: contain;
  46. }
  47. }
  48. }