Cosmetic changes

Removed deprecated roll functions. Recentered field texts to not obscure values. Adjust tab heights. Fixed #15.
master
The Happy Anarchist 2020-10-25 13:04:06 -10:00
parent fa69f4206e
commit a498d36c25
3 changed files with 56 additions and 23 deletions

View File

@ -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;
}
@ -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;
@ -1104,5 +1139,3 @@
/* ----------------------------------------- */
/* Sheet Styles */
/* ----------------------------------------- */
/*# sourceMappingURL=acks.css.map */

View File

@ -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);
}
/**

View File

@ -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) {