[Xfce4-commits] <midori:master> Make link number style more robust

Christian Dywan noreply at xfce.org
Tue Oct 26 23:04:03 CEST 2010


Updating branch refs/heads/master
         to ad6905db4d1ccec5a73da7fa9c01180be4b3950a (commit)
       from 8b7640731da3317ba74bcea671bdc8e15c9741fb (commit)

commit ad6905db4d1ccec5a73da7fa9c01180be4b3950a
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Oct 26 21:56:12 2010 +0200

    Make link number style more robust
    
    Use bold, small font, white background, 1 line high and displayed.
    
    Mark attributes with !important to ensure the style is not
    changed due to styling on the page.

 midori/midori-view.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 415ef3c..10efb34 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -1814,9 +1814,11 @@ gtk_widget_key_press_event_cb (WebKitWebView* web_view,
                 " document.styleSheets[0].insertRule (aSelector + ' ' + aRule);"
                 " } )"
                 " ('.midoriHKD87346', '{ "
-                " z-index:500; font-size:x-small; -webkit-border-radius:0.3em;"
-                " background-color:white; border:1px solid gray; color: black;"
-                " padding:0 0.1em; position:absolute; }');"
+                " font-size:small !important; font-weight:bold !important;"
+                " z-index:500; border-radius:0.3em; line-height:1 !important;"
+                " background: white !important; color: black !important;"
+                " border:1px solid gray; padding:0 0.1em !important;"
+                " position:absolute; display:inline !important; }');"
                 "var links = document.getElementsByTagName ('a');"
                 "for (i in links) {"
                 "  var child = document.createElement ('span');"



More information about the Xfce4-commits mailing list