sidebar.scss 1.9 KB

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