diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-08-04 08:30:03 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-08-04 08:30:03 +0700 |
commit | 3f8ec96f3436b1b1a1c91807694280cb08fe7ce9 (patch) | |
tree | 57420d99b9fc02f0f1b74c3196ec4171a9c6f1ed /assets | |
parent | e19108bbf10b876fbf55ee82f19dd0dda4f9324c (diff) | |
download | victor-3f8ec96f3436b1b1a1c91807694280cb08fe7ce9.tar.gz |
Implement skip to main link
Diffstat (limited to 'assets')
-rw-r--r-- | assets/css/theme.css | 14 |
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; } |