﻿@charset "utf-8";

.dropmenu {
    background-color: #eee;
    text-align: left;
}

.dropmenu>* {
    display: block;
}

.dropmenu ico {
    font-family: "webdesk_icon" !important;
}

.dropmenu .loading ico {
    display: inline-block;
    -webkit-transition-property: -webkit-transform;
    -webkit-transition-duration: 1s;
    -moz-transition-property: -moz-transform;
    -moz-transition-duration: 1s;
    -webkit-animation: rotate 1s linear infinite;
    -moz-animation: rotate 1s linear infinite;
    -o-animation: rotate 1s linear infinite;
    animation: rotate 1s linear infinite;
}

@-webkit-keyframes rotate {
    from {
        -webkit-transform: rotate(0deg)
    }

    to {
        -webkit-transform: rotate(360deg)
    }
}

@-moz-keyframes rotate {
    from {
        -moz-transform: rotate(0deg)
    }

    to {
        -moz-transform: rotate(359deg)
    }
}

@-o-keyframes rotate {
    from {
        -o-transform: rotate(0deg)
    }

    to {
        -o-transform: rotate(359deg)
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(359deg)
    }
}

.dropmenu drop_roots {
    height: 100%;
    display: flex;
    flex-direction: row;
}

.dropmenu drop-node a {
    text-decoration: none;
}

.dropmenu drop-node a, .dropmenu drop-node span {
    color: #222;
}

.dropmenu drop_roots drop-node {
    display: block;
    height: 100%;
    cursor: pointer;
    transition: all .2s;
    user-select: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    padding: 0px 30px 0px 0px;
    flex: 1;
}

.dropmenu drop_roots drop-node:hover,
.dropmenu drop_roots drop-node.hover {
    background-color: #eee;
    text-shadow: 1px 1px 2px rgb(255, 255, 255);
}

.dropmenu drop_roots drop-node span {
    font-size: 20px;
}

.dropmenu drop_roots drop-node ico {
    height: 100%;
    font-size: 20px;
    margin: 0px 8px 0px 10px;
    --display: none !important;
}

.dropmenu drop_roots drop-node img {
    width: 20px;
    height: 20px;
    display: block;
    float: left;
    border: 1px solid #aaa;
    margin-top: 5px;
    --float: left;
    border-radius: 10px;
}

/*子菜单面板*/
.dropmenu drop-panel {
    position: absolute;
    background-color: #eee;
    min-width: 150px;
    border-radius: 0px 0px 5px 5px;

    --box-shadow: 2px 2px 2px rgba(200, 200, 200, 0.6), -2px -2px 2px rgba(200, 200, 200, 0.6);
}

.dropmenu drop-panel:not(.level1) {
    border-radius: 5px;
}

.dropmenu drop-panel>*:not(hr) {

    cursor: pointer;
    user-select: none;
    display: block;
    font-size: 18px;
    height: 25px;
    line-height: 30px;
    position: relative;
}

.dropmenu drop-panel>hr {
    height: 1px;
    border: 0px;
    margin: 0px;
    margin-left: 30px;
    background: #ddd;
}

.dropmenu drop-panel ico {
    display: block;
    height: 100%;
    font-size: 18px;
    width: 0px;
    float: left;
    color: #666;
    text-align: center;
    margin: 0px 6px 0px 12px;
}

.dropmenu drop-panel img {
    width: 20px;
    height: 20px;
    display: block;
    margin-right: 5px;
    margin-left: 5px;
    margin-top: 5px;
    border: 1px solid #aaa;
    border-radius: 10px;
}

.dropmenu drop-panel span {
    padding-right: 20px;
    width: calc(100% - 31px - 30px);
    display: block;
    position: absolute;
    z-index: 2;
    top: 0px;
    left: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
}

.dropmenu drop-panel child {
    display: block;
    height: 100%;
    line-height: 100%;
    width: 15px;
    position: absolute;
    top: 7px;
    right: 0px;
}

.dropmenu drop-panel child:after {
    content: '>';
    text-align: center;
    color: #333;
    font: 800 9px/14px consolas;
}

.dropmenu drop-panel>*:not(hr):hover child:after,
.dropmenu drop-panel>*:not(hr).hover child:after {
    color: #333;
    text-shadow: 1px 1px 2px #eee;
}

.dropmenu drop-panel>*:not(hr):hover,
.dropmenu drop-panel>*:not(hr).hover {
    --box-shadow: rgb(255, 255, 255) 0px 0px 3px inset;
    text-shadow: 1px 1px 2px #666;
}

.dropmenu drop-panel>*:not(hr):hover:after,
.dropmenu drop-panel>*:not(hr).hover:after {
    content: '';
    width: calc(100% - 5px);
    height: calc(100% - 5px);
    position: absolute;
    z-index: 1;
    left: 2px;
    top: 2px;
    border-radius: 3px;
}
.dropmenu drop-panel drop-node.hover{
    background-color: rgba(200, 200, 200, 0.6);
}