153 行
2.3 KiB
Plaintext
153 行
2.3 KiB
Plaintext
|
|
.chat-container {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
height: 100vh;
|
||
|
|
background: #f5f7fa;
|
||
|
|
}
|
||
|
|
.header {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
padding: 16rpx 24rpx;
|
||
|
|
background: #fff;
|
||
|
|
border-bottom: 1rpx solid #eee;
|
||
|
|
}
|
||
|
|
.status {
|
||
|
|
font-size: 28rpx;
|
||
|
|
}
|
||
|
|
.online { color: #07c160; }
|
||
|
|
.offline { color: #e64340; }
|
||
|
|
.user { font-size: 28rpx; color: #666; }
|
||
|
|
|
||
|
|
.sidebar {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: row;
|
||
|
|
flex: 1;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
.tab-bar {
|
||
|
|
width: 160rpx;
|
||
|
|
background: #fff;
|
||
|
|
border-right: 1rpx solid #eee;
|
||
|
|
}
|
||
|
|
.tab {
|
||
|
|
padding: 24rpx 0;
|
||
|
|
text-align: center;
|
||
|
|
font-size: 28rpx;
|
||
|
|
color: #666;
|
||
|
|
border-bottom: 1rpx solid #f0f0f0;
|
||
|
|
}
|
||
|
|
.tab.active {
|
||
|
|
color: #1989fa;
|
||
|
|
background: #eef5ff;
|
||
|
|
}
|
||
|
|
.list {
|
||
|
|
flex: 1;
|
||
|
|
padding: 16rpx;
|
||
|
|
}
|
||
|
|
.item {
|
||
|
|
padding: 20rpx;
|
||
|
|
background: #fff;
|
||
|
|
border-radius: 8rpx;
|
||
|
|
margin-bottom: 16rpx;
|
||
|
|
}
|
||
|
|
.item-title {
|
||
|
|
font-size: 30rpx;
|
||
|
|
font-weight: 500;
|
||
|
|
color: #333;
|
||
|
|
}
|
||
|
|
.item-meta {
|
||
|
|
font-size: 24rpx;
|
||
|
|
color: #999;
|
||
|
|
margin-top: 8rpx;
|
||
|
|
}
|
||
|
|
.empty {
|
||
|
|
text-align: center;
|
||
|
|
color: #999;
|
||
|
|
padding: 40rpx;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-area {
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
.chat-header {
|
||
|
|
padding: 20rpx;
|
||
|
|
background: #fff;
|
||
|
|
text-align: center;
|
||
|
|
font-size: 30rpx;
|
||
|
|
border-bottom: 1rpx solid #eee;
|
||
|
|
}
|
||
|
|
.message-list {
|
||
|
|
flex: 1;
|
||
|
|
padding: 20rpx;
|
||
|
|
}
|
||
|
|
.msg-row {
|
||
|
|
display: flex;
|
||
|
|
margin-bottom: 20rpx;
|
||
|
|
}
|
||
|
|
.msg-row.self {
|
||
|
|
justify-content: flex-end;
|
||
|
|
}
|
||
|
|
.msg-row.other {
|
||
|
|
justify-content: flex-start;
|
||
|
|
}
|
||
|
|
.msg-bubble {
|
||
|
|
max-width: 70%;
|
||
|
|
padding: 16rpx 20rpx;
|
||
|
|
border-radius: 12rpx;
|
||
|
|
background: #fff;
|
||
|
|
}
|
||
|
|
.msg-row.self .msg-bubble {
|
||
|
|
background: #95ec69;
|
||
|
|
}
|
||
|
|
.msg-sender {
|
||
|
|
font-size: 22rpx;
|
||
|
|
color: #999;
|
||
|
|
margin-bottom: 4rpx;
|
||
|
|
}
|
||
|
|
.msg-content {
|
||
|
|
font-size: 30rpx;
|
||
|
|
color: #333;
|
||
|
|
word-break: break-all;
|
||
|
|
}
|
||
|
|
.msg-meta {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
margin-top: 8rpx;
|
||
|
|
}
|
||
|
|
.tag {
|
||
|
|
font-size: 20rpx;
|
||
|
|
color: #1989fa;
|
||
|
|
}
|
||
|
|
.time {
|
||
|
|
font-size: 20rpx;
|
||
|
|
color: #999;
|
||
|
|
}
|
||
|
|
|
||
|
|
.input-area {
|
||
|
|
display: flex;
|
||
|
|
padding: 16rpx;
|
||
|
|
background: #fff;
|
||
|
|
border-top: 1rpx solid #eee;
|
||
|
|
}
|
||
|
|
.msg-input {
|
||
|
|
flex: 1;
|
||
|
|
height: 72rpx;
|
||
|
|
border: 1rpx solid #ddd;
|
||
|
|
border-radius: 8rpx;
|
||
|
|
padding: 0 16rpx;
|
||
|
|
font-size: 30rpx;
|
||
|
|
}
|
||
|
|
.send-btn {
|
||
|
|
margin-left: 16rpx;
|
||
|
|
}
|
||
|
|
.empty-chat {
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
color: #999;
|
||
|
|
font-size: 32rpx;
|
||
|
|
}
|