1
0
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:
Daniel Barber 2016-11-14 19:45:14 +00:00
parent 53c8c7498f
commit 5976901d18
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
2 changed files with 6 additions and 6 deletions

View File

@ -10,8 +10,8 @@ const store = new Vuex.Store({
{ type: "rook", colour: "black" }, { type: "rook", colour: "black" },
{ type: "knight", colour: "black" }, { type: "knight", colour: "black" },
{ type: "bishop", colour: "black" }, { type: "bishop", colour: "black" },
{ type: "king", colour: "black" },
{ type: "queen", colour: "black" }, { type: "queen", colour: "black" },
{ type: "king", colour: "black" },
{ type: "bishop", colour: "black" }, { type: "bishop", colour: "black" },
{ type: "knight", colour: "black" }, { type: "knight", colour: "black" },
{ type: "rook", colour: "black" }, { type: "rook", colour: "black" },
@ -44,8 +44,8 @@ const store = new Vuex.Store({
{ type: "rook", colour: "white" }, { type: "rook", colour: "white" },
{ type: "knight", colour: "white" }, { type: "knight", colour: "white" },
{ type: "bishop", colour: "white" }, { type: "bishop", colour: "white" },
{ type: "king", colour: "white" },
{ type: "queen", colour: "white" }, { type: "queen", colour: "white" },
{ type: "king", colour: "white" },
{ type: "bishop", colour: "white" }, { type: "bishop", colour: "white" },
{ type: "knight", colour: "white" }, { type: "knight", colour: "white" },
{ type: "rook", colour: "white" }, { type: "rook", colour: "white" },

View File

@ -40,19 +40,19 @@ $square-outline-color: darken($black-square-color, 20%);
} }
.board-row:nth-child(odd) { .board-row:nth-child(odd) {
.board-square:nth-child(odd) { .board-square:nth-child(even) {
@extend %black-square; @extend %black-square;
} }
.board-square:nth-child(even) { .board-square:nth-child(odd) {
@extend %white-square; @extend %white-square;
} }
} }
.board-row:nth-child(even) { .board-row:nth-child(even) {
.board-square:nth-child(odd) { .board-square:nth-child(even) {
@extend %white-square; @extend %white-square;
} }
.board-square:nth-child(even) { .board-square:nth-child(odd) {
@extend %black-square; @extend %black-square;
} }
} }