mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-29 01:51:43 +00:00
Doc search improvements (#24567)
- `/` is now a hotkey to jump to the search - Search results now are in line with the page (previously on small screens it would be off centre) - Jumping to a search result inside the page or via TOC will now hide the search results (previously the results got in the way) Example site here: https://tranquil-scone-c159b6.netlify.app/main.html
This commit is contained in:
@@ -770,11 +770,10 @@ div.topic {
|
||||
|
||||
div.search_results {
|
||||
background-color: var(--third-background);
|
||||
margin: 3vh 5vw;
|
||||
padding: 1em;
|
||||
border: 1px solid #4d4d4d;
|
||||
position: fixed;
|
||||
top: 10px;
|
||||
position: sticky;
|
||||
top: 1em;
|
||||
isolation: isolate;
|
||||
max-width: calc(100vw - 6em);
|
||||
z-index: 1;
|
||||
|
||||
Reference in New Issue
Block a user