Skip to content
Merged
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
doc: add "Skip to content" button
  • Loading branch information
aduh95 committed Jan 24, 2025
commit a2d73bfdd0717ebb55b2309978fb38745d4cf764
13 changes: 13 additions & 0 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,19 @@ a.type {
font-size: .9em;
}

.skip-to-content {
position: fixed;
top: -300%;
}
.skip-to-content:focus {
display: block;
top: 0;
left: 0;
background-color: var(--green1);
padding: 1rem;
z-index: 999999;
}

#content {
position: relative;
}
Expand Down
1 change: 1 addition & 0 deletions doc/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
__JS_FLAVORED_DYNAMIC_CSS__
</head>
<body class="alt apidoc" id="api-section-__FILENAME__">
<a href="#apicontent" class="skip-to-content">Skip to content</a>
<div id="content" class="clearfix">
<div role="navigation" id="column2" class="interior">
<div id="intro" class="interior">
Expand Down