﻿/* 
 * @Descripttion: 二级侧边菜单样式
 * @Author: qianyuting
 * @Date: 2020-12-22
 * @LastEditors: qianyuting
 * @LastEditTime: 2020-12-22 
 */

 /* 左菜单 */
.tree-items>li {
    height: auto;
    border-left: 0;
    border-top: 1px solid #eee;
}

.tree-node {
    position: relative;
    height: 60px;
    border-left: 5px solid transparent;
}

.tree-node>a {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    padding-right: 15px;
    font-size: 18px;
    max-height: 48px;
    line-height: 24px;
    color: #333;
    padding-left: 42px;
    background-repeat: no-repeat;
    background-position: 15px top;
    overflow: hidden;
    z-index: 2;
}

.tree-node>a:before {
    position: absolute;
    content: "";
    width: 32px;
    height: 24px;
    left: 10px;
    top: 0;
    background-repeat: no-repeat;
    background-position: left center;
}

.tree-trigger {
    position: absolute;
    top: 50%;
    right: 5px;
    width: 15px;
    height: 8px;
    margin-top: -4px;
    background: url('../images/sub_tree_up.png') center no-repeat;
    cursor: pointer;
    z-index: 3;
}

.tree-items>li.fold .sub-tree {
    display: none;
}

.tree-items>li.fold .tree-node .tree-trigger {
    background-image: url('../images/sub_tree_down.png');
}

.sub-tree-item a {
    display: block;
    height: 42px;
    line-height: 42px;
    padding-left: 60px;
    color: #666;
    font-size: 16px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tree-items>li.current .tree-node,
.tree-items>li .tree-node:hover  {
    border-left-color: #0090e9;
    background-color: #ebf3fd;
}

.tree-items>li>.tree-node>a:hover, 
.tree-items>li.current>.tree-node>a {
    font-weight: bold;
    color: #0090e9;
}

.sub-tree-item a:hover,
.sub-tree-item.current a {
    font-weight: bold;
    color: #0090e9;
}

.tree-items>li.current,
.tree-items>li:hover{
    border-left-color: transparent;
    background-color: transparent;
}