Merge branch 'main' into feature/reload-check

This commit is contained in:
WBHarry 2026-07-03 16:17:04 +02:00
commit 8158c1f9ff
66 changed files with 1623 additions and 1723 deletions

View file

@ -261,13 +261,14 @@
fieldset {
align-items: center;
margin-top: 5px;
margin: 5px 0 0 0;
border-radius: 6px;
border-color: @color-fieldset-border;
padding-inline: 0.625rem;
&.glassy {
background-color: light-dark(@dark-blue-10, @golden-10);
border-color: transparent;
border: none;
legend {
padding: 2px 12px;
@ -384,6 +385,10 @@
justify-content: space-between;
}
label {
white-space: nowrap;
}
.btn {
padding-top: 15px;
}
@ -399,6 +404,13 @@
> .checkbox {
align-self: end;
}
.auto-sized {
width: auto;
display: flex;
flex-direction: column;
align-items: center;
}
}
.form-group {
@ -535,50 +547,39 @@
transform-origin: top;
}
.item-buttons {
grid-column: span 3;
/* A multi-button element used to attach resources to other buttons */
.item-button {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-top: 2px;
button {
color: light-dark(@dark-blue, @dark-blue);
white-space: nowrap;
border: none;
.item-button {
display: flex;
border: 1px solid light-dark(#18162e, #18162e);
color: light-dark(#18162e, #18162e);
outline: none;
box-shadow: none;
border-radius: 6px;
&:hover {
color: @color-text-emphatic;
}
button {
border-radius: 3px 0px 0px 3px;
color: light-dark(@dark-blue, @dark-blue);
white-space: nowrap;
border: 0;
&:not(:first-child) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
padding: 6px;
background: light-dark(@dark-blue-10, @golden-secondary);
color: light-dark(@dark-blue, @dark-golden);
&:hover {
color: @color-text-emphatic;
}
&:not(:first-child) {
padding: 6px;
background: light-dark(@dark-blue-10, @golden-secondary);
border-radius: 0px 3px 3px 0px;
color: light-dark(@dark-blue, @dark-golden);
&:hover {
background: light-dark(@light-black, @dark-blue);
color: light-dark(@dark-blue, @golden-secondary);
}
background: light-dark(@light-black, @dark-blue);
color: light-dark(@dark-blue, @golden-secondary);
}
}
.spacer {
&:not(:last-child) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: 1px solid black;
content: '';
}
}
}
.artist-attribution {
width: 100%;
display: flex;

View file

@ -271,6 +271,14 @@
grid-area: labels;
}
}
.item-buttons {
grid-column: span 3;
display: flex;
gap: 4px;
flex-wrap: wrap;
margin-top: 2px;
}
}
.card-item {

View file

@ -9,111 +9,108 @@
}
});
/** Pips styling, can exist standalone even without a slot-value */
.slot-bar {
display: flex;
gap: 4px;
padding: 5px;
border: 1px solid @color-border;
border-radius: 6px;
z-index: 1;
color: @color-text-emphatic;
width: fit-content;
min-height: 22px;
flex-wrap: wrap;
.slot {
transition: all 0.3s ease;
cursor: pointer;
}
.slot:not(:has(i)) {
width: 15px;
height: 10px;
border: 1px solid @color-border;
background: light-dark(@dark-blue-10, @golden-10);
border-radius: 3px;
&.large {
width: 20px;
}
&.filled {
background: light-dark(@dark-blue, @golden);
}
}
&.armor .slot {
font-size: var(--font-size-12);
.fa-shield-halved {
color: light-dark(@dark-blue-40, @golden-40);
}
}
.empty-slot {
width: 15px;
height: 10px;
}
}
.slot-value {
display: flex;
flex-direction: column;
font-size: 1.5rem;
align-items: center;
justify-content: center;
text-align: center;
z-index: 2;
color: @beige;
.slot-label {
display: flex;
align-items: center;
color: light-dark(@beige, @dark-blue);
background: light-dark(@dark-blue, @golden);
padding: 0 5px;
width: fit-content;
font-weight: bold;
border-radius: 0px 0px 5px 5px;
font-size: var(--font-size-12);
.label {
padding-right: 5px;
}
.value {
padding-left: 6px;
border-left: 1px solid light-dark(@beige, @dark-golden);
}
}
}
.status-bar {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
position: relative;
width: 120px;
height: 40px;
.status-label {
position: relative;
top: 40px;
height: 22px;
width: 79px;
clip-path: path('M0 0H79L74 16.5L39 22L4 16.5L0 0Z');
background: light-dark(@dark-blue, @golden);
h4 {
font-weight: bold;
text-align: center;
line-height: 18px;
color: light-dark(@beige, @dark-blue);
}
}
.slot-value {
position: absolute;
display: flex;
flex-direction: column;
padding: 0 5px;
font-size: 1.5rem;
align-items: center;
width: 140px;
height: 40px;
justify-content: center;
text-align: center;
z-index: 2;
color: @beige;
.slot-bar {
display: flex;
flex-wrap: wrap;
gap: 5px;
padding: 5px;
border: 1px solid @color-border;
border-radius: 6px;
z-index: 1;
color: @color-text-emphatic;
width: fit-content;
.slot {
width: 15px;
height: 10px;
border: 1px solid @color-border;
background: light-dark(@dark-blue-10, @golden-10);
border-radius: 3px;
transition: all 0.3s ease;
cursor: pointer;
&.large {
width: 20px;
}
&.filled {
background: light-dark(@dark-blue, @golden);
}
}
.empty-slot {
width: 15px;
height: 10px;
}
}
.slot-label {
display: flex;
align-items: center;
color: light-dark(@beige, @dark-blue);
background: light-dark(@dark-blue, @golden);
padding: 0 5px;
width: fit-content;
font-weight: bold;
border-radius: 0px 0px 5px 5px;
font-size: var(--font-size-12);
.label {
padding-right: 5px;
}
.value {
padding-left: 6px;
border-left: 1px solid light-dark(@beige, @dark-golden);
}
}
}
.status-value {
position: absolute;
position: relative;
display: flex;
padding: 0 5px;
font-size: 1.5rem;
align-items: center;
width: 140px;
width: 100px;
height: 40px;
justify-content: center;
text-align: center;
z-index: 2;
color: @beige;
> * {
z-index: 1;
}
input[type='number'] {
background: transparent;
font-size: 1.5rem;
@ -146,11 +143,11 @@
.progress-bar {
position: absolute;
appearance: none;
width: 100px;
height: 40px;
width: 100%;
height: 100%;
border: 1px solid @color-border;
border-radius: 6px;
z-index: 1;
z-index: 0;
background: @dark-blue;
&::-webkit-progress-bar {
@ -175,4 +172,29 @@
border-radius: 6px;
}
}
.status-label {
position: relative;
height: 22px;
width: 79px;
background: light-dark(@dark-blue, @golden);
&.pointy {
clip-path: path('M0 0H79L74 16.5L39 22L4 16.5L0 0Z');
margin-bottom: -2px; // compensate for pointy bottom so spacing feels more "right"
}
h4 {
font-weight: bold;
text-align: center;
line-height: 18px;
color: light-dark(@beige, @dark-blue);
}
}
}
// Overrides for sidebar usage.
aside[data-application-part="sidebar"] .resources-section .slot-bar {
display: grid;
grid-template-columns: repeat(6, min-content);
grid-auto-flow: row;
}

View file

@ -54,7 +54,7 @@ body.game:is(.performance-low, .noblur) {
position: relative;
min-height: -webkit-fill-available;
transition: opacity 0.3s ease;
padding-bottom: 20px;
padding-bottom: 16px;
.tab {
padding: 0 10px;

View file

@ -39,6 +39,20 @@
.window-header > .attribution-header-label {
margin-right: var(--spacer-4);
pointer-events: none;
}
.tab-navigation {
margin-bottom: 0;
}
.tab {
flex: 1;
padding: 0;
overflow: hidden;
.search-section {
padding: 12px 14px var(--spacer-8) 12px;
}
}
.tab.inventory {
@ -46,7 +60,7 @@
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 10px;
padding: 10px 10px 0;
padding: var(--spacer-8) 16px var(--spacer-8) 16px;
.input {
color: light-dark(@dark, @beige);
@ -57,7 +71,6 @@
.tab.notes.active {
padding: 0;
margin: 0;
margin-top: -10px; // will be removed once tab-navigation bottom margin is removed on all actor sheets
scrollbar-gutter: unset;
// Add padding around top level level prosemirrors used for note tabs
@ -66,6 +79,7 @@
.editor-content {
scrollbar-gutter: stable;
padding-right: @right-padding;
padding-bottom: 4px;
}
&.inactive {
button.toggle {
@ -76,7 +90,7 @@
}
}
&.active {
padding: 8px 0 4px 16px;
padding: 8px 0 0 16px;
}
}

View file

@ -7,9 +7,8 @@
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto;
padding-bottom: 20px;
.with-scroll-shadows();
padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
}
}
}

View file

@ -5,12 +5,8 @@
.application.sheet.daggerheart.actor.dh-style.adversary {
.tab.features {
.feature-section {
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto;
padding-bottom: 20px;
.with-scroll-shadows();
padding: 16px calc(16px - var(--scrollbar-width)) 4px 16px;
.stable-scroll-container();
}
}
}

View file

@ -1,7 +1,6 @@
@import './sheet.less';
@import './features.less';
@import './header.less';
@import './sheet.less';
@import './sidebar.less';
@import './effects.less';
@import './notes.less';

View file

@ -2,35 +2,37 @@
@import '../../../utils/fonts.less';
.application.sheet.daggerheart.actor.dh-style.adversary {
--sidebar-width: 260px;
.window-content {
display: grid;
grid-template-columns: 275px 1fr;
grid-template-columns: var(--sidebar-width) 1fr;
grid-template-rows: auto 1fr;
height: 100%;
width: 100%;
padding-bottom: 0;
}
.adversary-sidebar-sheet {
grid-row: 1 / span 2;
grid-column: 1;
overflow: hidden;
.adversary-sidebar-sheet {
grid-row: 1 / span 2;
grid-column: 1;
overflow: hidden;
display: flex;
flex-direction: column;
}
.adversary-header-sheet {
grid-row: 1;
grid-column: 2;
}
.tab {
grid-row: 2;
grid-column: 2;
&.active {
display: flex;
flex-direction: column;
}
.adversary-header-sheet {
grid-row: 1;
grid-column: 2;
}
.tab {
grid-row: 2;
grid-column: 2;
&.active {
overflow: hidden;
display: flex;
flex-direction: column;
}
margin: 0 0 10px 0;
}
}
}
}

View file

@ -22,8 +22,8 @@
.application.sheet.daggerheart.actor.dh-style.adversary {
.adversary-sidebar-sheet {
width: 275px;
min-width: 275px;
width: var(--sidebar-width);
min-width: var(--sidebar-width);
border-right: 1px solid light-dark(@dark-blue, @golden);
.portrait {
@ -52,7 +52,7 @@
}
img {
height: 275px;
height: var(--sidebar-width);
}
.death-roll-btn {
@ -63,7 +63,7 @@
.threshold-section {
position: relative;
display: flex;
gap: 10px;
gap: 7px;
background-color: light-dark(transparent, @dark-blue);
color: @color-text-emphatic;
padding: 5px 10px;
@ -106,8 +106,8 @@
display: flex;
flex-direction: column;
top: -20px;
gap: 16px;
margin-bottom: -10px;
gap: 10px;
margin-bottom: -16px;
&.pip-display {
top: -15px;
@ -120,105 +120,6 @@
.resources-section {
display: flex;
justify-content: space-evenly;
margin-bottom: 16px;
.status-bar {
display: flex;
justify-content: center;
position: relative;
width: 100px;
height: 40px;
.status-label {
position: relative;
top: 40px;
height: 22px;
width: 79px;
clip-path: path('M0 0H79L74 16.5L39 22L4 16.5L0 0Z');
background: light-dark(@dark-blue, @golden);
h4 {
font-weight: bold;
text-align: center;
line-height: 18px;
color: light-dark(@beige, @dark-blue);
}
}
.status-value {
position: absolute;
display: flex;
padding: 0 6px;
font-size: 1.5rem;
align-items: center;
width: 100px;
height: 40px;
justify-content: center;
text-align: center;
z-index: 2;
color: @beige;
input[type='number'] {
background: transparent;
font-size: 1.5rem;
width: 40px;
height: 30px;
text-align: center;
border: none;
outline: 2px solid transparent;
color: @beige;
&.bar-input {
padding: 0;
color: @beige;
backdrop-filter: none;
background: transparent;
transition: all 0.3s ease;
&:hover,
&:focus {
background: @semi-transparent-dark-blue;
backdrop-filter: blur(9.5px);
}
}
}
.bar-label {
width: 40px;
}
}
.progress-bar {
position: absolute;
appearance: none;
width: 100px;
height: 40px;
border: 1px solid @color-border;
border-radius: 6px;
z-index: 1;
background: @dark-blue;
&::-webkit-progress-bar {
border: none;
background: @dark-blue;
border-radius: 6px;
}
&::-webkit-progress-value {
background: @gradient-hp;
border-radius: 6px;
}
&.stress-color::-webkit-progress-value {
background: @gradient-stress;
border-radius: 6px;
}
&::-moz-progress-bar {
background: @gradient-hp;
border-radius: 6px;
}
&.stress-color::-moz-progress-bar {
background: @gradient-stress;
border-radius: 6px;
}
}
}
}
.status-section {
@ -256,7 +157,7 @@
.status-label {
padding: 2px 10px;
width: 100%;
border-radius: 3px;
border-radius: 0 0 3px 3px;
background: light-dark(@dark-blue, @golden);
h4 {
@ -284,8 +185,8 @@
.shortcut-items-section {
overflow-y: hidden;
padding-top: 10px;
padding-bottom: 20px;
padding: 10px 0;
flex: 1;
scrollbar-gutter: stable;
.with-scroll-shadows();
@ -313,8 +214,6 @@
}
.experience-section {
margin-bottom: 20px;
.title {
display: flex;
gap: 15px;
@ -331,21 +230,21 @@
gap: 5px;
width: 100%;
margin-top: 10px;
align-items: center;
align-items: stretch;
padding: 0 4px 0 12px;
.experience-row {
display: flex;
gap: 5px;
width: 250px;
align-items: center;
justify-content: space-between;
.experience-name {
width: 180px;
display: flex;
align-items: center;
text-align: start;
font-size: var(--font-size-14);
flex: 1;
color: light-dark(@dark, @beige);
line-height: 1;
}
@ -370,9 +269,7 @@
.reaction-section {
display: flex;
padding: 0 10px;
margin-top: 20px;
width: 100%;
margin: 10px;
button {
height: 40px;

View file

@ -8,17 +8,14 @@
display: flex;
flex-direction: column;
gap: 10px;
height: 100%;
overflow-y: auto;
padding-top: 8px;
padding-bottom: 20px;
height: 100%;
.with-scroll-shadows();
height: 100%;
padding: 12px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
}
.characteristics-section {
gap: 20px;
padding: 0 10px;
padding: 0 4px;
}
.biography-section {

View file

@ -8,9 +8,8 @@
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto;
padding-bottom: 20px;
.with-scroll-shadows();
padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
}
}
}

View file

@ -8,9 +8,8 @@
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto;
padding-bottom: 20px;
.with-scroll-shadows();
padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
}
}
}

View file

@ -19,16 +19,19 @@
.application.sheet.daggerheart.actor.dh-style.character {
.character-header-sheet {
padding: 0 15px;
padding-top: var(--header-height);
width: 100%;
> *:not(line-div, .tab-navigation) {
padding-left: 15px;
padding-right: 15px;
}
.name-row {
display: flex;
gap: 6px;
align-items: start;
justify-content: space-between;
padding: 0;
padding-top: 5px;
flex: 1;
@ -100,8 +103,8 @@
.character-details {
display: flex;
justify-content: space-between;
padding: 5px 0;
margin-bottom: 8px;
margin-top: 5px;
margin-bottom: 10px;
font-size: var(--font-size-12);
color: @color-text-emphatic;
@ -130,7 +133,6 @@
.character-row {
display: flex;
align-items: center;
padding: 0;
margin-bottom: 12px;
.resource-section {
@ -218,12 +220,11 @@
.character-traits {
display: flex;
padding: 0;
margin-bottom: 15px;
justify-content: space-between;
max-width: 38.5rem;
gap: 0.5rem;
padding-left: 0.5rem;
margin-left: 0.5rem;
.trait {
cursor: pointer;
@ -325,5 +326,9 @@
}
}
}
.tab-navigation button[data-action="openSettings"] {
margin-right: 12px;
}
}
}

View file

@ -1,8 +1,8 @@
@import './sheet.less';
@import './biography.less';
@import './effects.less';
@import './features.less';
@import './header.less';
@import './inventory.less';
@import './loadout.less';
@import './sheet.less';
@import './sidebar.less';

View file

@ -7,11 +7,9 @@
.items-section {
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto;
margin-top: 20px;
padding-bottom: 20px;
.with-scroll-shadows();
gap: 10px;
padding: 8px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
}
}
}

View file

@ -50,11 +50,8 @@
display: flex;
flex-direction: column;
gap: 10px;
height: 100%;
overflow-y: auto;
margin-top: 20px;
padding-bottom: 20px;
.with-scroll-shadows();
padding: 8px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
}
}
}

View file

@ -30,7 +30,7 @@
&.active {
display: flex;
flex-direction: column;
overflow: hidden;
margin: 0 0 10px 0;
}
}
}

View file

@ -89,113 +89,13 @@
.resources-section {
justify-content: space-around;
margin: 8px 2px 8px 2px;
margin: 8px 2px 0 2px;
}
}
.resources-section {
display: flex;
justify-content: space-evenly;
margin-bottom: 20px;
.status-bar {
display: flex;
justify-content: center;
position: relative;
width: 120px;
height: 40px;
.status-label {
position: relative;
top: 40px;
height: 22px;
width: 79px;
clip-path: path('M0 0H79L74 16.5L39 22L4 16.5L0 0Z');
background: light-dark(@dark-blue, @golden);
h4 {
font-weight: bold;
text-align: center;
line-height: 18px;
color: light-dark(@beige, @dark-blue);
}
}
.status-value {
position: absolute;
display: flex;
padding: 0 5px;
font-size: 1.5rem;
align-items: center;
width: 140px;
height: 40px;
justify-content: center;
text-align: center;
z-index: 2;
color: @beige;
input[type='number'] {
background: transparent;
font-size: 1.5rem;
width: 40px;
height: 30px;
text-align: center;
border: none;
outline: 2px solid transparent;
color: @beige;
&.bar-input {
padding: 0;
color: @beige;
backdrop-filter: none;
background: transparent;
transition: all 0.3s ease;
&:hover,
&:focus {
background: @semi-transparent-dark-blue;
backdrop-filter: blur(9.5px);
}
}
}
.bar-label {
width: 40px;
}
}
.progress-bar {
position: absolute;
appearance: none;
width: 100px;
height: 40px;
border: 1px solid @color-border;
border-radius: 6px;
z-index: 1;
background: @dark-blue;
&::-webkit-progress-bar {
border: none;
background: @dark-blue;
border-radius: 6px;
}
&::-webkit-progress-value {
background: @gradient-hp;
border-radius: 6px;
}
&.stress-color::-webkit-progress-value {
background: @gradient-stress;
border-radius: 6px;
}
&::-moz-progress-bar {
background: @gradient-hp;
border-radius: 6px;
}
&.stress-color::-moz-progress-bar {
background: @gradient-stress;
border-radius: 6px;
}
}
}
}
.status-section {
@ -245,21 +145,21 @@
.status-bar.armor-slots {
display: flex;
justify-content: center;
position: relative;
width: 95px;
height: 30px;
white-space: nowrap;
.status-label {
height: 30px;
}
.status-label {
padding: 2px 2px;
position: relative;
top: 30px;
height: 22px;
width: 95px;
border-radius: 3px;
background: light-dark(@dark-blue, @golden);
clip-path: none;
display: flex;
align-items: center;
justify-content: center;
@ -291,40 +191,16 @@
}
}
.slot-value {
position: absolute;
display: flex;
padding: 0 5px;
font-size: 1.2rem;
align-items: center;
width: 80px;
height: 30px;
justify-content: center;
text-align: center;
z-index: 2;
color: light-dark(@dark-blue, @beige);
flex-direction: column;
.slot-bar {
display: flex;
flex-wrap: wrap;
gap: 4px;
padding: 5px;
border: 1px solid @color-border;
border-radius: 6px;
z-index: 1;
background: @dark-blue;
justify-content: center;
color: @color-text-emphatic;
.armor-slot {
cursor: pointer;
transition: all 0.3s ease;
font-size: var(--font-size-12);
.fa-shield-halved {
color: light-dark(@dark-blue-40, @golden-40);
}
}
border-bottom: none;
}
.slot-label {
display: flex;
@ -364,41 +240,21 @@
}
}
.status-value {
position: absolute;
display: flex;
padding: 0 6px;
font-size: 1.2rem;
align-items: center;
width: 80px;
height: 30px;
justify-content: center;
text-align: center;
z-index: 2;
color: light-dark(@dark-blue, @beige);
border: 1px solid @color-border;
border-bottom: none;
border-radius: 6px 6px 0 0;
input[type='number'] {
background: transparent;
font-size: 1.2rem;
width: 30px;
height: 20px;
text-align: center;
border: none;
outline: 2px solid transparent;
color: light-dark(@dark-blue, @beige);
&.bar-input {
padding: 0;
color: light-dark(@dark-blue, @beige);
backdrop-filter: none;
background: transparent;
&:hover,
&:focus {
background: @semi-transparent-dark-blue;
backdrop-filter: blur(9.5px);
}
}
}
@ -407,32 +263,9 @@
}
}
.progress-bar {
position: absolute;
appearance: none;
width: 80px;
height: 30px;
border: 1px solid @color-border;
border-radius: 6px;
z-index: 1;
background: light-dark(transparent, @dark-blue);
border-bottom: none;
border-radius: 6px 6px 0 0;
&::-webkit-progress-bar {
border: none;
background: light-dark(transparent, @dark-blue);
}
&::-webkit-progress-value {
background: @gradient-stress;
}
&.stress-color::-webkit-progress-value {
background: @gradient-stress;
}
&::-moz-progress-bar {
background: @gradient-stress;
}
&.stress-color::-moz-progress-bar {
background: @gradient-stress;
}
}
}

View file

@ -1,7 +1,10 @@
@import '../../../utils/colors.less';
@import '../../../utils/fonts.less';
.application.sheet.daggerheart.actor.dh-style.companion {
.application.sheet.daggerheart.actor.dh-style.companion .tab.details.active {
padding: 12px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
.partner-section,
.attack-section,
.experience-list {

View file

@ -6,9 +6,8 @@
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto;
padding-bottom: 20px;
.with-scroll-shadows();
padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
}
}
}

View file

@ -5,12 +5,8 @@
.application.sheet.daggerheart.actor.dh-style.environment {
.tab.features {
.feature-section {
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto;
padding-bottom: 4px;
.with-scroll-shadows();
padding: 16px calc(16px - var(--scrollbar-width)) 4px 16px;
.stable-scroll-container();
}
}
}

View file

@ -1,4 +1,4 @@
@import './sheet.less';
@import './features.less';
@import './header.less';
@import './potentialAdversaries.less';
@import './sheet.less';

View file

@ -6,9 +6,8 @@
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto;
padding-bottom: 4px;
.with-scroll-shadows();
padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
}
}
}

View file

@ -14,9 +14,7 @@
.application.sheet.daggerheart.actor.dh-style.environment {
.tab {
flex: 1;
overflow-y: auto;
&.active {
overflow: hidden;
display: flex;

View file

@ -7,12 +7,8 @@
}
.feature-section {
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto;
padding-bottom: 4px;
.with-scroll-shadows();
padding: 16px calc(16px - var(--scrollbar-width)) 4px 16px;
.stable-scroll-container();
}
}
}

View file

@ -1,295 +1,286 @@
@import '../../../utils/colors.less';
@import '../../../utils/fonts.less';
@import '../../../utils/mixin.less';
.application.sheet.daggerheart.actor.dh-style.party .tab.partyMembers {
overflow: auto;
.actors-list {
display: flex;
flex-direction: column;
gap: 8px;
align-items: stretch;
width: 100%;
.actor-resources {
display: grid;
grid-template:
"img header" min-content
"img body" 1fr
/ 7.5rem 1fr;
gap: 6px;
column-gap: 12px;
padding: 6px;
background-color: light-dark(@dark-blue-10, @golden-10);
.actor-img-frame {
grid-area: img;
width: 7.375rem;
height: 7.375rem;
position: relative;
.actor-img {
object-fit: cover;
object-position: top center;
border-radius: 6px;
width: 100%;
height: 100%;
}
.equipped-weapons {
position: absolute;
top: -2px;
left: -3px;
display: flex;
flex-direction: column;
gap: 1px;
img {
border-radius: 50%;
width: 24px;
height: 24px;
border: 1px solid @color-border;
object-fit: cover;
}
}
.evasion {
position: absolute;
top: 1px;
right: 1px;
width: 1.75rem;
height: 1.75rem;
background: url('../assets/svg/trait-shield.svg') no-repeat;
background-size: 100%;
color: var(--color-light-1);
font-size: var(--font-size-14);
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
}
.threshold-section {
position: absolute;
left: 0;
right: 0;
bottom: -2px;
margin: auto;
display: flex;
gap: 4px;
background-color: light-dark(var(--color-light-1), @dark-blue);
color: @color-text-emphatic;
padding: 4px 6px;
border: 1px solid @color-border;
border-radius: 3px;
align-items: baseline;
width: fit-content;
h4 {
font-weight: bold;
text-transform: uppercase;
white-space: nowrap;
&.threshold-label {
font-size: var(--font-size-10);
color: @color-text-emphatic;
}
&.threshold-value {
font-size: var(--font-size-11);
color: light-dark(@dark, @beige);
}
}
}
}
header {
grid-area: header;
display: grid;
grid-template:
"name hope" min-content
"subtitle subtitle" min-content
/ 1fr min-content;
.actor-name {
width: 100%;
z-index: 1;
font-size: var(--font-size-20);
color: @color-text-emphatic;
font-weight: bold;
}
.delete-icon {
font-size: 0.75em;
}
.subtitle {
grid-area: subtitle;
font-size: var(--font-size-14);
}
.hope-section {
display: flex;
background-color: light-dark(transparent, @dark-blue);
color: @color-text-emphatic;
padding: 3px 6px;
border: 1px solid @color-border;
border-radius: 3px;
align-items: center;
width: fit-content;
margin-left: auto;
h4 {
font-size: var(--font-size-12);
font-weight: bold;
text-transform: uppercase;
color: @color-text-emphatic;
margin-right: 3px;
}
.hope-value {
display: flex;
cursor: pointer;
font-size: var(--font-size-12);
margin-left: 1px;
}
}
}
.body {
grid-area: body;
display: flex;
align-items: start;
justify-content: space-between;
}
.resources {
display: flex;
flex-direction: column;
gap: 4px;
.slot-section {
display: flex;
flex-direction: row;
align-items: stretch;
.slot-label {
display: flex;
align-items: center;
color: light-dark(@beige, @dark-blue);
background: light-dark(@dark-blue, @golden);
padding: 0 4px;
width: fit-content;
font-weight: bold;
border-radius: 6px 0px 0px 6px;
font-size: var(--font-size-12);
white-space: nowrap;
.label {
padding-right: 2px;
}
.value {
font-variant-numeric: tabular-nums;
.current {
display: inline-block;
text-align: end;
width: 2ch;
}
.max {
display: inline-block;
text-align: start;
width: 2ch;
}
}
}
.slot-bar {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 4px;
background-color: light-dark(@dark-blue-10, @dark-blue);
color: @color-text-emphatic;
padding: 2px 5px;
border: 1px solid @color-border;
border-radius: 0 6px 6px 0;
width: fit-content;
min-height: 22px;
.armor-slot {
cursor: pointer;
transition: all 0.3s ease;
font-size: var(--font-size-12);
.fa-shield-halved {
color: light-dark(@dark-blue-40, @golden-40);
}
}
.slot {
width: 16px;
height: 10px;
border: 1px solid @color-border;
background: light-dark(@dark-blue-10, @golden-10);
border-radius: 3px;
transition: all 0.3s ease;
cursor: pointer;
&.filled {
background: light-dark(@dark-blue, @golden);
}
}
}
}
}
.traits {
background-color: light-dark(@dark-blue-10, @dark-blue);
border: 1px solid @color-border;
border-radius: 6px;
display: grid;
grid-template-columns: 1fr 1fr;
font-size: var(--font-size-12);
padding: 3px 4px;
gap: 3px 7px;
.trait {
display: flex;
justify-content: space-between;
gap: 3px;
.label {
color: @color-text-emphatic;
}
.value {
font-weight: 600;
}
}
}
}
}
.actors-list.limited {
.actor-resources {
display: flex;
align-items: center;
}
.actor-img-frame {
width: 3rem;
height: 3rem;
}
}
.actors-dragger {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 100%;
height: 40px;
border: 1px dashed light-dark(@dark-blue-50, @beige-50);
border-radius: 3px;
color: light-dark(@dark-blue-50, @beige-50);
}
}
@import '../../../utils/colors.less';
@import '../../../utils/fonts.less';
@import '../../../utils/mixin.less';
.application.sheet.daggerheart.actor.dh-style.party .tab.partyMembers {
padding: 12px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
.actions-section {
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
margin-bottom: 10px;
gap: 20px;
background-color: light-dark(@dark-blue-10, @golden-10);
button {
span {
font-size: 12px;
}
}
.active-action {
animation: glow 0.75s infinite alternate;
}
}
.actors-list {
display: flex;
flex-direction: column;
gap: 8px;
align-items: stretch;
width: 100%;
.actor-resources {
display: grid;
grid-template:
"img header" min-content
"img body" 1fr
/ 7.5rem 1fr;
gap: 6px;
column-gap: 12px;
padding: 6px;
background-color: light-dark(@dark-blue-10, @golden-10);
.actor-img-frame {
grid-area: img;
width: 7.375rem;
height: 7.375rem;
position: relative;
.actor-img {
object-fit: cover;
object-position: top center;
border-radius: 6px;
width: 100%;
height: 100%;
}
.equipped-weapons {
position: absolute;
top: -2px;
left: -3px;
display: flex;
flex-direction: column;
gap: 1px;
img {
border-radius: 50%;
width: 24px;
height: 24px;
border: 1px solid @color-border;
object-fit: cover;
}
}
.evasion {
position: absolute;
top: 1px;
right: 1px;
width: 1.75rem;
height: 1.75rem;
background: url('../assets/svg/trait-shield.svg') no-repeat;
background-size: 100%;
color: var(--color-light-1);
font-size: var(--font-size-14);
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
}
.threshold-section {
position: absolute;
left: 0;
right: 0;
bottom: -2px;
margin: auto;
display: flex;
gap: 4px;
background-color: light-dark(var(--color-light-1), @dark-blue);
color: @color-text-emphatic;
padding: 4px 6px;
border: 1px solid @color-border;
border-radius: 3px;
align-items: baseline;
width: fit-content;
h4 {
font-weight: bold;
text-transform: uppercase;
white-space: nowrap;
&.threshold-label {
font-size: var(--font-size-10);
color: @color-text-emphatic;
}
&.threshold-value {
font-size: var(--font-size-11);
color: light-dark(@dark, @beige);
}
}
}
}
header {
grid-area: header;
display: grid;
grid-template:
"name hope" min-content
"subtitle subtitle" min-content
/ 1fr min-content;
.actor-name {
width: 100%;
z-index: 1;
font-size: var(--font-size-20);
color: @color-text-emphatic;
font-weight: bold;
}
.delete-icon {
font-size: 0.75em;
}
.subtitle {
grid-area: subtitle;
font-size: var(--font-size-14);
}
.hope-section {
display: flex;
background-color: light-dark(transparent, @dark-blue);
color: @color-text-emphatic;
padding: 3px 6px;
border: 1px solid @color-border;
border-radius: 3px;
align-items: center;
width: fit-content;
margin-left: auto;
h4 {
font-size: var(--font-size-12);
font-weight: bold;
text-transform: uppercase;
color: @color-text-emphatic;
margin-right: 3px;
}
.hope-value {
display: flex;
cursor: pointer;
font-size: var(--font-size-12);
margin-left: 1px;
}
}
}
.body {
grid-area: body;
display: flex;
align-items: start;
justify-content: space-between;
}
.resources {
display: flex;
flex-direction: column;
gap: 4px;
.slot-section {
display: flex;
flex-direction: row;
align-items: stretch;
.slot-label {
display: flex;
align-items: center;
color: light-dark(@beige, @dark-blue);
background: light-dark(@dark-blue, @golden);
padding: 0 4px;
width: fit-content;
font-weight: bold;
border-radius: 6px 0px 0px 6px;
font-size: var(--font-size-12);
white-space: nowrap;
.label {
padding-right: 2px;
}
.value {
font-variant-numeric: tabular-nums;
.current {
display: inline-block;
text-align: end;
width: 2ch;
}
.max {
display: inline-block;
text-align: start;
width: 2ch;
}
}
}
.slot-bar {
align-items: center;
flex-wrap: wrap;
background-color: light-dark(@dark-blue-10, @dark-blue);
padding: 2px 5px;
border-radius: 0 6px 6px 0;
width: fit-content;
}
}
}
.traits {
background-color: light-dark(@dark-blue-10, @dark-blue);
border: 1px solid @color-border;
border-radius: 6px;
display: grid;
grid-template-columns: 1fr 1fr;
font-size: var(--font-size-12);
padding: 3px 4px;
gap: 3px 7px;
.trait {
display: flex;
justify-content: space-between;
gap: 3px;
.label {
color: @color-text-emphatic;
}
.value {
font-weight: 600;
}
}
}
}
}
.actors-list.limited {
.actor-resources {
display: flex;
align-items: center;
}
.actor-img-frame {
width: 3rem;
height: 3rem;
}
}
.actors-dragger {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 100%;
height: 40px;
border: 1px dashed light-dark(@dark-blue-50, @beige-50);
border-radius: 3px;
color: light-dark(@dark-blue-50, @beige-50);
}
}

View file

@ -17,35 +17,8 @@
});
.application.sheet.daggerheart.actor.dh-style.party {
.tab {
flex: 1;
overflow-y: auto;
scrollbar-gutter: stable;
&.active {
overflow: auto;
display: flex;
flex-direction: column;
}
.actions-section {
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
margin-bottom: 10px;
gap: 20px;
background-color: light-dark(@dark-blue-10, @golden-10);
button {
span {
font-size: 12px;
}
}
.active-action {
animation: glow 0.75s infinite alternate;
}
}
.tab.active {
display: flex;
flex-direction: column;
}
}

View file

@ -174,10 +174,10 @@
--fade-start: 0;
}
10%, 100% {
--fade-start: 12px;
--fade-start: 14px;
}
0%, 90% {
--fade-end: 12px;
--fade-end: 14px;
}
100% {
--fade-end: 0;
@ -198,3 +198,9 @@
transparent 100%
);
}
.stable-scroll-container() {
overflow-y: auto;
scrollbar-gutter: stable;
.with-scroll-shadows();
}