From f8d0f72e255c6d8611f3142bdf2f813f716ee141 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Tue, 7 May 2024 18:44:13 +0200 Subject: [PATCH] Add "skip to main content" link --- assets/scss/main.scss | 10 ++++++++++ layouts/_default/baseof.html | 1 + 2 files changed, 11 insertions(+) diff --git a/assets/scss/main.scss b/assets/scss/main.scss index e698479..1d134b8 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -152,3 +152,13 @@ article#main-article { margin-bottom: 1rem; } } + +.skip-link { + position: absolute; + top: -3em; + background: #fff; + + &:focus { + top: 0; + } +} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 3845b79..7db841c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -14,6 +14,7 @@ {{ partial "head_includes.html" }} + {{ partial "vue_templates.html" }}