Files
DndGamePlayer/app/renderer/shared/ui/Controls.module.css
T
Ivan Fontosh cfa3959fb3 feat(scenes): rich scene descriptions and control viewer window
Add TipTap editing in the editor and an Electron window on the control panel to read the current scene description.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-15 09:49:40 +08:00

75 lines
1.5 KiB
CSS

.button {
height: 34px;
padding: 0 14px;
border-radius: var(--radius-sm);
border: 1px solid var(--stroke);
background: var(--panel);
cursor: pointer;
position: relative;
}
.button:disabled {
cursor: not-allowed;
opacity: 0.45;
}
.disabledTipHost {
display: inline-flex;
vertical-align: middle;
cursor: not-allowed;
}
.buttonPrimary {
border: 1px solid var(--accent-border);
background: var(--accent-fill-solid);
}
.iconOnly {
min-width: 38px;
padding: 0 8px;
}
.tooltipTop {
position: fixed;
transform: translate(-50%, calc(-100% - 8px));
padding: 6px 10px;
border-radius: var(--radius-xs);
font-size: var(--text-xs);
font-weight: 600;
color: rgba(255, 255, 255, 0.95);
background: var(--color-tooltip-bg);
border: 1px solid var(--stroke-2);
box-shadow: var(--shadow-tooltip);
pointer-events: none;
z-index: var(--z-tooltip);
white-space: nowrap;
}
.tooltipBottomLeft {
position: fixed;
transform: translate(-100%, 8px);
padding: 6px 10px;
border-radius: var(--radius-xs);
font-size: var(--text-xs);
font-weight: 600;
line-height: 1.35;
color: rgba(255, 255, 255, 0.95);
background: var(--color-tooltip-bg);
border: 1px solid var(--stroke-2);
box-shadow: var(--shadow-tooltip);
pointer-events: none;
z-index: var(--z-tooltip);
max-width: min(320px, calc(100vw - 16px));
white-space: normal;
}
.input {
height: 34px;
width: 100%;
padding: 0 12px;
border-radius: var(--radius-sm);
border: 1px solid var(--stroke);
background: var(--color-overlay-dark-3);
outline: none;
}