Permalink
Browse files

Some small changes.

  • Loading branch information...
1 parent a4d8fe5 commit 8133b15a11f294c25e2ccde2d19510adc0e78cc3 @prajwalit committed Mar 13, 2012
Showing with 11 additions and 1 deletion.
  1. +8 −0 readable-hn/hn.css
  2. +3 −1 readable-hn/toggle.js
View
@@ -45,3 +45,11 @@ td.subtext a:nth-child(3) {
.comment font {
color: #333 !important;
}
+
+.closed td.default>p {
+ display: none;
+}
+
+.commentWrapper td[valign="top"] {
+ width: 5px;
+}
View
@@ -10,8 +10,10 @@
$ (".commentWrapper").each (function (index, node) {
var commentHeader = $(node).find (".comhead").parent ();
commentHeader.addClass ("commentHeader").append ("&nbsp;<a href='javascript:void(0);' class='toggle'>[-]</a>");
- var level = ($(node).find ("img").first ().attr ("width"))*1 / 40;
+ var img = $(node).find ("img:first");
+ var level = (img.attr ("width"))*1 / 40;
$(node).attr ("data_level", level);
+ img.parent ().css ("width", (level * 40) + "px");
var comment = $(node).find (".comment");
comment.replaceWith ("<div class='comment'>" + comment.html () + "</div>");
});

0 comments on commit 8133b15

Please sign in to comment.