Spaces:
Sleeping
Sleeping
File size: 1,072 Bytes
3568151 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
.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);
} |