From fb8d22d96715787f40c3451b8263368e43bab360 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 6 Mar 2021 11:24:58 +0100 Subject: [PATCH] fix: fix broken search result links in WebKit browsers (#86) Fixes: https://github.com/thegeeklab/hugo-geekdoc/issues/85 --- src/sass/_base.scss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sass/_base.scss b/src/sass/_base.scss index ec6dc6d..7358e4a 100644 --- a/src/sass/_base.scss +++ b/src/sass/_base.scss @@ -440,7 +440,7 @@ img { } &__list { - display: none; + visibility: hidden; background: $white; border-radius: $border-radius; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); @@ -477,8 +477,9 @@ img { } } - &:focus-within &__list.has-hits { - display: block !important; + &:focus-within &__list.has-hits, + &__list.has-hits:active { + visibility: visible; } }