255 lines
3.9 KiB
CSS
Executable File
255 lines
3.9 KiB
CSS
Executable File
.Board {
|
|
display: flex;
|
|
position: absolute;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
height: 100%;
|
|
justify-content: right;
|
|
}
|
|
|
|
.Display {
|
|
display: inline-block;
|
|
position: absolute;
|
|
}
|
|
|
|
.PlayerColor {
|
|
position: relative;
|
|
top: -0.25em;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 1em;
|
|
height: 1em;
|
|
padding: 0.125em;
|
|
margin: 0 0.25em;
|
|
border-radius: 0.625em;
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
}
|
|
|
|
.PlayerColor > div {
|
|
font-weight: bold;
|
|
overflow: hidden;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.Cards {
|
|
display: inline-block;
|
|
position: absolute;
|
|
text-align: right;
|
|
vertical-align: bottom;
|
|
padding: 0.5em;
|
|
box-sizing: border-box;
|
|
max-height: 100%;
|
|
max-width: 100%;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.Stack {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.Stack:not(:first-child) {
|
|
margin-left: -3em;
|
|
transition: margin-left 1s ease-in-out 0.25s;
|
|
}
|
|
|
|
.Stack > * {
|
|
transition: margin-left 1s ease-in-out 0.25s, margin-right 1s ease-in-out 0.25s;
|
|
}
|
|
|
|
.Development:hover,
|
|
.Placard:hover,
|
|
.Resource:hover {
|
|
filter: brightness(150%);
|
|
}
|
|
|
|
.Game {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
box-sizing: border-box;
|
|
width: 40vw;
|
|
max-height: 100vh;
|
|
overflow: hidden;
|
|
min-width: 20em;
|
|
z-index: 100;
|
|
padding: 0.5em;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.Game > * {
|
|
/* for Firefox */
|
|
min-height: 0;
|
|
}
|
|
|
|
.Game > *:not(:last-child) {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.lobby {
|
|
width: calc(100vw - 1em);
|
|
}
|
|
|
|
.Chat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
padding: 0.5em;
|
|
}
|
|
|
|
.Chat > * {
|
|
/* for Firefox */
|
|
min-height: 0;
|
|
}
|
|
|
|
.Chat #ChatList {
|
|
flex: 1;
|
|
overflow: auto;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
.Players {
|
|
padding: 0.5em;
|
|
user-select: none;
|
|
}
|
|
|
|
.Players .PlayerSelector {
|
|
border: 1px solid rgba(0,0,0,0);
|
|
border-radius: 0.5em;
|
|
}
|
|
|
|
.Players .PlayerSelector[data-selectable=true]:hover {
|
|
border-color: rgba(0,0,0,0.5);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.PlayerName {
|
|
padding: 0.5em;
|
|
}
|
|
|
|
.Players > * {
|
|
width: 100%;
|
|
}
|
|
|
|
.Players .nameInput {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.Stack > *:not(:first-child) {
|
|
margin-left: -4.5em;
|
|
}
|
|
|
|
.Hand {
|
|
min-height: calc(7.2em + 0.5em);
|
|
}
|
|
|
|
.Hand:hover .Stack:hover > *:not(:first-child) {
|
|
margin-left: -2em;
|
|
}
|
|
|
|
.Hand:hover .Stack:hover:not(:last-child) > *:last-child {
|
|
margin-right: 3em;
|
|
}
|
|
|
|
.Placard {
|
|
position: relative;
|
|
width: 9.4em;
|
|
height: 11.44em;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
margin: 0.25em;
|
|
display: inline-block;
|
|
}
|
|
|
|
.Development {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 4.9em;
|
|
height: 7.2em;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
margin: 0.25em;
|
|
}
|
|
|
|
.Resource {
|
|
position: relative;
|
|
width: 4.9em;
|
|
height: 7.2em;
|
|
display: inline-block;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
margin: 0.25em;
|
|
}
|
|
|
|
.Action {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-evenly;
|
|
background-color: rgba(16, 16, 16, 0.25);
|
|
padding: 0.25em;
|
|
}
|
|
|
|
button {
|
|
margin: 0.25em;
|
|
background-color: white;
|
|
border: 1px solid black !important;
|
|
}
|
|
|
|
.Error {
|
|
display: flex;
|
|
position: absolute;
|
|
top: calc(50vh - 1.5em);
|
|
left: 0px;
|
|
right: 0px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: yellow;
|
|
text-align: left;
|
|
font-size: 12pt;
|
|
padding: 1em;
|
|
}
|
|
|
|
.Message {
|
|
display: inline;
|
|
justify-content: left;
|
|
background-color: rgba(224, 224, 224);
|
|
text-align: left;
|
|
font-size: 12pt;
|
|
padding: 1em;
|
|
user-select: none;
|
|
}
|
|
|
|
.Message div {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.PlayerName {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.PlayerName > .nameInput {
|
|
margin-right: 1em;
|
|
flex: 1;
|
|
max-width: 30em;
|
|
}
|
|
|
|
.PlayerName > Button {
|
|
background: lightblue;
|
|
}
|
|
|
|
.Statistics > div:nth-child(2) {
|
|
display: flex;
|
|
flex-direction: row;
|
|
border: 1px solid black;
|
|
}
|
|
|
|
.Statistics div:nth-child(2) div {
|
|
padding: 0.25em 0.5em;
|
|
}
|