Refactor header: card-based layout with colored stat cards
- Replace flat ul/li header with .header-banner + .header-stat-cards - 5 colored stat cards: LOI (amber), CHAOS (red), BONNE AVENTURE (green), VIGUEUR (maroon), ÂME (navy) - Profile image: 90px with golden border + hover glow - Character name: large serif font (CentaurMT) with transparent bg - Fix overflow: visible on .stat-card to prevent select dropdown clipping - Fix label colors: dark (#1a1008) instead of white for readability - VIGUEUR big value: Signika/sans-serif font (avoids CentaurMT 1/I confusion) - Consistent font sizes and alignment across all stat fields Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -29,199 +29,253 @@
|
||||
// SURCHARGE: simple-converted.less définit flex: 0 0 210px
|
||||
.sheet-header {
|
||||
background: url("../assets/ui/pc_sheet_bg.webp") repeat;
|
||||
padding: 0.5rem;
|
||||
padding: 0.4rem 0.5rem;
|
||||
margin: 0;
|
||||
flex: 0 0 auto !important; // Override simple-converted
|
||||
overflow: visible !important; // Override simple-converted
|
||||
flex: 0 0 auto !important;
|
||||
overflow: visible !important;
|
||||
|
||||
.background-sheet-header {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.header-main-content {
|
||||
flex: 1;
|
||||
// ── Bannière : image + nom + toggle ──────────────────────────────
|
||||
.header-banner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.header-stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr 1fr;
|
||||
gap: 0.75rem;
|
||||
padding: 0.5rem;
|
||||
background: rgba(0, 0, 0, 0.15);
|
||||
border: 2px solid rgba(139, 69, 19, 0.5);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.stat-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.3rem;
|
||||
padding: 0.35rem 0.6rem;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid rgba(139, 69, 19, 0.4);
|
||||
border-radius: 3px;
|
||||
|
||||
&.stat-group-health {
|
||||
border-left: 3px solid rgba(200, 0, 0, 0.6);
|
||||
background: rgba(40, 0, 0, 0.15);
|
||||
}
|
||||
}
|
||||
|
||||
.stat-title {
|
||||
font-size: 0.75rem;
|
||||
font-weight: bold;
|
||||
color: #f5e6d3;
|
||||
margin: 0;
|
||||
padding: 0 0 0.3rem 0;
|
||||
border-bottom: 1px solid rgba(139, 69, 19, 0.5);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
font-family: "CentaurMT", serif;
|
||||
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
.stat-values {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 0.5rem;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.stat-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.2rem;
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 0.4rem;
|
||||
|
||||
.stat-label {
|
||||
font-size: 0.7rem;
|
||||
color: #d4c5b0;
|
||||
margin: 0;
|
||||
font-weight: 600;
|
||||
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
.profile-img {
|
||||
flex: 0 0 90px;
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
object-fit: cover;
|
||||
object-position: 50% 0;
|
||||
border: 2px solid rgba(180, 130, 30, 0.8);
|
||||
border-radius: 4px;
|
||||
box-shadow: 2px 2px 8px rgba(0,0,0,0.6), inset 0 0 4px rgba(180,130,30,0.2);
|
||||
cursor: pointer;
|
||||
transition: border-color 0.2s, box-shadow 0.2s;
|
||||
|
||||
.stat-value {
|
||||
font-size: 0.85rem;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
padding: 0.25rem 0.5rem;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
border: 1px solid rgba(139, 69, 19, 0.6);
|
||||
border-radius: 3px;
|
||||
min-width: 2.5rem;
|
||||
text-align: center;
|
||||
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.stat-input {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
padding: 0.25rem 0.4rem;
|
||||
background: rgba(40, 30, 20, 0.7);
|
||||
border: 1px solid rgba(139, 69, 19, 0.7);
|
||||
color: #fff;
|
||||
border-radius: 3px;
|
||||
text-align: center;
|
||||
min-width: 2.5rem;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
|
||||
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
|
||||
|
||||
&.stat-input-single {
|
||||
min-width: 3.5rem;
|
||||
}
|
||||
|
||||
&.stat-input-damage {
|
||||
border-color: rgba(200, 0, 0, 0.8);
|
||||
background: rgba(80, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: rgba(60, 45, 30, 0.8);
|
||||
border-color: rgba(255, 102, 0, 0.6);
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-color: rgba(255, 102, 0, 1);
|
||||
box-shadow: 0 0 6px rgba(255, 102, 0, 0.5), inset 0 1px 3px rgba(0, 0, 0, 0.3);
|
||||
background: rgba(70, 50, 35, 0.9);
|
||||
}
|
||||
}
|
||||
|
||||
.header-fields {
|
||||
// Force single-line stat rows — prevent Foundry's .flexrow wrap and h4 margins from breaking layout
|
||||
.item.flexrow {
|
||||
flex-wrap: nowrap !important;
|
||||
align-items: center !important;
|
||||
|
||||
h4 {
|
||||
margin: 0 !important;
|
||||
padding-top: 0 !important;
|
||||
&:hover {
|
||||
border-color: #ffd700;
|
||||
box-shadow: 2px 2px 12px rgba(0,0,0,0.7), 0 0 6px rgba(255,215,0,0.4);
|
||||
}
|
||||
}
|
||||
|
||||
h4.item-name-label.competence-name,
|
||||
.item-name-label.competence-name,
|
||||
label.item-name-label.competence-name {
|
||||
color: #1a1008 !important;
|
||||
text-shadow: none !important;
|
||||
font-weight: bold !important;
|
||||
background: none !important;
|
||||
.charname {
|
||||
flex: 1;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: "CentaurMT", "Charlemagne Std", serif;
|
||||
font-size: 1.8rem;
|
||||
line-height: 1;
|
||||
|
||||
input[type="text"] {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
font-weight: bold;
|
||||
color: #f5e0c0;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-bottom: 1px solid rgba(180,130,30,0.4);
|
||||
width: 100%;
|
||||
padding: 0 0 2px 0;
|
||||
text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
|
||||
letter-spacing: 1px;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-bottom-color: #ffd700;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
h4.item-name-label.competence-name {
|
||||
font-size: 0.75rem;
|
||||
padding-top: 3px;
|
||||
}
|
||||
.sheet-mode-toggle {
|
||||
flex: 0 0 auto;
|
||||
background: rgba(0,0,0,0.3);
|
||||
border: 1px solid rgba(180,130,30,0.5);
|
||||
border-radius: 3px;
|
||||
color: rgba(245,224,192,0.7);
|
||||
padding: 4px 8px;
|
||||
cursor: pointer;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
.item-name-label.competence-name {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
label.item-name-label.competence-name {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.item-field-label-short {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.status-small-label {
|
||||
font-size: 0.8rem;
|
||||
&:hover {
|
||||
color: #ffd700;
|
||||
border-color: #ffd700;
|
||||
box-shadow: 0 0 6px rgba(255,215,0,0.4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sheet-mode-toggle {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: #fff;
|
||||
padding: 2px 6px;
|
||||
cursor: pointer;
|
||||
font-size: 0.75rem;
|
||||
transition: all 0.2s ease;
|
||||
margin-left: 8px;
|
||||
height: auto;
|
||||
line-height: 1.2;
|
||||
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
|
||||
// ── Cartes de statistiques ────────────────────────────────────────
|
||||
.header-stat-cards {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 5px;
|
||||
|
||||
&:hover {
|
||||
color: #ffd700;
|
||||
text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
|
||||
.stat-card {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: rgba(8, 4, 0, 0.55);
|
||||
border: 1px solid rgba(120, 75, 20, 0.5);
|
||||
border-top: 3px solid rgba(120, 75, 20, 0.7);
|
||||
border-radius: 3px;
|
||||
overflow: visible;
|
||||
transition: box-shadow 0.2s;
|
||||
|
||||
&.dominant {
|
||||
box-shadow: 0 0 10px rgba(255,200,30,0.35);
|
||||
}
|
||||
|
||||
// Titres colorés par type
|
||||
&.card-loi {
|
||||
border-top-color: #b89020;
|
||||
.stat-card-title { background: rgba(90,65,0,0.6); color: #ffe090; }
|
||||
&.dominant { border-top-color: #ffd700; box-shadow: 0 0 12px rgba(255,215,0,0.4); }
|
||||
}
|
||||
&.card-chaos {
|
||||
border-top-color: #8b1010;
|
||||
.stat-card-title { background: rgba(70,0,0,0.6); color: #ffb0b0; }
|
||||
&.dominant { border-top-color: #cc2020; box-shadow: 0 0 12px rgba(200,30,30,0.4); }
|
||||
}
|
||||
&.card-ba {
|
||||
border-top-color: #2a7a2a;
|
||||
.stat-card-title { background: rgba(0,45,0,0.6); color: #a0e8a0; }
|
||||
}
|
||||
&.card-vigueur {
|
||||
border-top-color: #7a2222;
|
||||
.stat-card-title { background: rgba(50,10,10,0.6); color: #ffb8b8; }
|
||||
}
|
||||
&.card-ame {
|
||||
border-top-color: #224480;
|
||||
.stat-card-title { background: rgba(10,20,55,0.6); color: #a0c0ff; }
|
||||
}
|
||||
|
||||
.stat-card-title {
|
||||
font-size: 0.68rem;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
padding: 3px 5px;
|
||||
text-align: center;
|
||||
text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
|
||||
border-bottom: 1px solid rgba(255,255,255,0.08);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
.stat-sub {
|
||||
font-size: 0.6rem;
|
||||
opacity: 0.75;
|
||||
font-style: italic;
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.stat-card-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
padding: 4px 4px 3px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
// Ligne label + champ
|
||||
.stat-field {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
min-height: 20px;
|
||||
|
||||
label {
|
||||
font-size: 0.6rem;
|
||||
font-weight: 700;
|
||||
color: #b0a090;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
min-width: 26px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
select {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 20px;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 600;
|
||||
padding: 0 3px;
|
||||
background: rgba(35, 20, 5, 0.85);
|
||||
border: 1px solid rgba(120,75,20,0.55);
|
||||
border-radius: 2px;
|
||||
color: #f0dfc0;
|
||||
text-align: center;
|
||||
text-shadow: none;
|
||||
|
||||
&:hover {
|
||||
border-color: rgba(200,150,40,0.7);
|
||||
background: rgba(50,30,10,0.9);
|
||||
}
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-color: #ffd700;
|
||||
box-shadow: 0 0 4px rgba(255,215,0,0.3);
|
||||
}
|
||||
&:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
padding-right: 14px;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23b09060' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 3px center;
|
||||
}
|
||||
|
||||
// Valeur centrale (Vigueur)
|
||||
&.stat-field-center {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
// Valeur numérique large (ex: score de Vigueur)
|
||||
.stat-big-value {
|
||||
display: block;
|
||||
font-size: 1.6rem;
|
||||
font-weight: 900;
|
||||
font-family: "Signika", "Arial Narrow", "Arial", sans-serif;
|
||||
font-variant-numeric: lining-nums tabular-nums;
|
||||
color: #f5e0c0;
|
||||
text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
|
||||
text-align: center;
|
||||
line-height: 1.1;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
|
||||
// Valeur dérivée (Aspect, Marge)
|
||||
.stat-derived {
|
||||
font-size: 0.62rem;
|
||||
color: #a09070;
|
||||
text-align: center;
|
||||
font-style: italic;
|
||||
padding: 1px 0 0;
|
||||
border-top: 1px solid rgba(255,255,255,0.06);
|
||||
margin-top: 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Sheet navigation tabs
|
||||
// SURCHARGE: simple-converted.less définit flex: 0
|
||||
.sheet-tabs {
|
||||
|
||||
@@ -265,12 +265,11 @@
|
||||
}
|
||||
|
||||
.fvtt-mournblade-cyd-2-0 .sheet-header .profile-img {
|
||||
-webkit-box-flex: 0;
|
||||
-ms-flex: 0 0 80px;
|
||||
flex: 0 0 80px;
|
||||
height: 80px;
|
||||
width: 80px;
|
||||
margin-right: 10px;
|
||||
/* Overridden by actor-styles.less .header-banner .profile-img (90px) */
|
||||
flex: 0 0 90px;
|
||||
height: 90px;
|
||||
width: 90px;
|
||||
margin-right: 0;
|
||||
object-fit: cover;
|
||||
object-position: 50% 0;
|
||||
cursor: pointer;
|
||||
|
||||
Reference in New Issue
Block a user