You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
327 lines
6.3 KiB
CSS
327 lines
6.3 KiB
CSS
html,body{
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
font-family: Arial,Helvetica,sans-serif;
|
|
position: relative;
|
|
}
|
|
.ui-chat-box{
|
|
display: block;
|
|
position: relative;
|
|
height: 100%;
|
|
}
|
|
.ui-msg-content{
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
background:url("../img/bg2.jpg")no-repeat center;
|
|
background-size: 100% 100%;
|
|
position: absolute;
|
|
top: 40px;
|
|
bottom: 40px;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
header{
|
|
height: 40px;
|
|
line-height: 40px;
|
|
text-align: center;
|
|
background-color: #52b4e0;
|
|
color: #fff;
|
|
position: relative;
|
|
}
|
|
.menu-btn{
|
|
display: block;
|
|
width: 40px;
|
|
height: 40px;
|
|
top: 0;
|
|
right: 0;
|
|
position: absolute;
|
|
}
|
|
.menu-back{
|
|
display: block;
|
|
width: 40px;
|
|
height: 40px;
|
|
top: 0;
|
|
left: 0;
|
|
position: absolute;
|
|
}
|
|
.menu-btn span,.menu-back span{
|
|
font-size: 20px;
|
|
}
|
|
footer{
|
|
position: absolute;
|
|
height: 40px;
|
|
line-height: 40px;
|
|
text-align: center;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
.ui-input-box{
|
|
height: 40px;
|
|
margin-right: 60px;
|
|
margin-left: 40px;
|
|
}
|
|
.ui-msg-input{
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
border: none;
|
|
outline: none;
|
|
padding: 10px;
|
|
}
|
|
.ui-sendBtn{
|
|
height: 100%;
|
|
line-height: 100%;
|
|
text-align: center;
|
|
width: 60px;
|
|
float: right;
|
|
border: none;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
padding: 0;
|
|
margin: 0;
|
|
outline: none;
|
|
background-color: #52b4e0;
|
|
color: #fff;
|
|
}
|
|
.ui-face-btn{
|
|
position: static;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-right: 1px solid #eee;
|
|
float: left;
|
|
box-sizing: border-box;
|
|
}
|
|
.ui-face-btn span{
|
|
font-size: 20px;
|
|
color: #666;
|
|
}
|
|
/*****************************************************/
|
|
.ui-msg-list{
|
|
list-style: none;
|
|
padding: 10px;
|
|
margin: 0;
|
|
}
|
|
.ui-msg-list>li{
|
|
font-size: 14px;
|
|
color: #5f5f5f;
|
|
margin-bottom: 10px;
|
|
}
|
|
/***********************************************/
|
|
.sys-msg{
|
|
text-align: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
.sys-msg .msg-box{
|
|
display: inline-block;
|
|
font-size: 12px;
|
|
color: #eee;
|
|
text-align: center;
|
|
padding: 5px 12px;
|
|
border-radius: 13px;
|
|
background-color: rgba(178, 178, 178, 0.46);
|
|
}
|
|
/*************************************************/
|
|
.user-msg{
|
|
padding-right: 40px;
|
|
}
|
|
.msg-box-img{
|
|
display: block;
|
|
float: left;
|
|
width: 40px;
|
|
height: 40px;
|
|
position: relative;
|
|
}
|
|
.user-msg .msg-tag-txt{
|
|
height: 30px;
|
|
line-height: 30px;
|
|
font-size: 12px;
|
|
color: #8c8c8c;
|
|
position: absolute;
|
|
left: 40px;
|
|
top:0;
|
|
display: none;
|
|
}
|
|
.user-img{
|
|
display: block;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
}
|
|
.user-msg .msg-txt-box{
|
|
margin-left: 50px;
|
|
padding-left: 5px;
|
|
}
|
|
.user-msg .msg-txt-content{
|
|
display: block;
|
|
float: left;
|
|
position: relative;
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
background-color: #fff;
|
|
}
|
|
.msg-txt-content img{
|
|
max-width: 400px;
|
|
max-height: 100px;
|
|
}
|
|
.user-msg .msg-arrow{
|
|
display: block;
|
|
width: 0px;
|
|
height: 0px;
|
|
border-top: 10px solid transparent;
|
|
border-right: 15px solid #fff;
|
|
border-bottom: 10px solid transparent;
|
|
position: absolute;
|
|
top: 10px;
|
|
left: -10px;
|
|
}
|
|
.msg-txt-box::after,.msg-box:after{
|
|
display: block;
|
|
content: "";
|
|
clear: both;
|
|
}
|
|
/******************************************/
|
|
.me-msg{
|
|
padding-left: 40px;
|
|
}
|
|
.me-msg .msg-box-img{
|
|
float: right;
|
|
}
|
|
.me-msg .msg-tag-txt{
|
|
height: 30px;
|
|
line-height: 30px;
|
|
font-size: 15px;
|
|
color: #8c8c8c;
|
|
position: absolute;
|
|
right: 40px;
|
|
top:0;
|
|
width: 400px;
|
|
text-align: right;
|
|
display: none;
|
|
}
|
|
.me-msg .msg-txt-box{
|
|
margin-right: 50px;
|
|
padding-right: 5px;
|
|
}
|
|
.me-msg .msg-txt-content{
|
|
display: block;
|
|
float: right;
|
|
position: relative;
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
background-color: #b2e281;
|
|
}
|
|
.me-msg .msg-arrow{
|
|
display: block;
|
|
width: 0px;
|
|
height: 0px;
|
|
border-top: 10px solid transparent;
|
|
border-left: 15px solid #b2e281;
|
|
border-bottom: 10px solid transparent;
|
|
position: absolute;
|
|
top: 10px;
|
|
right: -10px;
|
|
}
|
|
/********************************************/
|
|
/********************************************/
|
|
/*定义滚动条宽高及背景,宽高分别对应横竖滚动条的尺寸*/
|
|
.ui-msg-content::-webkit-scrollbar,.aside-body::-webkit-scrollbar{
|
|
width: 5px;
|
|
height: 16px;
|
|
}
|
|
/*定义滚动条的轨道,内阴影及圆角*/
|
|
.ui-msg-content::-webkit-scrollbar-track,.aside-body::-webkit-scrollbar-track{
|
|
border-radius: 10px;
|
|
}
|
|
/*定义滑块,内阴影及圆角*/
|
|
.ui-msg-content::-webkit-scrollbar-thumb,.aside-body::-webkit-scrollbar-thumb{
|
|
/*width: 10px;*/
|
|
height: 20px;
|
|
border-radius: 10px;
|
|
background-color: rgba(255, 255, 255, 0.44);
|
|
}
|
|
/*************************************************************/
|
|
/************************************/
|
|
.res-list{
|
|
list-style: none;
|
|
padding: 0;
|
|
border-top: 1px solid #ddd;
|
|
margin: 10px 0 0 0;
|
|
max-width: 220px;
|
|
}
|
|
.res-list li{
|
|
line-height: 28px;
|
|
height: 28px;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
border-bottom: 1px solid #ddd;
|
|
border-left: 1px solid #ddd;
|
|
border-right: 1px solid #ddd;
|
|
background-color: rgb(255, 255, 255);
|
|
padding: 5px 10px;
|
|
}
|
|
.res-list li a{
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
color: #6d6d6d;
|
|
}
|
|
.res-link{
|
|
color: #5598e6;
|
|
text-decoration: none;
|
|
margin-left: 10px;
|
|
}
|
|
/*****************用户列表样式*******************/
|
|
.user-list-box{
|
|
position: absolute;
|
|
top:40px;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: #fff;
|
|
}
|
|
.user-list{
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.user-item{
|
|
padding: 10px 15px;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
.user-item.active{
|
|
background-color: #f5f5f5;
|
|
}
|
|
.user-item:after{
|
|
display: table;
|
|
clear: both;
|
|
content: '';
|
|
}
|
|
.user-img-box{
|
|
width: 40px;
|
|
height: 40px;
|
|
float: left;
|
|
}
|
|
.user-pic{
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 4px;
|
|
}
|
|
.user-info{
|
|
margin-left: 45px;
|
|
}
|
|
.user-info .info-row{
|
|
height: 20px;
|
|
line-height: 20px;
|
|
color: #323232;
|
|
font-size: 14px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
word-wrap: normal;
|
|
} |