Files
fvtt-oath-hammer/less/settlement-sheet.less
LeRatierBretonnier ec291e9c60 fix: settlement archetype badge text color (dark instead of gold)
darken(@color-paper, 40%) was producing the same gold as the background.
Use @color-dark (#2a1a0a) directly for legible dark text.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-20 17:33:47 +01:00

179 lines
3.3 KiB
Plaintext

// ============================================================
// SETTLEMENT SHEET
// ============================================================
.oathhammer.settlement {
min-height: 520px;
}
.oathhammer .settlement-main {
padding: 0 0 8px;
border-bottom: 1px solid fade(@color-dark, 25%);
margin-bottom: 4px;
}
.oathhammer .settlement-header {
align-items: flex-start;
gap: 10px;
}
.oathhammer .settlement-header .actor-img {
width: 94px;
height: 110px;
object-fit: cover;
object-position: center top;
border: 2px solid fade(@color-dark, 40%);
border-radius: 4px;
cursor: pointer;
flex-shrink: 0;
flex-grow: 0;
}
.oathhammer .settlement-header-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 6px;
}
.oathhammer .settlement-name-row {
align-items: center;
gap: 8px;
}
.oathhammer .settlement-archetype-badge {
font-size: @font-size-sm;
color: @color-dark;
background: fade(@color-gold, 15%);
border: 1px solid fade(@color-gold, 40%);
border-radius: 3px;
padding: 1px 6px;
white-space: nowrap;
}
.oathhammer .settlement-stats {
gap: 8px;
flex-wrap: wrap;
align-items: flex-start;
.stat-item {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 80px;
label {
font-size: 0.72rem;
color: @color-dark;
opacity: 0.8;
text-transform: uppercase;
letter-spacing: 0.03em;
}
input { padding: 2px 4px; }
&--flags {
display: flex;
flex-direction: row;
gap: 8px;
align-items: center;
flex-wrap: wrap;
min-width: unset;
label {
display: flex;
align-items: center;
gap: 4px;
font-size: @font-size-sm;
text-transform: none;
letter-spacing: 0;
cursor: pointer;
}
}
}
}
.oathhammer .settlement-badge {
font-size: 0.75rem;
font-weight: bold;
border-radius: 3px;
padding: 2px 7px;
&--capital {
background: fade(@color-gold, 20%);
border: 1px solid fade(@color-gold, 50%);
color: darken(@color-gold, 30%);
}
&--siege {
background: rgba(180, 40, 40, 0.12);
border: 1px solid rgba(180, 40, 40, 0.4);
color: #8a1a1a;
}
}
.oathhammer .settlement-content .tab {
padding: 8px 0;
}
// Overview grid: garrison | founded | tax notes
.oathhammer .settlement-overview-grid {
display: grid;
grid-template-columns: 1fr 1fr 2fr;
gap: 8px;
margin-bottom: 8px;
}
.oathhammer .settlement-hint {
font-size: 0.78rem;
color: @color-dark;
opacity: 0.7;
margin: 0 0 8px;
font-style: italic;
}
// Buildings item list
.oathhammer .item-list--buildings {
.item-list-header,
.item-entry {
display: grid;
grid-template-columns: 28px 1fr 3rem 5rem 4rem 3rem;
align-items: center;
gap: 4px;
}
}
.oathhammer .item-entry.building-constructed {
background: rgba(60, 140, 60, 0.08);
.item-name { font-weight: 600; }
}
.oathhammer .item-constructed {
text-align: center;
font-size: 1rem;
color: #3a7a3a;
}
.oathhammer .item-tax {
font-size: @font-size-sm;
color: darken(@color-olive, 10%);
text-align: center;
&--inactive { opacity: 0.4; }
}
.oathhammer .item-cost {
font-size: @font-size-sm;
color: darken(@color-gold, 20%);
text-align: right;
}
.oathhammer .construct-toggle {
color: #3a7a3a;
cursor: pointer;
font-size: 1rem;
&:hover { color: darken(#3a7a3a, 15%); }
}