From a498d36c25cb64b5c704bae58b2b270dd844f6d9 Mon Sep 17 00:00:00 2001 From: The Happy Anarchist Date: Sun, 25 Oct 2020 13:04:06 -1000 Subject: [PATCH] Cosmetic changes Removed deprecated roll functions. Recentered field texts to not obscure values. Adjust tab heights. Fixed #15. --- src/acks.css | 73 ++++++++++++++++++++++++--------- src/module/actor/actor-sheet.js | 4 +- src/module/dice.js | 2 +- 3 files changed, 56 insertions(+), 23 deletions(-) diff --git a/src/acks.css b/src/acks.css index 4bce7a7..1713fb2 100644 --- a/src/acks.css +++ b/src/acks.css @@ -84,17 +84,18 @@ right: -169px; width: 320px; border-top: none; - height: 20px; + height: 18px; z-index: -1; } .acks.sheet.actor .sheet-tabs .item { - padding: 2px 10px 0; + padding: 1px 10px 0; margin-left: -5px; text-indent: 4px; - line-height: 18px; + line-height: 16px; background: url("/ui/parchment.jpg"); border-top-right-radius: 4px; border-top-left-radius: 80px; + border-bottom: 1px solid rgba(0, 0, 0, 0.15); box-shadow: 0 0 6px 1px rgba(0, 0, 0, 0.9); font-size: 12px; filter: brightness(0.9); @@ -107,7 +108,6 @@ margin-bottom: -1px; } .acks.sheet.actor .sheet-body { - padding: 5px 0; height: calc(100% - 140px); } .acks.sheet.actor .sheet-body .tab { @@ -375,6 +375,16 @@ flex: 0; } +.acks.dialog.party-xp .actors { + height: 270px; + padding: 0; + overflow-y: auto; +} +.acks.dialog.party-xp .form-group button { + line-height: 18px; + flex-grow: 0; +} + .acks.dialog.party-sheet { min-width: 250px; min-height: 250px; @@ -627,6 +637,18 @@ font-size: 14px; font-weight: bold; } +.acks.chat-card .card-content .treasure-list .sub { + padding-left: 25px; + line-height: 28px; +} +.acks.chat-card .card-content .treasure-list .sub img { + flex: 0 0 28px; + border: none; +} +.acks.chat-card .card-content .treasure-list .sub div { + text-indent: 10px; + font-size: 14px; +} .acks.chat-card .card-content h3 { font-size: 12px; margin: 0; @@ -837,11 +859,11 @@ line-height: 30px; } .acks.sheet.actor.character .sheet-body .exploration .attribute { - margin: 1px; + margin: 4px; } .acks.sheet.actor.character .sheet-body .exploration .attribute .attribute-name { - text-align: center; - flex: 1 0 45px; + text-align: left; + flex: 1 0 60px; line-height: 25px; font-size: 12px; } @@ -908,39 +930,39 @@ border-top: 4px solid rgba(0, 0, 0, 0.9); } -.acks.window-content .collapsed { +.acks .window-content .collapsed { display: none; } -.acks.window-content .margin { +.acks .window-content .margin { margin: 5px; } -.acks.window-content input { +.acks .window-content input { text-align: center; } -.acks.window-content input[type=number] { +.acks .window-content input[type=number] { -moz-appearance: textfield; } -.acks.window-content input[type=number]::-webkit-inner-spin-button, -.acks.window-content input[type=number]::-webkit-outer-spin-button { +.acks .window-content input[type=number]::-webkit-inner-spin-button, +.acks .window-content input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; -moz-appearance: none; appearance: none; margin: 0; } -.acks.window-content input:not([type=checkbox]) { +.acks .window-content input:not([type=checkbox]) { background: none; border: none; border-radius: 0; border-bottom: 1px solid #7a7971; } -.acks.window-content input:not([type=checkbox]):hover:not(:disabled), .acks.window-content input:not([type=checkbox]):focus:not(:disabled) { +.acks .window-content input:not([type=checkbox]):hover:not(:disabled), .acks .window-content input:not([type=checkbox]):focus:not(:disabled) { box-shadow: none; background: linear-gradient(transparent, rgba(0, 0, 0, 0.1)); } -.acks.window-content a:hover { +.acks .window-content a:hover { text-shadow: none; } -.acks.window-content .resizable { +.acks .window-content .resizable { overflow: auto; } @@ -1015,6 +1037,19 @@ .acks.sheet.item .sheet-body .stats .form-group.attack-type a.active, .acks.sheet.item .sheet-body .stats .form-group.attack-type a :hover { color: rgba(0, 0, 0, 0.9); } +.acks.sheet.item .sheet-body .stats .form-group { + align-items: inherit; +} +.acks.sheet.item .sheet-body .stats .form-group label { + line-height: 21px; +} +.acks.sheet.item .sheet-body .stats .form-group .form-fields { + justify-content: space-evenly; + height: 22px; +} +.acks.sheet.item .sheet-body .stats .form-group .form-fields select { + height: 24px; +} .acks.sheet.item .sheet-body .stats .block-input { display: flex; flex-direction: column; @@ -1103,6 +1138,4 @@ /* ----------------------------------------- */ /* Sheet Styles */ -/* ----------------------------------------- */ - -/*# sourceMappingURL=acks.css.map */ +/* ----------------------------------------- */ \ No newline at end of file diff --git a/src/module/actor/actor-sheet.js b/src/module/actor/actor-sheet.js index 51f074c..d67c5da 100644 --- a/src/module/actor/actor-sheet.js +++ b/src/module/actor/actor-sheet.js @@ -21,12 +21,12 @@ export class AcksActorSheet extends ActorSheet { return data; } - _createEditor(target, editorOptions, initialContent) { + activateEditor(target, editorOptions, initialContent) { // remove some controls to the editor as the space is lacking if (target == "data.details.description") { editorOptions.toolbar = "styleselect bullist hr table removeFormat save"; } - super._createEditor(target, editorOptions, initialContent); + super.activateEditor(target, editorOptions, initialContent); } /** diff --git a/src/module/dice.js b/src/module/dice.js index a019e8b..cd6ee80 100644 --- a/src/module/dice.js +++ b/src/module/dice.js @@ -7,7 +7,7 @@ export class AcksDice { total: roll.total, }; - let die = roll.parts[0].total; + let die = roll.terms[0].total; if (data.roll.type == "above") { // SAVING THROWS if (roll.total >= result.target) {