Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _layouts/book.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{%- endif %}
</ol>
</nav>
<main>
<main id="main_content">
{{ content }}
</main>
</div>
8 changes: 8 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@
{% endif %}
</head>
<body>
{% if page.layout == "main" %}
<a class="skip-link" href="#desc">Skip to main content</a>
{% elsif page.layout == "book" %}
<a class="skip-link" href="#main_content">Skip to main content</a>
{% else %}
<a class="skip-link" href="#content">Skip to main content</a>
{% endif %}
<div id="container">
<div id="header_bg"></div>
<nav id="header">
Expand Down Expand Up @@ -86,6 +93,7 @@
<rect x="0" y="0" width="100%" height="100%" fill="url(#bggrad)"/>
</svg>
<div id="tile_bg"></div>

{{ content }}
<div id="footer_bg"></div>
<div id="footer">
Expand Down
12 changes: 12 additions & 0 deletions assets/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,18 @@ a:hover {
}
a:active { text-decoration: none; }

/* skip to content link*/
.skip-link a {
position: absolute;
left: 0em;
top: -3em;
}

.skip-link a:focus {
top: 0px;
z-index: 999;
}

/* navigation header */

#header_bg {
Expand Down