Files
DndGamePlayer/app/renderer/shared/sessionTimer/SessionTimerOverlay.module.css
T
Ivan Fontosh db1168a46c feat(control): таймер сессии поверх сцены
Отдельное окно countdown с «Показать игрокам»; на превью — move/resize/rotate, на презентации тот же layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 16:51:56 +08:00

107 lines
1.8 KiB
CSS

.root {
position: absolute;
z-index: 52;
pointer-events: none;
overflow: visible;
}
.frame {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.28);
background: rgba(12, 14, 20, 0.82);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
color: rgba(255, 255, 255, 0.96);
font-weight: 800;
font-variant-numeric: tabular-nums;
letter-spacing: 0.04em;
pointer-events: none;
user-select: none;
}
.frameEditable {
pointer-events: auto;
cursor: move;
outline: 1px solid rgba(245, 197, 66, 0.55);
}
.expired {
border-color: rgba(229, 72, 77, 0.85);
background: rgba(60, 12, 16, 0.88);
color: #ffb4b4;
}
.display {
padding: 0 10%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.handle {
position: absolute;
width: 12px;
height: 12px;
border-radius: 2px;
border: 1px solid rgba(245, 197, 66, 0.9);
background: rgba(20, 22, 28, 0.95);
padding: 0;
pointer-events: auto;
z-index: 2;
}
.handle_nw {
left: -6px;
top: -6px;
cursor: nwse-resize;
}
.handle_ne {
right: -6px;
top: -6px;
cursor: nesw-resize;
}
.handle_sw {
left: -6px;
bottom: -6px;
cursor: nesw-resize;
}
.handle_se {
right: -6px;
bottom: -6px;
cursor: nwse-resize;
}
.rotateHandle {
position: absolute;
left: 50%;
top: -28px;
width: 12px;
height: 12px;
margin-left: -6px;
border-radius: 50%;
border: 1px solid rgba(245, 197, 66, 0.9);
background: rgba(20, 22, 28, 0.95);
padding: 0;
cursor: grab;
pointer-events: auto;
z-index: 2;
}
.rotateHandle::after {
content: '';
position: absolute;
left: 50%;
top: 12px;
width: 1px;
height: 14px;
margin-left: -0.5px;
background: rgba(245, 197, 66, 0.7);
}