From 8fb084dbf2dc7fe1343dff701297bb9df4cff255 Mon Sep 17 00:00:00 2001 From: evanwill Date: Wed, 5 Jun 2024 12:28:55 -0700 Subject: [PATCH] add skip to content --- _layouts/default.html | 1 + _sass/custom/custom.scss | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/_layouts/default.html b/_layouts/default.html index 2708629..10bdc8e 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -6,6 +6,7 @@ {% include head.html %} +
Skip to main content
diff --git a/_sass/custom/custom.scss b/_sass/custom/custom.scss index f8a0574..fd49101 100644 --- a/_sass/custom/custom.scss +++ b/_sass/custom/custom.scss @@ -1,4 +1,27 @@ // add custom sass here to override any styles +#skip-to-content a { + padding:6px; + position: absolute; + top:-100px; + left:0px; + color:white; + border-right:1px solid white; + border-bottom:1px solid white; + border-bottom-right-radius:8px; + background:#BF1722; + -webkit-transition: top 1s ease-out; + transition: top 1s ease-out; + z-index: 100; +} +#skip-to-content a:focus { + position:absolute; + left:0px; + top:0px; + outline-color:transparent; + -webkit-transition: top .1s ease-in; + transition: top .1s ease-in; +} + .site-header { background: black; .cb-logo {