
.menuPanel {
    margin: 0;
    background-color: lightgrey;
    & li {
        position: relative;
        display: inline-block;
        background-color: white;
        color: black;
    }
    &>li:hover>ul.menu{
        visibility: visible;
    }
    &>li>ul.menu {
        top: -2px;
    }
}


.menu {
    position: absolute;
    width: 200px;
    padding: 2px;
    margin: 0;
    border: 1px solid #bbb;
    background: #eee;
    z-index: 100;
    box-shadow: 5px 5px 0 black;
    -webkit-transform: translate(0, 15px) scale(.95);
    transform: translate(0, 15px) scale(.95);
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    visibility: hidden;
}

.menu.rootMenu {
    visibility: visible;
}

.menu li {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.menu li {
    background: none;
    line-height: normal;
    overflow: visible;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: block;
    color: #444;
    text-align: left;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 6px 8px;
}

.menu li:hover {
    color: #fff;
    outline: none;
    background-color: blue;
}

.menu .li.disabled {
    opacity: .5;
    color: grey;
    pointer-events: none;
    cursor:default;
}

.menu .li.disabled:hover {
    opacity: .5;
    color: #b6b6b6;
    pointer-events: none;
    background: linear-gradient(to bottom, #aeb1b5, #dedfe1);
}

.menu li.disabled .menu-btn { cursor: default; }

.submenu:after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #808080;
}

.menu .menu {
    top: 4px;
    left: 99%;
}

.menu li:hover > .menu {
    visibility: visible;
    -webkit-transform: translate(0, 0) scale(1);
    transform: translate(0, 0) scale(1);
}