From 166ac08f0b84c4c94312e81ecf005c9977ca7c21 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Tue, 4 Aug 2020 14:52:32 +0200 Subject: [PATCH] simplify configuration window --- public/index.html | 31 +++++++++++++++---------------- public/trivabble.css | 19 ++++++++++++++++--- public/trivabble.js | 2 +- 3 files changed, 32 insertions(+), 20 deletions(-) diff --git a/public/index.html b/public/index.html index 9cb5862..4811d72 100644 --- a/public/index.html +++ b/public/index.html @@ -23,15 +23,6 @@
- - -
+ + +
@@ -79,6 +77,7 @@

Who's turn? Click on the Turn button!

+
diff --git a/public/trivabble.css b/public/trivabble.css index fa5119b..66d8f76 100644 --- a/public/trivabble.css +++ b/public/trivabble.css @@ -482,11 +482,24 @@ td.blink { background-color: white; padding: 1rem 1.5rem; width: 24rem; - border-radius: 0.1rem; + border-radius: 0.3rem; } -.modal-buttons { +.modal-content h2 { + margin: 0px; + font-weight: bold; + font-size: large; +} +.modal-button { float: right; - padding-top: 1rem; + width: 1.5rem; + line-height: 1.5rem; + text-align: center; + cursor: pointer; + border-radius: 0.25rem; + background-color: lightgray; +} +.modal-button:hover { + background-color: darkgray; } .show-modal { opacity: 1; diff --git a/public/trivabble.js b/public/trivabble.js index b7456be..fbcf957 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1610,7 +1610,7 @@ helpClear.onclick = clearGame; document.getElementById("modal-config-btn").onclick = showConfig; - document.getElementById("modal-cancel-btn").onclick = showConfig; + document.getElementById("modal-close-btn").onclick = showConfig; } function initGame() { -- 2.30.2