Skip to content

Commit d423638

Browse files
committed
doc: add "Skip to content" button
PR-URL: #56750 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Claudio Wunder <cwunder@gnome.org>
1 parent edeb157 commit d423638

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

doc/api_assets/style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,19 @@ a.type {
122122
font-size: .9em;
123123
}
124124

125+
.skip-to-content {
126+
position: fixed;
127+
top: -300%;
128+
}
129+
.skip-to-content:focus {
130+
display: block;
131+
top: 0;
132+
left: 0;
133+
background-color: var(--green1);
134+
padding: 1rem;
135+
z-index: 999999;
136+
}
137+
125138
#content {
126139
position: relative;
127140
}

doc/template.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
__JS_FLAVORED_DYNAMIC_CSS__
2727
</head>
2828
<body class="alt apidoc" id="api-section-__FILENAME__">
29+
<a href="#apicontent" class="skip-to-content">Skip to content</a>
2930
<div id="content" class="clearfix">
3031
<div role="navigation" id="column2" class="interior">
3132
<div id="intro" class="interior">

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy