about summary refs log tree commit diff
path: root/assets
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2023-08-04 08:30:03 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2023-08-04 08:30:03 +0700
commit3f8ec96f3436b1b1a1c91807694280cb08fe7ce9 (patch)
tree57420d99b9fc02f0f1b74c3196ec4171a9c6f1ed /assets
parente19108bbf10b876fbf55ee82f19dd0dda4f9324c (diff)
downloadvictor-3f8ec96f3436b1b1a1c91807694280cb08fe7ce9.tar.gz
Implement skip to main link
Diffstat (limited to 'assets')
-rw-r--r--assets/css/theme.css14
1 files changed, 14 insertions, 0 deletions
diff --git a/assets/css/theme.css b/assets/css/theme.css
index 1988b04..1162ae0 100644
--- a/assets/css/theme.css
+++ b/assets/css/theme.css
@@ -2,6 +2,20 @@
     --column-width: 80ch;
 }
 
+a.skip-main {
+    left: 0;
+    position: absolute;
+}
+
+a.skip-main:not(:focus) {
+    clip: rect(0 0 0 0);
+    clip-path: inset(50%);
+    height: 1px;
+    overflow: hidden;
+    white-space: nowrap;
+    width: 1px;
+}
+
 nav ul, nav ul li {
 	display: inline-block;
 }