style: enhance navbar badge appearance

This commit is contained in:
swve
2026-03-14 16:19:05 +01:00
parent 051cf6f275
commit c522cac63f
2 changed files with 19 additions and 9 deletions

View File

@@ -45,7 +45,7 @@ function Navbar() {
)}
</Link>
<span className="lh-navbar-badge -ml-4 mt-[1px] text-[10px] font-bold tracking-wider rounded-[5px] px-1.5 py-[2.5px]" style={{ fontFamily: "'Wix Madefor Display', sans-serif" }}>Docs</span>
<span className="lh-navbar-badge">docs</span>
<nav className="lh-navbar-nav lh-hide-mobile">
<Link

View File

@@ -161,14 +161,24 @@ body > *:not(.lh-navbar) {
.lh-navbar-logo img { height: 20px; width: auto; }
.lh-navbar-badge {
color: var(--lh-fg-faint);
border: 1px solid var(--lh-border-subtle);
background: var(--lh-bg);
box-shadow: var(--lh-nice-shadow), inset 0 0.5px 0 rgba(255, 255, 255, 0.8);
}
html[class~='dark'] .lh-navbar-badge {
box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.2), inset 0 0.5px 0 rgba(255, 255, 255, 0.03);
margin-left: -14px;
margin-top: 1px;
font-family: 'Wix Madefor Display', sans-serif;
font-size: 10px;
font-weight: 700;
letter-spacing: -0.02em;
text-transform: uppercase;
color: #888;
background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
border: 1px solid #e8e8e8;
border-bottom-color: #e0e0e0;
border-radius: 5px;
padding: 2px 7px;
line-height: 1.5;
box-shadow:
0 0.5px 1px rgba(0, 0, 0, 0.04),
inset 0 1px 0 rgba(255, 255, 255, 0.6);
text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.5);
}
.lh-navbar-nav {