musical-chess / src /styles /ChessSquare.css
Maximus Powers
final
3568151
.chess-square {
position: absolute;
cursor: pointer;
transition: all 0.2s ease;
border-radius: 2px;
}
.chess-square.light {
background-color: #f0d9b5;
}
.chess-square.dark {
background-color: #b58863;
}
.chess-square.selected {
background-color: #ff6b6b !important;
box-shadow: inset 0 0 0 3px rgba(255, 107, 107, 0.8);
}
.chess-square.legal-move {
background-color: rgba(144, 238, 144, 0.6) !important;
}
.chess-square.drop-target {
background-color: rgba(255, 255, 0, 0.4) !important;
}
.chess-square:hover {
filter: brightness(1.1);
}
.piece-container {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
cursor: grab;
}
.piece-container:active {
cursor: grabbing;
}
.legal-move-indicator {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 16px;
height: 16px;
background-color: rgba(0, 128, 0, 0.8);
border-radius: 50%;
pointer-events: none;
}
.chess-square.legal-move .legal-move-indicator {
background-color: rgba(0, 80, 0, 0.9);
}