_layout.css 2.86 KB
.service-chat {
    /* -------------------------------- *\
        atom, util
    \* -------------------------------- */
    .table {
        display: table;
        width: 100%;
    }

    .table-cell {
        display: table-cell;
        vertical-align: middle;

        &.cell-max {
            width: 6666px;
        }
    }

    .main-wrap {
        position: static;
    }

    #chat-window,
    #chat-footer {
        max-width: 750px;
    }

    .chat-header {
        color: #fff;

        .title {
            width: 400px;
            margin: 0 auto;
            font-size: 34px;
            text-align: center;
        }

        .chat-status {
            display: inline-block;
            height: 12px;
            width: 12px;
            margin-right: 5px;
            background: #fff;
            border-radius: 50%;
            vertical-align: middle;
        }


        .service-name {
            vertical-align: middle;
        }

        .header-right {
            position: absolute;
            top: 0;
            right: 30px;
            font-size: 28px;
            vertical-align: middle;
        }
    }

    #chat-history-loader {
        display: none;
        text-align: center;
        margin-bottom: 10px;
        color: grey;
        text-decoration: underline;

        i {
            display: none;
            background: resolve('img/service/chat/loading.gif') no-repeat;
            background-size: contain;
            width: 20px;
            height: 20px;
            vertical-align: middle;
        }
    }

    .chat-history-loading i {
        display: inline-block !important;
    }

    #chat-window {
        position: absolute;
        top: 105px;
        bottom: 100px;
        width: 100%;
        background-color: #f0f0f0;
        padding: 40px 30px 0;
        overflow: scroll;
        -webkit-overflow-scrolling: touch;

        &::-webkit-scrollbar {
            display: none;
        }
    }

    #chat-footer {
        position: absolute;
        bottom: 0;
        width: 100%;
        background-color: #f7f7f7;
    }
    
    .chat-page {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        background-color: #f0f0f0;
        transition: .3s;

        .main {
            position: absolute;
            width: 100%;
            top: 105px;
            bottom: 0;
            overflow: auto;
        }

        .main::-webkit-scrollbar {
            width: 0;
        }
    }

    .chat-page-hide {
        transform: translate3d(100%, 0, 0);
    }

    .chat-rating-trigger {
        display: none;
    }

    /* 客服在线 */
    .online {
        .chat-status {
            background-color: #4cd964 !important;
        }

        .menu-trigger {
            display: block !important;
        }

        .chat-rating-trigger {
            display: inline-block;
        }
    }
}