From c2b09a9d5509fe2747c7e9f4fda089de46ea9591 Mon Sep 17 00:00:00 2001 From: Arindy Date: Mon, 10 Feb 2025 17:52:58 +0100 Subject: [PATCH] styles buttons --- src/main/resources/templates/pub/index.html | 16 ++++++++++++++-- src/main/resources/templates/results.html | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/main/resources/templates/pub/index.html b/src/main/resources/templates/pub/index.html index 1f140ca..b7daa92 100644 --- a/src/main/resources/templates/pub/index.html +++ b/src/main/resources/templates/pub/index.html @@ -13,7 +13,6 @@ .collapsible { background-color: #333333; color: black; - cursor: pointer; margin-top: 10px; padding: 18px; width: 100%; @@ -39,6 +38,14 @@ background: #333333; color: #fff } + + button:hover { + background: #444444; + } + button:active { + background: #222222; + } + input { margin: 10px; } @@ -106,6 +113,11 @@ color: #000 } + + .overlayButton:hover { + background: transparent; + } + .tooltip { position: fixed; border-radius: 0.5rem; @@ -191,7 +203,7 @@
- +
diff --git a/src/main/resources/templates/results.html b/src/main/resources/templates/results.html index 926dd1a..484aa3f 100644 --- a/src/main/resources/templates/results.html +++ b/src/main/resources/templates/results.html @@ -31,7 +31,7 @@ resultText += '
  D' + result.sides + ': [' + values.map(value => value === 1 ? '' + value + '' : value === result.sides ? '' + value + '' : value).join(' + ') + (result.modifier > 0 ? ' +' + result.modifier + '' : result.modifier < 0 ? ' ' + result.modifier + '' : '') + '] = ' + result.value + ' ' }) } - node.innerHTML = '' + data.name + ': 🎲 ' + resultText + node.innerHTML = '' + data.name + ': 🎲 ' + resultText name.appendChild(node) document.getElementById('results').insertBefore(name, document.getElementById('results').firstChild); }