Enhancements as per issue tracking sheet

This commit is contained in:
2026-03-19 15:39:25 +01:00
parent b2befe039e
commit b67d85c6be
22 changed files with 588 additions and 55 deletions

View File

@@ -229,6 +229,11 @@
font-size: calc(0.86rem * 0.9);
font-weight: bold;
}
.oathhammer .skills-container .skill-row a.skill-name-col {
display: inline-flex;
align-items: center;
gap: 5px;
}
.oathhammer .skills-container .skill-row .skill-rank-col select,
.oathhammer .skills-container .skill-row .skill-modifier-col input {
width: 100%;
@@ -433,6 +438,19 @@
font-size: 0.86rem;
font-weight: bold;
}
.oathhammer .character-main .character-identity-bar .identity-slot a.class-open-link {
flex: 1;
font-family: "BlueDragon", "Palatino Linotype", serif;
font-size: 0.86rem;
font-weight: bold;
opacity: 1;
text-decoration: none;
cursor: pointer;
}
.oathhammer .character-main .character-identity-bar .identity-slot a.class-open-link:hover {
text-decoration: underline;
opacity: 1;
}
.oathhammer .character-main .character-identity-bar .identity-slot .slot-icon {
font-size: calc(0.86rem * 0.9);
opacity: 0.8;
@@ -557,6 +575,51 @@
width: 4rem;
text-align: center;
}
.oathhammer .currency-stepper {
display: flex;
align-items: center;
gap: 2px;
}
.oathhammer .currency-stepper input {
width: 3.5rem;
text-align: center;
}
/* Shared +/- button style */
.oathhammer .qty-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
font-size: 0.9rem;
font-weight: bold;
line-height: 1;
color: #2a1a0a;
background: rgba(200, 168, 75, 0.2);
border: 1px solid rgba(200, 168, 75, 0.5);
border-radius: 3px;
cursor: pointer;
user-select: none;
flex-shrink: 0;
text-decoration: none;
}
.oathhammer .qty-btn:hover {
background: rgba(200, 168, 75, 0.45);
color: #2a1a0a;
}
/* Quantity stepper in item rows */
.oathhammer .item-qty-stepper {
display: flex;
align-items: center;
gap: 3px;
justify-content: center;
}
.oathhammer .item-qty-stepper .qty-value {
min-width: 1.6rem;
text-align: center;
font-size: calc(0.86rem * 0.9);
font-weight: bold;
}
.oathhammer .identity-lineage-class {
gap: 8px;
margin-bottom: 8px;
@@ -671,6 +734,9 @@
.oathhammer .item-list-header .col-name {
text-align: left;
}
.oathhammer .item-list-header .col-oath-effect {
text-align: left;
}
.oathhammer .item-entry {
display: grid;
align-items: center;
@@ -767,7 +833,7 @@
}
.oathhammer .item-list--ammo .item-list-header,
.oathhammer .item-list--ammo .item-entry {
grid-template-columns: 24px 1fr 4rem 3.5rem;
grid-template-columns: 24px 1fr 5.5rem 3.5rem;
}
.oathhammer .item-list--spell .item-list-header,
.oathhammer .item-list--spell .item-entry {
@@ -783,7 +849,7 @@
}
.oathhammer .item-list--equipment .item-list-header,
.oathhammer .item-list--equipment .item-entry {
grid-template-columns: 24px 1fr 5rem 3rem 3.5rem;
grid-template-columns: 24px 1fr 5rem 5.5rem 3.5rem;
}
.oathhammer .item-list--magic-item .item-list-header,
.oathhammer .item-list--magic-item .item-entry {
@@ -799,7 +865,21 @@
}
.oathhammer .item-list--oath .item-list-header,
.oathhammer .item-list--oath .item-entry {
grid-template-columns: 24px 1fr 7rem 3.5rem 3.5rem;
grid-template-columns: 24px 1fr 10rem 3.5rem 3.5rem;
}
.oathhammer .item-oath-effect {
font-size: calc(0.86rem * 0.88);
color: #2a1a0a;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.oathhammer .item-oath-effect.oath-boon {
color: #1a5c2a;
}
.oathhammer .item-oath-effect.oath-bane {
color: #c0392b;
font-style: italic;
}
.oathhammer .item-usage {
font-size: calc(0.86rem * 0.9);
@@ -1157,6 +1237,14 @@
.fvtt-oath-hammer .window-content {
background: #f5ead0;
padding: 6px 8px;
/* iOS Safari flex-overflow fix: prevent flex child collapse */
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
/* iOS Safari: ensure dialog content is not hidden due to flex-height collapse */
.fvtt-oath-hammer.dialog .window-content {
min-height: 80px;
height: auto;
}
.fvtt-oath-hammer .oh-roll-dialog {
font-family: "Calibri", "Segoe UI", sans-serif;
@@ -1325,6 +1413,27 @@
cursor: pointer;
flex: 1 1 auto;
}
/* Range conditions stacked checkbox block */
.fvtt-oath-hammer .oh-roll-dialog .roll-option-block {
display: flex;
flex-direction: column;
gap: 4px;
padding: 4px 0;
border-top: 1px solid rgba(83, 81, 40, 0.15);
}
.fvtt-oath-hammer .oh-roll-dialog .roll-option-block-label {
font-size: calc(0.86rem * 0.85);
font-weight: bold;
color: #5a3e1b;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.fvtt-oath-hammer .oh-roll-dialog .range-conditions {
display: flex;
flex-direction: column;
gap: 2px;
padding-left: 4px;
}
.fvtt-oath-hammer .oh-roll-dialog .roll-visibility-block select {
width: 100%;
padding: 4px 6px;
@@ -1777,3 +1886,98 @@
.item-list--armor .item-actions a[data-action="edit"] {
margin-left: 6px;
}
/* ============================================================
FREE ROLL BAR — Chat sidebar widget
============================================================ */
.oh-free-roll-bar {
pointer-events: all;
display: flex;
align-items: center;
gap: 6px;
padding: 5px 8px;
background: linear-gradient(135deg, #2a1a0a 0%, #3d2812 100%);
border-top: 1px solid rgba(255, 200, 80, 0.25);
border-bottom: 1px solid rgba(0, 0, 0, 0.3);
flex-wrap: wrap;
}
.oh-free-roll-bar .oh-frb-label {
color: #f5d78e;
font-family: "BlueDragon", "Palatino Linotype", serif;
font-size: calc(0.86rem * 0.9);
white-space: nowrap;
display: flex;
align-items: center;
gap: 4px;
opacity: 0.9;
}
.oh-free-roll-bar .oh-frb-controls {
display: flex;
align-items: center;
gap: 5px;
flex: 1;
flex-wrap: wrap;
}
.oh-free-roll-bar .oh-frb-pool {
height: 1.6rem;
font-size: 0.8rem;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 200, 80, 0.3);
border-radius: 3px;
color: #f5ead0;
cursor: pointer;
padding: 0 3px;
}
.oh-free-roll-bar .oh-frb-pool option {
background: #2a1a0a;
color: #f5ead0;
}
.oh-free-roll-bar .oh-frb-color {
height: 1.6rem;
font-size: 0.8rem;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 200, 80, 0.3);
border-radius: 3px;
color: #f5ead0;
cursor: pointer;
padding: 0 3px;
}
.oh-free-roll-bar .oh-frb-color option {
background: #2a1a0a;
color: #f5ead0;
}
.oh-free-roll-bar .oh-frb-explode-label {
display: flex;
align-items: center;
gap: 3px;
color: #f5d78e;
font-size: 0.78rem;
cursor: pointer;
white-space: nowrap;
opacity: 0.85;
}
.oh-free-roll-bar .oh-frb-explode-label input[type="checkbox"] {
cursor: pointer;
accent-color: #c9a227;
}
.oh-free-roll-bar .oh-frb-roll-btn {
margin-left: auto;
height: 1.7rem;
padding: 0 10px;
background: linear-gradient(135deg, #c9a227 0%, #8a6a10 100%);
border: 1px solid rgba(255, 200, 80, 0.4);
border-radius: 4px;
color: #1a0e00;
font-family: "BlueDragon", "Palatino Linotype", serif;
font-size: calc(0.86rem * 0.85);
font-weight: bold;
cursor: pointer;
white-space: nowrap;
transition: filter 0.15s;
}
.oh-free-roll-bar .oh-frb-roll-btn:hover {
filter: brightness(1.15);
}
.oh-free-roll-bar .oh-frb-roll-btn:active {
filter: brightness(0.9);
}