2025-11-03 21:08:11 +00:00
|
|
|
/* Оверлей для комментариев */
|
|
|
|
|
.comments-modal-overlay {
|
2025-11-03 20:54:59 +00:00
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
2025-11-03 21:08:11 +00:00
|
|
|
background: rgba(0, 0, 0, 0.5);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: flex-end;
|
2025-11-03 21:29:00 +00:00
|
|
|
justify-content: center;
|
2025-11-03 21:08:11 +00:00
|
|
|
z-index: 1000;
|
|
|
|
|
animation: fadeIn 0.2s;
|
2025-11-03 21:29:00 +00:00
|
|
|
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
|
|
|
overflow: hidden;
|
2025-11-03 21:08:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comments-modal {
|
|
|
|
|
width: 100%;
|
2025-11-03 21:29:00 +00:00
|
|
|
max-width: 600px;
|
2025-11-03 21:43:00 +00:00
|
|
|
height: 60dvh; /* dvh не меняется при клавиатуре */
|
|
|
|
|
max-height: 60vh; /* fallback для старых браузеров */
|
2025-11-03 20:35:01 +00:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2025-11-03 21:08:11 +00:00
|
|
|
border-radius: 16px 16px 0 0;
|
|
|
|
|
background: var(--bg-secondary);
|
|
|
|
|
animation: slideUp 0.3s ease-out;
|
2025-11-03 21:43:00 +00:00
|
|
|
position: fixed;
|
|
|
|
|
bottom: 80px; /* Над навигацией */
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
2025-11-03 21:08:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Хедер модалки */
|
|
|
|
|
.comments-modal .modal-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 16px;
|
|
|
|
|
border-bottom: 1px solid var(--divider-color);
|
|
|
|
|
background: var(--bg-secondary);
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comments-modal .modal-header h2 {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comments-modal .close-btn {
|
|
|
|
|
width: 32px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background: transparent;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comments-modal .close-btn svg {
|
|
|
|
|
stroke: currentColor;
|
2025-11-03 20:35:01 +00:00
|
|
|
}
|
|
|
|
|
|
2025-11-03 21:08:11 +00:00
|
|
|
.comments-modal .close-btn:active {
|
|
|
|
|
background: var(--bg-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Список комментариев */
|
2025-11-03 20:35:01 +00:00
|
|
|
.comments-list {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding: 16px;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-comments {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
padding: 40px 20px;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-comments p {
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-comments span {
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-03 21:08:11 +00:00
|
|
|
/* Комментарий */
|
2025-11-03 20:35:01 +00:00
|
|
|
.comment-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-avatar {
|
|
|
|
|
width: 36px;
|
|
|
|
|
height: 36px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-author {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-time {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-text {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-03 21:08:11 +00:00
|
|
|
/* Форма ввода комментария */
|
2025-11-03 20:35:01 +00:00
|
|
|
.comment-form {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
padding: 12px 16px;
|
|
|
|
|
border-top: 1px solid var(--divider-color);
|
|
|
|
|
background: var(--bg-secondary);
|
2025-11-03 21:08:11 +00:00
|
|
|
flex-shrink: 0;
|
|
|
|
|
border-radius: 0 0 16px 16px;
|
2025-11-03 21:29:00 +00:00
|
|
|
position: sticky;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Фикс для iOS - предотвращение прыжков */
|
|
|
|
|
.comment-form input:focus {
|
|
|
|
|
transform: translateZ(0);
|
|
|
|
|
-webkit-transform: translateZ(0);
|
2025-11-03 20:35:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-form input {
|
|
|
|
|
flex: 1;
|
|
|
|
|
padding: 10px 16px;
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
background: var(--bg-primary);
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.send-btn {
|
|
|
|
|
width: 40px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background: var(--button-accent);
|
|
|
|
|
color: white;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-03 21:08:11 +00:00
|
|
|
.send-btn svg {
|
|
|
|
|
stroke: white;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-03 20:35:01 +00:00
|
|
|
.send-btn:disabled {
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
}
|