Skip to content

Commit 07bb445

Browse files
committed
Enhance white piece styles for chess board
- Updated CSS to ensure specific styles for white pieces on the chess board override general rules. - Added !important to the white bishop style to enforce color consistency. - Improved clarity and organization of piece styles for better visual representation.
1 parent 809a11f commit 07bb445

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

css/pieces.css

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,17 @@
3434
color: #fff;
3535
filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5));
3636
}
37-
.piece.w.p::before { content: '\2659'; }
38-
.piece.w.r::before { content: '\2656'; }
39-
.piece.w.n::before { content: '\2658'; }
40-
.piece.w.b::before { content: '\2657'; }
41-
.piece.w.q::before { content: '\2655'; }
42-
.piece.w.k::before { content: '\2654'; }
37+
38+
/* Ensure specific white piece styles override any general rules */
39+
.chess-board .piece.w.p::before { content: '\2659'; color: #fff; }
40+
.chess-board .piece.w.r::before { content: '\2656'; color: #fff; }
41+
.chess-board .piece.w.n::before { content: '\2658'; color: #fff; }
42+
.chess-board .piece.w.b::before {
43+
content: '\2657';
44+
color: #fff !important; /* Force white color */
45+
}
46+
.chess-board .piece.w.q::before { content: '\2655'; color: #fff; }
47+
.chess-board .piece.w.k::before { content: '\2654'; color: #fff; }
4348

4449
/* Black Pieces */
4550
.piece.b::before {

0 commit comments

Comments
 (0)