2026-04-21 13:46:20 +08:00
|
|
|
/* 用户头像组件样式 - 深色适配 */
|
2026-03-16 15:47:55 +08:00
|
|
|
.user-avatar {
|
|
|
|
|
position: relative;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 尺寸样式 */
|
|
|
|
|
.user-avatar.small {
|
|
|
|
|
width: 60rpx;
|
|
|
|
|
height: 60rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-avatar.medium {
|
|
|
|
|
width: 80rpx;
|
|
|
|
|
height: 80rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-avatar.large {
|
|
|
|
|
width: 120rpx;
|
|
|
|
|
height: 120rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-avatar.xlarge {
|
|
|
|
|
width: 160rpx;
|
|
|
|
|
height: 160rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 形状样式 */
|
|
|
|
|
.user-avatar.circle {
|
|
|
|
|
border-radius: 50%;
|
2026-04-21 13:46:20 +08:00
|
|
|
border: 3rpx solid rgba(22,119,255,0.35);
|
2026-03-16 15:47:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-avatar.rounded {
|
2026-04-21 13:46:20 +08:00
|
|
|
border-radius: 12rpx;
|
2026-03-16 15:47:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-avatar.square {
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 头像图片 */
|
|
|
|
|
.avatar-image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 在线状态指示器 */
|
|
|
|
|
.status-indicator {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
width: 20rpx;
|
|
|
|
|
height: 20rpx;
|
|
|
|
|
border-radius: 50%;
|
2026-04-21 13:46:20 +08:00
|
|
|
border: 3rpx solid #1a1a1a;
|
2026-03-16 15:47:55 +08:00
|
|
|
z-index: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-indicator.online {
|
2026-04-21 13:46:20 +08:00
|
|
|
background-color: #52c41a;
|
|
|
|
|
box-shadow: 0 0 6rpx rgba(82,196,26,0.5);
|
2026-03-16 15:47:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-indicator.offline {
|
2026-04-21 13:46:20 +08:00
|
|
|
background-color: #555555;
|
2026-03-16 15:47:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-indicator.busy {
|
2026-04-21 13:46:20 +08:00
|
|
|
background-color: #faad14;
|
|
|
|
|
box-shadow: 0 0 6rpx rgba(250,173,20,0.5);
|
2026-03-16 15:47:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.status-indicator.away {
|
2026-04-21 13:46:20 +08:00
|
|
|
background-color: #1677FF;
|
|
|
|
|
box-shadow: 0 0 6rpx rgba(22,119,255,0.5);
|
2026-03-16 15:47:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 徽章 */
|
|
|
|
|
.badge {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -10rpx;
|
|
|
|
|
right: -10rpx;
|
2026-04-21 13:46:20 +08:00
|
|
|
background: linear-gradient(135deg, #ff4d4f, #cf1322);
|
2026-03-16 15:47:55 +08:00
|
|
|
color: white;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
min-width: 32rpx;
|
|
|
|
|
height: 32rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
font-size: 20rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
padding: 0 8rpx;
|
|
|
|
|
z-index: 2;
|
2026-04-21 13:46:20 +08:00
|
|
|
box-shadow: 0 4rpx 12rpx rgba(255,77,79,0.4);
|
2026-03-16 15:47:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.badge-text {
|
|
|
|
|
font-size: 20rpx;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-21 13:46:20 +08:00
|
|
|
/* 加载遮罩 - 深色 */
|
2026-03-16 15:47:55 +08:00
|
|
|
.loading-overlay {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
2026-04-21 13:46:20 +08:00
|
|
|
background-color: rgba(26,26,26,0.85);
|
2026-03-16 15:47:55 +08:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
z-index: 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.loading-spinner {
|
|
|
|
|
width: 40rpx;
|
|
|
|
|
height: 40rpx;
|
2026-04-21 13:46:20 +08:00
|
|
|
border: 4rpx solid #2a2a2a;
|
|
|
|
|
border-top: 4rpx solid #1677FF;
|
2026-03-16 15:47:55 +08:00
|
|
|
border-radius: 50%;
|
|
|
|
|
animation: spin 1s linear infinite;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes spin {
|
|
|
|
|
0% { transform: rotate(0deg); }
|
|
|
|
|
100% { transform: rotate(360deg); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 默认头像样式 */
|
|
|
|
|
.user-avatar::before {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
2026-04-21 13:46:20 +08:00
|
|
|
background: linear-gradient(135deg, #1677FF 0%, #0958d9 100%);
|
2026-03-16 15:47:55 +08:00
|
|
|
z-index: -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-avatar.error::before {
|
2026-04-21 13:46:20 +08:00
|
|
|
background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
|
|
|
|
|
}
|