| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337 |
- /** 聊天窗口样式
- * 54px为回复框高度,js同
- */
- /*聊天记录*/
- page {
- background: rgb(245, 245, 245);
- }
- .message-list {
- /*margin-bottom: 54px;*/
- background: rgb(235, 235, 235);
- }
- /*单元行*/
- .row {
- display: flex;
- flex-direction: column;
- /* margin: 0 30rpx; */
- }
- /*日期*/
- .datetime {
- font-size: 10px;
- padding: 10px 0;
- color: #999;
- text-align: center;
- }
- .send {
- font-size: 15px;
- /* padding-right: 10px; */
- color: #999;
- text-align: center;
- height: 70%;
- border: 1px solid #e4dfdf;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 120rpx;
- border-radius: 10rpx;
- /* margin-right: 15rpx; */
- }
- .sendActive {
- font-size: 15px;
- /* padding-right: 10px; */
- color: #fff;
- text-align: center;
- height: 70%;
- border: 1px solid #05c15f;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 120rpx;
- border-radius: 10rpx;
- background-color: #05c15f;
- /* margin-right: 15rpx; */
- }
- .content {
- font-size: 28rpx;
- }
- .Audio {
- font-size: 15px;
- color: #999;
- text-align: center;
- padding-left: 10rpx;
- }
- .Audio image {
- width: 50rpx;
- height: 50rpx;
- }
- .add {
- height: 70%;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 90rpx;
- }
- .more {
- width: 50rpx;
- height: 50rpx;
- }
- /*主体*/
- .body {
- display: flex;
- flex-direction: row;
- align-items: flex-start;
- justify-content: flex-start;
- width: 100%;
- margin-top: 10px;
- }
- /*头像容器*/
- .body.avatar-container {
- width: 20%;
- }
- /*头像*/
- .body .avatar {
- width: 80rpx;
- height: 80rpx;
- border-radius: 50%;
- margin: 0 20rpx;
- }
- /*文本消息*/
- .body .content,.body .contentl {
- font-size: 16px;
- background: #fff;
- border-radius: 5px;
- padding: 10px;
- line-height: 22px;
- margin-bottom: 10px;
- word-wrap: break-word;
- max-width: 480rpx;
- position: relative;
- }
- .body .content:before {
- content: "";
- display: block;
- position: absolute;
- width:0;
- height: 0;
- border: 10px solid transparent; /*边框宽度为10px 颜色透明(也就是隐藏) */
- border-left-color: #7ECB4B; /*只显示右边的边框 显示效果就是向左的箭头*/
- right: -20px; /*在DIV左边显示右边的边框 要向左移动2倍边框宽度 即20px*/
- top: 9px; /*高度为25+5+5=35 排除箭头高度20 剩余15 显示在距顶部9px的位置 */
- }
- .body .contentl:before {
- content: "";
- display: block;
- position: absolute;
- width:0;
- height: 0;
- border: 10px solid transparent; /*边框宽度为10px 颜色透明(也就是隐藏) */
- border-right-color: #fff; /*只显示右边的边框 显示效果就是向左的箭头*/
- left: -20px; /*在DIV左边显示右边的边框 要向左移动2倍边框宽度 即20px*/
- top: 9px; /*高度为25+5+5=35 排除箭头高度20 剩余15 显示在距顶部9px的位置 */
- }
- /* 三角箭头 */
- .body .triangle {
- background: white;
- width: 20rpx;
- height: 20rpx;
- margin-top: 26rpx;
- transform: rotate(45deg);
- position: absolute;
- }
- /*图片消息*/
- .picture {
- width: 160px;
- }
- /*回复框*/
- .reply {
- display: flex;
- flex-direction: row;
- justify-content: space-around;
- align-items: center;
- position: fixed;
- /* bottom: 0; */
- width: 710rpx;
- height: 54px;
- border-top: 1px solid rgb(215, 215, 215);
- background: rgb(245, 245, 245);
- padding: 0px 20rpx;
- }
- .reply .voice-image {
- width: 25px;
- height: 25px;
- margin-left: 3%;
- }
- /*文本输入或语音录入*/
- .reply .opration-area {
- flex: 1;
- padding: 8px 8px 8px 0;
- }
- /*回复文本框*/
- .reply input {
- background: rgb(252, 252, 252);
- height: 36px;
- border: 1px solid rgb(221, 221, 221);
- border-radius: 6px;
- padding-left: 3px;
- }
- /*选取图片*/
- .reply .choose-image {
- width: 25px;
- height: 25px;
- margin-right: 3%;
- }
- /*按住说话button*/
- .voice-button {
- height: 36px;
- color: #818181;
- font-size: 14px;
- line-height: 36px;
- text-align: center;
- border: 1px solid #e4dfdf;
- border-radius: 10rpx;
- }
- /*悬浮提示框*/
- .hud-container {
- position: fixed;
- width: 150px;
- height: 150px;
- left: 50%;
- top: 50%;
- margin-left: -75px;
- margin-top: -75px;
- }
- /*背景层*/
- .hud-background {
- position: absolute;
- width: 100%;
- height: 100%;
- background: #999;
- opacity: 0.8;
- z-index: 11;
- border-radius: 10px;
- }
- /*悬浮框主体*/
- .hud-body {
- position: relative;
- width: 100%;
- height: 100%;
- z-index: 19;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- align-items: center;
- }
- /*图标*/
- .hud-body image {
- margin-top: 20px;
- width: 80px;
- height: 80px;
- }
- /*文字*/
- .hud-body .tip {
- color: #fff;
- text-align: center;
- width: 90%;
- line-height: 34px;
- margin: 0 auto;
- margin-bottom: 10px;
- width: 90%;
- }
- .hud-body .warning {
- background: #c33;
- border-radius: 5px;
- }
- .image-message {
- max-width: 100%;
- border-radius: 4rpx;
- }
- .box {
- display: flex;
- height: 40rpx;
- line-height: 40rpx;
- }
- .hoverBtn {
- background-color: rgb(226, 220, 220);
- color: #fff;
- border-radius: 10rpx;
- }
- .more_box {
- height: 138rpx;
- width: 100%;
- padding: 15rpx;
- display: flex;
- background: rgb(245, 245, 245);
- position: fixed;
- bottom: 0;
- }
- .more_item {
- text-align: center;
- height: 150rpx;
- font-size: 24rpx;
- margin-left: 26rpx
- }
- .img_box {
- width: 80rpx;
- height: 84rpx;
- background-color: #fff;
- display: flex;
- justify-content: center;
- align-items: center;
- border-radius: 10rpx;
- }
- .img_box image {
- width: 40rpx;
- height: 40rpx;
- }
- .top {
- background: #F9F8D9; padding: 15rpx 20rpx;text-align: center; color: #F97326; font-size: 24rpx;justify-content: center;align-items: center;position: fixed;
- width: 100%;z-index: 2;
- }
- /* .num {
- background: rgba(0, 0, 0, .3);
- color: white;
- padding: 10rpx 30rpx;
- line-height: 48rpx;
- } */
- .sum {
- font-size: 30rpx;
- font-weight: bold;
- color: red;
- }
|