52 lines
1 KiB
CSS
52 lines
1 KiB
CSS
body {
|
|
margin: 0;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.App {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.chess-board {
|
|
text-align: center;
|
|
border: 1px solid #e5e5e5;
|
|
background-color: #f5f5f5;
|
|
color: #333;
|
|
transform: perspective(12cm) rotateX(18deg);
|
|
}
|
|
|
|
.chess-board td {
|
|
width: 60px;
|
|
height: 60px;
|
|
}
|
|
|
|
.chess-board td.icon-cell {
|
|
font-size: 2em;
|
|
}
|
|
|
|
.chess-board td.icon-cell .icon {
|
|
background-color: white;
|
|
border-radius: 0.2em;
|
|
}
|
|
|
|
.chess-board tr:nth-child(n) td.icon-cell:nth-child(n):hover {
|
|
background-color: #a7bdd5;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chess-board tr:nth-child(n) td.icon-cell.selected:nth-child(n) {
|
|
background-color: #809ebf;
|
|
}
|
|
|
|
.chess-board tr:nth-child(2n) td.icon-cell:nth-child(2n),
|
|
.chess-board tr:nth-child(2n + 1) td.icon-cell:nth-child(2n + 1) {
|
|
background-color: #e5e5e5;
|
|
}
|
|
.chess-board tr:nth-child(2n + 1) td.icon-cell:nth-child(2n),
|
|
.chess-board tr:nth-child(2n) td.icon-cell:nth-child(2n + 1) {
|
|
background-color: #c49d9d;
|
|
}
|