Keep keyboard navigation link fully hidden until focused

This commit is contained in:
DepressedCat committed 2026-10-11 01:18:40 +03:00
1 parent 0a83c4fe19
commit 4bcca2006d
1 file changed
+4 -4
+4 -4
View File
@@ -117,17 +117,17 @@ code, kbd, .mono {
.skip-link { .skip-link {
position: absolute; position: absolute;
left: 50%; left: 50%;
top: -60px; top: 0;
transform: translateX(-50%); transform: translate(-50%, -110%);
z-index: 200; z-index: 200;
padding: 10px 18px; padding: 10px 18px;
border-radius: 0 0 12px 12px; border-radius: 0 0 12px 12px;
background: var(--pink); background: var(--pink);
color: #fff; color: #fff;
font-weight: 700; font-weight: 700;
transition: top 160ms var(--ease); transition: transform 160ms var(--ease);
} }
.skip-link:focus { top: 0; } .skip-link:focus { transform: translate(-50%, 0); }
/* ============================ Header ============================ */ /* ============================ Header ============================ */