mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Correct square colours and ♚/♛ positions
This commit is contained in:
parent
53c8c7498f
commit
5976901d18
@ -10,8 +10,8 @@ const store = new Vuex.Store({
|
||||
{ type: "rook", colour: "black" },
|
||||
{ type: "knight", colour: "black" },
|
||||
{ type: "bishop", colour: "black" },
|
||||
{ type: "king", colour: "black" },
|
||||
{ type: "queen", colour: "black" },
|
||||
{ type: "king", colour: "black" },
|
||||
{ type: "bishop", colour: "black" },
|
||||
{ type: "knight", colour: "black" },
|
||||
{ type: "rook", colour: "black" },
|
||||
@ -44,8 +44,8 @@ const store = new Vuex.Store({
|
||||
{ type: "rook", colour: "white" },
|
||||
{ type: "knight", colour: "white" },
|
||||
{ type: "bishop", colour: "white" },
|
||||
{ type: "king", colour: "white" },
|
||||
{ type: "queen", colour: "white" },
|
||||
{ type: "king", colour: "white" },
|
||||
{ type: "bishop", colour: "white" },
|
||||
{ type: "knight", colour: "white" },
|
||||
{ type: "rook", colour: "white" },
|
||||
|
||||
@ -40,19 +40,19 @@ $square-outline-color: darken($black-square-color, 20%);
|
||||
}
|
||||
|
||||
.board-row:nth-child(odd) {
|
||||
.board-square:nth-child(odd) {
|
||||
.board-square:nth-child(even) {
|
||||
@extend %black-square;
|
||||
}
|
||||
.board-square:nth-child(even) {
|
||||
.board-square:nth-child(odd) {
|
||||
@extend %white-square;
|
||||
}
|
||||
}
|
||||
|
||||
.board-row:nth-child(even) {
|
||||
.board-square:nth-child(odd) {
|
||||
.board-square:nth-child(even) {
|
||||
@extend %white-square;
|
||||
}
|
||||
.board-square:nth-child(even) {
|
||||
.board-square:nth-child(odd) {
|
||||
@extend %black-square;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user