Revert "Set z-index on hint container instead of every item."
authorDaniel Carl <danielcarl@gmx.de>
Mon, 6 Jan 2014 17:16:49 +0000 (18:16 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Mon, 6 Jan 2014 17:16:49 +0000 (18:16 +0100)
This reverts commit 9ad874b2dfa20b13bb7a0fd2871ce34602983ad0.

The z-index on the single items seems to be essential to display the hint
labels on some pages.

src/hints.js

index 357a93d..5c60125 100644 (file)
@@ -15,10 +15,10 @@ var VbHint = (function(){
         hClass   = "_hintElem",        /* marks hinted elements */
         fClass   = "_hintFocus",       /* marks focused element and focussed hint */
         config,
-        style    = "#" + cId + "{z-index:100000}" +
-            "." + lClass + "{" +
+        style    = "." + lClass + "{" +
             "-webkit-transform:translate(-4px,-4px);" +
             "position:absolute;" +
+            "z-index:100000;" +
             "font:bold\x20.8em\x20monospace;" +
             "color:#000;" +
             "background-color:#fff;" +
@@ -36,7 +36,7 @@ var VbHint = (function(){
             "}" +
             "." + lClass + "." + fClass + "{" +
             /* use higher z-index to show the active label if it's overlapped by other labels */
-            "z-index:1;" +
+            "z-index:100001;" +
             "opacity:1" +
             "}";