From 3f8ec96f3436b1b1a1c91807694280cb08fe7ce9 Mon Sep 17 00:00:00 2001 From: Ngô Ngọc Đức Huy Date: Fri, 4 Aug 2023 08:30:03 +0700 Subject: Implement skip to main link --- assets/css/theme.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'assets/css') 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; } -- cgit 1.4.1