Patchwork [2,of,3] gitweb: apply styles from annotate tooltip to followlines popup

login
register
mail settings
Submitter Anton Shestakov
Date Nov. 10, 2017, 12:39 p.m.
Message ID <95cb67784e3c0d05e24e.1510317545@neuro>
Download mbox | patch
Permalink /patch/25458/
State Accepted
Headers show

Comments

Anton Shestakov - Nov. 10, 2017, 12:39 p.m.
# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1510311044 -28800
#      Fri Nov 10 18:50:44 2017 +0800
# Node ID 95cb67784e3c0d05e24e387acda45fd1c8aa4653
# Parent  a78d4fc414f798adcbfcee3237ad71095158718c
gitweb: apply styles from annotate tooltip to followlines popup

These new colors and styles are already used in the tooltip that gets shown
when user hovers over line numbers on annotate page. The old styles, replaced
in this patch, look completely unrelated to gitweb or any other hgweb theme.

Patch

diff --git a/mercurial/templates/static/style-gitweb.css b/mercurial/templates/static/style-gitweb.css
--- a/mercurial/templates/static/style-gitweb.css
+++ b/mercurial/templates/static/style-gitweb.css
@@ -191,10 +191,9 @@  pre.sourcelines > span.followlines-selec
 }
 
 div#followlines {
-  background-color: #B7B7B7;
-  border: 1px solid #CCC;
-  border-radius: 5px;
-  padding: 4px;
+  background-color: #FFF;
+  border: 1px solid #d9d8d1;
+  padding: 5px;
   position: fixed;
 }
 
diff --git a/tests/test-hgweb.t b/tests/test-hgweb.t
--- a/tests/test-hgweb.t
+++ b/tests/test-hgweb.t
@@ -340,7 +340,7 @@  static file
 
   $ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server
   200 Script output follows
-  content-length: 9066
+  content-length: 9044
   content-type: text/css
   
   body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; background: white; color: black; }
@@ -536,10 +536,9 @@  static file
   }
   
   div#followlines {
-    background-color: #B7B7B7;
-    border: 1px solid #CCC;
-    border-radius: 5px;
-    padding: 4px;
+    background-color: #FFF;
+    border: 1px solid #d9d8d1;
+    padding: 5px;
     position: fixed;
   }