Skip to content
Merged
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
20 changes: 20 additions & 0 deletions programs/app/css/display.css
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,26 @@
scrollbar-width: none;
}

/*
* Center the initiative cards when they fit within
* the Player Display.
*
* As additional combatants are added, the group
* expands outward from the center of the screen.
*
* When the cards become wider than the available
* display area, the automatic margins collapse and
* normal horizontal scrolling is preserved.
*/

.initiative-track > .initiative-card:first-child {
margin-left: auto;
}

.initiative-track > .initiative-card:last-child {
margin-right: auto;
}

.initiative-track::-webkit-scrollbar {
display: none;
}
Expand Down