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

191 lines
2.9 KiB
SCSS
Raw Normal View History

2023-04-11 15:29:40 +08:00
.box {
2023-04-07 17:38:15 +08:00
display: flex;
2023-04-11 15:29:40 +08:00
border: 1px solid #ddd;
2023-04-07 17:38:15 +08:00
}
2023-04-11 15:29:40 +08:00
.personnelBox {
position: relative;
2023-04-07 17:38:15 +08:00
flex-shrink: 0;
2023-04-11 15:29:40 +08:00
width: 251px;
height: calc(100vh - 212px);
border-right: 1px solid #ddd;
2023-04-07 17:38:15 +08:00
}
2023-04-11 15:29:40 +08:00
.chatA,
.chatB {
2023-04-07 17:38:15 +08:00
display: flex;
2023-04-11 15:29:40 +08:00
align-items: center;
justify-content: flex-start;
height: 65px;
margin-bottom: 12px;
padding: 0 12px;
border-bottom: 1px solid #ddd;
cursor: pointer;
2023-04-07 17:38:15 +08:00
2023-04-11 15:29:40 +08:00
&:hover {
2023-04-14 17:31:45 +08:00
background-color: #bae0ff;
2023-04-07 17:38:15 +08:00
}
2023-04-11 15:29:40 +08:00
&.active {
2023-04-14 17:31:45 +08:00
background-color: #bae0ff;
2023-04-07 17:38:15 +08:00
}
}
2023-04-11 15:29:40 +08:00
.chatB {
margin-bottom: 0;
border-bottom: none;
}
2023-04-07 17:38:15 +08:00
2023-04-11 15:29:40 +08:00
.chatAMsg {
display: flex;
flex: 1;
align-items: flex-start;
min-width: 0;
padding-left: 12px;
.chatAName {
flex: 1;
2023-04-07 17:38:15 +08:00
flex-shrink: 0;
2023-04-11 15:29:40 +08:00
min-width: 0;
overflow: hidden;
font-size: 16px;
white-space: nowrap;
text-overflow: ellipsis;
2023-04-07 17:38:15 +08:00
}
2023-04-11 15:29:40 +08:00
}
2023-04-07 17:38:15 +08:00
2023-04-11 15:29:40 +08:00
.avatar {
display: flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
line-height: 1;
2023-04-13 17:36:49 +08:00
background-color: #69b1ff;
2023-04-11 15:29:40 +08:00
border-radius: 4px;
}
2023-04-07 17:38:15 +08:00
.inGroupAvatar {
position: relative;
display: flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
width: 56px;
height: 56px;
line-height: 1;
background-color: #69b1ff;
border-radius: 4px;
}
2023-04-11 15:29:40 +08:00
.chatBBox {
2023-04-14 17:31:45 +08:00
position: relative;
2023-04-11 15:29:40 +08:00
height: calc(100vh - 212px - 164px);
overflow: auto;
2023-04-07 17:38:15 +08:00
}
2023-04-14 17:31:45 +08:00
.delFollowList {
position: absolute;
top: calc(100% - 34px);
z-index: 1;
width: 100%;
height: 34px;
background-color: #fff;
transition: top 0.3s, height 0.3s;
&.delFollowListShow {
top: 164px;
height: calc(100% - 164px);
2023-04-14 17:31:45 +08:00
}
}
.delFollowListBar {
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
height: 34px;
padding: 0 12px;
color: #1890ff;
cursor: pointer;
&:hover {
background: #eee;
}
}
.delFollowListBox {
height: 0;
overflow: hidden;
&.delFollowListBoxShow {
height: calc(100% - 34px);
overflow: auto;
}
}
2023-04-13 17:36:49 +08:00
.state0 {
position: relative;
background: #eee;
}
2023-04-11 15:29:40 +08:00
.chatLogBox {
height: calc(100vh - 212px - 66px);
padding: 12px;
overflow: auto;
}
.logTop {
2023-04-07 17:38:15 +08:00
display: flex;
align-items: center;
2023-04-11 15:29:40 +08:00
width: 100%;
height: 65px;
padding: 0 12px;
border-bottom: 1px solid #ddd;
}
2023-04-07 17:38:15 +08:00
2023-04-11 15:29:40 +08:00
.flolowsBox {
position: absolute;
top: 65px;
left: 0;
z-index: 1;
width: 100%;
max-height: 50vh;
overflow: auto;
background-color: #fff;
2023-04-14 17:31:45 +08:00
box-shadow: 0 4px 6px #ccc;
2023-04-11 15:29:40 +08:00
transform: translateY(20px);
visibility: hidden;
cursor: pointer;
opacity: 0;
transition: transform 0.3s, visibility 0.3s, opacity 0.3s;
pointer-events: none;
&.show {
2023-04-18 17:28:06 +08:00
z-index: 11;
2023-04-11 15:29:40 +08:00
transform: translateY(0px);
visibility: visible;
opacity: 1;
pointer-events: all;
2023-04-07 17:38:15 +08:00
}
}
2023-04-13 17:36:49 +08:00
.modalAvatar {
display: flex;
align-items: center;
justify-content: center;
width: 60px;
height: 60px;
margin-right: 12px;
overflow: hidden;
background-color: #69b1ff;
border-radius: 6px;
img {
max-width: 100%;
max-height: 100%;
object-fit: cover;
}
}