Commit 8b37cdcf authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix: chess — thinner white stroke, coords outside board in border area

- White pieces: 0.5px #444 stroke (subtler outline, looks more solid)
- Coordinates: moved outside board (bottom -22px, left -20px)
- Coords larger (12px), centered, light grey (#aaa)
- Board wrapper: padding for coord space (22px left, 22px bottom)
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 910eb140
...@@ -95,6 +95,8 @@ ...@@ -95,6 +95,8 @@
flex: 1; flex: 1;
min-width: 0; min-width: 0;
direction: ltr; direction: ltr;
padding-left: 22px;
padding-bottom: 22px;
} }
.board-wrapper::before { .board-wrapper::before {
...@@ -188,15 +190,15 @@ ...@@ -188,15 +190,15 @@
.piece[data-color="w"] { .piece[data-color="w"] {
color: #fff; color: #fff;
-webkit-text-stroke: 1px #666; -webkit-text-stroke: 0.5px #444;
paint-order: stroke fill; paint-order: stroke fill;
filter: drop-shadow(1px 2px 1px rgba(0,0,0,0.3)); filter: drop-shadow(0 2px 2px rgba(0,0,0,0.35));
} }
.piece[data-color="b"] { .piece[data-color="b"] {
color: #000; color: #000;
-webkit-text-stroke: 0px transparent; -webkit-text-stroke: 0px transparent;
filter: drop-shadow(1px 2px 1px rgba(0,0,0,0.2)); filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
} }
.piece:hover { .piece:hover {
...@@ -212,45 +214,42 @@ ...@@ -212,45 +214,42 @@
filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
} }
/* Coordinate labels - inside squares */ /* Coordinate labels - outside board in border */
.board-coords-file, .board-coords-rank { .board-coords-file, .board-coords-rank {
position: absolute; position: absolute;
display: flex; display: flex;
font-family: var(--font-en); font-family: var(--font-en);
font-size: 10px; font-size: 12px;
font-weight: 700; font-weight: 700;
pointer-events: none; pointer-events: none;
z-index: 2; z-index: 6;
} }
.board-coords-file { .board-coords-file {
bottom: 1px; bottom: -22px;
left: 0; left: 0;
right: 0; right: 0;
} }
.board-coords-file span { .board-coords-file span {
flex: 1; flex: 1;
text-align: right; text-align: center;
padding-right: 2px; color: #aaa;
color: var(--text-3);
opacity: 0.8;
} }
.board-coords-rank { .board-coords-rank {
top: 0; top: 0;
bottom: 0; bottom: 0;
left: 1px; left: -20px;
flex-direction: column; flex-direction: column;
} }
.board-coords-rank span { .board-coords-rank span {
flex: 1; flex: 1;
display: flex; display: flex;
align-items: flex-start; align-items: center;
padding-top: 1px; justify-content: center;
color: var(--text-3); color: #aaa;
opacity: 0.8;
} }
/* Arrow Canvas */ /* Arrow Canvas */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment