454 lines
7.8 KiB
CSS
454 lines
7.8 KiB
CSS
:root {
|
|
/* Color definitions for light mode */
|
|
--button-color: rgb(233, 144, 0);
|
|
--button-hover: rgb(255, 191, 89);
|
|
--button-disabled: rgb(128, 88, 24);
|
|
--button-text: rgb(0,0,0);
|
|
--standard-background: rgb(54, 54, 54);
|
|
--element-background: rgb(42, 42, 42);
|
|
--element-border: rgb(27, 27, 27);
|
|
--text-color: rgb(255,255,255);
|
|
--secondary-text-color: rgb(27, 27, 27);
|
|
--card-color: rgb(255,255,255);
|
|
--alert-color: rgb(255,0,0);
|
|
}
|
|
|
|
/* Style all input fields */
|
|
|
|
.standard-button {
|
|
padding: 10px;
|
|
background-color: var(--button-color);
|
|
color: #000;
|
|
border-style: hidden;
|
|
border-radius: 5px;
|
|
font-size: medium;
|
|
}
|
|
|
|
.standard-button:hover {
|
|
background-color: var(--button-hover);
|
|
}
|
|
|
|
input {
|
|
padding: 8px;
|
|
border: 1px solid var(--element-border);
|
|
border-radius: 5px;
|
|
box-sizing: border-box;
|
|
background-color: var(--standard-background);
|
|
}
|
|
|
|
#login-window input {
|
|
width: 100%;
|
|
margin-top: 6px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
html * {
|
|
font-family:-apple-system, BlinkMacSystemFont, "SF Hello", "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
body, html {
|
|
min-height: 100%;
|
|
height: 100%;
|
|
width: 100%;
|
|
margin: 0px;
|
|
background-color: var(--standard-background);
|
|
}
|
|
|
|
body {
|
|
position: absolute;
|
|
}
|
|
|
|
#login-window {
|
|
background-color: var(--standard-background);
|
|
height: 100%;
|
|
width: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
display: table;
|
|
position: absolute;
|
|
}
|
|
|
|
#login-window-vertical-center {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
#login-window-inner {
|
|
background-color: var(--element-background);
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
width: 300px;
|
|
border-radius: 10px;
|
|
border-style: solid;
|
|
border-width: thin;
|
|
border-color: var(--element-border);
|
|
padding: 10px;
|
|
}
|
|
|
|
.login-buttons {
|
|
width: 100%;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
#login-error {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
#top-bar {
|
|
height: 50px;
|
|
background-color: var(--element-background);
|
|
padding: 0px;
|
|
z-index: 1;
|
|
width: 100%;
|
|
position: absolute;
|
|
}
|
|
|
|
#player-info {
|
|
position: absolute;
|
|
right: 8px;
|
|
height: 50px;
|
|
width: 205px;
|
|
display: grid;
|
|
align-items: center;
|
|
grid-template-columns: 120px 80px;
|
|
column-gap: 5px;
|
|
}
|
|
|
|
#player-name {
|
|
text-align: right;
|
|
grid-column: 1;
|
|
padding-right: 5px;
|
|
width: 120px;
|
|
}
|
|
|
|
#logout-button {
|
|
width: 80px;
|
|
height: 34px;
|
|
padding: 0px;
|
|
grid-column: 2;
|
|
}
|
|
|
|
#table-list-bar {
|
|
position: absolute;
|
|
width: 460px; /* 540px */
|
|
height: 40px;
|
|
top: 5px;
|
|
left: 10px;
|
|
display: grid;
|
|
grid-template-columns: 200px 120px 120px; /* 200px 30px 50px 120px 120px */
|
|
column-gap: 10px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-items: center;
|
|
}
|
|
|
|
#table-name-field {
|
|
width: 100%;
|
|
font-size: medium;
|
|
grid-column: 1;
|
|
}
|
|
|
|
#table-public-checkbox {
|
|
display: none; /* Remove in future */
|
|
grid-column: 2;
|
|
margin-left: 16px;
|
|
}
|
|
|
|
#table-public-label {
|
|
display: none; /* Remove in future */
|
|
grid-column: 3;
|
|
}
|
|
|
|
#create-table-button {
|
|
width: 120px;
|
|
grid-column: 2; /* 4 in future */
|
|
padding: 0px;
|
|
height: 34px;
|
|
}
|
|
|
|
#refresh-tables {
|
|
width: 120px;
|
|
grid-column: 3; /* 5 in future */
|
|
padding: 0px;
|
|
height: 34px;
|
|
}
|
|
|
|
|
|
#game-bar {
|
|
position: absolute;
|
|
width: 270px;
|
|
height: 40px;
|
|
top: 5px;
|
|
left: 10px;
|
|
display: none;
|
|
grid-template-columns: 120px 140px;
|
|
column-gap: 10px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-items: center;
|
|
}
|
|
|
|
#leave-table {
|
|
width: 120px;
|
|
grid-column: 1;
|
|
padding: 0px;
|
|
height: 34px;
|
|
}
|
|
|
|
#table-connected-label {
|
|
grid-column: 2;
|
|
width: 140px;
|
|
}
|
|
|
|
#main {
|
|
height: 100%;
|
|
max-height: 100%;
|
|
width: 100%;
|
|
overflow: scroll;
|
|
}
|
|
|
|
#main-spacer {
|
|
height: 50px;
|
|
position: relative;
|
|
top: 0px;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
#table-list {
|
|
margin: 20px;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
.table-row {
|
|
width: 100%;
|
|
height: 40px;
|
|
padding: 10px;
|
|
margin-top: 10px;
|
|
background-color: var(--element-background);
|
|
border-style: hidden;
|
|
border-radius: 5px;
|
|
font-size: medium;
|
|
display: grid;
|
|
grid-template-columns: 100px auto;
|
|
grid-template-rows: auto auto;
|
|
column-gap: 10px;
|
|
}
|
|
|
|
.table-join-btn {
|
|
padding: 10px;
|
|
width: 100px;
|
|
background-color: var(--button-color);
|
|
color: var(--button-text);
|
|
border-style: hidden;
|
|
border-radius: 5px;
|
|
font-size: medium;
|
|
grid-column: 1;
|
|
grid-row: 1 / span 2;
|
|
}
|
|
|
|
.table-join-btn:disabled,
|
|
.table-join-btn[disabled] {
|
|
background-color: var(--button-disabled);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.table-join-btn:hover:enabled {
|
|
background-color: var(--button-hover);
|
|
}
|
|
|
|
.table-title {
|
|
grid-column: 2;
|
|
grid-row: 1;
|
|
font-size: medium;
|
|
}
|
|
|
|
.table-subtitle {
|
|
grid-column: 2;
|
|
grid-row: 2;
|
|
font-size: small;
|
|
}
|
|
|
|
#table-players {
|
|
display: none;
|
|
margin-top: 10px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
width: 649px;
|
|
height: 409px;
|
|
grid-template-columns: 200px 71px 36px 35px 36px 71px 200px;
|
|
grid-template-rows: 111px 76px 35px 76px 111px;
|
|
column-gap: 0px;
|
|
row-gap: 0px;
|
|
align-items: center;
|
|
}
|
|
|
|
#action-bar-centering {
|
|
margin-top: 10px;
|
|
text-align: center;
|
|
width: 100%;
|
|
height: 40px;
|
|
}
|
|
|
|
#action-bar {
|
|
height: 40px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
display: inline-block;
|
|
}
|
|
|
|
#action-buttons {
|
|
grid-column: 7;
|
|
grid-row: 4 / span 2;
|
|
width: 200px;
|
|
height: 187px;
|
|
}
|
|
|
|
.action-button {
|
|
height: 100%;
|
|
padding-left: 16px;
|
|
padding-right: 16px;
|
|
}
|
|
|
|
.action-button-container {
|
|
height: 40px;
|
|
width: 160px;
|
|
margin-top: 10px;
|
|
margin-left: 40px;
|
|
}
|
|
|
|
#action-button-spacer {
|
|
height: 37px;
|
|
width: 100%;
|
|
background-color: var(--standard-background);
|
|
border: none;
|
|
}
|
|
|
|
.table-card {
|
|
height: 187px;
|
|
border-radius: 17px;
|
|
background-color: var(--element-background);
|
|
}
|
|
|
|
#table-player-card-bottom {
|
|
grid-column: 3 / span 3;
|
|
grid-row: 4 / span 2;
|
|
z-index: 2;
|
|
}
|
|
|
|
#table-player-card-left {
|
|
grid-column: 2 / span 2;
|
|
grid-row: 2 / span 3;
|
|
z-index: 1;
|
|
}
|
|
|
|
#table-player-card-top {
|
|
grid-column: 3 / span 3;
|
|
grid-row: 1 / span 2;
|
|
z-index: 4;
|
|
}
|
|
|
|
#table-player-card-right {
|
|
grid-column: 5 / span 2;
|
|
grid-row: 2 / span 3;
|
|
z-index: 3;
|
|
}
|
|
|
|
#table-player-info-bottom {
|
|
grid-column: 1 / span 2;
|
|
grid-row: 5;
|
|
font-size: large;
|
|
text-align: right;
|
|
margin-right: 15px;
|
|
margin-top: 50px;
|
|
}
|
|
|
|
#table-player-info-left {
|
|
grid-column: 1;
|
|
grid-row: 3;
|
|
font-size: large;
|
|
text-align: right;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
#table-player-info-top {
|
|
grid-column: 1 / span 2;
|
|
grid-row: 1;
|
|
font-size: large;
|
|
text-align: right;
|
|
margin-right: 15px;
|
|
margin-bottom: 50px;
|
|
}
|
|
|
|
#table-player-info-right {
|
|
grid-column: 7;
|
|
grid-row: 3;
|
|
font-size: large;
|
|
margin-left: 15px;
|
|
}
|
|
|
|
.player-connection-state {
|
|
font-size: x-small;
|
|
color: var(--alert-color);
|
|
}
|
|
|
|
#player-cards {
|
|
display: none;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
width: 923px;
|
|
grid-template-columns: 111px 111px 111px 111px 111px 111px 111px 111px;
|
|
column-gap: 5px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.player-card {
|
|
width: 111px;
|
|
height: 191px;
|
|
border: 2px solid var(--standard-background);
|
|
background-color: var(--element-background);
|
|
border-radius: 17px;
|
|
transition-duration: 0.2s;
|
|
}
|
|
|
|
.player-card:disabled,
|
|
.player-card[disabled] {
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.player-card:hover:enabled {
|
|
border-color: var(--button-hover);
|
|
}
|
|
|
|
#player-card1 {
|
|
grid-column: 1;
|
|
}
|
|
|
|
#player-card2 {
|
|
grid-column: 2;
|
|
}
|
|
|
|
#player-card3 {
|
|
grid-column: 3;
|
|
}
|
|
|
|
#player-card4 {
|
|
grid-column: 4;
|
|
}
|
|
|
|
#player-card5 {
|
|
grid-column: 5;
|
|
}
|
|
|
|
#player-card6 {
|
|
grid-column: 6;
|
|
}
|
|
|
|
#player-card7 {
|
|
grid-column: 7;
|
|
}
|
|
|
|
#player-card8 {
|
|
grid-column: 8;
|
|
} |