Tighten navbar branding
This commit is contained in:
@@ -108,13 +108,15 @@ code, kbd, .mono {
|
|||||||
.topbar {
|
.topbar {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
inset-block-start: 0;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 18px var(--gutter);
|
min-height: 60px;
|
||||||
|
padding: 0 var(--gutter);
|
||||||
border-bottom: 1px solid var(--line);
|
border-bottom: 1px solid var(--line);
|
||||||
background: color-mix(in oklab, var(--bg) 88%, transparent);
|
background: color-mix(in oklab, var(--bg) 92%, transparent);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
-webkit-backdrop-filter: blur(10px);
|
-webkit-backdrop-filter: blur(10px);
|
||||||
}
|
}
|
||||||
@@ -126,6 +128,13 @@ code, kbd, .mono {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--fg);
|
color: var(--fg);
|
||||||
}
|
}
|
||||||
|
.brand-icon {
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
display: block;
|
||||||
|
object-fit: contain;
|
||||||
|
image-rendering: auto;
|
||||||
|
}
|
||||||
.brand .mark {
|
.brand .mark {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
@@ -138,16 +147,6 @@ code, kbd, .mono {
|
|||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
letter-spacing: -0.01em;
|
letter-spacing: -0.01em;
|
||||||
}
|
}
|
||||||
.brand .role-tag {
|
|
||||||
font-family: 'JetBrains Mono', monospace;
|
|
||||||
font-size: 10px;
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 0.1em;
|
|
||||||
padding: 2px 6px;
|
|
||||||
border: 1px solid var(--green-soft);
|
|
||||||
color: var(--green);
|
|
||||||
margin-left: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav { display: flex; align-items: center; gap: 28px; }
|
.nav { display: flex; align-items: center; gap: 28px; }
|
||||||
.nav-mobile { display: none; }
|
.nav-mobile { display: none; }
|
||||||
@@ -876,7 +875,8 @@ a:focus-visible,
|
|||||||
position: sticky;
|
position: sticky;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
padding: 10px var(--gutter);
|
min-height: 52px;
|
||||||
|
padding: 0 var(--gutter);
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand {
|
.brand {
|
||||||
@@ -885,7 +885,7 @@ a:focus-visible,
|
|||||||
}
|
}
|
||||||
|
|
||||||
.brand .wordmark { font-size: 14px; }
|
.brand .wordmark { font-size: 14px; }
|
||||||
.brand .role-tag { font-size: 9px; padding: 2px 5px; }
|
.brand-icon { width: 22px; height: 22px; }
|
||||||
|
|
||||||
.nav-desktop { display: none; }
|
.nav-desktop { display: none; }
|
||||||
.nav-mobile {
|
.nav-mobile {
|
||||||
@@ -1056,7 +1056,6 @@ a:focus-visible,
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 380px) {
|
@media (max-width: 380px) {
|
||||||
.role-tag { display: none; }
|
|
||||||
.brand { gap: 7px; }
|
.brand { gap: 7px; }
|
||||||
.brand .wordmark { font-size: 13px; }
|
.brand .wordmark { font-size: 13px; }
|
||||||
.nav-mobile { gap: 8px; }
|
.nav-mobile { gap: 8px; }
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<header class="topbar">
|
<header class="topbar">
|
||||||
<a class="brand" href="/" aria-label="bonzi home">
|
<a class="brand" href="/" aria-label="bonzi home">
|
||||||
<span class="mark" aria-hidden="true">☤</span>
|
<img class="brand-icon" src="/favicon-32.png" alt="" width="24" height="24" decoding="async" />
|
||||||
<span class="wordmark">bonzi</span>
|
<span class="wordmark">bonzi</span>
|
||||||
<span class="role-tag">agent</span>
|
|
||||||
</a>
|
</a>
|
||||||
<nav class="nav nav-desktop" aria-label="primary">
|
<nav class="nav nav-desktop" aria-label="primary">
|
||||||
<% navLinks.forEach((link) => { %>
|
<% navLinks.forEach((link) => { %>
|
||||||
|
|||||||
Reference in New Issue
Block a user