138 lines
2.6 KiB
CSS
138 lines
2.6 KiB
CSS
.PlayerList {
|
|
display: flex;
|
|
position: relative;
|
|
padding: 0.5em;
|
|
user-select: none;
|
|
flex-direction: column;
|
|
margin: 0.25rem 0.25rem 0.25rem 0;
|
|
}
|
|
|
|
.PlayerList .Name {
|
|
flex-grow: 1;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.PlayerList .NoNetwork {
|
|
display: flex;
|
|
justify-self: flex-end;
|
|
width: 1em;
|
|
height: 1em;
|
|
background-image: url("./assets/no-network.png");
|
|
background-size: contain;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.PlayerList .Unselected {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Player name in the Unselected list... */
|
|
.PlayerList .Unselected > div:nth-child(2) > div > div:first-child {
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.PlayerList .Unselected > div:nth-child(2) {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.PlayerList .Unselected > div:nth-child(2) > div {
|
|
justify-content: flex-end;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
margin: 0.25rem;
|
|
padding: 0.25rem;
|
|
max-width: 8rem;
|
|
background-color: #eee;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
.PlayerList .Unselected .Self {
|
|
border: 1px solid black;
|
|
}
|
|
|
|
.PlayerList .PlayerSelector .PlayerColor {
|
|
width: 1em;
|
|
height: 1em;
|
|
}
|
|
|
|
.PlayerList .PlayerSelector {
|
|
display: inline-flex;
|
|
flex-wrap: wrap;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.PlayerList .PlayerSelector.MuiList-padding {
|
|
padding: 0;
|
|
}
|
|
|
|
.PlayerList .PlayerSelector .MuiTypography-body1 {
|
|
font-size: 0.8rem;
|
|
/* white-space: nowrap;*/
|
|
}
|
|
|
|
.PlayerList .PlayerSelector .MuiTypography-body2 {
|
|
font-size: 0.7rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.PlayerList .PlayerSelector .PlayerEntry {
|
|
display: flex;
|
|
flex-direction: column;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
flex: 1 1 0px;
|
|
align-items: flex-start;
|
|
border: 1px solid rgba(0,0,0,0);
|
|
border-radius: 0.25em;
|
|
min-width: 11em;
|
|
padding: 0 1px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.PlayerList .PlayerSelector .PlayerEntry > div:first-child {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
align-self: stretch;
|
|
margin-bottom: 0.25em;
|
|
}
|
|
|
|
.PlayerList .PlayerEntry[data-selectable=true]:hover {
|
|
border-color: rgba(0,0,0,0.5);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.PlayerList .Players .PlayerToggle {
|
|
min-width: 5em;
|
|
display: inline-flex;
|
|
align-items: flex-end;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.PlayerList .PlayerName {
|
|
padding: 0.5em;
|
|
}
|
|
|
|
.PlayerList .Players > * {
|
|
width: 100%;
|
|
}
|
|
|
|
.PlayerList .Players .nameInput {
|
|
flex-grow: 1;
|
|
}
|
|
|