nakama/frontend/src/components/PostMenu.css

160 lines
2.7 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-11-03 20:35:01 +00:00
background: var(--bg-secondary);
2025-11-03 22:17:25 +00:00
z-index: 999; /* Выше навигации (50) */
2025-11-03 21:57:35 +00:00
display: flex;
flex-direction: column;
padding: 16px;
2025-11-03 22:03:30 +00:00
pointer-events: all;
touch-action: none;
2025-11-03 22:17:25 +00:00
overflow: hidden;
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);
z-index: 9999;
display: flex;
flex-direction: column;
pointer-events: all;
touch-action: none;
2025-11-03 21:57:35 +00:00
}
.menu-header {
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 16px;
border-bottom: 1px solid var(--divider-color);
}
.menu-header h2 {
font-size: 18px;
font-weight: 600;
color: var(--text-primary);
}
.menu-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;
2025-11-03 22:03:30 +00:00
pointer-events: all;
2025-11-03 21:57:35 +00:00
}
.menu-close-btn svg {
stroke: currentColor;
}
.menu-items {
padding-top: 16px;
display: flex;
flex-direction: column;
gap: 8px;
2025-11-03 22:03:30 +00:00
pointer-events: all;
touch-action: auto;
2025-11-03 20:35:01 +00:00
}
.menu-item {
width: 100%;
2025-11-03 21:52:13 +00:00
padding: 16px;
2025-11-03 21:57:35 +00:00
background: var(--bg-primary);
2025-11-03 21:52:13 +00:00
border: none;
2025-11-03 20:35:01 +00:00
display: flex;
align-items: center;
gap: 12px;
color: var(--text-primary);
font-size: 16px;
font-weight: 500;
border-radius: 12px;
2025-11-03 21:43:00 +00:00
cursor: pointer;
2025-11-03 22:03:30 +00:00
pointer-events: all;
touch-action: auto;
2025-11-03 21:43:00 +00:00
}
.menu-item svg {
stroke: currentColor;
2025-11-03 20:35:01 +00:00
}
.menu-item:active {
2025-11-03 21:57:35 +00:00
opacity: 0.7;
transform: scale(0.98);
2025-11-03 20:35:01 +00:00
}
.menu-item.danger {
color: #FF3B30;
}
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:03:30 +00:00
pointer-events: all;
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:03:30 +00:00
pointer-events: all;
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;
}