Add skip to content link button
This commit is contained in:
parent
8ca26ab43e
commit
f616817826
|
@ -40,9 +40,10 @@
|
|||
</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="skip-btn"> <a href="#content">Skip to content</a></div>
|
||||
{% block hero %}{% include "global/hero.njk" %}{% endblock %}
|
||||
{% block navbar %}{% include "global/navbar.njk" %}{% endblock %}
|
||||
<main>
|
||||
<main id="content">
|
||||
{{ content | safe }}
|
||||
</main>
|
||||
{% block footer %}{% include "global/footer.njk" %}{% endblock %}
|
||||
|
|
|
@ -32,6 +32,25 @@
|
|||
}
|
||||
}
|
||||
|
||||
/* Skip to content button */
|
||||
.skip-btn a {
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
left: 0px;
|
||||
top: -1000px;
|
||||
overflow: hidden;
|
||||
transition: top 0.5s ease;
|
||||
background: #fff;
|
||||
color: #191919;
|
||||
z-index: 1000;
|
||||
padding: 0.3em;
|
||||
}
|
||||
|
||||
.skip-btn a:focus {
|
||||
top: 0;
|
||||
transition: top 0.3s ease;
|
||||
}
|
||||
|
||||
/* Link button */
|
||||
.link-btn {
|
||||
font-size: 1.3rem;
|
||||
|
|
Loading…
Reference in New Issue