mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
* FIX: Add enritch to HTMLField FIX: Remove no-HTMLField from Manifest FIX: Convert Scar's HTMLField to StringField FIX: Remove unused HTMLField * REMOVE unused hanldebars helpers * FEAT: add inventory-fieldset-items-V2 and inventory-item-V2 partials for Actors * FIX showLabels to hideTags * FEAT: add template to items sheet * FEAT: add effects tabs on ItemSheet * FEAT: add context menus for all inventory-items * FEAT: add resources to inventory-item template * FEAT: add enritch on inventory-item description FEAT: add extensible behavior on inventory-item-content FEAT: add fade effect on item-img to roll-itmg * FEAT: add eritch to NPC description FIX: missing htmlFieldss on manfiest FIX: add misisng localizations * FIX_ minor fixes * Little resource fix. Noone will notice ._. * FIX: remove default list styles FIX: .extended css reduce max-height, shorten animation duration to 0.5s, and set overflow to auto. FIX: set enriched=notes.enriche on notes.hbs FIX: set experience.value on sidebar.hbs FIX: move tooltip from item-img to img-portrait on inventory-item-V2.hbs REMOVE: unused files --------- Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com> Co-authored-by: WBHarry <williambjrklund@gmail.com>
317 lines
8.2 KiB
Text
317 lines
8.2 KiB
Text
@import '../utils/colors.less';
|
|
@import '../utils/fonts.less';
|
|
|
|
.theme-light .application.daggerheart.dh-style {
|
|
.inventory-item,
|
|
.card-item {
|
|
.item-resource .item-dice-resource {
|
|
img {
|
|
filter: brightness(0) saturate(100%);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.appTheme({}, {
|
|
.inventory-item-header .img-portait .roll-img {
|
|
filter: invert(1);
|
|
}
|
|
});
|
|
|
|
.application.daggerheart.dh-style {
|
|
.inventory-item {
|
|
width: 100%;
|
|
list-style-type: none;
|
|
|
|
&:hover {
|
|
.inventory-item-header .img-portait {
|
|
.roll-img {
|
|
opacity: 1;
|
|
}
|
|
.item-img {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.inventory-item-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
cursor: pointer;
|
|
|
|
.img-portait {
|
|
flex: 0 0 40px;
|
|
height: 40px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
|
|
.item-img,
|
|
.roll-img {
|
|
position: absolute;
|
|
transition: opacity 300ms ease-in;
|
|
}
|
|
|
|
.roll-img {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.item-label {
|
|
flex: 1;
|
|
font-family: @font-body;
|
|
align-self: center;
|
|
|
|
.item-name {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.item-tags,
|
|
.item-labels {
|
|
display: flex;
|
|
gap: 10px;
|
|
|
|
.tag,
|
|
.label {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.tag {
|
|
padding: 3px 5px;
|
|
background: light-dark(@dark-15, @beige-15);
|
|
border: 1px solid light-dark(@dark, @beige);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.label {
|
|
gap: 4px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.item-resource {
|
|
flex: 0 0 60px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
.controls {
|
|
flex: 0 0 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: end;
|
|
gap: 8px;
|
|
}
|
|
}
|
|
|
|
.inventory-item-content {
|
|
> *:not(:last-child) {
|
|
margin-bottom: 5px;
|
|
}
|
|
&.extensible {
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.5s ease-in-out;
|
|
&.extended {
|
|
max-height: 500px;
|
|
overflow: auto;
|
|
}
|
|
}
|
|
.item-resources {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
.item-dice-resource {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 26px;
|
|
|
|
label,
|
|
i {
|
|
position: absolute;
|
|
z-index: 2;
|
|
cursor: pointer;
|
|
}
|
|
|
|
label {
|
|
color: light-dark(white, black);
|
|
filter: drop-shadow(0 0 1px light-dark(@dark-blue, @golden));
|
|
font-size: 18px;
|
|
}
|
|
|
|
img {
|
|
filter: brightness(0) saturate(100%) invert(97%) sepia(7%) saturate(580%) hue-rotate(332deg)
|
|
brightness(96%) contrast(95%);
|
|
}
|
|
|
|
i {
|
|
text-shadow: 0 0 3px white;
|
|
filter: drop-shadow(0 1px white);
|
|
color: black;
|
|
font-size: 26px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.card-item {
|
|
position: relative;
|
|
height: 120px;
|
|
width: 100px;
|
|
border: 1px solid light-dark(@dark-blue, @golden);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
.card-label {
|
|
padding-top: 15px;
|
|
.menu {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transition: all 0.3s ease;
|
|
max-height: 16px;
|
|
|
|
&.resource-menu {
|
|
max-height: 55px;
|
|
|
|
&.dice-menu {
|
|
max-height: 118px;
|
|
|
|
.item-resources {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.item-resource {
|
|
width: unset;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.card-img {
|
|
height: 100%;
|
|
width: 100%;
|
|
object-fit: cover;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.card-label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: fit-content;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding-top: 5px;
|
|
padding-bottom: 5px;
|
|
width: 100%;
|
|
position: absolute;
|
|
background-color: @dark-blue;
|
|
bottom: 0;
|
|
mask-image: linear-gradient(180deg, transparent 0%, black 20%);
|
|
|
|
.card-name {
|
|
font-family: @font-body;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-size: 12px;
|
|
line-height: 15px;
|
|
|
|
color: @beige;
|
|
}
|
|
|
|
.menu {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
max-height: 0px;
|
|
opacity: 0;
|
|
visibility: collapse;
|
|
transition: all 0.3s ease;
|
|
color: @beige;
|
|
|
|
.controls {
|
|
display: flex;
|
|
gap: 2px;
|
|
gap: 15px;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
.item-resources {
|
|
width: 92px;
|
|
}
|
|
|
|
.item-resource {
|
|
width: 92px;
|
|
}
|
|
}
|
|
|
|
.inventory-item,
|
|
.card-item {
|
|
.item-resources {
|
|
display: flex;
|
|
gap: 4px;
|
|
|
|
.resource-edit {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
.item-resource {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: end;
|
|
gap: 4px;
|
|
|
|
i {
|
|
flex: none;
|
|
font-size: 14px;
|
|
}
|
|
|
|
input {
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
|
|
.item-dice-resource {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 26px;
|
|
|
|
label {
|
|
position: absolute;
|
|
color: light-dark(white, black);
|
|
filter: drop-shadow(0 0 1px light-dark(@dark-blue, @golden));
|
|
z-index: 2;
|
|
font-size: 18px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
img {
|
|
filter: brightness(0) saturate(100%) invert(97%) sepia(7%) saturate(580%) hue-rotate(332deg)
|
|
brightness(96%) contrast(95%);
|
|
}
|
|
|
|
i {
|
|
position: absolute;
|
|
text-shadow: 0 0 3px white;
|
|
filter: drop-shadow(0 1px white);
|
|
color: black;
|
|
font-size: 26px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|