aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorCaio Lente <7017340+clente@users.noreply.github.com>2023-09-29 19:49:56 -0300
committerGitHub <noreply@github.com>2023-09-29 19:49:56 -0300
commit6f2e7d0c6fe3ef16fa414d75d9647398df857c39 (patch)
tree305998c936bf2f1e8465eae74590790cf5b11f80 /assets
parent21c4876a084efadbb1559989850fdc8baf3e43d6 (diff)
parentafebeba99d57247abee53a6857f586ed964edee4 (diff)
downloadhugo-bearcub-6f2e7d0c6fe3ef16fa414d75d9647398df857c39.tar.gz
hugo-bearcub-6f2e7d0c6fe3ef16fa414d75d9647398df857c39.tar.bz2
Merge pull request #5 from 2kool4idkwhat/main
a11y: add a "skip to main content" link
Diffstat (limited to 'assets')
-rw-r--r--assets/style.css15
1 files changed, 15 insertions, 0 deletions
diff --git a/assets/style.css b/assets/style.css
index 3b90566..c36c7e1 100644
--- a/assets/style.css
+++ b/assets/style.css
@@ -145,3 +145,18 @@ h3.blog-filter {
cursor: not-allowed;
opacity: 0.7;
}
+
+/* "skip to main content" link */
+.skiplink {
+ position: absolute;
+ top: 5;
+ transform: translateY(-600%);
+ transition: transform 0.5s;
+ background-color: #121212;
+ font-size: larger;
+ padding: 6px;
+}
+
+.skiplink:focus {
+ transform: translateY(0%);
+} \ No newline at end of file