2026-10-14 20:12:23 -04:00
|
|
|
/* Companion Buttons — scoped under its tile via [data-module="companion-buttons"],
|
|
|
|
|
styled with the shell's CSS variables only. The button pictures carry
|
|
|
|
|
Companion's own colours; everything around them follows the theme. */
|
|
|
|
|
|
|
|
|
|
[data-module="companion-buttons"] .cb-root {
|
|
|
|
|
position: absolute;
|
|
|
|
|
inset: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
padding: 6px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-module="companion-buttons"] .cb-grid {
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(var(--cb-cols, 1), var(--cb-size, 64px));
|
2026-10-15 11:48:24 -04:00
|
|
|
grid-auto-rows: var(--cb-size, 64px);
|
2026-10-14 20:12:23 -04:00
|
|
|
gap: 6px;
|
|
|
|
|
align-content: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-15 11:48:24 -04:00
|
|
|
[data-module="companion-buttons"] .cb-grid[hidden] { display: none; }
|
2026-10-14 20:12:23 -04:00
|
|
|
|
|
|
|
|
[data-module="companion-buttons"] .cb-face {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: var(--cb-size, 64px);
|
|
|
|
|
height: var(--cb-size, 64px);
|
|
|
|
|
border-radius: 8%;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background: color-mix(in srgb, var(--text) 6%, transparent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-module="companion-buttons"] .cb-img {
|
|
|
|
|
display: block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
user-select: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-module="companion-buttons"] .cb-face.is-waiting {
|
|
|
|
|
animation: cb-wait 1.4s ease-in-out infinite alternate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes cb-wait {
|
|
|
|
|
from { opacity: 0.35; }
|
|
|
|
|
to { opacity: 0.8; }
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-15 11:48:24 -04:00
|
|
|
/* A ticked place with no button on it any more. */
|
|
|
|
|
[data-module="companion-buttons"] .cb-face.is-empty {
|
2026-10-14 20:12:23 -04:00
|
|
|
background: transparent;
|
|
|
|
|
outline: 1px dashed var(--border);
|
|
|
|
|
outline-offset: -1px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Companion gone: the last pictures stay, faded, so nobody reads them as live. */
|
2026-10-15 11:48:24 -04:00
|
|
|
[data-module="companion-buttons"] .cb-root.is-offline .cb-face {
|
2026-10-14 20:12:23 -04:00
|
|
|
opacity: 0.3;
|
|
|
|
|
filter: grayscale(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-module="companion-buttons"] .cb-banner {
|
|
|
|
|
flex: none;
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
padding: 3px 8px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
background: color-mix(in srgb, var(--danger) 18%, transparent);
|
|
|
|
|
color: var(--danger);
|
|
|
|
|
font-size: 0.75rem;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
letter-spacing: 0.06em;
|
|
|
|
|
text-align: center;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-module="companion-buttons"] .cb-banner[hidden] { display: none; }
|
|
|
|
|
|
|
|
|
|
[data-module="companion-buttons"] .cb-empty {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-size: 0.85rem;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-15 11:48:24 -04:00
|
|
|
[data-module="companion-buttons"] .cb-empty[hidden] { display: none; }
|
2026-10-14 20:12:23 -04:00
|
|
|
|
2026-10-15 11:48:24 -04:00
|
|
|
/* Choosing: the whole page is shown and clickable; buttons this tile leaves out are faded. */
|
|
|
|
|
[data-module="companion-buttons"] .cb-root.is-choosing .cb-face {
|
2026-10-14 20:12:23 -04:00
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-15 11:48:24 -04:00
|
|
|
[data-module="companion-buttons"] .cb-root.is-choosing .cb-face:hover {
|
|
|
|
|
outline: 2px solid var(--accent);
|
2026-10-14 20:12:23 -04:00
|
|
|
outline-offset: -2px;
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-15 11:48:24 -04:00
|
|
|
[data-module="companion-buttons"] .cb-root.is-choosing .cb-face.is-off {
|
|
|
|
|
opacity: 0.25;
|
|
|
|
|
filter: grayscale(1);
|
2026-10-14 20:12:23 -04:00
|
|
|
}
|