From b073f78bbcb1bbf7699707aa1381df78737b06fc Mon Sep 17 00:00:00 2001 From: tczy Date: Wed, 6 Jan 2010 06:43:24 +0200 Subject: get back to default styles, github had a mess --- examples/data/uzbl/scripts/follow.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/examples/data/uzbl/scripts/follow.js b/examples/data/uzbl/scripts/follow.js index 19a0a28..d697368 100644 --- a/examples/data/uzbl/scripts/follow.js +++ b/examples/data/uzbl/scripts/follow.js @@ -106,15 +106,17 @@ function generateHint(el, label) { hint.style.padding = '1px'; hint.style.position = 'absolute'; hint.style.zIndex = '1000'; -// hint.style.textTransform = 'uppercase'; - hint.style.left = Math.max(-1, (pos[1] - (7 + label.length * 9))) + 'px'; - hint.style.top = (pos[0] + 1) + 'px'; - var img = el.getElementsByTagName('img'); - //if (img.length > 0) { - //hint.style.top = pos[1] + img[0].height / 2 - 6 + 'px'; - //} + // hint.style.textTransform = 'uppercase'; + hint.style.left = pos[1] + 'px'; + hint.style.top = pos[0] + 'px'; + // var img = el.getElementsByTagName('img'); + // if (img.length > 0) { + // hint.style.top = pos[1] + img[0].height / 2 - 6 + 'px'; + // } hint.style.textDecoration = 'none'; // hint.style.webkitBorderRadius = '6px'; // slow + // Play around with this, pretty funny things to do :) + // hint.style.webkitTransform = 'scale(1) rotate(0deg) translate(-6px,-5px)'; return hint; } //Here we choose what to do with an element if we -- cgit v1.2.3