BookWorld / frontend /css /left-section /profile-panel.css
alienet's picture
first commit
e636070
/* profile-style.css */
/* 标题样式 */
.profiles-title {
font-size: 1.2em;
color: #5f3737;
margin: 0 0 10px 0;
padding-bottom: 5px;
border-bottom: 1px solid #5f3737;
}
/* 角色卡片容器 */
.profiles-container {
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 5px;
position: relative;
}
/* 角色卡片 */
.character-card {
display: flex;
width: 100%;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
padding: 8px;
cursor: pointer;
transition: all 0.3s ease;
}
.character-card:hover {
transform: translateY(-2px);
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* 角色头像 */
.character-icon {
width: 30px;
height: 30px;
border-radius: 50%;
overflow: hidden;
margin-right: 10px;
flex-shrink: 1;
}
.character-icon img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* 角色信息 */
.character-info {
flex: 1;
}
.character-name {
font-weight: bold;
color: #5f3737;
margin-bottom: 4px;
}
.character-description {
font-size: 0.9em;
color: #666;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}