nakama/frontend/src/components/FollowListModal.css

181 lines
2.8 KiB
CSS
Raw Normal View History

2025-12-04 20:00:39 +00:00
/* Overlay */
.follow-list-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
2025-12-04 20:27:45 +00:00
z-index: 10500;
2025-12-04 20:00:39 +00:00
display: flex;
align-items: flex-end;
animation: fadeIn 0.2s ease-out;
2025-12-04 20:27:45 +00:00
touch-action: none;
overscroll-behavior: contain;
2025-12-04 20:00:39 +00:00
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Modal */
.follow-list-modal {
width: 100%;
max-height: 80vh;
background: var(--bg-secondary);
border-radius: 20px 20px 0 0;
display: flex;
flex-direction: column;
animation: slideUp 0.3s ease-out;
overflow: hidden;
}
@keyframes slideUp {
from {
transform: translateY(100%);
}
to {
transform: translateY(0);
}
}
/* Header */
.follow-list-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
border-bottom: 1px solid var(--divider-color);
flex-shrink: 0;
}
.follow-list-header h2 {
font-size: 18px;
font-weight: 600;
color: var(--text-primary);
margin: 0;
}
.follow-list-header .close-btn {
width: 40px;
height: 40px;
border-radius: 50%;
background: transparent;
color: var(--text-primary);
display: flex;
align-items: center;
justify-content: center;
border: none;
cursor: pointer;
transition: background 0.2s;
}
.follow-list-header .close-btn:active {
background: var(--bg-primary);
}
/* Content */
.follow-list-content {
flex: 1;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.empty-state {
padding: 40px 20px;
text-align: center;
color: var(--text-secondary);
}
.empty-state p {
font-size: 15px;
margin: 0;
}
/* Users List */
.users-list {
padding: 8px 0;
}
.user-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
cursor: pointer;
transition: background 0.2s;
}
.user-item:active {
background: var(--bg-primary);
}
.user-avatar {
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
}
.user-info {
flex: 1;
min-width: 0;
}
.user-name {
font-size: 15px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.user-username {
font-size: 13px;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Follow Button */
.follow-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
border-radius: 20px;
background: var(--button-accent);
color: white;
border: none;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: opacity 0.2s;
flex-shrink: 0;
}
.follow-btn:active {
opacity: 0.8;
}
.follow-btn.following {
background: var(--bg-primary);
color: var(--text-secondary);
border: 1px solid var(--divider-color);
}
.follow-btn span {
white-space: nowrap;
}