Blame view

public/scss/service/chat/_layout.css 3.77 KB
ccbikai(👎🏻🍜) authored
1 2
html,
body {
陈轩 authored
3 4 5 6
    height: 100%;
    width: 100%;
}
陈轩 authored
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
.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;
    }
陈轩 authored
34
    .chat-header {
35 36
        color: #fff;
陈轩 authored
37 38 39 40 41 42 43
        .title {
            width: 400px;
            margin: 0 auto;
            font-size: 34px;
            text-align: center;
        }
44 45 46 47 48 49 50 51 52 53 54 55 56 57
        .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;
        }
陈轩 authored
58
        .header-right {
59 60 61 62 63 64
            position: absolute;
            top: 0;
            right: 30px;
            font-size: 28px;
            vertical-align: middle;
        }
陈轩 authored
65 66
    }
陈轩 authored
67 68 69 70 71 72 73 74 75
    #chat-history-loader {
        display: none;
        text-align: center;
        margin-bottom: 10px;
        color: grey;
        text-decoration: underline;

        i {
            display: none;
ccbikai(👎🏻🍜) authored
76
            background: resolve("service/chat/loading.gif") no-repeat;
陈轩 authored
77 78 79 80 81 82 83 84 85 86 87
            background-size: contain;
            width: 20px;
            height: 20px;
            vertical-align: middle;
        }
    }

    .chat-history-loading i {
        display: inline-block !important;
    }
陈轩 authored
88 89
    #chat-window {
        position: absolute;
90
        top: 105px;
陈轩 authored
91 92 93
        bottom: 100px;
        width: 100%;
        background-color: #f0f0f0;
zzzzzzz authored
94 95
        padding: 40px 30px 0;
        overflow: scroll;
zzzzzzz authored
96
        -webkit-overflow-scrolling: touch;
97 98 99 100

        &::-webkit-scrollbar {
            display: none;
        }
陈轩 authored
101 102 103 104 105 106 107 108
    }

    #chat-footer {
        position: absolute;
        bottom: 0;
        width: 100%;
        background-color: #f7f7f7;
    }
ccbikai(👎🏻🍜) authored
109
陈轩 authored
110 111 112 113 114 115 116 117
    .chat-page {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        background-color: #f0f0f0;
ccbikai(👎🏻🍜) authored
118
        transition: 0.3s;
陈轩 authored
119 120 121 122 123 124 125 126 127 128 129 130

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

        .main::-webkit-scrollbar {
            width: 0;
        }
陈轩 authored
131 132 133 134 135
    }

    .chat-page-hide {
        transform: translate3d(100%, 0, 0);
    }
陈轩 authored
136
陈轩 authored
137 138
    .chat-rating-trigger {
        display: none;
139 140 141 142
        min-width: 80px;
        text-align: right;
    }
陈轩 authored
143 144 145
    /* 客服在线 */
    .online {
        .chat-status {
陈轩 authored
146
            background-color: #4cd964 !important;
陈轩 authored
147
        }
148 149 150 151

        .menu-trigger {
            display: block !important;
        }
陈轩 authored
152 153 154 155

        .chat-rating-trigger {
            display: inline-block;
        }
陈轩 authored
156
    }
陈轩 authored
157 158 159 160 161 162 163 164 165

    .menu-open {
        .menu {
            display: block;
        }

        #chat-window {
            bottom: 360px;
        }
陈轩 authored
166 167 168 169

        #chat-send-box {
            padding-right: 0;
        }
陈轩 authored
170
    }
陈轩 authored
171
}
陈轩 authored
172 173

body.app-ios {
陈轩 authored
174 175 176 177
    .nav-back {
        text-align: left;
    }
陈轩 authored
178 179 180
    #chat-window,
    .connection-failed,
    .chat-page {
181
        margin-top: 20PX;
陈轩 authored
182
    }
陈轩 authored
183 184 185 186

    .ios-gap {
        height: 20PX;
    }
陈轩 authored
187 188
}
ccbikai(👎🏻🍜) authored
189 190
body.boys,
.boys .chat-header {
陈轩 authored
191 192 193 194
    background-color: #414141 !important;
    background-image: none;
}
ccbikai(👎🏻🍜) authored
195 196
body.girls,
.girls .chat-header {
陈轩 authored
197 198 199 200
    background-color: #ff88ae !important;
    background-image: none;
}
ccbikai(👎🏻🍜) authored
201 202
body.kids,
.kids .chat-header {
陈轩 authored
203 204 205 206
    background-color: #7ad9f9 !important;
    background-image: none;
}
ccbikai(👎🏻🍜) authored
207 208
body.lifestyle,
.lifestyle .chat-header {
陈轩 authored
209
    background-color: #4f4138 !important;
陈轩 authored
210
    background-image: none;
陈轩 authored
211
}