fix: fix broken search result links in WebKit browsers (#86)

Fixes: https://github.com/thegeeklab/hugo-geekdoc/issues/85
This commit is contained in:
Robert Kaussow 2021-03-06 11:24:58 +01:00 committed by GitHub
parent ecc59e6482
commit fb8d22d967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -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;
}
}