diff --git a/public/javascripts/dragreg.js b/public/javascripts/dragreg.js index e7db9de..0247d2c 100644 --- a/public/javascripts/dragreg.js +++ b/public/javascripts/dragreg.js @@ -29,6 +29,10 @@ $(document).ready(function() { submit: 'OK', cancel: 'Discard', style: 'inherit' }); + last_drag.hover(function() { $(this).find(".comments").fadeIn(); }, + function() { $(this).find(".comments").fadeOut(); }); + // FIXME: get the comments! + last_drag.find(".comments").text("Comments (0)").hide(); // Highlight contained code. last_drag.find("pre code").each(function(idx, elem) { hljs.highlightBlock(elem, ' '); diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index eabe90e..b0fc556 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -91,7 +91,7 @@ pre { } .draggable .header { - padding-bottom: 3px; + padding-bottom: 5px; font-size: 11px; } @@ -123,5 +123,7 @@ pre { } .draggable .comments { - display: none; + color: #999; + font-size: 11px; + padding-top: 5px; }