114 lines
2.6 KiB
CSS
114 lines
2.6 KiB
CSS
/* Resi Cues — scoped under its tile via [data-module="resi-cues"], styled with
|
|||
|
|
the shell's CSS variables only.
|
||
|
|
|
||
|
|
The countdown is sized in cqmin so it fills whatever the tile is given: the
|
||
|
|
same module is a small strip on a busy dashboard and a wall panel on its own. */
|
||
|
|
|
||
|
|
[data-module="resi-cues"] {
|
||
|
|
container-type: size;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-module="resi-cues"] .resi-wrap {
|
||
|
|
position: absolute;
|
||
|
|
inset: 0;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 0.35em;
|
||
|
|
padding: 2%;
|
||
|
|
text-align: center;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-module="resi-cues"] .resi-label {
|
||
|
|
color: var(--muted);
|
||
|
|
font-size: clamp(0.6rem, 5cqmin, 1rem);
|
||
|
|
font-weight: 700;
|
||
|
|
letter-spacing: 0.14em;
|
||
|
|
line-height: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-module="resi-cues"] .resi-cue {
|
||
|
|
color: var(--text);
|
||
|
|
font-size: clamp(0.85rem, 11cqmin, 2.6rem);
|
||
|
|
font-weight: 650;
|
||
|
|
line-height: 1.05;
|
||
|
|
max-width: 100%;
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-module="resi-cues"] .resi-count {
|
||
|
|
color: var(--accent);
|
||
|
|
font-size: clamp(1.4rem, 30cqmin, 9rem);
|
||
|
|
font-weight: 700;
|
||
|
|
font-variant-numeric: tabular-nums;
|
||
|
|
letter-spacing: 0.01em;
|
||
|
|
line-height: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-module="resi-cues"] .resi-count.is-soon { color: var(--warn); }
|
||
|
|
|
||
|
|
/* Held rather than counting: the digits are still true, they just are not moving. */
|
||
|
|
[data-module="resi-cues"] .resi-count.is-held,
|
||
|
|
[data-module="resi-cues"] .resi-foot-item.is-held {
|
||
|
|
color: var(--muted);
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-module="resi-cues"] .resi-foot {
|
||
|
|
display: flex;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 0.2em 0.9em;
|
||
|
|
color: var(--muted);
|
||
|
|
font-size: clamp(0.6rem, 5cqmin, 0.95rem);
|
||
|
|
font-variant-numeric: tabular-nums;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-module="resi-cues"] .resi-list {
|
||
|
|
list-style: none;
|
||
|
|
margin: 0.4em 0 0;
|
||
|
|
padding: 0.4em 0 0;
|
||
|
|
width: 100%;
|
||
|
|
max-width: 28em;
|
||
|
|
border-top: 1px solid var(--border);
|
||
|
|
overflow-y: auto;
|
||
|
|
font-size: clamp(0.6rem, 4.5cqmin, 0.95rem);
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-module="resi-cues"] .resi-list-row {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
gap: 1em;
|
||
|
|
padding: 0.12em 0.2em;
|
||
|
|
color: var(--text);
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-module="resi-cues"] .resi-list-row.is-past { color: var(--muted); }
|
||
|
|
|
||
|
|
[data-module="resi-cues"] .resi-list-row.is-next {
|
||
|
|
color: var(--accent);
|
||
|
|
font-weight: 650;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-module="resi-cues"] .resi-list-at { font-variant-numeric: tabular-nums; }
|
||
|
|
|
||
|
|
[data-module="resi-cues"] .resi-list-name {
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-module="resi-cues"] .resi-empty {
|
||
|
|
position: absolute;
|
||
|
|
inset: 0;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
padding: 6%;
|
||
|
|
color: var(--muted);
|
||
|
|
text-align: center;
|
||
|
|
}
|