mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 15:48:00 +01:00
Fix CompTitle padding, and stuff.
This commit is contained in:
@@ -130,7 +130,7 @@ function Hints() //{{{
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
var computedStyle = doc.defaultView.getComputedStyle(elem, null);
|
var computedStyle = doc.defaultView.getComputedStyle(elem, null);
|
||||||
if (computedStyle.getPropertyValue("visibility") == "hidden" || computedStyle.getPropertyValue("display") == "none")
|
if (computedStyle.getPropertyValue("visibility") != "visible" || computedStyle.getPropertyValue("display") == "none")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// TODO: mozilla docs recommend localName instead of tagName
|
// TODO: mozilla docs recommend localName instead of tagName
|
||||||
@@ -162,7 +162,7 @@ function Hints() //{{{
|
|||||||
}
|
}
|
||||||
|
|
||||||
// also generate hints for frames
|
// also generate hints for frames
|
||||||
Array.forEach(win.frames, function (frame) { generate(frame); });
|
Array.forEach(win.frames, generate);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -284,32 +284,7 @@ function Hints() //{{{
|
|||||||
|
|
||||||
// animate the disappearance of the first hint
|
// animate the disappearance of the first hint
|
||||||
if (timeout && firstElem)
|
if (timeout && firstElem)
|
||||||
{
|
|
||||||
// USE THIS FOR MAKING THE SELECTED ELEM RED
|
|
||||||
// firstElem.style.backgroundColor = "red";
|
|
||||||
// firstElem.style.color = "white";
|
|
||||||
// setTimeout(function () {
|
|
||||||
// firstElem.style.backgroundColor = firstElemBgColor;
|
|
||||||
// firstElem.style.color = firstElemColor;
|
|
||||||
// }, 200);
|
|
||||||
// OR USE THIS FOR BLINKING:
|
|
||||||
// var counter = 0;
|
|
||||||
// var id = setInterval(function () {
|
|
||||||
// firstElem.style.backgroundColor = "red";
|
|
||||||
// if (counter % 2 == 0)
|
|
||||||
// firstElem.style.backgroundColor = "yellow";
|
|
||||||
// else
|
|
||||||
// firstElem.style.backgroundColor = "#88FF00";
|
|
||||||
//
|
|
||||||
// if (counter++ >= 2)
|
|
||||||
// {
|
|
||||||
// firstElem.style.backgroundColor = firstElemBgColor;
|
|
||||||
// firstElem.style.color = firstElemColor;
|
|
||||||
// clearTimeout(id);
|
|
||||||
// }
|
|
||||||
// }, 100);
|
|
||||||
setTimeout(function () { firstElem.removeAttributeNS(NS.uri, "highlight") }, timeout);
|
setTimeout(function () { firstElem.removeAttributeNS(NS.uri, "highlight") }, timeout);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
styles.removeSheet("hint-positions", null, null, null, true);
|
styles.removeSheet("hint-positions", null, null, null, true);
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ Highlights.prototype.CSS = <![CDATA[
|
|||||||
CompGroup
|
CompGroup
|
||||||
CompGroup:not(:first-of-type) margin-top: .5em;
|
CompGroup:not(:first-of-type) margin-top: .5em;
|
||||||
CompTitle color: magenta; background: white; font-weight: bold;
|
CompTitle color: magenta; background: white; font-weight: bold;
|
||||||
CompTitle>* /* border-bottom: 1px dashed magenta; */
|
CompTitle>* padding: 0 .5ex;
|
||||||
CompMsg font-style: italic; margin-left: 16px;
|
CompMsg font-style: italic; margin-left: 16px;
|
||||||
CompItem
|
CompItem
|
||||||
CompItem[selected] background: yellow;
|
CompItem[selected] background: yellow;
|
||||||
|
|||||||
Reference in New Issue
Block a user