diff --git a/Pendragon6thEdition/package.json b/Pendragon6thEdition/package.json index 9f9ef419394..3ae2f1dedf6 100644 --- a/Pendragon6thEdition/package.json +++ b/Pendragon6thEdition/package.json @@ -1,6 +1,6 @@ { "name": "pendragon6thedition", - "version": "3.0.0", + "version": "2.4.2", "description": "You need to run npm start to get the compilers going.", "dependencies": { "20": "^3.1.9", diff --git a/Pendragon6thEdition/pendragon.css b/Pendragon6thEdition/pendragon.css index 294ffc2748c..242cef34d0b 100644 --- a/Pendragon6thEdition/pendragon.css +++ b/Pendragon6thEdition/pendragon.css @@ -393,9 +393,9 @@ div.sheet-attacks input[name="attr_damage"], div.sheet-attacks span[name*="damage"] { text-align: center; } -div.sheet-attacks div.sheet-table.sheet-damage div.sheet-header, -div.sheet-attacks div.sheet-table.sheet-damage div.sheet-body div.sheet-row { - grid-template-columns: 2fr 1fr 2.5em; } +div.sheet-attacks div.sheet-table.sheet-brawling div.sheet-header, +div.sheet-attacks div.sheet-table.sheet-brawling div.sheet-body div.sheet-row { + grid-template-columns: 2fr 1fr 5em 2.5em; } div.sheet-attacks div.sheet-repeating-container div.sheet-row, div.sheet-attacks div.sheet-repeating-container div.sheet-header { @@ -407,14 +407,6 @@ div.sheet-attacks label[data-i18n-title="other skill"] { div.sheet-attacks input[name="attr_skill"][value*="other"] + label { visibility: visible; } -div.sheet-attacks select[name="attr_skill"] { - margin-left: -5px; } - -div.sheet-attacks h3, -div.sheet-attacks span[data-i18n*="brawling"], -div.sheet-attacks span[name*="damage"] { - color: #000; } - div.sheet-character div.sheet-horse input[type="text"], div.sheet-character div.sheet-horse input[type="number"] { text-align: center; @@ -473,22 +465,8 @@ div.sheet-character div.sheet-squire div.sheet-skill { div.sheet-character div.sheet-squire input[name="attr_squire_age"] { text-align: center; } -div.sheet-character div.sheet-squire div.sheet-notes { - grid-template-columns: 1fr 10px; - padding: 1% 2%; } - div.sheet-character div.sheet-squire div.sheet-notes input.sheet-flag, - div.sheet-character div.sheet-squire div.sheet-notes span.sheet-pictos { - grid-area: 1/2/2/3; } - div.sheet-character div.sheet-squire div.sheet-notes textarea, - div.sheet-character div.sheet-squire div.sheet-notes span.sheet-display { - grid-area: 1/1/2/2; } - -div.sheet-character div.sheet-equipment span[name="attr_value"], -div.sheet-character div.sheet-equipment input[name="attr_value"] { - text-align: center; } - -div.sheet-character div.sheet-equipment div.sheet-col { - grid-template-rows: min-content 1fr; } +div.sheet-character div.sheet-equipment input[name="attr_category"] { + font-weight: bold; } div.sheet-character div.sheet-equipment div.sheet-2autocolumn { align-content: end; } @@ -497,9 +475,6 @@ div.sheet-character div.sheet-equipment span[name="attr_equipment"], div.sheet-character div.sheet-equipment span[name="attr_category"] { min-height: 20px; } -div.sheet-character div.sheet-equipment div.sheet-category { - grid-template-columns: 3fr 1fr; } - div.sheet-character div.sheet-equipment div.sheet-repeating-container div.sheet-flags { grid-template-columns: 1fr 25px; } @@ -520,9 +495,6 @@ div.sheet-character div.sheet-characteristics div.sheet-core { grid-auto-flow: column; grid-column-gap: 2%; } -div.sheet-character div.sheet-characteristics span { - color: #000; } - div.sheet-character h2 { text-overflow: ellipsis; width: fit-content; } @@ -807,18 +779,25 @@ div.sheet-table { /* TABLE ============================= */ div.sheet-shield { - border-radius: 50% 50% 50% 50% / 12% 12% 88% 88%; - border: 5px solid #240202; height: 50px; - width: 50px; } + width: 50px; + border: 5px solid #240202; + border-radius: 50% 50% 50% 50% / 12% 12% 88% 88%; } + div.sheet-shield label, + div.sheet-shield span { + align-items: center; + display: grid; + font-weight: bold; + height: 100%; + justify-content: center; + text-align: center; + width: 100%; } + div.sheet-shield:hover span, div.sheet-shield input[type="number"] { - font-weight: bolder; - width: 3em; } - div.sheet-shield input[type="number"]:placeholder-shown, div.sheet-shield input[type="number"]:hover { - background-color: #fffde7; } - div.sheet-shield input[type="number"]::-webkit-outer-spin-button, div.sheet-shield input[type="number"]::-webkit-inner-spin-button { - -webkit-appearance: none; - margin: 0; } + display: none; } + div.sheet-shield:hover input[type="number"] { + display: inline; + background-color: #fffde7; } /* ROLL TEMPLATE STYLE ----------------------------- */ @@ -927,33 +906,43 @@ div.sheet-repeating-container div.sheet-notes { font-family: "pictos"; z-index: 100; position: absolute; - right: 1.5%; } + left: 85%; } /* DRAG & DROP ============================= */ .sheet-dropzone.active-drop-target.dropping { + opacity: 0.5; + transition: opacity 0.15s ease-in-out; -moz-transition: opacity 0.15s ease-in-out; -webkit-transition: opacity 0.15s ease-in-out; - background-color: transparent; - opacity: 0.5; - transition: opacity 0.15s ease-in-out; } + background-color: transparent; } -.sheet-compendium_warning { +.sheet-compendium_warning, +.sheet-monster_confirm { display: none; } -.sheet-dropzone.active-drop-target.dropping ~ .sheet-compendium_warning { - position: absolute; - background: white; - border-radius: 0.5em; - border: 2px solid #000; - box-shadow: 0 0 50px #000; +.sheet-dropzone.active-drop-target.dropping ~ .sheet-compendium_warning, +.sheet-monster_confirm_flag[value="1"] ~ .sheet-monster_confirm { display: block; - height: 100px; - left: 50%; - margin: -70px 0 0 -170px; - min-height: max-content; - padding: 2em; - text-align: center; + position: fixed; top: 50%; + background: white; + left: 50%; + z-index: 100; + border: 2px solid black; width: 300px; - z-index: 100; } + height: 100px; + text-align: center; + margin: -70px 0 0 -170px; } + +.charsheet input.sheet-licensedsheet[value="1"] ~ .sheet-compendium_warning, +.charsheet input.sheet-licensedsheet[value="1"] ~ .sheet-monster_confirm { + position: absolute !important; + padding: 2em 0 !important; + min-height: max-content; + box-shadow: 0 0 50px #000; + border: 2px solid #000 !important; + border-radius: 0.5em; } + +.sheet-dropzone.active-drop-target.dropping ~ .sheet-compendium_warning span { + line-height: 100px; } diff --git a/Pendragon6thEdition/pendragon.html b/Pendragon6thEdition/pendragon.html index f41e4d8ef90..254ae0b9192 100644 --- a/Pendragon6thEdition/pendragon.html +++ b/Pendragon6thEdition/pendragon.html @@ -1,4 +1,4 @@ -