body { display: flex; flex-direction: column; height: 100vh; } .header { -webkit-app-region: drag; } .header { height: 55px; background: #e7e6e6; border-top-left-radius: 10px; border-top-right-radius: 10px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; } .header .room_name { font-size: 18px; font-weight: bold; } .header .user { display: flex; align-items: center; font-size: 18px; } .header .user .name{ font-size: 16px; } .header .user img{ margin-right: 10px; width: 30px; height: 30px; border-radius: 100%; margin-left: 10px; } .content { height: calc(100% - 155px); display: flex; } .content .c_left{ width: 80%; padding: 10px 15px 0 10px; overflow-y: scroll; background: rgb(245 246 247); height: 100%; } .c_left li { margin-bottom: 25px; } .c_left li .time { text-align: center; color: #c4c1c1; font-size: 12px; line-height: 1; } .c_left li .item{ display: flex; } .c_left li .item > img{ width: 35px; height: 35px; border-radius: 100%; margin-right: 9px; } .m_r {} .m_r .text{ order: -1; } .m_r .name{ text-align: right; } .m_r .item { justify-content: flex-end; } .m_r .item > img{ margin-right: 0px !important; margin-left: 9px; } .m_r .message{ background: rgb(30 100 255) !important; color: #fff !important; } .c_left li .text{ max-width: calc(100% - 87px); } .c_left li .text .name{ color: #898888; margin-bottom: 8px; } .c_left li .text .name span{ padding: 2px 5px; color: #fff; border-radius: 4px; font-size: 11px; line-height: 1; } .tips_qz { background: #fdd509; } .tips_gly { background: #25ed7a; } .c_left li .text .message{ padding: 7px 12px; background: #fff; color: #000; border-radius: 9px; word-break: break-all; word-wrap: break-word; } .c_left li .text .message .emote_img { width: 25px !important; height: 25px !important; } .c_left li .text .message .gif_img { height: 50%; } .system_message { text-align: center; } .system_message span { padding: 4px 8px; background: #d8d8d8; border-radius: 5px; color: #a49e9e; } .content .c_right{ width: 20%; background: #f6f7f9; display: flex; flex-direction: column; padding: 10px; padding-bottom: 0; border-left: 1px solid #f3eded; } .c_right .title { margin-bottom: 10px; font-size: 14px; font-weight: 500; } .c_right ul { flex: 1; overflow-y: scroll; } .c_right ul li { height: 40px; display: flex; justify-content: space-between; align-items: center; } .c_right ul li .qz{ color: #f7ca2f; } .c_right ul li .gly{ color: #6eb5f4; } .c_right ul li .use img{ width: 25px; height: 25px; border-radius: 100%; } .c_right ul li .use span{} .footer { height: 100px; display: flex; flex-direction: column; } .gif img { width: 80px; height: 80px; cursor: pointer; } .footer .f_action{ height: 30px; display: flex; align-items: center; border-top: 1px solid #f3eded; padding: 0 15px; position: relative; } .f_action i { margin-right: 14px; font-size: 18px; cursor: pointer; } .f_action .menu { position: absolute; width: 460px; height: 300px; background: #fff; border-radius: 4px; bottom: 33px; box-shadow: 1px 1px 9px #e2e2e2; left: 6px; border: 1px solid #e2e2e2; box-sizing: border-box; } .f_action .menu .menu_title{ font-size: 14px; height: 35px; display: flex; align-items: center; border-bottom: 1px solid #f1f1f1; padding: 0 10px; } .f_action .menu .menu_list{ padding: 10px 10px; height: calc(100% - 75px); box-sizing: border-box; } .f_action .menu .menu_list .menu_item{ display: none; height: 100%; overflow-y: scroll; } .f_action .menu .menu_list .active{ display: block !important; } .menu_list .emote { font-size: 0; } .menu_list .emote img { width: 25px; height: 25px; cursor: pointer; } .f_action .menu .menu_footer{ display: flex; height: 40px; align-items: center; background: #f1f1f1; } .f_action .menu .menu_footer li{ width: 16%; height: 100%; display: flex; align-items: center; justify-content: center; cursor: pointer; } .f_action .menu .menu_footer .active { background: #fff; } .footer .input{ padding: 0 9px; line-height: 1.2; flex: 1; overflow-y: scroll; outline: none; font-size: 16px; } .footer .input img { width: 25px; height: 25px; } .m_r .noback { background: transparent !important; }