diff --git a/index.html b/index.html index f76c5c7..b4875d0 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,11 @@
- +

Songs of the Second Age: Character Sheet

@@ -77,7 +81,7 @@

Character Features

-
+

Character Inventory

@@ -161,7 +165,7 @@
-
+

Prep

Spell Name & Description

diff --git a/sheet.css b/sheet.css index 2626cb7..6245b5a 100644 --- a/sheet.css +++ b/sheet.css @@ -102,6 +102,7 @@ input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { input[type=number] { -moz-appearance: textfield; + min-width: 2ch; } input[type="checkbox"] { @@ -130,6 +131,13 @@ h1 { display: grid; } +@media (max-width: 600px) { + .grow-wrap { + margin-top: 10px; + margin-bottom: 10px; + } +} + .grow-wrap::after { content: attr(data-replicated-value) " "; white-space: pre-wrap; @@ -147,4 +155,8 @@ h1 { font: inherit; background-color: var(--page-color); grid-area: 1 / 1 / 2 / 2; +} + +output { + min-width: 4ch; } \ No newline at end of file diff --git a/songs.js b/songs.js index 615d2ed..2a0a403 100644 --- a/songs.js +++ b/songs.js @@ -70,8 +70,8 @@ function buildFeatures (container) { for (let i in features) { let feature = features[i]; area.innerHTML += ` -

${feature.name}

-

${feature.level}

+

${feature.name}

+

${feature.level}

@@ -110,8 +110,8 @@ function calculateSpellCasting () { let mb = Number(document.querySelector("#spellcasting-mb").checked); let mastery = Number(document.querySelector("#mastery").value); let modifier = baseVal + training + (mb * mastery); - document.querySelector("#spellcasting-modifier").innerText = ` = ${modifier}`; - document.querySelector("#spellcasting-dc").innerText = ` = ${8 + modifier}`; + document.querySelector("#spellcasting-modifier").innerHTML = `= ${modifier}`; + document.querySelector("#spellcasting-dc").innerHTML = `= ${8 + modifier}`; } function setModifierVal (category, name, value) { @@ -125,5 +125,5 @@ function setModifierVal (category, name, value) { e.training = Number(document.querySelector(`#${category}-${name}-training`).value); e.mb = Number(document.querySelector(`#${category}-${name}-mb`).checked); e.mastery = Number(document.querySelector("#mastery").value); - document.querySelector(`#${category}-${name}-result`).innerText = ` = ${value(e)}`; + document.querySelector(`#${category}-${name}-result`).innerHTML = `= ${value(e)}`; } \ No newline at end of file