From: Carl Worth Date: Sun, 8 Mar 2026 13:32:04 +0000 (-0400) Subject: anagrams: Bring claim area into our color scheme X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=d3b42cf33b7ed973b0be2448cfcb0128128cb4a6;p=lmno.games anagrams: Bring claim area into our color scheme By preferring --accent-color and existing button styling wherever possible, and add a new --accent-color-muted. Avoid bright red for actions like cancelling the claim or returning a word, using subtle gray instead. --- diff --git a/anagrams/anagrams.css b/anagrams/anagrams.css index 22e27ba..a9e2c2c 100644 --- a/anagrams/anagrams.css +++ b/anagrams/anagrams.css @@ -89,8 +89,8 @@ .claim-area { margin-bottom: 1em; padding: 0.5em; - background: #e8f5e9; - border: 2px solid #27ae60; + background: var(--accent-color-muted); + border: 2px solid var(--accent-color); border-radius: 6px; } @@ -112,8 +112,8 @@ } .claim-rack.drag-over { - background: #d5f5e3; - border-color: #27ae60; + background: var(--accent-color-muted); + border-color: var(--accent-color); } .claim-actions { @@ -122,38 +122,21 @@ align-items: center; } -.claim-actions .submit-btn { - background: #27ae60; - border: 2px solid #27ae60; - color: white; - padding: 0.3em 1em; - border-radius: 4px; - cursor: pointer; -} - -.claim-actions .submit-btn:disabled { - background: #95a5a6; - border-color: #95a5a6; - cursor: default; -} - -.claim-actions .cancel-btn { - background: #e74c3c; - border: 2px solid #e74c3c; - color: white; - padding: 0.3em 1em; - border-radius: 4px; +.claim-actions .cancel-link { + font-size: 0.85em; + color: #888; cursor: pointer; + text-decoration: underline; } .claim-timer { font-size: 0.9em; - color: #e74c3c; + color: var(--warning-color); font-weight: bold; } .claim-error { - color: #e74c3c; + color: #c00; font-size: 0.9em; margin-top: 0.3em; } diff --git a/anagrams/anagrams.jsx b/anagrams/anagrams.jsx index a5e520a..58dc964 100644 --- a/anagrams/anagrams.jsx +++ b/anagrams/anagrams.jsx @@ -897,12 +897,11 @@ class Game extends React.Component { ))} + - + ))} @@ -918,15 +917,14 @@ class Game extends React.Component {
- - + this.cancel_claim()}> + cancel + {claim_warning ? ( {Math.ceil(claim_remaining_ms / 1000)}s diff --git a/style.css b/style.css index bc611e5..bb3ef22 100644 --- a/style.css +++ b/style.css @@ -22,6 +22,7 @@ /* A little color to avoid a fully monochromatic theme. */ --accent-color: #287789; --accent-color-bright: #44c7ef; + --accent-color-muted: #d0e8ef; --text-fg-on-accent: white; --text-fg-on-accent-bright: #333738;