Update to dnd 0.98 Core with some fixes

Updated to 0.98 core for 0.7.x compatability (untested)

Class Skills are pulling in automatically on class item drop to character sheet.

TODO: Expand automated skill drop for Archetypes

KNOWN ISSUE: init.value is being converted to a string causing some NaN errors on the html.  Initiative was changed to a number instead of a string in 0.98 likely some place is assuming it is still a string.  I had to use Number() on the value because it was forcing other vales to be a string because the value is "".  Maybe someone can fix this
This commit is contained in:
supervj 2020-10-08 02:20:12 -04:00
parent 4bed1d1869
commit 44312146a7
132 changed files with 748 additions and 1010 deletions

View file

@ -104,6 +104,7 @@
color: #191813;
}
.sw5e input[type="text"],
.sw5e input[type="number"],
.sw5e select {
height: calc(100% - 2px);
border: 1px solid #7a7971;
@ -111,7 +112,9 @@
color: #191813;
}
.sw5e input[type="text"]:hover,
.sw5e input[type="text"]:focus {
.sw5e input[type="number"]:hover,
.sw5e input[type="text"]:focus,
.sw5e input[type="number"]:focus {
border: 1px solid #111;
box-shadow: 0 0 8px red;
}
@ -257,12 +260,15 @@
overflow-y: auto;
align-content: flex-start;
}
.sw5e.sheet input[type="text"] {
.sw5e.sheet input[type="text"],
.sw5e.sheet input[type="number"] {
background: none;
border: 1px solid transparent;
}
.sw5e.sheet input[type="text"]:hover,
.sw5e.sheet input[type="text"]:focus {
.sw5e.sheet input[type="number"]:hover,
.sw5e.sheet input[type="text"]:focus,
.sw5e.sheet input[type="number"]:focus {
border: 1px solid #111;
}
.sw5e.sheet select {
@ -470,6 +476,9 @@
/* Powerbook */
/* ----------------------------------------- */
/* ----------------------------------------- */
/* Active Effects */
/* ----------------------------------------- */
/* ----------------------------------------- */
/* TinyMCE */
/* ----------------------------------------- */
}
@ -584,8 +593,9 @@
flex: 0 0 18px;
margin-top: -1px;
line-height: 18px;
font-family: "Signika", "Palatino Linotype", serif;
font-family: "Signika", sans-serif;
font-size: 12px;
font-weight: 400;
}
.sw5e.sheet.actor .ability-scores {
flex: 0 0 100px;
@ -600,7 +610,6 @@
height: 70px;
text-align: center;
border-bottom: 2px groove #eeede0;
/* Hide modifier box on hover */
}
.sw5e.sheet.actor .ability-scores .ability:last-child {
border-bottom: none;
@ -635,6 +644,7 @@
.sw5e.sheet.actor .ability-scores .ability .ability-modifiers span.ability-save {
border-left: 2px groove #eeede0;
}
/* Hide modifier box on hover */
.sw5e.sheet.actor .ability-scores .ability input.ability-score:hover + .ability-modifiers {
visibility: hidden;
}
@ -712,7 +722,8 @@
.sw5e.sheet.actor .counters .counter .counter-value > * {
display: inline;
}
.sw5e.sheet.actor .counters .counter input[type="text"] {
.sw5e.sheet.actor .counters .counter input[type="text"],
.sw5e.sheet.actor .counters .counter input[type="number"] {
height: 20px;
max-width: 20px;
margin: 0;
@ -815,6 +826,7 @@
padding: 0 5px;
overflow-y: auto;
scrollbar-width: thin;
color: #7a7971;
}
.sw5e.sheet.actor .inventory-list .item {
line-height: 30px;
@ -840,10 +852,10 @@
overflow-x: hidden;
}
.sw5e.sheet.actor .inventory-list .item .item-name.rollable:hover .item-image {
background-image: url("/icons/svg/d20-grey.svg") !important;
background-image: url("../../icons/svg/d20-grey.svg") !important;
}
.sw5e.sheet.actor .inventory-list .item .item-name.rollable .item-image:hover {
background-image: url("/icons/svg/d20-black.svg") !important;
background-image: url("../../icons/svg/d20-black.svg") !important;
}
.sw5e.sheet.actor .inventory-list .item .item-name i.attuned {
color: #7a7971;
@ -865,6 +877,7 @@
.sw5e.sheet.actor .inventory-list .inventory-header {
margin: 2px 0;
padding: 0;
align-items: center;
background: rgba(0, 0, 0, 0.05);
border: 2px groove #eeede0;
font-weight: bold;
@ -879,6 +892,9 @@
.sw5e.sheet.actor .inventory-list .inventory-header .item-controls a.item-create {
flex: 0 0 100%;
}
.sw5e.sheet.actor .inventory-list .item-name {
color: #191813;
}
.sw5e.sheet.actor .inventory-list .item-detail {
flex: 0 0 70px;
font-size: 12px;
@ -1067,6 +1083,37 @@
.sw5e.sheet.actor .powerbook-empty .item-controls {
flex: 1;
}
.sw5e.sheet.actor .effects .effect-name {
flex: 2;
align-items: center;
color: #191813;
}
.sw5e.sheet.actor .effects .effect-name h4 {
margin: 0;
}
.sw5e.sheet.actor .effects .effect-icon {
flex: 0 0 30px;
height: 30px;
margin-right: 5px;
border: none;
}
.sw5e.sheet.actor .effects .effect-source,
.sw5e.sheet.actor .effects .effect-duration {
text-align: center;
border-left: 1px solid #c9c7b8;
border-right: 1px solid #c9c7b8;
}
.sw5e.sheet.actor .effects .effect-controls {
flex: 0 0 60px;
text-align: right;
}
.sw5e.sheet.actor .effects .effect {
align-items: center;
border-bottom: 1px solid #c9c7b8;
}
.sw5e.sheet.actor .effects .effect:last-child {
border-bottom: none;
}
.sw5e.sheet.actor .editor {
padding: 0 8px;
}
@ -1163,6 +1210,7 @@
line-height: 18px;
}
.sw5e.sheet.item .details input[type="text"],
.sw5e.sheet.item .details input[type="number"],
.sw5e.sheet.item .details select {
height: 24px;
border: 1px solid #7a7971;
@ -1773,3 +1821,31 @@
line-height: 24px;
font-weight: bold;
}
/* Text Input */
input[type="number"] {
width: calc(100% - 2px);
min-width: 20px;
height: 26px;
background: rgba(0, 0, 0, 0.05);
padding: 1px 3px;
margin: 0;
color: #191813;
font-family: inherit;
font-size: inherit;
text-align: inherit;
line-height: inherit;
border: 1px solid #7a7971;
border-radius: 3px;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
-moz-appearance: textfield;
}
input[type="number"]:focus {
box-shadow: 0 0 5px red;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
}