230 lines
3.9 KiB
CSS
230 lines
3.9 KiB
CSS
/* Блокирует ВСЕ клики под собой */
|
||
.comments-modal-overlay {
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
background: var(--bg-secondary);
|
||
z-index: 10500;
|
||
overflow: hidden;
|
||
touch-action: none;
|
||
overscroll-behavior: contain;
|
||
}
|
||
|
||
.comments-modal {
|
||
width: 100%;
|
||
height: 100%;
|
||
background: var(--bg-secondary);
|
||
display: flex;
|
||
flex-direction: column;
|
||
/* Убираем pointer-events и touch-action чтобы клики работали */
|
||
}
|
||
|
||
.comments-modal .modal-header {
|
||
padding: 16px;
|
||
border-bottom: 1px solid var(--divider-color);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
flex-shrink: 0;
|
||
background: var(--bg-secondary);
|
||
}
|
||
|
||
.comments-modal .modal-header h2 {
|
||
font-size: 18px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.comments-modal .close-btn {
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 50%;
|
||
background: var(--bg-primary);
|
||
color: var(--text-primary);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: none;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.comments-modal .close-btn svg {
|
||
stroke: currentColor;
|
||
}
|
||
|
||
/* Превью поста */
|
||
.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;
|
||
}
|
||
|
||
.comments-list {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: 16px;
|
||
padding-bottom: 100px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
}
|
||
|
||
.empty-comments {
|
||
padding: 60px 20px;
|
||
text-align: center;
|
||
}
|
||
|
||
.empty-comments p {
|
||
color: var(--text-primary);
|
||
font-size: 16px;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.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;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.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 {
|
||
position: fixed;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
padding: 12px 16px;
|
||
padding-bottom: calc(12px + 80px); /* Отступ для навигации */
|
||
background: var(--bg-secondary);
|
||
border-top: 1px solid var(--divider-color);
|
||
display: flex;
|
||
gap: 8px;
|
||
z-index: 1000;
|
||
/* Убираем pointer-events и touch-action чтобы клики работали */
|
||
}
|
||
|
||
.comment-form input {
|
||
flex: 1;
|
||
padding: 12px 16px;
|
||
border-radius: 24px;
|
||
background: var(--bg-primary);
|
||
color: var(--text-primary);
|
||
font-size: 15px;
|
||
border: none;
|
||
/* Убираем pointer-events чтобы клики работали */
|
||
}
|
||
|
||
.send-btn {
|
||
width: 44px;
|
||
height: 44px;
|
||
border-radius: 50%;
|
||
background: #1C1C1E;
|
||
color: white;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: none;
|
||
cursor: pointer;
|
||
flex-shrink: 0;
|
||
/* Убираем pointer-events чтобы клики работали */
|
||
}
|
||
|
||
.send-btn svg {
|
||
stroke: white;
|
||
}
|
||
|
||
.send-btn:disabled {
|
||
opacity: 0.5;
|
||
}
|
||
|
||
[data-theme="dark"] .send-btn {
|
||
background: #FFFFFF;
|
||
color: #000000;
|
||
}
|
||
|
||
[data-theme="dark"] .send-btn svg {
|
||
stroke: #000000;
|
||
}
|