Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/style/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,33 @@
pointer-events: none;
}

/*
* While a full screen view is open the HUD is just clutter sitting behind it,
* so fade it well back. This keys off each view's own open state rather than a
* class we would have to set and clear from JS, so no close path can leave the
* HUD stuck dim.
*/
#unit-hover-panel,
#bottompanel {
transition: opacity 0.3s ease-in-out;
}

#ui:has(#dash.active),
#ui:has(#scoreboard:not(.hide)),
#ui:has(#musicplayerwrapper:not(.hide)) {
#unit-hover-panel,
#bottompanel {
opacity: 0.12;
}
}

@media (prefers-reduced-motion: reduce) {
#unit-hover-panel,
#bottompanel {
transition: none;
}
}

#rightpanel {
position: fixed;
right: 0;
Expand Down