_leftMenu.scss 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. $bg-color:#f8f8f9;
  2. $color:#495060;
  3. $side-width:180px;
  4. $active-bg-color:#59c993;
  5. $active-border-color:#f2f2f2;
  6. $active-color:#0bb27a;
  7. .left-menu-Vg32{
  8. position: fixed;
  9. top: 60px;
  10. left: 0;
  11. height: calc(100% - 104px);
  12. width: $side-width;
  13. z-index: 199;
  14. background: $bg-color;
  15. padding-top: 16px;
  16. overflow-x: hidden;
  17. overflow-y: auto;
  18. transition: all 0.5s;
  19. .menu-list{
  20. .item{
  21. height: 40px;
  22. margin-bottom: 8px;
  23. color: #495060;
  24. transition: all 0.2s;
  25. display: flex;
  26. align-items: center;
  27. user-select: none;
  28. white-space: nowrap;
  29. cursor: pointer;
  30. position: relative;
  31. border-left: 3px solid transparent;
  32. &:hover{
  33. border-left-color:$active-bg-color;
  34. background: $active-border-color;
  35. }
  36. .icon-svg{
  37. font-size: 20px;
  38. position: absolute;
  39. right: 13px;
  40. top: 0;
  41. bottom: 0;
  42. margin: auto;
  43. transition: all 0.2s;
  44. color: #bbbec4;
  45. line-height: 40px;
  46. width: 1em;
  47. height: 1em;
  48. vertical-align: -0.15em;
  49. pointer-events: none;
  50. }
  51. }
  52. &>.item.active{
  53. +.item-list{
  54. display: block;
  55. }
  56. .icon-svg{
  57. transform: rotate(180deg);
  58. }
  59. }
  60. .item-list{
  61. display: none;
  62. .item{
  63. .name{
  64. font-size: 13px;
  65. }
  66. &.active{
  67. border-left-color:$active-bg-color;
  68. background: $active-border-color;
  69. color: $active-color;
  70. }
  71. }
  72. }
  73. }
  74. .icon{
  75. margin-left: 13px;
  76. width: 20px;
  77. height: 20px;
  78. }
  79. .name{
  80. position: relative;
  81. white-space: nowrap;
  82. margin-left: 16px;
  83. font-size: 14px;
  84. }
  85. }