| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- $bg-color:#f8f8f9;
- $color:#495060;
- $side-width:180px;
- $active-bg-color:#59c993;
- $active-border-color:#f2f2f2;
- $active-color:#0bb27a;
- .left-menu-Vg32{
- position: fixed;
- top: 60px;
- left: 0;
- height: calc(100% - 104px);
- width: $side-width;
- z-index: 199;
- background: $bg-color;
- padding-top: 16px;
- overflow-x: hidden;
- overflow-y: auto;
- transition: all 0.5s;
- .menu-list{
- .item{
- height: 40px;
- margin-bottom: 8px;
- color: #495060;
- transition: all 0.2s;
- display: flex;
- align-items: center;
- user-select: none;
- white-space: nowrap;
- cursor: pointer;
- position: relative;
- border-left: 3px solid transparent;
- &:hover{
- border-left-color:$active-bg-color;
- background: $active-border-color;
- }
- .icon-svg{
- font-size: 20px;
- position: absolute;
- right: 13px;
- top: 0;
- bottom: 0;
- margin: auto;
- transition: all 0.2s;
- color: #bbbec4;
- line-height: 40px;
- width: 1em;
- height: 1em;
- vertical-align: -0.15em;
- pointer-events: none;
- }
- }
- &>.item.active{
- +.item-list{
- display: block;
- }
- .icon-svg{
- transform: rotate(180deg);
- }
- }
- .item-list{
- display: none;
- .item{
- .name{
- font-size: 13px;
- }
- &.active{
- border-left-color:$active-bg-color;
- background: $active-border-color;
- color: $active-color;
- }
- }
- }
- }
- .icon{
- margin-left: 13px;
- width: 20px;
- height: 20px;
- }
- .name{
- position: relative;
- white-space: nowrap;
- margin-left: 16px;
- font-size: 14px;
- }
- }
|