mirror of
https://github.com/learnhouse/docs.git
synced 2026-11-28 16:58:38 +01:00
style: enhance navbar badge appearance
This commit is contained in:
@@ -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
|
||||
|
||||
26
styles.css
26
styles.css
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user