Add bypass block for accessibility

This commit is contained in:
riverbl 2023-07-26 20:09:51 +01:00
parent 429ca06289
commit b28b137529
2 changed files with 18 additions and 0 deletions

View File

@ -543,3 +543,20 @@ ul#searchresults span.teaser em {
margin-left: -14px;
width: 14px;
}
a.bypass-block {
position: fixed;
top: 2rem;
left: 2rem;
clip-path: inset(50%);
font-size: 1.2em;
background-color: var(--theme-popup-bg);
border-radius: 4px;
border: solid 1px var(--theme-popup-border);
padding: 0.6em;
box-shadow: inset 0 -1px 0 var(--theme-hover);
z-index: 1000;
}
a.bypass-block:focus {
clip-path: none;
}

View File

@ -54,6 +54,7 @@
{{/if}}
</head>
<body>
<a class="bypass-block" href="#content">Skip to content</a>
<div id="body-container">
<!-- Provide site root to javascript -->
<script>