From 32073b3d660c094024932d38ca700973bcf522a8 Mon Sep 17 00:00:00 2001 From: Eugene Orlov Date: Tue, 6 Jun 2023 17:59:46 +0200 Subject: [PATCH] [site] fix: anchor offset make it use tailwind styles --- site/src/styles.css | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/site/src/styles.css b/site/src/styles.css index 2b77dae8..02fd4a5c 100644 --- a/site/src/styles.css +++ b/site/src/styles.css @@ -195,15 +195,12 @@ } .header-anchor { - pointer-events: none; + @apply pointer-events-none; } .header-anchor::before { - content: ''; - display: block; - height: 75px; - margin-top: -75px; - visibility: hidden; -} -.header-anchor:focus-visible { - outline: none; + @apply content-['']; + @apply block; + @apply h-16; + @apply -mt-16; + @apply invisible; }