|
|
|
/* Styles for top-level component */
|
|
|
|
.top-level-component .game-boards-container {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.top-level-component .game-boards-container .game-board {
|
|
|
|
margin-right: 50px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.game-board-component .grid-container .grid-row {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.game-board-component .grid-container .grid-row .label {
|
|
|
|
margin-right: 5px;
|
|
|
|
padding-top: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.shipBtn{
|
|
|
|
background-color: #327da8;
|
|
|
|
color: white;
|
|
|
|
padding: 5px 12px;
|
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
|
|
|
display: inline-block;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Styles for the various grid cell states. */
|
|
|
|
|
|
|
|
.game-board-cell-component {
|
|
|
|
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
border: 1px solid grey;
|
|
|
|
}
|
|
|
|
|
|
|
|
.game-board-cell-component.available {
|
|
|
|
background: #327da8;
|
|
|
|
}
|
|
|
|
|
|
|
|
.game-board-cell-component.available:hover {
|
|
|
|
background: #3261a8;
|
|
|
|
}
|
|
|
|
|
|
|
|
.game-board-cell-component.disabled {
|
|
|
|
background: #cccccc;
|
|
|
|
}
|
|
|
|
|
|
|
|
.game-board-cell-component.disabled:hover {
|
|
|
|
background: #bbbbbb;
|
|
|
|
}
|
|
|
|
|
|
|
|
.game-board-cell-component.ship {
|
|
|
|
background: #414141;
|
|
|
|
}
|
|
|
|
|
|
|
|
.game-board-cell-component.damaged {
|
|
|
|
background: #dd0000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.game-board-cell-component.sunk {
|
|
|
|
background: #000000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.game-board-cell-component.missed {
|
|
|
|
background: #ffbbbb;
|
|
|
|
}
|
|
|
|
|
|
|
|
.game-board-cell-component.ghost {
|
|
|
|
background: #507090;
|
|
|
|
}
|
|
|
|
|
|
|
|
.column_labels {
|
|
|
|
display: flex;
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-left: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.column_labels .label {
|
|
|
|
width: 42px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
|
|
|
|
text-align:center;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.top-level-component {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.top-level-component .instructions {
|
|
|
|
margin: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.app-scoreboard-component {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.game-player-change-container, .game-choose-ships-container {
|
|
|
|
height: calc(40px * 9);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.playerBtn {
|
|
|
|
background-color: #327da8;
|
|
|
|
color: white;
|
|
|
|
padding: 5px 12px;
|
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
|
|
|
display: inline-block;
|
|
|
|
font-size: 12px;
|
|
|
|
margin-top: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fleet-label {
|
|
|
|
text-align: center;
|
|
|
|
margin: 20px;
|
|
|
|
}
|
|
|
|
|