mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-05 20:34:15 +02:00
Compare commits
4 commits
ccc4186e42
...
fa6f9d56b8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa6f9d56b8 | ||
|
|
c2f8b34ef2 | ||
|
|
de0ab9d047 | ||
|
|
b9416ead5a |
41 changed files with 127 additions and 87 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { getDocFromElement } from '../../helpers/utils.mjs';
|
||||||
import { RefreshType, socketEvent } from '../../systemRegistration/socket.mjs';
|
import { RefreshType, socketEvent } from '../../systemRegistration/socket.mjs';
|
||||||
|
|
||||||
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
|
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
|
||||||
|
|
@ -47,7 +48,8 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||||
expandContent: this.expandContent,
|
expandContent: this.expandContent,
|
||||||
resetFilters: this.resetFilters,
|
resetFilters: this.resetFilters,
|
||||||
sortList: this.sortList,
|
sortList: this.sortList,
|
||||||
openSettings: this.openSettings
|
openSettings: this.openSettings,
|
||||||
|
viewSheet: this.#onViewSheet
|
||||||
},
|
},
|
||||||
position: {
|
position: {
|
||||||
left: 100,
|
left: 100,
|
||||||
|
|
@ -306,7 +308,8 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||||
{
|
{
|
||||||
items: this.items,
|
items: this.items,
|
||||||
menu: this.selectedMenu,
|
menu: this.selectedMenu,
|
||||||
formatLabel: this.formatLabel
|
formatLabel: this.formatLabel,
|
||||||
|
viewSheet: this.items[0] instanceof Actor
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -568,6 +571,11 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static async #onViewSheet(_, target) {
|
||||||
|
const document = await getDocFromElement(target);
|
||||||
|
document?.sheet?.render(true);
|
||||||
|
}
|
||||||
|
|
||||||
_createDragProcess() {
|
_createDragProcess() {
|
||||||
new foundry.applications.ux.DragDrop.implementation({
|
new foundry.applications.ux.DragDrop.implementation({
|
||||||
dragSelector: '.item-container',
|
dragSelector: '.item-container',
|
||||||
|
|
@ -606,7 +614,16 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||||
items: {
|
items: {
|
||||||
folder: 'equipments',
|
folder: 'equipments',
|
||||||
render: {
|
render: {
|
||||||
noFolder: true
|
folders: [
|
||||||
|
'equipments',
|
||||||
|
'ancestries',
|
||||||
|
'classes',
|
||||||
|
'subclasses',
|
||||||
|
'domains',
|
||||||
|
'communities',
|
||||||
|
'beastforms'
|
||||||
|
// excluded: features
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
compendium: {}
|
compendium: {}
|
||||||
|
|
|
||||||
|
|
@ -148,10 +148,14 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
|
||||||
: null;
|
: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns true if the action is usable */
|
/**
|
||||||
|
* Returns true if the action is usable.
|
||||||
|
* An action is usable on any actor type. For example, an adversary might have a base attack action.
|
||||||
|
*/
|
||||||
get usable() {
|
get usable() {
|
||||||
const actor = this.actor;
|
const actor = this.actor;
|
||||||
return this.isOwner && actor?.type === 'character';
|
const pack = actor?.pack ? game.packs.get(actor.pack) : null;
|
||||||
|
return !pack?.locked && this.isOwner;
|
||||||
}
|
}
|
||||||
|
|
||||||
static getRollType(parent) {
|
static getRollType(parent) {
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,10 @@ export default class DHItem extends foundry.documents.Item {
|
||||||
/** Returns true if the item can be used */
|
/** Returns true if the item can be used */
|
||||||
get usable() {
|
get usable() {
|
||||||
const actor = this.actor;
|
const actor = this.actor;
|
||||||
const actionsList = this.system.actionsList;
|
const pack = actor?.pack ? game.packs.get(actor.pack) : null;
|
||||||
return this.isOwner && actor?.type === 'character' && (actionsList?.size || actionsList?.length);
|
const hasActions = this.system.actionsList?.size || this.system.actionsList?.length;
|
||||||
|
const isValidType = actor?.type === 'character' || this.type === 'feature';
|
||||||
|
return !pack?.locked && this.isOwner && isValidType && hasActions;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @inheritdoc */
|
/** @inheritdoc */
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
&[disabled] {
|
&[disabled] {
|
||||||
opacity: 0.4;
|
opacity: 0.4;
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,6 @@
|
||||||
|
|
||||||
i {
|
i {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
// color: light-dark(@dark-blue, @golden);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
background: light-dark(@dark-blue-10, @golden-10);
|
background: light-dark(@dark-blue-10, @golden-10);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
|
@ -129,7 +129,7 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
background: light-dark(@dark-blue-10, @golden-10);
|
background: light-dark(@dark-blue-10, @golden-10);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
.activity-marker {
|
.activity-marker {
|
||||||
font-size: 0.5rem;
|
font-size: 0.5rem;
|
||||||
flex: none;
|
flex: none;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
h1 {
|
h1 {
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
font: 700 var(--font-size-24) var(--dh-font-subtitle);
|
font: 700 var(--font-size-24) var(--dh-font-subtitle);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
button {
|
button {
|
||||||
--button-text-color: var(--color-text-primary);
|
--button-text-color: @color-text-primary;
|
||||||
--button-size: 1.5em;
|
--button-size: 1.5em;
|
||||||
padding: 0 var(--spacer-4);
|
padding: 0 var(--spacer-4);
|
||||||
img {
|
img {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
a,
|
a,
|
||||||
span {
|
span {
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
width: 120px;
|
width: 120px;
|
||||||
height: 120px;
|
height: 120px;
|
||||||
background: light-dark(@dark-blue-10, @golden-10);
|
background: light-dark(@dark-blue-10, @golden-10);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
&.selected {
|
&.selected {
|
||||||
background: light-dark(@dark-blue-40, @golden-40);
|
background: light-dark(@dark-blue-40, @golden-40);
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
padding: 5rem 4px var(--spacer-8) 4px;
|
padding: 5rem 4px var(--spacer-8) 4px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
color: var(--color-text-primary);
|
color: @color-text-primary;
|
||||||
text-shadow: 1px 1px 2px var(--shadow-color), 0 0 10px var(--shadow-color);
|
text-shadow: 1px 1px 2px var(--shadow-color), 0 0 10px var(--shadow-color);
|
||||||
.smooth-gradient-ease-in-out(background-image, to bottom, var(--shadow-color), 100%);
|
.smooth-gradient-ease-in-out(background-image, to bottom, var(--shadow-color), 100%);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
.daggerheart.dialog.dh-style.views.tag-team-dialog .window-content {
|
.daggerheart.dialog.dh-style.views.tag-team-dialog .window-content {
|
||||||
h1 {
|
h1 {
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
font: 700 var(--font-size-24) var(--dh-font-subtitle);
|
font: 700 var(--font-size-24) var(--dh-font-subtitle);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
.roll-title {
|
.roll-title {
|
||||||
font-size: var(--font-size-20);
|
font-size: var(--font-size-20);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
&::before,
|
&::before,
|
||||||
&::after {
|
&::after {
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
content: '';
|
content: '';
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 2px;
|
height: 2px;
|
||||||
|
|
@ -202,7 +202,7 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
font-size: 48px;
|
font-size: 48px;
|
||||||
|
|
||||||
&.inactive {
|
&.inactive {
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -81,7 +81,7 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
background: light-dark(@dark-blue-10, @golden-10);
|
background: light-dark(@dark-blue-10, @golden-10);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
box-shadow: 0 4px 30px @soft-shadow;
|
box-shadow: 0 4px 30px @soft-shadow;
|
||||||
backdrop-filter: blur(9.5px);
|
backdrop-filter: blur(9.5px);
|
||||||
outline: 2px solid transparent;
|
outline: 2px solid transparent;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
border: 1px solid light-dark(@dark, @beige);
|
border: 1px solid light-dark(@dark, @beige);
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
|
@ -107,7 +107,7 @@
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: light-dark(@light-black, @dark-blue);
|
background: light-dark(@light-black, @dark-blue);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.glow {
|
&.glow {
|
||||||
|
|
@ -128,7 +128,7 @@
|
||||||
|
|
||||||
&.reverted {
|
&.reverted {
|
||||||
background: light-dark(@dark-blue-10, @golden-10);
|
background: light-dark(@dark-blue-10, @golden-10);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
border: 1px solid light-dark(@dark, transparent);
|
border: 1px solid light-dark(@dark, transparent);
|
||||||
&:hover {
|
&:hover {
|
||||||
background: light-dark(transparent, @golden);
|
background: light-dark(transparent, @golden);
|
||||||
|
|
@ -175,7 +175,7 @@
|
||||||
height: inherit;
|
height: inherit;
|
||||||
.tag {
|
.tag {
|
||||||
padding: 0.3rem 0.5rem;
|
padding: 0.3rem 0.5rem;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
background-color: light-dark(@dark-blue-10, @golden-40);
|
background-color: light-dark(@dark-blue-10, @golden-40);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
transition: 0.13s ease-out;
|
transition: 0.13s ease-out;
|
||||||
|
|
@ -353,7 +353,7 @@
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
&.with-icon {
|
&.with-icon {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -571,7 +571,7 @@
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(:first-child) {
|
&:not(:first-child) {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
font-size: var(--font-size-12);
|
font-size: var(--font-size-12);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
button {
|
button {
|
||||||
background: light-dark(@light-black, @dark-blue);
|
background: light-dark(@light-black, @dark-blue);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
outline: none;
|
outline: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
border: 1px solid light-dark(@dark-blue, @dark-blue);
|
border: 1px solid light-dark(@dark-blue, @dark-blue);
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
|
||||||
.slot {
|
.slot {
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ body.game:is(.performance-low, .noblur) {
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: light-dark(@dark-blue, @golden);
|
border-color: light-dark(@dark-blue, @golden);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
.palette-category-title {
|
.palette-category-title {
|
||||||
grid-column: span var(--effect-columns);
|
grid-column: span var(--effect-columns);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
font-size: var(--font-size-24);
|
font-size: var(--font-size-24);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@
|
||||||
.title-name {
|
.title-name {
|
||||||
text-align: start;
|
text-align: start;
|
||||||
font-size: var(--font-size-28);
|
font-size: var(--font-size-28);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -180,7 +180,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
background-color: light-dark(transparent, @dark-blue);
|
background-color: light-dark(transparent, @dark-blue);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
|
@ -194,7 +194,7 @@
|
||||||
font-size: var(--font-size-14);
|
font-size: var(--font-size-14);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.domain {
|
.domain {
|
||||||
|
|
@ -206,7 +206,7 @@
|
||||||
font-size: var(--font-size-14);
|
font-size: var(--font-size-14);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
|
@ -230,7 +230,7 @@
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
min-width: 90px;
|
min-width: 90px;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
background-color: light-dark(@dark-blue-10, @golden-40);
|
background-color: light-dark(@dark-blue-10, @golden-40);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
background-color: light-dark(transparent, @dark-blue);
|
background-color: light-dark(transparent, @dark-blue);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
font-size: var(--font-size-14);
|
font-size: var(--font-size-14);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
&.threshold-value {
|
&.threshold-value {
|
||||||
color: light-dark(@dark, @beige);
|
color: light-dark(@dark, @beige);
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
font-size: var(--font-size-12);
|
font-size: var(--font-size-12);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
.missing-header-feature {
|
.missing-header-feature {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
|
@ -170,7 +170,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
background-color: light-dark(transparent, @dark-blue);
|
background-color: light-dark(transparent, @dark-blue);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
|
@ -182,7 +182,7 @@
|
||||||
font-size: var(--font-size-14);
|
font-size: var(--font-size-14);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -195,7 +195,7 @@
|
||||||
font-size: var(--font-size-14);
|
font-size: var(--font-size-14);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
span {
|
span {
|
||||||
margin: 1px;
|
margin: 1px;
|
||||||
width: 26px;
|
width: 26px;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
&.list-icon {
|
&.list-icon {
|
||||||
i {
|
i {
|
||||||
|
|
|
||||||
|
|
@ -286,7 +286,7 @@
|
||||||
|
|
||||||
h4,
|
h4,
|
||||||
i {
|
i {
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -314,7 +314,7 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
background: @dark-blue;
|
background: @dark-blue;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
.armor-slot {
|
.armor-slot {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
@ -348,7 +348,7 @@
|
||||||
.label,
|
.label,
|
||||||
.value,
|
.value,
|
||||||
i {
|
i {
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -513,7 +513,7 @@
|
||||||
align-self: center;
|
align-self: center;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
background-color: light-dark(transparent, @dark-blue);
|
background-color: light-dark(transparent, @dark-blue);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
|
@ -525,7 +525,7 @@
|
||||||
font-size: var(--font-size-14);
|
font-size: var(--font-size-14);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
&.threshold-value {
|
&.threshold-value {
|
||||||
color: light-dark(@dark, @beige);
|
color: light-dark(@dark, @beige);
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
background-color: light-dark(var(--color-light-1), @dark-blue);
|
background-color: light-dark(var(--color-light-1), @dark-blue);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
padding: 4px 6px;
|
padding: 4px 6px;
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
|
@ -93,7 +93,7 @@
|
||||||
|
|
||||||
&.threshold-label {
|
&.threshold-label {
|
||||||
font-size: var(--font-size-10);
|
font-size: var(--font-size-10);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.threshold-value {
|
&.threshold-value {
|
||||||
|
|
@ -116,7 +116,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
font-size: var(--font-size-20);
|
font-size: var(--font-size-20);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -132,7 +132,7 @@
|
||||||
.hope-section {
|
.hope-section {
|
||||||
display: flex;
|
display: flex;
|
||||||
background-color: light-dark(transparent, @dark-blue);
|
background-color: light-dark(transparent, @dark-blue);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
padding: 3px 6px;
|
padding: 3px 6px;
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
|
@ -144,7 +144,7 @@
|
||||||
font-size: var(--font-size-12);
|
font-size: var(--font-size-12);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -212,7 +212,7 @@
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
|
|
||||||
background-color: light-dark(@dark-blue-10, @dark-blue);
|
background-color: light-dark(@dark-blue-10, @dark-blue);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
padding: 2px 5px;
|
padding: 2px 5px;
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
border-radius: 0 6px 6px 0;
|
border-radius: 0 6px 6px 0;
|
||||||
|
|
@ -260,7 +260,7 @@
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 3px;
|
gap: 3px;
|
||||||
.label {
|
.label {
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
.value {
|
.value {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
i {
|
i {
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -71,7 +71,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
.main-value {
|
.main-value {
|
||||||
font-size: var(--font-size-24);
|
font-size: var(--font-size-24);
|
||||||
|
|
@ -153,7 +153,7 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
background: light-dark(@dark-blue-10, @golden-10);
|
background: light-dark(@dark-blue-10, @golden-10);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
&.finished {
|
&.finished {
|
||||||
background-color: initial;
|
background-color: initial;
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href] {
|
a[href] {
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href]:hover,
|
a[href]:hover,
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
border: 0;
|
border: 0;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
color: var(--color-text-primary);
|
color: @color-text-primary;
|
||||||
width: 300px;
|
width: 300px;
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,7 @@
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background-color: light-dark(@dark-blue-40, @golden-40);
|
background-color: light-dark(@dark-blue-40, @golden-40);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subfolder-list {
|
.subfolder-list {
|
||||||
|
|
@ -218,7 +218,7 @@
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background-color: light-dark(@dark-blue-10, @golden-10);
|
background-color: light-dark(@dark-blue-10, @golden-10);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
|
|
@ -245,7 +245,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-list-header,
|
.item-list-header,
|
||||||
.item-list [data-action='expandContent'] {
|
.item-list .item-info[data-action] {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
|
|
@ -265,7 +265,7 @@
|
||||||
.item-list-header {
|
.item-list-header {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: light-dark(@dark-15, @dark-golden-80);
|
background-color: light-dark(@dark-15, @dark-golden-80);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
@import '../../utils/colors.less';
|
@import '../../utils/colors.less';
|
||||||
|
|
||||||
.daggerheart.dh-style.setting {
|
.daggerheart.dh-style.setting {
|
||||||
--color-form-label: var(--color-text-primary);
|
--color-form-label: @color-text-primary;
|
||||||
|
|
||||||
h2,
|
h2,
|
||||||
h3,
|
h3,
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
background: light-dark(@dark-blue-10, @golden-10);
|
background: light-dark(@dark-blue-10, @golden-10);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
|
|
||||||
|
|
@ -83,8 +83,21 @@
|
||||||
--gradient-stress: linear-gradient(15deg, rgb(130, 59, 1) 0%, rgb(252, 142, 69) 65%, rgb(190, 0, 0) 100%);
|
--gradient-stress: linear-gradient(15deg, rgb(130, 59, 1) 0%, rgb(252, 142, 69) 65%, rgb(190, 0, 0) 100%);
|
||||||
|
|
||||||
--primary-color-fear: rgba(9, 71, 179, 0.75);
|
--primary-color-fear: rgba(9, 71, 179, 0.75);
|
||||||
|
}
|
||||||
|
|
||||||
--dh-color-text-subtle: light-dark(#555, #a29086);
|
@scope (.theme-light) to (.themed) {
|
||||||
|
.dh-style,
|
||||||
|
.duality {
|
||||||
|
--color-text-emphatic: @dark-blue;
|
||||||
|
--color-text-subtle: #555;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@scope (.theme-dark) to (.themed) {
|
||||||
|
.dh-style,
|
||||||
|
.duality {
|
||||||
|
--color-text-emphatic: @golden;
|
||||||
|
--color-text-subtle: #a29086;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@primary-blue: var(--primary-blue, #1488cc);
|
@primary-blue: var(--primary-blue, #1488cc);
|
||||||
|
|
@ -193,4 +206,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@color-text-subtle: var(--dh-color-text-subtle);
|
// LESS variable versions of core foundry color variables
|
||||||
|
@color-text-emphatic: var(--color-text-emphatic);
|
||||||
|
@color-text-primary: var(--color-text-primary);
|
||||||
|
@color-text-subtle: var(--color-text-subtle);
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@
|
||||||
background: @dark-blue;
|
background: @dark-blue;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
background-color: light-dark(transparent, @dark-blue);
|
background-color: light-dark(transparent, @dark-blue);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
border: 1px solid light-dark(@dark-blue, @golden);
|
border: 1px solid light-dark(@dark-blue, @golden);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
font-size: var(--font-size-14);
|
font-size: var(--font-size-14);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ aside[role='tooltip']:has(div.daggerheart.dh-style.tooltip),
|
||||||
#tooltip.bordered-tooltip {
|
#tooltip.bordered-tooltip {
|
||||||
.tooltip-title {
|
.tooltip-title {
|
||||||
font-size: var(--font-size-20);
|
font-size: var(--font-size-20);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ aside[role='tooltip']:has(div.daggerheart.dh-style.tooltip.card-style) {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
background: light-dark(@dark-blue-60, @rustic-brown-80);
|
background: light-dark(@dark-blue-60, @rustic-brown-80);
|
||||||
color: light-dark(@dark-blue, @golden);
|
color: @color-text-emphatic;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
(hasProperty item "toChat" ) "toChat" "editDoc" ) }}' {{#unless hideTooltip}} {{#if (eq type 'attack' )}}
|
(hasProperty item "toChat" ) "toChat" "editDoc" ) }}' {{#unless hideTooltip}} {{#if (eq type 'attack' )}}
|
||||||
data-tooltip="#attack#{{item.actor.uuid}}" {{else}} data-tooltip="#item#{{item.uuid}}" {{/if}} {{/unless}}>
|
data-tooltip="#attack#{{item.actor.uuid}}" {{else}} data-tooltip="#item#{{item.uuid}}" {{/if}} {{/unless}}>
|
||||||
<img src="{{item.img}}" class="item-img {{#if isActor}}actor-img{{/if}}" />
|
<img src="{{item.img}}" class="item-img {{#if isActor}}actor-img{{/if}}" />
|
||||||
{{#if (or item.system.actionsList.size item.system.actionsList.length item.actionType)}}
|
{{#if item.usable}}
|
||||||
{{#if @root.isNPC}}
|
{{#if @root.isNPC}}
|
||||||
<img class="roll-img d20" src="systems/daggerheart/assets/icons/dice/default/d20.svg" alt="d20">
|
<img class="roll-img d20" src="systems/daggerheart/assets/icons/dice/default/d20.svg" alt="d20">
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{{#each items}}
|
{{#each items}}
|
||||||
<div class="item-container" data-item-uuid="{{uuid}}" draggable="true">
|
<div class="item-container" data-item-uuid="{{uuid}}" draggable="true">
|
||||||
<div class="item-header">
|
<div class="item-header">
|
||||||
<div class="item-info" data-action="expandContent">
|
<div class="item-info" {{#if @root.viewSheet}}data-action="viewSheet"{{else}}data-action="expandContent"{{/if}}>
|
||||||
<img src="{{img}}" data-item-key="img" class="item-list-img">
|
<img src="{{img}}" data-item-key="img" class="item-list-img">
|
||||||
<span data-item-key="name" class="item-list-name">{{name}}</span>
|
<span data-item-key="name" class="item-list-name">{{name}}</span>
|
||||||
{{#each ../menu.data.columns}}
|
{{#each ../menu.data.columns}}
|
||||||
|
|
@ -9,11 +9,13 @@
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-desc extensible">
|
{{#unless viewSheet}}
|
||||||
<span class="wrapper">
|
<div class="item-desc extensible">
|
||||||
{{{system.enrichedTags}}}
|
<span class="wrapper">
|
||||||
{{{system.enrichedDescription}}}
|
{{{system.enrichedTags}}}
|
||||||
</span>
|
{{{system.enrichedDescription}}}
|
||||||
</div>
|
</span>
|
||||||
|
</div>
|
||||||
|
{{/unless}}
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue