Keep keyboard navigation link fully hidden until focused
This commit is contained in:
1 parent
0a83c4fe19
commit
4bcca2006d
1 file changed
+4
-4
@@ -117,17 +117,17 @@ code, kbd, .mono {
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: -60px;
|
||||
transform: translateX(-50%);
|
||||
top: 0;
|
||||
transform: translate(-50%, -110%);
|
||||
z-index: 200;
|
||||
padding: 10px 18px;
|
||||
border-radius: 0 0 12px 12px;
|
||||
background: var(--pink);
|
||||
color: #fff;
|
||||
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 ============================ */
|
||||
|
||||
|
||||
Reference in new issue
Block a user