From e7a18a735a37fb297d69f66fcf2ae1a8bb8fa07b Mon Sep 17 00:00:00 2001 From: slaguru666 <111923774+slaguru666@users.noreply.github.com> Date: Thu, 9 Apr 2026 13:45:23 +0100 Subject: [PATCH] Add instability numeric readout and column header tooltips - Instability bar now taller (22px) with X/12 label centred inside it - CSS: bar label positioned absolutely inside the wrap - Tooltips on all column headers: AP, DR, Speed, Oxygen, Carry (armour); Qty, Rating, Value, Weight, State, Duration (drugs); Quantity, Weight, Carry, Value (items); Category, Rank, Bonus (skills); Damage, Ammo, Shots, Mode, Carry, Range (weapons) --- css/mosh.css | 26 ++++++++++++- templates/actor/actor-sheet.html | 65 ++++++++++++++++---------------- 2 files changed, 58 insertions(+), 33 deletions(-) diff --git a/css/mosh.css b/css/mosh.css index 932f93b..75ead34 100644 --- a/css/mosh.css +++ b/css/mosh.css @@ -2333,8 +2333,9 @@ p { /* ── Vevaphon Instability ─────────────────────────────────────── */ .mosh .sla-instability-bar-wrap { + position: relative; margin-top: 10px; - height: 10px; + height: 22px; border-radius: 999px; overflow: hidden; background: rgba(17, 17, 17, 0.1); @@ -2348,6 +2349,29 @@ p { transition: width 0.3s ease; } +.mosh .sla-instability-bar-label { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + display: flex; + align-items: center; + justify-content: center; + font-family: "Josefin Sans", "Roboto", sans-serif; + font-size: 0.72rem; + font-weight: 700; + letter-spacing: 0.06em; + pointer-events: none; + text-shadow: 0 1px 2px rgba(0,0,0,0.55); + color: #fff; +} + +.mosh .sla-instability-bar-label.instability-critical { + color: #ffe0e0; + text-shadow: 0 1px 3px rgba(80,0,0,0.8); +} + .mosh .sla-instability-bar.instability-elevated { background: linear-gradient(90deg, rgba(203, 161, 68, 0.92), rgba(194, 112, 55, 0.96)); } diff --git a/templates/actor/actor-sheet.html b/templates/actor/actor-sheet.html index 104f2ff..640160f 100644 --- a/templates/actor/actor-sheet.html +++ b/templates/actor/actor-sheet.html @@ -836,6 +836,7 @@