[PR]Add custom formula to weapon base attack (#964)

* Add custom formula to weapon base attack

* Remove log

* Update weapon custom damage formula label + update font-size in px
This commit is contained in:
Dapoulp 2025-08-23 14:54:57 +02:00 committed by GitHub
parent 471cbd55df
commit a72d4583cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 161 additions and 140 deletions

View file

@ -71,7 +71,7 @@
color: @beige;
h4 {
font-size: 16px;
font-size: var(--font-size-16);
font-weight: bold;
margin-bottom: 0;
font-family: @font-subtitle;

View file

@ -50,7 +50,7 @@
.formula-label {
font-style: normal;
font-weight: 500;
font-size: 14px;
font-size: var(--font-size-14);
line-height: 17px;
white-space: nowrap;
color: light-dark(@dark, @beige);

View file

@ -165,7 +165,7 @@
z-index: 1;
.remove {
font-size: 10px;
font-size: var(--font-size-10);
}
}
}
@ -400,7 +400,7 @@
display: flex;
flex-direction: column;
white-space: nowrap;
font-size: 14px;
font-size: var(--font-size-14);
font-weight: 400;
&.modifier-label {
@ -527,7 +527,7 @@
font-family: @font-body;
margin-top: 4px;
color: light-dark(#14142599, #efe6d850);
font-size: 12px;
font-size: var(--font-size-12);
padding-left: 3px;
}
}
@ -541,7 +541,7 @@
text-align: center;
}
.title-hint {
font-size: 12px;
font-size: var(--font-size-12);
font-variant: small-caps;
text-align: center;
}
@ -605,7 +605,7 @@
align-items: center;
label {
font-size: 16px;
font-size: var(--font-size-16);
}
.form-fields {
@ -776,7 +776,7 @@
.preview-text-container {
padding: 10px 0;
text-align: center;
font-size: 16px;
font-size: var(--font-size-16);
color: light-dark(@beige, @dark);
background-image: url(../assets/parchments/dh-parchment-light.png);
border-radius: 0 0 4px 4px;
@ -799,14 +799,14 @@
justify-content: center;
.preview-add-icon {
font-size: 40px;
font-size: var(--font-size-40);
color: light-dark(@dark-blue-50, @beige-50);
}
.preview-empty-subtext {
position: absolute;
bottom: 5%;
font-size: 10px;
font-size: var(--font-size-10);
font-variant: small-caps;
text-align: center;
font-style: italic;
@ -821,7 +821,7 @@
width: 54px;
border-radius: 50%;
border: 2px solid;
font-size: 48px;
font-size: var(--font-size-48);
display: flex;
align-items: center;
justify-content: center;

View file

@ -105,7 +105,7 @@
align-self: center;
.item-name {
font-size: 14px;
font-size: var(--font-size-14);
.expanded-icon {
display: none;
@ -121,9 +121,10 @@
.label {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
font-size: 12px;
font-size: var(--font-size-12);
flex-wrap: wrap;
justify-content: start;
}
.tag {
@ -179,18 +180,18 @@
overflow: hidden;
h1 {
font-size: 32px;
font-size: var(--font-size-32);
}
h2 {
font-size: 28px;
font-size: var(--font-size-28);
font-weight: 600;
}
h3 {
font-size: 20px;
font-size: var(--font-size-20);
font-weight: 600;
}
h4 {
font-size: 16px;
font-size: var(--font-size-16);
color: @beige;
font-weight: 600;
}
@ -231,7 +232,7 @@
label {
color: light-dark(white, black);
filter: drop-shadow(0 0 1px light-dark(@dark-blue, @golden));
font-size: 18px;
font-size: var(--font-size-18);
}
img {
@ -243,7 +244,7 @@
text-shadow: 0 0 3px white;
filter: drop-shadow(0 1px white);
color: black;
font-size: 26px;
font-size: 1.625rem;
}
}
}
@ -310,7 +311,7 @@
.card-name {
font-style: normal;
font-weight: 400;
font-size: 12px;
font-size: var(--font-size-12);
line-height: 15px;
color: @beige;
@ -351,7 +352,7 @@
gap: 4px;
.resource-edit {
font-size: 14px;
font-size: var(--font-size-14);
}
}
@ -363,7 +364,7 @@
i {
flex: none;
font-size: 14px;
font-size: var(--font-size-14);
}
input {
@ -383,7 +384,7 @@
color: light-dark(white, black);
filter: drop-shadow(0 0 1px light-dark(@dark-blue, @golden));
z-index: 2;
font-size: 18px;
font-size: var(--font-size-18);
cursor: pointer;
}
@ -397,7 +398,7 @@
text-shadow: 0 0 3px white;
filter: drop-shadow(0 1px white);
color: black;
font-size: 26px;
font-size: 1.625rem;
}
}
}

View file

@ -35,7 +35,7 @@
width: 80%;
.item-name input[type='text'] {
font-size: 32px;
font-size: var(--font-size-32);
height: 42px;
text-align: center;
width: 90%;
@ -103,7 +103,7 @@
transition: all 0.3s ease;
.recall-label {
font-size: 14px;
font-size: var(--font-size-14);
opacity: 0;
margin-right: 0.3rem;
transition: all 0.3s ease;
@ -141,7 +141,7 @@
.item-name {
input[type='text'] {
font-size: 32px;
font-size: var(--font-size-32);
height: 42px;
text-align: center;
width: 90%;

View file

@ -12,18 +12,18 @@
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
h1 {
font-size: 32px;
font-size: var(--font-size-32);
}
h2 {
font-size: 28px;
font-size: var(--font-size-28);
font-weight: 600;
}
h3 {
font-size: 20px;
font-size: var(--font-size-20);
font-weight: 600;
}
h4 {
font-size: 16px;
font-size: var(--font-size-16);
color: @beige;
font-weight: 600;
}