You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

69 lines
1.7 KiB

#pieces-area {
width: 100%;
height: 100%;
position: absolute;
}
#pieces-area > div {
width: 80px;
position: absolute;
aspect-ratio: 1;
background-position: center;
background-size: 70px;
background-repeat: no-repeat;
transition-duration: 0.5s;
transition-property: top, left;
transition-timing-function: cubic-bezier(0.62, 0.055, 0.28, 0.965);
z-index: 1;
border-radius: 6px;
cursor: pointer;
}
#pieces-area > div.selected {
box-shadow: 0 0 15px rgb(0, 255, 242);
transition-property: top, left, box-shadow;
}
#pieces-area > div.white.basic {
background-image: url("../resources/pieces/white-basic.svg");
}
#pieces-area > div.white.queen {
background-image: url("../resources/pieces/white-queen.svg");
}
#pieces-area > div.black.basic {
background-image: url("../resources/pieces/black-basic.svg");
}
#pieces-area > div.black.queen {
background-image: url("../resources/pieces/black-queen.svg");
}
#game #playfield {
background: rgb(180, 124, 52);
display: flex;
box-shadow: 0 0 100px rgba(0, 0, 0, 0.7);
padding: 5px;
border-radius: 8px;
width: -moz-fit-content;
width: fit-content;
position: relative;
}
#game #playfield .row {
display: inline-block;
}
#game #playfield .row .tile {
border-radius: 6px;
margin: 2px;
margin-bottom: 2px;
margin-top: 4px;
width: 80px;
aspect-ratio: 1;
background: black;
}
#game #playfield .row .tile:nth-child(odd) {
background: white;
box-shadow: -10px -10px 25px inset rgba(0, 0, 0, 0.4);
}
#game #playfield .row:nth-child(odd) .tile {
background: white;
box-shadow: -10px -10px 25px inset rgba(0, 0, 0, 0.4);
}
#game #playfield .row:nth-child(odd) .tile:nth-child(odd) {
background: black;
}/*# sourceMappingURL=game.css.map */