Skip to content

Commit 45bf230

Browse files
committed
Update index.html
1 parent 37e4abe commit 45bf230

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

meditations/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,21 @@
199199
animation: progress linear;
200200
animation-timeline: scroll();
201201
}
202+
.skip-to-main-content-link {
203+
position: absolute;
204+
left: -9999px;
205+
z-index: 999;
206+
padding: 1em;
207+
background-color: black;
208+
color: white;
209+
opacity: 0;
210+
}
211+
.skip-to-main-content-link:focus {
212+
left: 50%;
213+
transform: translateX(-50%);
214+
color: white;
215+
opacity: 1;
216+
}
202217
@keyframes progress {
203218
from { transform: scaleX(0); }
204219
}
@@ -1187,6 +1202,7 @@
11871202
<noscript><iframe src="https://gtm.vreeman.com/ns.html?id=GTM-WKSDWK" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
11881203
<div id="progress" role="progressbar" aria-label="progress"></div>
11891204
<header id="header">
1205+
<a href="#introduction" class="skip-to-main-content-link">Skip to main content</a>
11901206
<h1>Meditations &middot; <em><abbr title="Things to one's self">Ta eis heauton</abbr></em> &middot; by Marcus Aurelius</h1>
11911207
<h2>A new translation, with an introduction, by Gregory Hays</h2>
11921208
</header>

0 commit comments

Comments
 (0)