html {
    height: 100%;
    border: none;
    margin: 0;
    padding: 0;
}
body {
    background: #222;
    color: #f2f2f2;
    height: 100%;
    margin: 0;
}

.loading-mask {
    display: table;
    position: fixed;
    opacity: 1;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 99;
    background: rgba(0, 0, 0, .8);
    text-align: center;
    transition: all .2s;
    span {
        display: table-cell;
        vertical-align: middle;
        color: #888;
        font-size: 16px;
        animation-name: breath;
        animation-duration: 1.5s;
        animation-iteration-count: infinite;
        animation-direction: alternate;
    }
}

@keyframes breath {
    from {
        color: #eee;
    }
    to {
        color: #444;
    }
}

.title {
    position: fixed;
    top: 0;
    margin: 0;
    z-index: 100;
    padding-top: 20px;
    width: 100%;
    text-align: center;
    color: #ddd;
    text-transform: Capitalize;

    span {
        position: relative;
    }

    .github {
        position: absolute;
        top: 10px;
        right: -45px;
        width: 24px;
        height: 24px;
        opacity: .8;
        cursor: pointer;
        transition: opacity .2s;
        &:hover {
            opacity: 1;
        }
    }
}

.main {
    height: 100%;
}

.tooltip {
    position: fixed;
    top: 140px;
    left: 120px;

    div {
        height: 30px;
        width: 40px;
        position: relative;
        cursor: pointer;
        &::after {
            width: 100px;
            font-size: 14px;
            position: absolute;
            top: 16px;
            left: 50px;
            color: #444;
        }
        &.active::after {
            color: #888;
        }
        &:hover::after {
            color: #eee;
        }
    }

    .contain::after {
        content: '「创建」关系 ';
        font-size: 14px;
    }

    .register::after {
        content: '「注册」关系 ';
        font-size: 14px;
    }

    .call::after {
        content: '「调用」关系 ';
        font-size: 14px;
    }
}

.category {
    position: fixed;
    top: 80px;
    left: 120px;

    div {
        width: 13px;
        height: 13px;
        border-radius: 50%;
        position: relative;

        &::after {
            font-size: 14px;
            position: absolute;
            top: -4px;
            left: 20px;
            width: 200px;
            color: #888;
        }
    }

    .hook {
        margin-top: 15px;
    }

    .module::after {
        content: '模块/内部插件';
    }
    .hook::after {
        content: 'webpack钩子';
    }
}

.operation {
    position: fixed;
    bottom: 20px;
    right: 27px;

    &-btn {
        border: none;
        float: left;
        padding: 0 10px;
        margin-left: 10px;
        line-height: 22px;
        background: #D47272;
        color: #eee;
        font-size: 11px;
        transform: scale(.9);
        cursor: pointer;

        &:hover {
            background: rgb(228, 133, 133);
        }

        &:focus {
            outline: none;
        }
    }
}

.info {
    position: fixed;
    border-radius: 5px;
    border: 1px dashed rgba(255, 255, 255, .2);
    bottom: 20px;
    left: 27px;
    margin: 0;
    padding: 10px;
    height: 250px;
    width: 250px;
    overflow-y: auto;

    &-name {
        word-wrap: break-word;
    }

    &-title {
        border-left: 3px solid #444;
        margin: 20px 0 8px 0;
        padding: 0 5px;
        line-height: 1;
        font-size: 14px;
        color: #555;
        &:first-child {
            margin-top: 0;
        }
    }

    &-text {
        font-size: 12px;
        color: #888;
    }
}