_leftMenu.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. .bottomEntry{
  86. position: fixed;
  87. bottom: 0;
  88. z-index: 12;
  89. width: 180px;
  90. height: 45px;
  91. border-top: 1px solid #e1e6eb;
  92. display: flex;
  93. align-items: center;
  94. justify-content: center;
  95. background: #f8f8f9;
  96. img{
  97. margin-right:6px;
  98. }
  99. a{
  100. color: #80848f;
  101. user-select: none;
  102. white-space: nowrap;
  103. font-size: 12px;
  104. cursor: pointer;
  105. &:hover{
  106. color: #0bb27a;
  107. }
  108. }
  109. .icon-svg{
  110. font-size: 1em;
  111. width: 16px;
  112. height: 16px;
  113. vertical-align: -0.15em;
  114. }
  115. }
  116. }