File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ const (
3737 {{ head_assets }}
3838 </head>
3939 <body>
40+ <div><a id="skip-to-content-link" href="#main-content">Skip to content</a></div>
4041 <div id="page">
4142 <header class="doc-nav hidden">
4243 <div class="heading-container">
@@ -59,7 +60,7 @@ const (
5960 </ul>
6061 </nav>
6162 </header>
62- <div class="doc-scrollview">
63+ <div class="doc-scrollview" id="main-content" >
6364 <div class="doc-container">
6465 <div class="doc-content">
6566{{ contents }}
Original file line number Diff line number Diff line change @@ -730,3 +730,19 @@ pre {
730730 top : 0 ;
731731 }
732732}
733+
734+ # skip-to-content-link {
735+ height : 30px ;
736+ left : 50% ;
737+ padding : 8px ;
738+ position : absolute;
739+ transform : translateY (-100% );
740+ transition : transform 0.3s ;
741+ background : var (--links );
742+ color : var (--warn-text );
743+ border-radius : 1px ;
744+ }
745+ # skip-to-content-link : focus {
746+ transform : translateY (0% );
747+ z-index : 1000 ;
748+ }
You can’t perform that action at this time.
0 commit comments