nakama/frontend/src/components/FollowListModal.css

197 lines
3.3 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 22:00:18 +00:00
padding: 2px 8px;
display: flex;
align-items: center;
2025-12-04 22:12:54 +00:00
gap: 6px;
2025-12-04 20:47:07 +00:00
}
2025-12-04 20:00:39 +00:00
.user-item {
display: flex;
2025-12-04 22:00:18 +00:00
align-items: flex-start;
2025-12-04 22:12:54 +00:00
gap: 6px;
2025-12-04 20:00:39 +00:00
cursor: pointer;
transition: background 0.2s;
2025-12-04 22:12:54 +00:00
padding: 3px;
2025-12-04 22:00:18 +00:00
border-radius: 4px;
2025-12-04 21:10:11 +00:00
position: relative;
2025-12-04 22:00:18 +00:00
flex: 1;
2025-12-04 20:00:39 +00:00
}
.user-item:active {
background: var(--bg-primary);
}
2025-12-04 22:12:54 +00:00
.follow-list-modal .user-avatar {
width: 20px !important;
height: 20px !important;
min-width: 20px !important;
min-height: 20px !important;
max-width: 20px !important;
max-height: 20px !important;
2025-12-04 20:00:39 +00:00
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
}
2025-12-04 22:12:54 +00:00
.follow-list-modal .user-info {
2025-12-04 20:00:39 +00:00
flex: 1;
min-width: 0;
2025-12-04 21:10:11 +00:00
display: flex;
flex-direction: column;
2025-12-04 22:12:54 +00:00
gap: 0.5px;
2025-12-04 22:00:18 +00:00
text-align: left;
align-items: flex-start;
2025-12-04 20:00:39 +00:00
}
2025-12-04 22:12:54 +00:00
.follow-list-modal .user-name {
font-size: 10px !important;
2025-12-04 20:00:39 +00:00
font-weight: 600;
color: var(--text-primary);
2025-12-04 22:00:18 +00:00
line-height: 1.2;
2025-12-04 20:00:39 +00:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
2025-12-04 22:12:54 +00:00
.follow-list-modal .user-username {
font-size: 12px !important;
2025-12-04 20:00:39 +00:00
color: var(--text-secondary);
2025-12-04 22:00:18 +00:00
line-height: 1.2;
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 22:12:54 +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;
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
}