Add chess (Oh my gosh big commit)

This commit is contained in:
jheaps
2025-03-27 13:54:07 -06:00
parent 2edc40fb99
commit fbed5ae789
41 changed files with 1943 additions and 71 deletions
+40
View File
@@ -0,0 +1,40 @@
#chessBoard {
margin: 2vw auto;
width: 60vw;
height: 60vw;
display: grid;
grid-template-columns: repeat(8, 1fr);
grid-template-rows: repeat(8, 1fr);
border: 0px;
}
.chessSquare {
background-color: inherit;
position: relative;
}
.chessSquare.light {
background-color: #ccc;
}
.chessSquare.dark {
background-color: #656770;
}
.chessPiece {
width: 90%;
height: 90%;
display: block;
margin: auto;
}
.chessSquare.selected {
border: 4px solid red;
box-sizing: border-box;
}
.chessSquare.legal {
border: 4px dashed red;
box-sizing: border-box;
cursor: pointer;
}