Match OS version badge styling to service modal version badges
The header badge now uses the exact visual treatment of .creds-title-version-badge from modals.css: neutral translucent pill (rgba(255,255,255,0.06) background, 0.08 white border, 12px radius, --text-secondary text, 0.72rem/600/2px-10px padding), no hover animation, and a bare version number like the modals show (e.g. "2.8.4") instead of the green pill with a "v" prefix. The badge markup flattens to a single text span; the .version-label and .version-number rules are removed. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
This commit is contained in:
co-authored by
arena-agent
parent
cf23438a5c
commit
bd96782229
@@ -54,45 +54,23 @@
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
/* ── OS Version Badge (inline, right after "Hub" in the title ────
|
||||
── mirrors the version badge next to modal titles) ────────────── */
|
||||
/* ── OS Version Badge — identical styling to the version badge ────
|
||||
── shown next to titles in the service modal windows ──────────── */
|
||||
.os-version-badge {
|
||||
background-color: rgba(255, 255, 255, 0.06);
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 600;
|
||||
padding: 2px 10px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
letter-spacing: 0.02em;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
background: linear-gradient(145deg, #1a2a22, #0f1a15);
|
||||
border: 1px solid rgba(74, 222, 128, 0.25);
|
||||
border-radius: 9999px;
|
||||
padding: 2px 14px 2px 10px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: #4ade80;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.os-version-badge:hover {
|
||||
border-color: rgba(74, 222, 128, 0.45);
|
||||
box-shadow: 0 4px 8px rgba(74, 222, 128, 0.15);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.os-version-badge .version-label {
|
||||
font-size: 0.68rem;
|
||||
font-weight: 500;
|
||||
color: #4ade80;
|
||||
opacity: 0.85;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.os-version-badge .version-number {
|
||||
font-family: 'JetBrains Mono', 'Fira Code', monospace;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.5px;
|
||||
color: #86efac;
|
||||
}
|
||||
|
||||
/* ── IP bar ─────────────────────────────────────────────────────── */
|
||||
|
||||
.ip-bar {
|
||||
|
||||
@@ -25,11 +25,8 @@
|
||||
<div class="title-group">
|
||||
<span class="title">Sovran_SystemsOS Hub</span>
|
||||
|
||||
<!-- OS Version Badge -->
|
||||
<span class="os-version-badge" id="os-version-badge" title="Sovran_SystemsOS Version">
|
||||
<span class="version-label">v</span>
|
||||
<span class="version-number" id="version-number">{{ sovran_version }}</span>
|
||||
</span>
|
||||
<!-- OS Version Badge — styled identically to the version badge in service modals -->
|
||||
<span class="os-version-badge" id="os-version-badge" title="Sovran_SystemsOS Version">{{ sovran_version }}</span>
|
||||
</div>
|
||||
|
||||
<div class="header-buttons">
|
||||
|
||||
Reference in New Issue
Block a user