0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed skiplink positioning

refs #5986

- removed static position of the skiplink to prevent pushing the page content down
- only applying :focus CSS selector to focusable sr-only content
This commit is contained in:
Peter Szel 2016-02-27 14:23:49 +00:00
parent ba96847caa
commit 6387b87fab

View file

@ -340,14 +340,19 @@ img {
border: 0; border: 0;
} }
.sr-only:active, .sr-only-focusable:focus {
.sr-only:focus { z-index: 900;
position: static;
overflow: visible; overflow: visible;
clip: auto; clip: auto;
margin: 0; margin: 0;
padding: 0 10px;
width: auto; width: auto;
height: auto; height: auto;
background-color: #f5f5f5;
color: #333;
text-decoration: none;
line-height: 49px;
font-weight: bold;
} }
.right { .right {