sidebar.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. .avue-sidebar {
  2. user-select: none;
  3. position: relative;
  4. padding-top: 54px;
  5. height: 100%;
  6. position: relative;
  7. background-color: #20222a;
  8. transition: width .2s;
  9. box-sizing: border-box;
  10. box-shadow: 2px 0 6px rgba(0,21,41,.35);
  11. &--tip{
  12. width:90%;
  13. height: 140px;
  14. display: flex;
  15. align-items: center;
  16. justify-content: center;
  17. border-radius: 5px;
  18. position: absolute;
  19. top:5px;
  20. left:5%;
  21. color:#ccc;
  22. z-index: 2;
  23. text-align: center;
  24. font-size: 14px;
  25. background-color: rgba(0,0,0,.4);
  26. }
  27. .el-menu-item,
  28. .el-submenu__title {
  29. font-size: 14px;
  30. height: 56px;
  31. line-height: 56px;
  32. }
  33. .el-menu-item {
  34. span,i{
  35. color:rgba(255, 255, 255, 0.7);
  36. }
  37. &:hover {
  38. background-color: transparent;
  39. color: #fff;
  40. span,
  41. i {
  42. color: #fff;
  43. }
  44. }
  45. &.is-active {
  46. background-color: rgba(0, 0, 0, .8);
  47. span,
  48. i {
  49. color: #fff;
  50. }
  51. &:hover {
  52. background-color: rgba(0, 0, 0, .8);
  53. }
  54. &::before {
  55. content: " ";
  56. top: 0;
  57. left: 0;
  58. bottom: 0;
  59. width: 4px;
  60. background: $mainBg;
  61. position: absolute
  62. }
  63. }
  64. }
  65. .el-submenu__title {
  66. span,i{
  67. color:rgba(255, 255, 255, 0.7);
  68. }
  69. &:hover {
  70. i,
  71. span {
  72. color: #fff;
  73. }
  74. background-color:transparent ;
  75. }
  76. }
  77. .el-submenu .el-menu-item {
  78. height: 50px;
  79. line-height: 50px;
  80. span,i{
  81. color:rgba(255, 255, 255, 0.7);
  82. }
  83. &.is-active {
  84. background-color: rgba(0, 0, 0, .8);
  85. span,
  86. i {
  87. color: #fff
  88. }
  89. &:hover {
  90. background-color: rgba(0, 0, 0, .8);
  91. }
  92. }
  93. &:hover {
  94. background-color: transparent;
  95. span,
  96. i {
  97. color: #fff;
  98. }
  99. }
  100. }
  101. }