nakama/frontend/src/components/FollowListModal.css

188 lines
3.0 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;
2025-12-04 20:47:07 +00:00
padding: 12px 16px;
2025-12-04 20:00:39 +00:00
border-bottom: 1px solid var(--divider-color);
flex-shrink: 0;
}
.follow-list-header h2 {
2025-12-04 20:47:07 +00:00
font-size: 16px;
2025-12-04 20:00:39 +00:00
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;
}
2025-12-04 20:47:07 +00:00
.user-item-wrapper {
2025-12-04 21:23:24 +00:00
padding: 3px 10px;
2025-12-04 20:47:07 +00:00
}
2025-12-04 20:00:39 +00:00
.user-item {
display: flex;
align-items: center;
2025-12-04 21:23:24 +00:00
gap: 8px;
2025-12-04 20:00:39 +00:00
cursor: pointer;
transition: background 0.2s;
2025-12-04 21:23:24 +00:00
padding: 5px;
border-radius: 6px;
2025-12-04 21:10:11 +00:00
position: relative;
2025-12-04 20:00:39 +00:00
}
.user-item:active {
background: var(--bg-primary);
}
.user-avatar {
2025-12-04 21:23:24 +00:00
width: 26px;
height: 26px;
2025-12-04 20:00:39 +00:00
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
}
.user-info {
flex: 1;
min-width: 0;
2025-12-04 21:10:11 +00:00
display: flex;
flex-direction: column;
2025-12-04 21:16:35 +00:00
gap: 1px;
2025-12-04 20:00:39 +00:00
}
.user-name {
2025-12-04 21:23:24 +00:00
font-size: 12px;
2025-12-04 20:00:39 +00:00
font-weight: 600;
color: var(--text-primary);
2025-12-04 21:16:35 +00:00
line-height: 1.3;
2025-12-04 20:00:39 +00:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.user-username {
2025-12-04 21:23:24 +00:00
font-size: 15px;
2025-12-04 20:00:39 +00:00
color: var(--text-secondary);
2025-12-04 21:16:35 +00:00
line-height: 1.3;
2025-12-04 20:00:39 +00:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
2025-12-04 21:10:11 +00:00
/* Follow Button Icon */
.follow-btn-icon {
2025-12-04 21:23:24 +00:00
width: 26px;
height: 26px;
2025-12-04 21:10:11 +00:00
border-radius: 50%;
background: var(--bg-primary);
color: var(--text-primary);
border: 1px solid var(--divider-color);
2025-12-04 20:00:39 +00:00
display: flex;
align-items: center;
2025-12-04 20:47:07 +00:00
justify-content: center;
2025-12-04 20:00:39 +00:00
cursor: pointer;
2025-12-04 21:10:11 +00:00
transition: all 0.2s ease;
flex-shrink: 0;
margin-left: auto;
2025-12-04 20:00:39 +00:00
}
2025-12-04 21:10:11 +00:00
.follow-btn-icon:active {
opacity: 0.7;
transform: scale(0.95);
2025-12-04 20:00:39 +00:00
}
2025-12-04 21:10:11 +00:00
.follow-btn-icon.following {
background: var(--button-accent);
color: white;
border-color: var(--button-accent);
2025-12-04 20:00:39 +00:00
}