changeset 38481:a8872a820242

hgweb: add z-index for search field tooltip On graph page, search field tooltip sometimes goes down to the graph area, where it used to be covered by foreground element of graph entries (.fg) because they have z-index: 10. To prevent the tooltip from being covered, z-index: 15 is enough.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 28 Jun 2018 07:41:08 +0800
parents ecaa0ad4ed4f
children 5faaa31a6082
files mercurial/templates/static/style-gitweb.css mercurial/templates/static/style-paper.css tests/test-hgweb.t
diffstat 3 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templates/static/style-gitweb.css	Wed Jun 27 07:19:30 2018 -0700
+++ b/mercurial/templates/static/style-gitweb.css	Thu Jun 28 07:41:08 2018 +0800
@@ -74,6 +74,7 @@
   background: #ffc;
   border: 1px solid yellow;
   border-radius: 5px;
+  z-index: 15;
 }
 
 #searchform:hover div#hint { display: block; }
--- a/mercurial/templates/static/style-paper.css	Wed Jun 27 07:19:30 2018 -0700
+++ b/mercurial/templates/static/style-paper.css	Thu Jun 28 07:41:08 2018 +0800
@@ -90,6 +90,7 @@
   font-size: 70%;
   border: 1px solid yellow;
   border-radius: 5px;
+  z-index: 15;
 }
 
 form.search:hover div#hint { display: block; }
--- a/tests/test-hgweb.t	Wed Jun 27 07:19:30 2018 -0700
+++ b/tests/test-hgweb.t	Thu Jun 28 07:41:08 2018 +0800
@@ -336,7 +336,7 @@
 
   $ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server
   200 Script output follows
-  content-length: 9059
+  content-length: 9074
   content-type: text/css
   
   body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; background: white; color: black; }
@@ -415,6 +415,7 @@
     background: #ffc;
     border: 1px solid yellow;
     border-radius: 5px;
+    z-index: 15;
   }
   
   #searchform:hover div#hint { display: block; }