123
gaoshp
刚刚 4c2a27b9d7604287c4f94c88a84a1f10a44ad39c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@use './variables.scss' as variables;
 
.avue-sidebar {
  width: variables.$sidebar_width;
  height: 100%;
  user-select: none;
  position: relative;
  background-color: #031527;
  transition: width .2s;
  box-sizing: border-box;
  box-shadow: 2px 0 6px rgba(0, 21, 41, .35);
 
  .el-scrollbar__wrap {
    overflow-x: hidden;
  }
 
  .avue-menu {
    height: calc(100% - #{variables.$top_height});
  }
 
  &--tip {
    width: 90%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    position: absolute;
    top: 5px;
    left: 5%;
    color: #ccc;
    z-index: 2;
    text-align: center;
    font-size: 14px;
    background-color: rgba(0, 0, 0, .4);
  }
 
  .el-menu-item, .el-sub-menu__title {
    i {
      margin-right: 5px;
    }
 
    i, span {
      color: hsla(0, 0%, 100%, .7);
    }
 
    &:hover {
      background: transparent;
 
      i, span {
        color: #fff;
      }
    }
 
    &.is-active {
      &:before {
        content: '';
        top: 0;
        left: 0;
        bottom: 0;
        width: 4px;
        background: var(--el-color-primary);
        position: absolute;
      }
 
      background-color: rgba(0, 0, 0, .8);
 
      i, span {
        color: #fff;
      }
    }
  }
 
}