zouyu
2023-11-16 c3148091b5adfde56ebb18898c3b44dfc8d38eb2
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
.avue-sidebar {
    user-select: none;
    position: relative;
    padding-top: 74px;
    height: 100%;
    position: relative;
    background-color: #222d32;
    transition: width .2s;
    box-sizing: border-box;
    box-shadow: 2px 0 6px rgba(0,21,41,.35);
    &--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-submenu__title {
        font-size: 14px;
        height: 56px;
        line-height: 56px;
    }
    .el-menu-item {
        span,i{
            color:rgba(255, 255, 255, 0.7);
        }
        &:hover {
            background-color: transparent;
            color: #fff;
            span,
            i {
                color: #fff;
            }
        }
        &.is-active {
            background-color: rgba(0, 0, 0, .8);
            span,
            i {
                color: #fff;
            }
            &:hover {
                background-color: rgba(0, 0, 0, .8);
            }
            &::before {
                content: " ";
                top: 0;
                left: 0;
                bottom: 0;
                width: 4px;
                background: $mainBg;
                position: absolute
            }
        }
    }
    .el-submenu__title {
        span,i{
            color:rgba(255, 255, 255, 0.7);
        }
        &:hover {
            i,
            span {
                color: #fff;
            }
            background-color:transparent ;
        }
    }
    .el-submenu .el-menu-item {
        height: 30px;
        line-height: 30px;
        span,i{
            color:rgba(255, 255, 255, 0.7);
        }
        &.is-active {
            background-color: rgba(0, 0, 0, .8);
            span,
            i {
                color: #fff
            }
            &:hover {
                background-color: rgba(0, 0, 0, .8);
            }
        }
        &:hover {
            background-color: transparent;
            span,
            i {
                color: #fff;
            }
        }
    }
}
 
//菜单栏缩回之后,右侧悬浮菜单框的样式
.el-menu--popup-right-start{
  margin: 5px 0px;
  .el-menu-item{
    span,i {
      color:rgba(255, 255, 255, 0.7);
    }
    &.is-active{
      background-color: rgba(0, 0, 0, .8);
      span,i {
        color:#fff ;
      }
      &::before {
        content: " ";
        top: 0;
        left: 0;
        bottom: 0;
        width: 4px;
        background: $mainBg;
        position: absolute
      }
    }
    &:hover {
      background-color: transparent;
      span,i {
        color: #fff;
      }
    }
  }
}