File tree Expand file tree Collapse file tree 6 files changed +29
-4
lines changed
Expand file tree Collapse file tree 6 files changed +29
-4
lines changed Original file line number Diff line number Diff line change 1+ <a href =" #main" class =" skip-to-content-link" >Skip to content</a >
Original file line number Diff line number Diff line change 11---
22layout: layout-base.njk
33---
4+ {% include ' _skip-link.njk' %}
45{% include ' _nav.njk' %}
5- <main class =" basic" >
6+ <main id = " main " class =" basic" >
67 {{ content | safe }}
78</main >
89{% include ' _foot.njk' %}
Original file line number Diff line number Diff line change 11---
22layout: layout-base.njk
33---
4+ {% include ' _skip-link.njk' %}
45{% include ' _nav.njk' %}
56
6-
7- <main class =" basic" >
7+ <main id =" main" class =" basic" >
88 {{ content | safe }}
99
1010 <div class =" posts" >
Original file line number Diff line number Diff line change 11---
22layout: layout-base.njk
33---
4+ {% include ' _skip-link.njk' %}
45{% include ' _nav.njk' %}
56
6- <main class =" blog" >
7+ <main id = " main " class =" blog" >
78 <header class =" band header" >
89 <h1 >{{ title }} </h1 >
910 {% if tagline %} <p class =" tagline" >{{ tagline }} </p >{% endif %}
Original file line number Diff line number Diff line change 88< link rel ="stylesheet " href ="home.css ">
99
1010< body >
11+ < a href ="#home-header " class ="skip-to-content-link "> Skip to content</ a >
1112 {% renderFile "./docs/_snippets/pf-bar-html.md" %}
1213 < header class ="band accent " id ="home-header ">
1314 < h1 >
Original file line number Diff line number Diff line change @@ -34,6 +34,27 @@ p:empty {
3434 display : none;
3535}
3636
37+ .skip-to-content-link {
38+ background : var (--pf-global--BackgroundColor--100 , # fff );
39+ border-bottom-left-radius : var (--pf-global--BorderRadius--sm , 0.25rem );
40+ border-bottom-right-radius : var (--pf-global--BorderRadius--sm , 0.25rem );
41+ display : flex;
42+ padding-inline : var (--pf-global--spacer--md , 1rem );
43+ padding-block : var (--pf-global--spacer--xs , 0.25rem );
44+ position : absolute;
45+ transform : translateY (-1000% );
46+ transition : transform 0.2s ;
47+ width : max-content;
48+ /* Header bar is set to z-index: 300 */
49+ z-index : 301 ;
50+ }
51+
52+ .skip-to-content-link : focus {
53+ transform : translateY (0% );
54+ position : fixed;
55+ top : 0 ;
56+ }
57+
3758.sr-only {
3859 position : absolute;
3960 width : 1px ;
You can’t perform that action at this time.
0 commit comments