New weapon management, including shotgun

This commit is contained in:
2025-07-14 21:33:32 +02:00
parent 61b8da8ccf
commit cdefecdeba
43 changed files with 651 additions and 133 deletions

View File

@@ -183,6 +183,25 @@ i.fvtt-cthulhu-eternal {
color: var(--color-critical-failure);
font-family: var(--font-title);
}
.chat-san-request ul .san-type-buttons,
.chat-lethal-damage ul .san-type-buttons {
display: flex;
justify-content: center;
align-items: center;
margin: 10px 0;
}
.chat-san-request ul .san-type-buttons button,
.chat-lethal-damage ul .san-type-buttons button {
margin: 0 2px;
font-family: var(--font-primary);
font-size: calc(var(--font-size-standard) * 0.9);
border: none;
padding: 2px 2px;
cursor: pointer;
transition: background-color 0.3s;
min-width: 6rem;
max-width: 6rem;
}
.chat-san-request ul .san-loose-buttons,
.chat-lethal-damage ul .san-loose-buttons {
display: flex;
@@ -804,7 +823,7 @@ i.fvtt-cthulhu-eternal {
}
.fvtt-cthulhu-eternal .tab.protagonist-equipment .main-div .weapons {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-columns: repeat(1, 1fr);
gap: 4px;
}
.fvtt-cthulhu-eternal .tab.protagonist-equipment .main-div .weapons .weapon {
@@ -824,10 +843,24 @@ i.fvtt-cthulhu-eternal {
min-width: 1.8rem;
max-width: 1.8rem;
}
.fvtt-cthulhu-eternal .tab.protagonist-equipment .main-div .weapons .weapon .damage {
.fvtt-cthulhu-eternal .tab.protagonist-equipment .main-div .weapons .weapon .range {
min-width: 6rem;
max-width: 6rem;
}
.fvtt-cthulhu-eternal .tab.protagonist-equipment .main-div .weapons .weapon .ammo {
min-width: 4rem;
max-width: 4rem;
}
.fvtt-cthulhu-eternal .tab.protagonist-equipment .main-div .weapons .weapon .lethality {
display: flex;
min-width: 3.2rem;
max-width: 3.2rem;
}
.fvtt-cthulhu-eternal .tab.protagonist-equipment .main-div .weapons .weapon .damage {
display: flex;
min-width: 12rem;
max-width: 12rem;
}
.fvtt-cthulhu-eternal .tab.protagonist-equipment .main-div .weapons .weapon .name {
min-width: 10rem;
max-width: 10rem;
@@ -2153,6 +2186,24 @@ i.fvtt-cthulhu-eternal {
margin-top: 8px;
background-color: var(--color-light-1);
}
.fvtt-cthulhu-eternal .weapon-content fieldset input {
max-width: 5rem;
min-width: 5rem;
}
.fvtt-cthulhu-eternal .weapon-content fieldset select {
max-width: 14rem;
min-width: 14rem;
}
.fvtt-cthulhu-eternal .weapon-content fieldset input[type="checkbox"] {
max-width: 1.5rem;
min-width: 1.5rem;
}
.fvtt-cthulhu-eternal .weapon-content fieldset .flexrow > *:not(:first-child) {
margin-left: 1rem;
}
.fvtt-cthulhu-eternal .weapon-content fieldset .damage-distance {
margin-left: 2rem;
}
.fvtt-cthulhu-eternal .weapon-content label {
flex: 10%;
}