blob: 97cf2a939d893d8e0d0c5e55113dade1b12178fa [file] [log] [blame]
/* FriendManager.css */
.friend-manager-container {
max-width: 800px;
margin: 20px auto;
padding: 0 15px;
}
.friend-card {
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.friend-header {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.header-icon {
font-size: 24px;
color: #1890ff;
margin-right: 12px;
}
.header-title {
margin: 0 !important;
}
.search-section {
display: flex;
margin-bottom: 24px;
gap: 12px;
}
.search-input {
flex: 1;
border-radius: 20px;
padding: 10px 16px;
}
.search-button {
border-radius: 20px;
padding: 0 24px;
height: 40px;
}
.search-results-container {
margin-bottom: 24px;
background: #fafafa;
border-radius: 8px;
padding: 16px;
border: 1px solid #f0f0f0;
}
.results-title {
margin-bottom: 16px !important;
color: #333;
}
.user-item {
padding: 12px;
border-radius: 8px;
transition: all 0.3s;
cursor: pointer;
}
.user-item:hover {
background-color: #f5f7fa;
}
.user-avatar {
background-color: #1890ff;
}
.add-friend-button {
border-radius: 16px;
}
.section-title {
margin-bottom: 16px !important;
color: #333;
position: relative;
padding-left: 10px;
}
.section-title::before {
content: '';
position: absolute;
left: 0;
top: 5px;
height: 20px;
width: 4px;
background-color: #1890ff;
border-radius: 2px;
}
.request-item,
.friend-item {
padding: 12px 16px;
border-radius: 8px;
margin-bottom: 8px;
border: 1px solid #f0f0f0;
transition: all 0.3s;
}
.request-item:hover,
.friend-item:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transform: translateY(-2px);
border-color: #d0e0ff;
}
.accept-button {
background-color: #52c41a;
border-color: #52c41a;
}
.reject-button {
background-color: #f5222d;
border-color: #f5222d;
color: white;
}
.delete-button {
border-radius: 16px;
}
.friend-list-section {
margin-top: 24px;
}
.friend-list-header {
display: flex;
justify-content: space-between;
margin-bottom: 16px;
}
.refresh-button {
color: #1890ff;
}
@media (max-width: 768px) {
.search-section {
flex-direction: column;
}
.search-button {
width: 100%;
}
.friend-card {
padding: 16px;
}
}