diff options
author | Chad Kieffer <chad@2tbsp.com> | 2009-01-15 04:32:34 +0000 |
---|---|---|
committer | Chad Kieffer <chad@2tbsp.com> | 2009-01-15 04:32:34 +0000 |
commit | e7d7396f7ad433bae59dd8460307b4dfa9ab33db (patch) | |
tree | a700a3c4c99d439870b7108fbd4e6e1381da61c8 | |
parent | 5bfde5ceb863a399bf29ac30c6d4357fe031d7dc (diff) |
Minor display updates for quick edit menu.
-rw-r--r-- | core/css/quick.css | 6 | ||||
-rw-r--r-- | core/js/quick.js | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/core/css/quick.css b/core/css/quick.css index fef92c22..372fb55a 100644 --- a/core/css/quick.css +++ b/core/css/quick.css @@ -1,3 +1,7 @@ +.gItem:hover { + background-color: #cfdeff; +} + .gQuick { border: none !important; margin: 0 !important; @@ -7,7 +11,7 @@ #gQuickPane { background: #000; border-bottom: 1px solid #ccc; - opacity: 0.8; + opacity: 0.9; } #gQuickPane a { diff --git a/core/js/quick.js b/core/js/quick.js index 0462e939..ce36ca35 100644 --- a/core/js/quick.js +++ b/core/js/quick.js @@ -13,15 +13,15 @@ var show_quick = function() { "position": "absolute", "top": pos.top, "left": pos.left, - "width": cont.innerWidth(), + "width": cont.innerWidth() + 1, "height": 32 - }); - cont.hover(function() { }, hide_quick); + }).hide(); + cont.hover(function() {}, hide_quick); $.get( quick.attr("href"), {}, function(data, textStatus) { - $("#gQuickPane").html(data); + $("#gQuickPane").html(data).slideDown("fast"); $("#gQuickPane a").click(function(e) { e.preventDefault(); quick_do(cont, $(this), img); @@ -46,7 +46,7 @@ var quick_do = function(cont, pane, img) { img.attr("height", data.height); img.attr("src", data.src); if (data.height > data.width) { - img.css("margin-top", -$("#gQuickPane").height()); + img.css("margin-top", -32); } else { img.css("margin-top", 0); } |