site: opaque sticky header, overflow-x clip so sticky never detaches
This commit is contained in:
parent
8dabcb31c2
commit
7ae19bf5cb
1 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ body {
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
font: 16px/1.6 var(--font);
|
font: 16px/1.6 var(--font);
|
||||||
overflow-x: hidden;
|
overflow-x: clip;
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
}
|
}
|
||||||
|
|
@ -78,7 +78,7 @@ p { margin: 0; }
|
||||||
.skip:focus { left: 8px; }
|
.skip:focus { left: 8px; }
|
||||||
|
|
||||||
/* header */
|
/* header */
|
||||||
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
|
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); box-shadow: 0 6px 16px -12px rgb(0 0 0 / .35); border-bottom: 1px solid var(--line); }
|
||||||
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
|
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
|
||||||
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
|
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
|
||||||
.mark { width: 28px; height: 28px; color: var(--accent); flex: none; --mark-ink: var(--accent-ink); }
|
.mark { width: 28px; height: 28px; color: var(--accent); flex: none; --mark-ink: var(--accent-ink); }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue