2025-11-03 21:57:35 +00:00
|
|
|
/* Простое решение - модалка на весь экран */
|
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:57:35 +00:00
|
|
|
background: var(--bg-secondary);
|
2025-11-03 21:52:13 +00:00
|
|
|
z-index: 1000;
|
2025-11-03 21:08:11 +00:00
|
|
|
display: flex;
|
2025-11-03 21:57:35 +00:00
|
|
|
flex-direction: column;
|
2025-11-03 21:08:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comments-modal {
|
|
|
|
|
width: 100%;
|
2025-11-03 21:57:35 +00:00
|
|
|
height: 100%;
|
2025-11-03 20:35:01 +00:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2025-11-03 21:08:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comments-modal .modal-header {
|
2025-11-03 21:52:13 +00:00
|
|
|
padding: 16px;
|
|
|
|
|
border-bottom: 1px solid var(--divider-color);
|
2025-11-03 21:08:11 +00:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
flex-shrink: 0;
|
2025-11-03 21:57:35 +00:00
|
|
|
background: var(--bg-secondary);
|
2025-11-03 21:08:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comments-modal .modal-header h2 {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comments-modal .close-btn {
|
2025-11-03 21:57:35 +00:00
|
|
|
width: 40px;
|
|
|
|
|
height: 40px;
|
2025-11-03 21:08:11 +00:00
|
|
|
border-radius: 50%;
|
2025-11-03 21:57:35 +00:00
|
|
|
background: var(--bg-primary);
|
2025-11-03 21:08:11 +00:00
|
|
|
color: var(--text-primary);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
2025-11-03 21:57:35 +00:00
|
|
|
border: none;
|
|
|
|
|
cursor: pointer;
|
2025-11-03 21:08:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comments-modal .close-btn svg {
|
|
|
|
|
stroke: currentColor;
|
2025-11-03 20:35:01 +00:00
|
|
|
}
|
|
|
|
|
|
2025-11-03 21:57:35 +00:00
|
|
|
/* Превью поста */
|
|
|
|
|
.post-preview {
|
|
|
|
|
padding: 16px;
|
|
|
|
|
border-bottom: 1px solid var(--divider-color);
|
|
|
|
|
background: var(--bg-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.preview-author {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.preview-avatar {
|
|
|
|
|
width: 40px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.preview-name {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.preview-username {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.preview-content {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
white-space: pre-wrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.preview-image {
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
max-height: 200px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.preview-image img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-03 20:35:01 +00:00
|
|
|
.comments-list {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding: 16px;
|
2025-11-03 21:57:35 +00:00
|
|
|
padding-bottom: 100px; /* Отступ для формы и меню */
|
2025-11-03 20:35:01 +00:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-comments {
|
2025-11-03 21:57:35 +00:00
|
|
|
padding: 60px 20px;
|
2025-11-03 21:52:13 +00:00
|
|
|
text-align: center;
|
2025-11-03 20:35:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-comments p {
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
font-size: 16px;
|
2025-11-03 21:52:13 +00:00
|
|
|
margin-bottom: 8px;
|
2025-11-03 20:35:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-comments span {
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-avatar {
|
|
|
|
|
width: 36px;
|
|
|
|
|
height: 36px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 8px;
|
2025-11-03 21:52:13 +00:00
|
|
|
margin-bottom: 4px;
|
2025-11-03 20:35:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-form {
|
2025-11-03 21:57:35 +00:00
|
|
|
position: fixed;
|
|
|
|
|
bottom: 80px; /* Над навигацией */
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
2025-11-03 20:35:01 +00:00
|
|
|
padding: 12px 16px;
|
|
|
|
|
background: var(--bg-secondary);
|
2025-11-03 21:57:35 +00:00
|
|
|
border-top: 1px solid var(--divider-color);
|
2025-11-03 21:52:13 +00:00
|
|
|
display: flex;
|
|
|
|
|
gap: 8px;
|
2025-11-03 21:57:35 +00:00
|
|
|
z-index: 1001;
|
2025-11-03 20:35:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-form input {
|
|
|
|
|
flex: 1;
|
2025-11-03 21:57:35 +00:00
|
|
|
padding: 12px 16px;
|
|
|
|
|
border-radius: 24px;
|
2025-11-03 20:35:01 +00:00
|
|
|
background: var(--bg-primary);
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
font-size: 15px;
|
2025-11-03 21:52:13 +00:00
|
|
|
border: none;
|
2025-11-03 20:35:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.send-btn {
|
2025-11-03 21:57:35 +00:00
|
|
|
width: 44px;
|
|
|
|
|
height: 44px;
|
2025-11-03 20:35:01 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
|
background: var(--button-accent);
|
|
|
|
|
color: white;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
2025-11-03 21:52:13 +00:00
|
|
|
border: none;
|
|
|
|
|
cursor: pointer;
|
2025-11-03 21:57:35 +00:00
|
|
|
flex-shrink: 0;
|
2025-11-03 20:35:01 +00:00
|
|
|
}
|
|
|
|
|
|
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;
|
|
|
|
|
}
|