context-menu.less 1.1 KB
Newer Older
ibizdev's avatar
ibizdev committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
.context-menu-container {
    // width: 100vw;
    // height: 100vh;
    // z-index: -10000;
    // position: absolute;
    // top: 0;
    // left: 0;
    line-height: 1;

    .context-menu-content {
        z-index: 10001;
        position: absolute;
        background: #FFF;
        // border: 1px solid #e3e3e3;
    }

    .context-menus {

        .context-menus-item {
            list-style: none;
            line-height: 36px;
            padding: 0 13px;
            margin: 0;
            font-size: 14px;
            color: #606266;
            cursor: pointer;
            outline: none;
            display: flex;
    
            .icon {
                display: flex;
                justify-content: center;
                align-items: center;
                font-size: 16px;
                width: 20px;
                margin-right: 8px;
            }
        }
    
        .context-menus-item:hover {
            background-color: #ecf5ff;
            color: #66b1ff;
        }
    }
}
.context-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}