From 9f5ab578e212babe39970250e805e1a9dda9e032 Mon Sep 17 00:00:00 2001 From: hypevhs <4498312-hypevhs@users.noreply.gitlab.com> Date: Sat, 10 Aug 2024 02:03:38 -0500 Subject: [PATCH] feat: highlight active HTML anchor header --- assets/_custom.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/assets/_custom.scss b/assets/_custom.scss index da2bb8a..945b012 100644 --- a/assets/_custom.scss +++ b/assets/_custom.scss @@ -19,3 +19,13 @@ main { #menu-control:checked ~ main .book-page { opacity: 1; } + +h1, +h2, +h3, +h4, +h5 { + &:target { + background-color: rgba(#f66, 0.1); + } +}