Claw 项目完整结构提交
This commit is contained in:
98
Claw/client/wechat_app/components/message/message.wxss
Normal file
98
Claw/client/wechat_app/components/message/message.wxss
Normal file
@@ -0,0 +1,98 @@
|
||||
/* 消息组件样式 */
|
||||
.message-item {
|
||||
display: flex;
|
||||
margin: 20rpx 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.message-left {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.message-right {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
.message-avatar {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
margin: 0 20rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.message-avatar image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.message-content {
|
||||
max-width: 70%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.message-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
|
||||
.message-nickname {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
.message-time {
|
||||
font-size: 20rpx;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.message-body {
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 10rpx;
|
||||
padding: 20rpx;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.message-right .message-body {
|
||||
background-color: #95ec69;
|
||||
}
|
||||
|
||||
.message-text {
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.message-right .message-text {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.message-image {
|
||||
max-width: 300rpx;
|
||||
max-height: 300rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.message-file {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: #fff;
|
||||
border: 1rpx solid #e0e0e0;
|
||||
border-radius: 10rpx;
|
||||
padding: 20rpx;
|
||||
min-width: 200rpx;
|
||||
}
|
||||
|
||||
.file-name {
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
|
||||
.file-size {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
Reference in New Issue
Block a user