Merge branch 'development' into feature/party-sheet

This commit is contained in:
WBHarry 2025-11-09 13:52:46 +01:00
commit d15feabfc5
210 changed files with 4152 additions and 861 deletions

View file

@ -14,7 +14,7 @@
}
.appTheme({}, {
.inventory-item-header .img-portait .roll-img {
.inventory-item .img-portait .roll-img {
filter: invert(1);
}
});
@ -25,14 +25,12 @@
list-style-type: none;
&:not(.single-img) {
.inventory-item-header:hover {
.img-portait:has(.roll-img) {
.roll-img {
opacity: 1;
}
.item-img {
opacity: 0;
}
.img-portait:has(.roll-img):hover {
.roll-img {
opacity: 1;
}
.item-img {
opacity: 0;
}
}
@ -68,18 +66,15 @@
}
}
.inventory-item-header {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
border-radius: 3px;
.inventory-item-header,
&.inventory-item-compact {
.img-portait {
flex: 0 0 40px;
height: 40px;
cursor: pointer;
position: relative;
&:has(.roll-img) {
cursor: pointer;
}
.item-img,
.roll-img {
@ -103,53 +98,6 @@
}
}
.item-label {
flex: 1;
align-self: center;
.item-name {
font-size: var(--font-size-14);
.expanded-icon {
display: none;
}
}
.item-tags,
.item-labels {
display: flex;
gap: 10px;
.tag,
.label {
display: flex;
flex-direction: row;
align-items: center;
font-size: var(--font-size-12);
flex-wrap: wrap;
justify-content: start;
}
.tag {
padding: 3px 5px;
background: light-dark(@dark-15, @beige-15);
border: 1px solid light-dark(@dark, @beige);
border-radius: 3px;
}
.label {
gap: 4px;
color: light-dark(@dark-80, @beige-80);
}
}
}
.item-resource {
flex: 0 0 60px;
display: flex;
align-items: center;
gap: 4px;
}
.controls {
flex: 0 0 auto;
display: flex;
@ -168,6 +116,52 @@
}
}
.inventory-item-header {
align-items: center;
border-radius: 3px;
cursor: pointer;
display: flex;
gap: 10px;
.item-label {
flex: 1;
align-self: center;
.item-name {
font-size: var(--font-size-14);
.expanded-icon {
display: none;
}
}
.item-tags {
display: flex;
gap: 10px;
.tag {
align-items: center;
background: light-dark(@dark-15, @beige-15);
border-radius: 3px;
border: 1px solid light-dark(@dark, @beige);
display: flex;
flex-direction: row;
flex-wrap: wrap;
font-size: var(--font-size-12);
justify-content: start;
padding: 3px 5px;
}
}
}
.item-resource {
flex: 0 0 60px;
display: flex;
align-items: center;
gap: 4px;
}
}
.inventory-item-content {
> *:not(:last-child) {
margin-bottom: 5px;
@ -252,6 +246,41 @@
}
}
}
&.inventory-item-compact {
display: grid;
grid-template:
"img name controls" auto
"img labels labels" 1fr
/ 40px 1fr min-content;
column-gap: 8px;
> .img-portait {
grid-area: img;
}
> .item-name {
align-self: end;
line-height: 1;
padding-bottom: 1px;
}
> .controls {
grid-area: controls;
align-self: start;
padding-top: 0.3125rem;
gap: 4px;
margin-bottom: -1px;
}
> .item-labels {
align-self: start;
color: light-dark(@dark-80, @beige-80);
display: flex;
flex-direction: row;
flex-wrap: wrap;
font-size: var(--font-size-12);
gap: 4px;
grid-area: labels;
}
}
}
.card-item {

View file

@ -1,3 +1,22 @@
@import '../../utils/fonts.less';
@import '../../utils/colors.less';
@import '../../utils/mixin.less';
.appTheme({
.limited-container {
.domains-section img {
filter: @golden-filter;
}
}
}, {
.limited-container {
.domains-section img {
filter: brightness(0) saturate(100%);
}
}
});
.application.sheet.daggerheart.actor.dh-style {
.portrait img,
.profile {
@ -17,4 +36,192 @@
font-family: @font-body;
color: light-dark(@chat-blue-bg, @beige-50);
}
&.limited {
&.character,
&.adversary,
&.environment,
&.companion {
.window-content {
display: unset;
padding-bottom: 20px;
background-image: url('../assets/parchments/dh-parchment-dark.png');
}
.limited-container {
width: 100%;
padding-top: var(--header-height);
display: flex;
flex-direction: column;
gap: 8px;
header {
position: relative;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
top: -36px;
margin-bottom: -30px;
.profile {
width: 100%;
max-height: 275px;
max-width: fit-content;
mask-image: linear-gradient(0deg, transparent 0%, black 10%);
}
.title-name {
text-align: start;
font-size: var(--font-size-28);
color: light-dark(@dark-blue, @golden);
text-align: center;
}
}
.character-details {
display: flex;
flex-direction: column;
gap: 5px;
.basic-info,
.multiclass {
text-align: center;
padding: 0 10px;
}
}
.domain-details,
.bio-details,
.partner-details {
margin-top: 10px;
.domain-header,
.bio-header,
.partner-header {
display: flex;
align-items: center;
padding: 0 10px;
gap: 10px;
h3 {
font-size: var(--font-size-20);
}
}
.items-list {
padding: 0 20px;
}
.partner-placeholder {
display: flex;
opacity: 0.6;
text-align: center;
font-style: italic;
justify-content: center;
padding: 10px 0;
}
.domains-section {
position: relative;
display: flex;
gap: 10px;
background-color: light-dark(transparent, @dark-blue);
color: light-dark(@dark-blue, @golden);
padding: 5px 10px;
border: 1px solid light-dark(@dark-blue, @golden);
border-radius: 6px;
align-items: center;
width: fit-content;
height: 30px;
place-self: center;
margin-top: 10px;
h4 {
font-size: var(--font-size-14);
font-weight: bold;
text-transform: uppercase;
color: light-dark(@dark-blue, @golden);
}
.domain {
display: flex;
align-items: center;
gap: 5px;
.label {
font-size: var(--font-size-14);
font-weight: bold;
text-transform: uppercase;
color: light-dark(@dark-blue, @golden);
}
img {
height: 20px;
width: 20px;
}
}
}
.bio-list {
display: flex;
gap: 20px;
flex-wrap: wrap;
justify-content: center;
margin-top: 10px;
.bio-info {
display: flex;
flex-direction: column;
align-items: center;
padding: 10px;
border-radius: 5px;
min-width: 90px;
color: light-dark(@dark-blue, @golden);
background-color: light-dark(@dark-blue-10, @golden-40);
}
}
}
.level-details {
align-self: center;
}
.description {
font-style: italic;
text-align: center;
padding: 0 20px;
}
.tags {
display: flex;
gap: 10px;
padding-bottom: 10px;
justify-content: center;
.tag {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 3px 5px;
font-size: var(--font-size-12);
font: @font-body;
background: light-dark(@dark-15, @beige-15);
border: 1px solid light-dark(@dark, @beige);
border-radius: 3px;
}
.label {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
font-size: var(--font-size-12);
}
}
}
}
}
}