Files
scrm.antd/src/pages/ChatLogs/components/index.module.scss

174 lines
2.7 KiB
SCSS

.chatLeft {
display: flex;
margin-bottom: 12px;
.chatContentBox {
display: inline-flex;
flex-direction: column;
flex-shrink: 0;
max-width: 60%;
margin-left: 16px;
}
}
.chatAvatar {
display: flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
background-color: #69b1ff;
border-radius: 4px;
img {
max-width: 100%;
max-height: 100%;
object-fit: cover;
background-color: #fff;
border-radius: 4px;
}
}
.name {
margin-bottom: 4px;
color: #999;
}
.content {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
min-height: 40px;
padding: 12px;
white-space: pre-wrap;
word-break: break-all;
background-color: #fff;
border-radius: 4px;
&::before {
position: absolute;
top: 12px;
left: -6px;
width: 12px;
height: 12px;
background-color: #fff;
transform: rotate(45deg);
content: '';
}
&:hover,
&:hover::before {
background-color: #ebebeb;
}
}
.chatRight {
display: flex;
justify-content: flex-end;
margin-bottom: 12px;
.name {
text-align: right;
}
.chatContentBox {
display: inline-flex;
flex-direction: column;
flex-shrink: 0;
justify-content: flex-end;
max-width: 60%;
margin-right: 16px;
}
.content {
background-color: #95ec69;
&::before {
right: -6px;
left: initial;
background-color: #95ec69;
}
&:hover,
&:hover::before {
background-color: #89d961;
}
}
}
.video {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 176px;
height: 144px;
background-color: #333;
border-radius: 4px;
cursor: pointer;
.videoTime {
position: absolute;
right: 8px;
bottom: 8px;
color: #fff;
}
}
.imgPreview {
& > div {
display: flex;
align-items: center;
justify-content: center;
}
}
.revokeMsgRight {
position: absolute;
top: 0;
left: -48px;
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
color: #fff;
font-size: 12px;
background-color: #8c8c8c;
border-radius: 40px;
}
.revokeMsgLeft {
position: absolute;
top: 0;
right: -48px;
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
color: #fff;
font-size: 12px;
background-color: #8c8c8c;
border-radius: 40px;
}
.voteitem {
position: relative;
padding-left: 16px;
&::before {
position: absolute;
top: 50%;
left: 0;
display: inline-block;
width: 6px;
height: 6px;
border: 2px solid #ccc;
border-radius: 8px;
transform: translateY(-50%);
content: '';
}
}