feat(combat): wade visual + smoke test budget
This commit is contained in:
@@ -31,6 +31,7 @@ table.bf-grid button[data-zone="bravo"] { outline: 3px solid #0c0; }
|
||||
.bf-unit--active { outline: 2px solid #060; }
|
||||
.bf-unit--inactive { opacity: 0.4; cursor: not-allowed; }
|
||||
.bf-unit--winner { outline: 3px solid #c00; }
|
||||
.bf-unit--wading { opacity: 0.55; filter: blur(0.4px); }
|
||||
.bf-action--active { font-weight: bold; }
|
||||
.bf-toast { background: #ffd; padding: 0.5rem 1rem; margin: 0.25rem 0; border: 1px solid #cc9; }
|
||||
.bf-log { max-height: 12rem; overflow: auto; background: #f4f4f4; padding: 0.5rem; margin-top: 1rem; }
|
||||
|
||||
@@ -97,6 +97,7 @@ function renderGrid(root, match) {
|
||||
if (isActive) cls.push('bf-unit--active');
|
||||
else cls.push('bf-unit--inactive');
|
||||
if (isWinner) cls.push('bf-unit--winner');
|
||||
if (unit.wadedThisTurn) cls.push('bf-unit--wading');
|
||||
const unitBtn = el(
|
||||
'button',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user