@charset "UTF-8";

#{$prefix}menu {
    margin: 0;
    padding: 0;
    list-style: none;

    > li {
        margin: 0;
        padding: 5px 1px;
        display: inline-block;
        position: relative;

        &.divider {
            display: inline-block;
            text-indent: -9999px;
            margin: 0 5px;
            height: 65%;
            border-right: 1px solid $borderColor;
        }

        > a {
            outline: 0;
            color: $color;
            display: inline-block;
            min-width: 24px;
            font-size: 16px;
            text-decoration: none;
            text-align: center;
            @include border-radius(2px);
            border: 1px solid #fff;
            @include transition(all 300ms ease-out);

            & .tooltiptext {
                visibility: hidden;
                white-space: nowrap;
                width: auto;
                background-color: #555;
                color: #fff;
                text-align: center;
                border-radius: 6px;
                padding: 4px 6px;
                position: absolute;
                z-index: 1;
                left: 130%;
                opacity: 0;
                transition: opacity 0.3s ease-in-out;
                font-size: 14px;
                top: 6px;
            }

            & .tooltiptext::after {
                content: "";
                position: absolute;
                bottom: 50%;
                left: 0;
                margin-left: -10px;
                border-width: 5px;
                border-style: solid;
                border-color: transparent #555 transparent transparent;
                transform: translateY(50%);
            }

            > .fa:hover ~ .tooltiptext {
                visibility: visible;
                opacity: 0.95;
            }     

            &:hover, &.active {
                border: 1px solid $borderColor;
                background: #eee;
            }

            > .fa {
                text-align: center;
                display: block;
                padding: 5px;
            }

            > #{$prefix}bold {
                padding: 5px 2px;
                display: inline-block;
                font-weight: bold;
            }
        }

        &:hover #{$prefix}dropdown-menu {
            display: block;
        }
    }

    > li + li > a {
        margin-left: 3px;
    }
}

#{$prefix}dropdown-menu {
    display: none;
    background: #fff;
    border: 1px solid $borderColor;
    width: 148px;
    list-style: none;
    position: absolute;
    top: 33px;
    left: 0;
    z-index: 100;
    @include box-shadow(1px 2px 6px rgba(0, 0, 0, 0.15));

    &:before, &:after {
        width: 0;
        height: 0;
        display: block;
        content: "";
        position: absolute;
        top: -11px;
        left: 8px;
        border: 5px solid transparent;
    }

    &:before {
        border-bottom-color: #ccc;
    }

    &:after {
        border-bottom-color: #ffffff;
        top: -10px;
    }

    > li {
        > a {
            color: $color;
            display: block;
            text-decoration: none;
            padding: 8px 10px;

            &:hover {
                background: #f6f6f6;
                @include transition(all 300ms ease-out);
            }
        }
    }

    > li + li {
        border-top: 1px solid $borderColor;
    }
}
