.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;
}
}
.claim-rack.drag-over {
- background: #d5f5e3;
- border-color: #27ae60;
+ background: var(--accent-color-muted);
+ border-color: var(--accent-color);
}
.claim-actions {
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;
}
<Tile key={i} letter={ch} />
))}
<span className="separator">+</span>
- <button onClick={() => this.return_word(cw.word_id)}
- style={{ cursor: "pointer", background: "none",
- border: "none", fontSize: "1.2em",
- color: "#e74c3c" }}>
+ <span style={{ cursor: "pointer", fontSize: "0.9em",
+ color: "#888" }}
+ onClick={() => this.return_word(cw.word_id)}>
✕
- </button>
+ </span>
</span>
))}
</div>
</div>
<div className="claim-actions">
- <button className="submit-btn"
- disabled={!can_submit}
+ <button disabled={!can_submit}
onClick={() => this.submit_word()}>
Submit
</button>
- <button className="cancel-btn"
- onClick={() => this.cancel_claim()}>
- Cancel
- </button>
+ <span className="cancel-link"
+ onClick={() => this.cancel_claim()}>
+ cancel
+ </span>
{claim_warning ? (
<span className="claim-timer">
{Math.ceil(claim_remaining_ms / 1000)}s
/* 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;