2025-10-13 06:56:44 +00:00

281 lines
7.1 KiB
SCSS
Executable File
Vendored

.common-user-detail-modal {
.ivu-modal-content {
border-radius: 16px;
}
.ivu-modal-body {
padding: 0 !important;
}
.user-detail-body {
.profile-header {
position: relative;
height: 120px;
.cover-photo {
background: #1a2c47;
height: 80px;
border-top-left-radius: 16px;
border-top-right-radius: 16px;
}
.profile-avatar {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
border: 4px solid #fff;
border-radius: 50%;
.user-avatar {
display: block;
}
}
}
.profile-content {
padding: 16px 24px 24px;
text-align: center;
.user-info-top {
.username {
color: #808695;
font-size: 14px;
}
.fullname {
font-size: 20px;
font-weight: bold;
margin: 4px 0;
}
.meta {
display: flex;
justify-content: center;
align-items: center;
color: #808695;
font-size: 12px;
.separator {
margin: 0 8px;
}
}
}
.profile-actions {
margin: 16px 0;
display: flex;
justify-content: center;
gap: 8px;
}
.profile-bio {
color: #515a6e;
line-height: 1.5;
margin: 16px 0;
}
.profile-information {
text-align: left;
background-color: #f8f8f9;
padding: 16px;
border-radius: 8px;
h2 {
font-size: 16px;
margin-bottom: 12px;
}
ul {
list-style: none;
padding: 0;
margin: 0;
li {
display: flex;
align-items: center;
padding: 8px 0;
font-size: 14px;
.ivu-icon {
font-size: 20px;
margin-right: 12px;
color: #808695;
}
.label {
color: #515a6e;
}
.value {
margin-left: auto;
color: #17233d;
font-weight: 500;
}
}
}
}
.profile-tags {
margin-top: 24px;
cursor: pointer;
.tags-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: center;
}
.ivu-tag {
margin: 0;
}
}
}
}
}
// 共同群组弹窗样式
.common-dialog-content {
margin: -16px -32px 0;
.loading-wrapper {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
padding-top: 60px;
padding-bottom: 100px;
}
.empty-wrapper {
display: flex;
justify-content: center;
align-items: center;
padding-top: 40px;
padding-bottom: 80px;
.empty-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
width: 100%;
color: #999;
> i {
opacity: 0.3;
}
}
}
.dialog-list {
padding: 0 12px;
overflow-y: auto;
max-height: calc(100vh - 310px);
@media (height <= 900px) {
max-height: calc(100vh - 180px);
}
.dialog-item {
display: flex;
align-items: center;
padding: 12px 16px;
cursor: pointer;
border-radius: 6px;
margin: 4px 0;
transition: background-color 0.2s;
&:hover {
background-color: #f5f7fa;
}
.dialog-avatar {
flex-shrink: 0;
margin-right: 12px;
.img-avatar,
.user-avatar,
.icon-avatar {
width: 42px;
height: 42px;
margin-right: 2px;
flex-grow: 0;
flex-shrink: 0;
}
.img-avatar {
display: flex;
align-items: center;
justify-content: center;
> img {
width: 100%;
height: 100%;
}
}
.icon-avatar {
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
font-size: 26px;
background-color: #61B2F9;
color: #ffffff;
&.department {
background-color: #5BC7B0;
}
&.project {
background-color: #6E99EB;
}
&.task {
background-color: #9B96DF;
font-size: 24px;
}
}
}
.dialog-info {
flex: 1;
min-width: 0;
.dialog-name {
font-size: 14px;
font-weight: 500;
color: #17233d;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-bottom: 4px;
}
.dialog-meta {
display: flex;
align-items: center;
gap: 12px;
font-size: 12px;
color: #808695;
.member-count {
flex-shrink: 0;
}
.last-time {
flex-shrink: 0;
}
}
}
.enter-icon {
flex-shrink: 0;
color: #c5c8ce;
font-size: 16px;
margin-left: 8px;
}
}
&:last-child {
padding-bottom: 16px;
}
}
.load-more-wrapper {
display: flex;
justify-content: center;
align-items: center;
padding: 12px 0;
}
}