diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-04-28 19:33:28 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-04-28 19:33:28 -0300 |
| commit | 873d1fa8f938843d3b2c97e2229c1a3403621416 (patch) | |
| tree | af620bf8edef4f6fb970feb6a9cab6500d37b2e3 /src/static/css | |
| parent | eb3032a97a2a195627929c56215e3f080f28aca8 (diff) | |
client, css: only show search scroll cue if there are any results
Diffstat (limited to 'src/static/css')
| -rw-r--r-- | src/static/css/search.css | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/static/css/search.css b/src/static/css/search.css index 409e12df..c121aaee 100644 --- a/src/static/css/search.css +++ b/src/static/css/search.css @@ -347,8 +347,8 @@ } @layer interaction { - .wiki-search-results-container::before, - .wiki-search-results-container::after { + .wiki-search-results-container.has-results::before, + .wiki-search-results-container.has-results::after { content: ""; display: block; position: sticky; @@ -356,17 +356,17 @@ z-index: 1; } - .wiki-search-result:hover { + .wiki-search-results-container.has-results .wiki-search-result:hover { z-index: 2; } /* Shadow along top edge */ - .wiki-search-results-container > :first-child { + .wiki-search-results-container.has-results > :first-child { margin-top: -4px; } - .wiki-search-results-container::before { + .wiki-search-results-container.has-results::before { height: 8px; top: -2px; background: linear-gradient(to bottom, black, black 50%, transparent); opacity: 0.4; @@ -374,11 +374,11 @@ /* Shadow along bottom edge */ - .wiki-search-results-container > :last-child { + .wiki-search-results-container.has-results > :last-child { margin-bottom: -10px; } - .wiki-search-results-container::after { + .wiki-search-results-container.has-results::after { height: 16px; bottom: -2px; background: linear-gradient(to top, black, black 30%, transparent); opacity: 0.4; |