From 208738531a275e47510d924723d3af9c98e02fe7 Mon Sep 17 00:00:00 2001 From: Tobias Date: Sat, 4 Feb 2023 00:06:02 +0100 Subject: [PATCH] - streamlined element IDs, function etc. - sortTable() now adds contextual classes to combatantRows (depending on their ini value) - moved all inline CSS styles to custom.css --- css/custom.css | 24 ++-- index.html | 54 ++++----- js/sr2ini.js | 309 +++++++++++++++++++++++++------------------------ 3 files changed, 198 insertions(+), 189 deletions(-) diff --git a/css/custom.css b/css/custom.css index 62fa49a..61146cc 100644 --- a/css/custom.css +++ b/css/custom.css @@ -1,20 +1,20 @@ -input -{ +/*input { opacity: 0.65; } - -/*tr#newCombRow input { - background: paleturquoise; -}*/ - +*/ input:invalid { border: 2px solid red; } -tr[data-ini='0'] { - background: lightgray; -} - -th#combIniHeader, th#combDiceReaHeader, th#combActionsHeader { +.header-align-center { text-align: center; } + +table.diceandrea { + padding: 0; + margin: 0; +} + +td.combatantDice, td.combatantRea { + width: 45%; +} diff --git a/index.html b/index.html index 717fb51..8f5a7e4 100644 --- a/index.html +++ b/index.html @@ -24,28 +24,28 @@
-
-