feat(client): GM roster, player keys and token panel (#74)

This commit is contained in:
2026-11-21 00:38:52 +01:00
parent e254a0e0f3
commit 12c2e88f99
7 changed files with 1352 additions and 0 deletions
+130
View File
@@ -141,3 +141,133 @@ body {
#badge[data-state='offline'] {
color: #ff7b72;
}
/* GM panels (T11, #74): a right-hand column over the canvas. The root is hidden for players and
for every phase outside the table; secrets live only inside it. */
#panels {
position: absolute;
top: 40px;
right: 8px;
bottom: 8px;
width: min(330px, 44vw);
overflow: auto;
pointer-events: none;
}
#gm-panels {
display: flex;
flex-direction: column;
gap: 10px;
padding: 10px;
border-radius: 8px;
background: rgb(10 10 12 / 88%);
border: 1px solid #333;
pointer-events: auto;
font: 12px/1.4 ui-monospace, monospace;
}
#gm-panels h2,
#gm-panels h3,
#gm-panels h4 {
margin: 0;
font-weight: 600;
}
#gm-panels h2 {
font-size: 14px;
}
#gm-panels h3 {
font-size: 12px;
opacity: 0.8;
}
#gm-roster-list,
#gm-token-list {
display: flex;
flex-direction: column;
gap: 4px;
margin: 6px 0;
padding: 0;
list-style: none;
}
#gm-roster-list li,
#gm-token-list li {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
padding: 4px;
border-radius: 4px;
background: rgb(255 255 255 / 4%);
}
#gm-token-list li[data-selected='true'] {
outline: 1px solid #7ee787;
}
#gm-roster-state {
opacity: 0.6;
}
.gm-key {
flex-basis: 100%;
color: #e3b341;
word-break: break-all;
}
#gm-panels button {
font: inherit;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid #666;
background: #222;
color: inherit;
}
#gm-panels input,
#gm-panels select {
font: inherit;
padding: 3px 5px;
border-radius: 4px;
border: 1px solid #555;
background: #111;
color: inherit;
width: 100%;
box-sizing: border-box;
}
#gm-panels input[type='checkbox'] {
width: auto;
}
#gm-token-create,
#gm-token-editor {
display: flex;
flex-direction: column;
gap: 4px;
margin: 6px 0;
}
#gm-token-create label,
#gm-token-editor label {
opacity: 0.7;
}
#gm-key-status,
#gm-token-error {
margin: 4px 0 0;
word-break: break-word;
color: #e3b341;
}
#gm-token-error {
color: #ff8a8a;
}
#gm-token-meta {
flex-basis: 100%;
opacity: 0.7;
word-break: break-word;
}