From a26ccb34768fdaceff2cf4d27aee4c830fd47303 Mon Sep 17 00:00:00 2001
From: Hamid Bluri
Date: Tue, 22 Aug 2023 20:01:21 +0330
Subject: fix #22492 (#22511)
* fix #22492
* Update nimdoc.css
remove scroll-y
* Update nimdoc.out.css
* Update nimdoc.css
* make it sticky again
* Update nimdoc.out.css
* danm sticky, use fixed
* Update nimdoc.out.css
* fix margin
* Update nimdoc.out.css
* make search input react to any change (not just keyboard events) according to https://github.com/nim-lang/Nim/pull/22511#issuecomment-1685218787
---
nimdoc/extlinks/project/expected/_._/util.html | 2 +-
nimdoc/extlinks/project/expected/main.html | 2 +-
nimdoc/extlinks/project/expected/sub/submodule.html | 2 +-
nimdoc/rst2html/expected/rst_examples.html | 2 +-
nimdoc/test_doctype/expected/test_doctype.html | 2 +-
nimdoc/test_out_index_dot_html/expected/index.html | 2 +-
nimdoc/testproject/expected/nimdoc.out.css | 11 ++++++-----
nimdoc/testproject/expected/subdir/subdir_b/utils.html | 2 +-
nimdoc/testproject/expected/testproject.html | 2 +-
9 files changed, 14 insertions(+), 13 deletions(-)
(limited to 'nimdoc')
diff --git a/nimdoc/extlinks/project/expected/_._/util.html b/nimdoc/extlinks/project/expected/_._/util.html
index 9b9b29a4f..35f333211 100644
--- a/nimdoc/extlinks/project/expected/_._/util.html
+++ b/nimdoc/extlinks/project/expected/_._/util.html
@@ -37,7 +37,7 @@
- Search:
+ Search:
Group by:
diff --git a/nimdoc/extlinks/project/expected/main.html b/nimdoc/extlinks/project/expected/main.html
index cf7982fde..1a58ea2ac 100644
--- a/nimdoc/extlinks/project/expected/main.html
+++ b/nimdoc/extlinks/project/expected/main.html
@@ -37,7 +37,7 @@
- Search:
+ Search:
Group by:
diff --git a/nimdoc/extlinks/project/expected/sub/submodule.html b/nimdoc/extlinks/project/expected/sub/submodule.html
index 913138d6e..60887ae37 100644
--- a/nimdoc/extlinks/project/expected/sub/submodule.html
+++ b/nimdoc/extlinks/project/expected/sub/submodule.html
@@ -37,7 +37,7 @@
- Search:
+ Search:
Group by:
diff --git a/nimdoc/rst2html/expected/rst_examples.html b/nimdoc/rst2html/expected/rst_examples.html
index 72f6453f2..af46771f3 100644
--- a/nimdoc/rst2html/expected/rst_examples.html
+++ b/nimdoc/rst2html/expected/rst_examples.html
@@ -37,7 +37,7 @@
- Search:
+ Search:
Group by:
diff --git a/nimdoc/test_doctype/expected/test_doctype.html b/nimdoc/test_doctype/expected/test_doctype.html
index 01ad6e5a0..694ed9b00 100644
--- a/nimdoc/test_doctype/expected/test_doctype.html
+++ b/nimdoc/test_doctype/expected/test_doctype.html
@@ -37,7 +37,7 @@
- Search:
+ Search:
Group by:
diff --git a/nimdoc/test_out_index_dot_html/expected/index.html b/nimdoc/test_out_index_dot_html/expected/index.html
index 22d5daa35..40df1943a 100644
--- a/nimdoc/test_out_index_dot_html/expected/index.html
+++ b/nimdoc/test_out_index_dot_html/expected/index.html
@@ -37,7 +37,7 @@
- Search:
+ Search:
Group by:
diff --git a/nimdoc/testproject/expected/nimdoc.out.css b/nimdoc/testproject/expected/nimdoc.out.css
index 3fb5497ff..a9e4ac9c6 100644
--- a/nimdoc/testproject/expected/nimdoc.out.css
+++ b/nimdoc/testproject/expected/nimdoc.out.css
@@ -767,15 +767,16 @@ div.topic {
div.search_results {
background-color: var(--third-background);
- margin: 3em;
+ margin: 3vh 5vw;
padding: 1em;
border: 1px solid #4d4d4d;
- position: sticky;
- top: 0;
+ position: fixed;
+ top: 10px;
isolation: isolate;
+ max-width: calc(100vw - 6em);
z-index: 1;
- max-height: 100vh;
- overflow-y: scroll; }
+ max-height: calc(100vh - 6em);
+ overflow-y: scroll;}
div#global-links ul {
margin-left: 0;
diff --git a/nimdoc/testproject/expected/subdir/subdir_b/utils.html b/nimdoc/testproject/expected/subdir/subdir_b/utils.html
index cfdac5310..ba9512d5a 100644
--- a/nimdoc/testproject/expected/subdir/subdir_b/utils.html
+++ b/nimdoc/testproject/expected/subdir/subdir_b/utils.html
@@ -37,7 +37,7 @@
- Search:
+ Search:
Group by:
diff --git a/nimdoc/testproject/expected/testproject.html b/nimdoc/testproject/expected/testproject.html
index 78a730e59..db49102f8 100644
--- a/nimdoc/testproject/expected/testproject.html
+++ b/nimdoc/testproject/expected/testproject.html
@@ -37,7 +37,7 @@
- Search:
+ Search:
Group by:
--
cgit 1.4.1-2-gfad0