nakama/frontend/src/components/PostMenu.css

232 lines
3.9 KiB
CSS
Raw Normal View History

2025-11-03 22:03:30 +00:00
/* Блокирует ВСЕ клики под собой */
2025-11-03 21:57:35 +00:00
.post-menu-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
2025-12-04 22:28:51 +00:00
background: transparent;
2025-12-04 20:27:45 +00:00
z-index: 10500;
2025-11-03 21:57:35 +00:00
display: flex;
2025-12-04 22:28:51 +00:00
align-items: flex-start;
justify-content: flex-start;
2025-11-03 22:17:25 +00:00
overflow: hidden;
2025-12-04 20:27:45 +00:00
touch-action: none;
overscroll-behavior: contain;
2025-11-03 22:03:30 +00:00
}
.report-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--bg-secondary);
2025-12-04 20:27:45 +00:00
z-index: 10600;
2025-11-03 22:03:30 +00:00
display: flex;
flex-direction: column;
2025-12-04 20:27:45 +00:00
touch-action: none;
overscroll-behavior: contain;
2025-11-03 21:57:35 +00:00
}
2025-12-04 22:28:51 +00:00
.menu-content {
background: var(--bg-secondary);
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
padding: 4px;
margin-top: 8px;
min-width: 140px;
z-index: 10501;
}
.menu-items {
2025-11-03 21:57:35 +00:00
display: flex;
2025-12-04 22:28:51 +00:00
flex-direction: column;
gap: 2px;
2025-11-03 21:57:35 +00:00
}
2025-12-04 22:28:51 +00:00
.menu-item {
width: 100%;
padding: 10px 12px;
background: transparent;
border: none;
display: flex;
align-items: center;
gap: 10px;
2025-11-03 21:57:35 +00:00
color: var(--text-primary);
2025-12-04 22:28:51 +00:00
font-size: 14px;
font-weight: 500;
border-radius: 8px;
cursor: pointer;
transition: background 0.2s;
}
.menu-item:hover {
background: var(--bg-primary);
}
.menu-item:active {
opacity: 0.7;
2025-11-03 21:57:35 +00:00
}
.menu-close-btn {
2025-12-04 22:28:51 +00:00
width: 24px;
height: 24px;
2025-11-03 21:57:35 +00:00
border-radius: 50%;
2025-12-04 22:28:51 +00:00
background: transparent;
2025-11-03 21:57:35 +00:00
color: var(--text-primary);
display: flex;
align-items: center;
justify-content: center;
border: none;
cursor: pointer;
2025-12-04 22:28:51 +00:00
padding: 0;
2025-11-03 21:57:35 +00:00
}
.menu-close-btn svg {
stroke: currentColor;
}
2025-12-04 22:28:51 +00:00
.menu-item svg {
stroke: currentColor;
flex-shrink: 0;
}
.menu-item.danger {
color: #FF3B30;
}
.menu-item.danger svg {
stroke: #FF3B30;
}
/* Edit modal styles */
.edit-menu-content {
background: var(--bg-secondary);
border-radius: 16px;
padding: 16px;
max-width: 90vw;
width: 400px;
max-height: 80vh;
2025-11-03 21:57:35 +00:00
display: flex;
flex-direction: column;
2025-12-04 22:28:51 +00:00
gap: 12px;
2025-11-03 20:35:01 +00:00
}
2025-12-04 22:28:51 +00:00
.edit-menu-header {
2025-11-03 20:35:01 +00:00
display: flex;
align-items: center;
2025-12-04 22:28:51 +00:00
justify-content: space-between;
}
.edit-menu-header h3 {
font-size: 18px;
font-weight: 600;
2025-11-03 20:35:01 +00:00
color: var(--text-primary);
2025-12-04 22:28:51 +00:00
margin: 0;
}
.edit-content-input {
width: 100%;
padding: 12px;
border: 1px solid var(--divider-color);
2025-11-03 20:35:01 +00:00
border-radius: 12px;
2025-12-04 22:28:51 +00:00
background: var(--bg-primary);
color: var(--text-primary);
font-size: 15px;
line-height: 1.5;
resize: none;
font-family: inherit;
2025-11-03 21:43:00 +00:00
}
2025-12-04 22:28:51 +00:00
.edit-menu-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
2025-11-03 20:35:01 +00:00
}
2025-12-04 22:28:51 +00:00
.edit-cancel-btn {
padding: 10px 16px;
border-radius: 8px;
background: var(--bg-primary);
color: var(--text-primary);
border: 1px solid var(--divider-color);
font-size: 14px;
font-weight: 500;
cursor: pointer;
2025-11-03 20:35:01 +00:00
}
2025-12-04 22:28:51 +00:00
.edit-save-btn {
padding: 10px 16px;
border-radius: 8px;
background: var(--button-accent);
color: white;
border: none;
font-size: 14px;
font-weight: 600;
cursor: pointer;
}
.edit-save-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
2025-11-03 20:35:01 +00:00
}
2025-11-03 21:57:35 +00:00
.report-modal-header {
padding: 16px;
border-bottom: 1px solid var(--divider-color);
display: flex;
align-items: center;
justify-content: space-between;
}
.report-modal-header h2 {
font-size: 18px;
font-weight: 600;
color: var(--text-primary);
}
.report-modal-body {
flex: 1;
padding: 16px;
2025-11-03 21:52:13 +00:00
}
2025-11-03 21:57:35 +00:00
.report-modal-body textarea {
2025-11-03 20:35:01 +00:00
width: 100%;
2025-11-03 21:57:35 +00:00
height: 200px;
2025-11-03 20:35:01 +00:00
padding: 12px;
border: 1px solid var(--border-color);
border-radius: 12px;
background: var(--bg-primary);
color: var(--text-primary);
font-size: 15px;
line-height: 1.5;
2025-11-03 21:57:35 +00:00
resize: none;
2025-11-03 22:41:34 +00:00
/* Убираем pointer-events чтобы клики работали */
2025-11-03 21:57:35 +00:00
}
.submit-btn {
padding: 8px 16px;
border-radius: 20px;
2025-11-03 22:03:30 +00:00
background: #1C1C1E;
2025-11-03 21:57:35 +00:00
color: white;
font-size: 14px;
font-weight: 600;
border: none;
cursor: pointer;
2025-11-03 22:41:34 +00:00
/* Убираем pointer-events чтобы клики работали */
2025-11-03 21:57:35 +00:00
}
.submit-btn:disabled {
opacity: 0.5;
2025-11-03 20:35:01 +00:00
}
2025-11-03 22:03:30 +00:00
[data-theme="dark"] .submit-btn {
background: #FFFFFF;
color: #000000;
}
[data-theme="dark"] .submit-btn:disabled {
opacity: 0.5;
}