Stick search result (#22394)

* nimdoc: stick search result inside browser viewport

* fix nimdoc.out.css

---------

Co-authored-by: Locria Cyber <74560659+locriacyber@users.noreply.github.com>
This commit is contained in:
Bung
2023-08-06 19:07:36 +08:00
committed by GitHub
parent f18e4c4050
commit d2b197bdcd
2 changed files with 14 additions and 2 deletions

View File

@@ -769,7 +769,13 @@ div.search_results {
background-color: var(--third-background);
margin: 3em;
padding: 1em;
border: 1px solid #4d4d4d; }
border: 1px solid #4d4d4d;
position: sticky;
top: 0;
isolation: isolate;
z-index: 1;
max-height: 100vh;
overflow-y: scroll; }
div#global-links ul {
margin-left: 0;

View File

@@ -769,7 +769,13 @@ div.search_results {
background-color: var(--third-background);
margin: 3em;
padding: 1em;
border: 1px solid #4d4d4d; }
border: 1px solid #4d4d4d;
position: sticky;
top: 0;
isolation: isolate;
z-index: 1;
max-height: 100vh;
overflow-y: scroll; }
div#global-links ul {
margin-left: 0;