From cd6776f085b1d695e1c4405d34708ad2b6ac7924 Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 6 Jun 2020 02:05:21 +0100 Subject: [PATCH] added a button to restart the test with the same wordset. closes #119 --- public/css/style.scss | 12 +++++++--- public/index.html | 9 +++++--- public/js/script.js | 54 ++++++++++++++++++++++++++++++++----------- 3 files changed, 56 insertions(+), 19 deletions(-) diff --git a/public/css/style.scss b/public/css/style.scss index a3f3b6a9f..456ee6c87 100644 --- a/public/css/style.scss +++ b/public/css/style.scss @@ -778,11 +778,17 @@ key { } } -#restartTestButton, #showWordHistoryButton, #copyResultToClipboardButton { - position: relative; +.pageTest #resultExtraButtons{ opacity: 0; + display: grid; + grid-auto-flow: column; + gap: 1rem; +} + +#restartTestButton, #showWordHistoryButton, #copyResultToClipboardButton, #restartTestButtonWithSameWordset { + position: relative; border-radius: var(--roundness); - padding: 1rem 5rem; + padding: 1rem 2rem; width: min-content; width: -moz-min-content; color: var(--sub-color); diff --git a/public/index.html b/public/index.html index d74f824ef..b9bcca077 100644 --- a/public/index.html +++ b/public/index.html @@ -213,9 +213,12 @@
123
-
- - +
+