From: Carl Worth Date: Sun, 8 Mar 2026 12:43:40 +0000 (-0400) Subject: anagrams: Use gloabl styling for the "Claim a Word" button X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=f915d612575ea39d0dff9bdc45acaebb74050c13;p=lmno.games anagrams: Use gloabl styling for the "Claim a Word" button Trying to have some consistent styling across the games here. --- diff --git a/anagrams/anagrams.css b/anagrams/anagrams.css index 7aa59a8..76bd4b7 100644 --- a/anagrams/anagrams.css +++ b/anagrams/anagrams.css @@ -34,53 +34,31 @@ flex-wrap: wrap; } -.controls button { - padding: 0.4em 1em; - border-radius: 4px; - cursor: pointer; - font-size: 1em; -} - -.claim-btn { - background: #27ae60; - border: 2px solid #27ae60; - color: white; - font-size: 1.1em; - padding: 0.5em 1.5em; -} - -.claim-btn:disabled { - background: #95a5a6; - border-color: #95a5a6; - cursor: default; -} - -.claim-btn.queued { +.controls button.queued { background: #e67e22; - border-color: #e67e22; } -/* Bag button */ -.bag-btn { +/* Bag icon */ +.bag { display: inline-flex; align-items: center; - gap: 0.3em; - padding: 0.4em 0.8em; - background: #8e6c3e; - border: 2px solid #6b4f2d; - border-radius: 6px; - color: white; - font-size: 0.95em; + gap: 0.2em; cursor: pointer; + user-select: none; } -.bag-btn:disabled { - opacity: 0.5; - cursor: default; +.bag .bag-icon { + font-size: 2em; } -.bag-btn .bag-icon { - font-size: 1.2em; +.bag .bag-count { + font-size: 0.9em; + color: #666; +} + +.bag.disabled { + opacity: 0.4; + cursor: default; } /* Center letter pool */ diff --git a/anagrams/anagrams.jsx b/anagrams/anagrams.jsx index f5495b7..b90ca21 100644 --- a/anagrams/anagrams.jsx +++ b/anagrams/anagrams.jsx @@ -701,7 +701,7 @@ class Game extends React.Component { return (
- - + + {state.bag_remaining !== null ? state.bag_remaining : "?"} + +
); }