From 69a344595c4d07c68dbc88aff1a9de795750f508 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Fri, 22 Jan 2021 08:46:23 -0700 Subject: [PATCH] Fix hints lingering forever --- js/main.js | 5 ++--- style.css | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/js/main.js b/js/main.js index 4eb5331..ce3e023 100644 --- a/js/main.js +++ b/js/main.js @@ -1287,6 +1287,7 @@ class Player extends PrimaryView { this.time_el.classList.remove('--frozen'); this.time_el.classList.remove('--danger'); this.time_el.classList.remove('--warning'); + this.hint_el.parentNode.classList.remove('--visible'); this.root.classList.remove('--replay-playback'); this.root.classList.remove('--replay-recording'); this.root.classList.remove('--bonus-visible'); @@ -1557,9 +1558,7 @@ class Player extends PrimaryView { // TODO can we do this only if they actually changed? this.chips_el.textContent = this.level.chips_remaining; - if (this.level.chips_remaining === 0) { - this.chips_el.classList.add('--done'); - } + this.chips_el.classList.toggle('--done', this.level.chips_remaining === 0); this.time_el.classList.toggle('--frozen', this.level.time_remaining === null || this.level.timer_paused); if (this.level.time_remaining === null) { diff --git a/style.css b/style.css index 6b8f44b..4f07056 100644 --- a/style.css +++ b/style.css @@ -1346,10 +1346,9 @@ dl.score-chart .-star { display: none; font-size: calc(var(--tile-height) * var(--scale) / 3); font-family: serif; - font-style: italic; color: hsl(45, 100%, 60%); background: #080808; - border: 1px inset #202020; + border: 2px inset #202020; } #player-game-area > .player-hint-wrapper > .player-hint { overflow: auto;