From 4f75efd447d0ef73a4dc565022d4cdfc07498032 Mon Sep 17 00:00:00 2001 From: AlecM33 Date: Tue, 5 Jul 2022 22:54:44 -0400 Subject: [PATCH] tweak restart button styling --- client/src/modules/GameStateRenderer.js | 2 +- client/src/styles/game.css | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/modules/GameStateRenderer.js b/client/src/modules/GameStateRenderer.js index 9307f96..c010a36 100644 --- a/client/src/modules/GameStateRenderer.js +++ b/client/src/modules/GameStateRenderer.js @@ -301,7 +301,7 @@ export class GameStateRenderer { restartGameContainer.innerHTML = HTMLFragments.RESTART_GAME_BUTTON; const button = restartGameContainer.querySelector('#restart-game'); button.addEventListener('click', this.restartGameHandler); - document.getElementById('end-of-game-buttons').appendChild(restartGameContainer); + document.getElementById('end-of-game-buttons').prepend(restartGameContainer); } this.renderPlayersWithNoRoleInformationUnlessRevealed(); } diff --git a/client/src/styles/game.css b/client/src/styles/game.css index 4d6708c..dbbe2d9 100644 --- a/client/src/styles/game.css +++ b/client/src/styles/game.css @@ -58,6 +58,8 @@ #restart-game { background-color: #0078D7; min-width: 10em; + margin-bottom: 1em !important; + animation: shadow-pulse 1.5s infinite ease-out; } #play-pause-placeholder {