Commit b6d6abe 1 parent 3d695d8 commit b6d6abe Copy full SHA for b6d6abe
File tree 9 files changed +35
-1
lines changed
9 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 22
22
</ head >
23
23
24
24
< body itemscope itemtype ="https://schema.org/WebPage ">
25
+ < div class ="w-full flex justify-center ">
26
+ < a href ="#main-content " id ="gdoc-to-main " class ="gdoc-markdown__link "> Skip to main content</ a >
27
+ </ div >
28
+
25
29
{{ partial "svg-icon-symbols" . }}
26
30
27
31
Original file line number Diff line number Diff line change 4
4
5
5
< article
6
6
class ="gdoc-markdown gdoc-markdown__align--{{ default "left " (.Page.Params.geekdocAlign | lower) }}"
7
+ id="main-content " tabindex ="-1 "
7
8
>
8
9
< h1 > {{ partial "utils/title" . }}</ h1 >
9
10
{{ partial "utils/content" . }}
Original file line number Diff line number Diff line change 4
4
5
5
< article
6
6
class ="gdoc-markdown gdoc-markdown__align--{{ default "left " (.Page.Params.geekdocAlign | lower) }}"
7
+ id="main-content " tabindex ="-1 "
7
8
>
8
9
< h1 > {{ partial "utils/title" . }}</ h1 >
9
10
{{ partial "page-metadata" . }}
Original file line number Diff line number Diff line change 1
1
{{ define "main" }}
2
+ < div id ="main-content " tabindex ="-1 ">
2
3
{{ range .Paginator.Pages }}
3
4
< article class ="gdoc-post ">
4
5
< header class ="gdoc-post__header ">
@@ -31,6 +32,7 @@ <h1 class="gdoc-post__title">
31
32
</ footer >
32
33
</ article >
33
34
{{ end }}
35
+ </ div >
34
36
{{ partial "pagination.html" . }}
35
37
{{ end }}
36
38
Original file line number Diff line number Diff line change 1
1
{{ define "main" }}
2
+ < div id ="main-content " tabindex ="-1 ">
2
3
{{ range .Paginator.Pages.ByTitle }}
3
4
< article class ="gdoc-post ">
4
5
< header class ="gdoc-post__header ">
@@ -28,5 +29,6 @@ <h1 class="gdoc-post__title">
28
29
</ footer >
29
30
</ article >
30
31
{{ end }}
32
+ </ div >
31
33
{{ partial "pagination.html" . }}
32
34
{{ end }}
Original file line number Diff line number Diff line change 1
1
{{ define "main" }}
2
+ < div id ="main-content " tabindex ="-1 ">
2
3
{{ range .Paginator.Pages }}
3
4
< article class ="gdoc-markdown gdoc-post ">
4
5
< header class ="gdoc-post__header ">
@@ -29,6 +30,7 @@ <h1 class="gdoc-post__title">
29
30
</ footer >
30
31
</ article >
31
32
{{ end }}
33
+ </ div >
32
34
{{ partial "pagination.html" . }}
33
35
{{ end }}
34
36
Original file line number Diff line number Diff line change 1
1
{{ define "main" }}
2
- < article class ="gdoc-post ">
2
+ < article class ="gdoc-post " id =" main-content " tabindex =" -1 " >
3
3
< header class ="gdoc-post__header ">
4
4
< h1 class ="gdoc-post__title "> {{ partial "utils/title" . }}</ h1 >
5
5
< div class ="flex flex-wrap align-center gdoc-post__meta gdoc-post__meta--head ">
Original file line number Diff line number Diff line change @@ -105,6 +105,24 @@ body {
105
105
* {
106
106
box-sizing : inherit ;
107
107
}
108
+
109
+ #gdoc-to-main {
110
+ position : absolute ;
111
+ margin : defaults .$padding-8 0 ;
112
+ padding : defaults .$padding-8 ;
113
+
114
+ display : inline-block ;
115
+ background-color : var (--accent-color-lite );
116
+ border-radius : defaults .$border-radius ;
117
+ border : defaults .$border-1 solid var (--accent-color );
118
+
119
+ transform : translateY (0 );
120
+ transition : transform 250ms ease-in ;
121
+
122
+ & :not (:focus ) {
123
+ transform : translateY (- #{defaults .$padding-64 } );
124
+ }
125
+ }
108
126
}
109
127
110
128
h1 ,
Original file line number Diff line number Diff line change 101
101
display : inline-block ;
102
102
min-width : 4rem ;
103
103
}
104
+
105
+ .w-full {
106
+ width : 100% ;
107
+ }
You can’t perform that action at this time.
0 commit comments