aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar tczy <cy@wre.ath.cx>2010-01-06 06:43:24 +0200
committerGravatar tczy <cy@wre.ath.cx>2010-01-06 06:43:24 +0200
commitb073f78bbcb1bbf7699707aa1381df78737b06fc (patch)
treed0b140cc94cce38d120291d4191c82bf653ccfbf
parent2b2c04ab16923fda7111f36243c0fbf4e19587bc (diff)
get back to default styles, github had a mess
-rw-r--r--examples/data/uzbl/scripts/follow.js16
1 files 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