From bbf44a9a0543b083c86c65d839d8cf2da958828a Mon Sep 17 00:00:00 2001 From: Denis Shakhov Date: Wed, 28 Jul 2010 16:52:50 +0000 Subject: [PATCH] fix developer --- templates/skin/developer/css/style.css | 6 ++++-- templates/skin/developer/js/comments.js | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/skin/developer/css/style.css b/templates/skin/developer/css/style.css index 4830d70a..8e8e335f 100644 --- a/templates/skin/developer/css/style.css +++ b/templates/skin/developer/css/style.css @@ -211,10 +211,12 @@ p { margin-bottom: 18px; } /* Content */ .topic .content { overflow: hidden; zoom: 1; margin-bottom: 15px; } .topic .content p { margin-bottom: 18px; } -.topic .content blockquote { background: #fafafa; padding: 10px 15px; color: #555; margin-bottom: 5px; } +.topic .content blockquote { background: #fafafa; padding: 10px 15px; color: #555; margin-bottom: 5px; clear: both; } .topic .content pre { background: #fafafa; border: 1px solid #dce6f0; margin-bottom: 10px; overflow: auto; padding: 5px 10px; } .topic .content ul { list-style-type: disc; margin-left: 17px; } .topic .content ol { list-style-type: decimal; margin-left: 22px; } +.topic .content img[align="right"] { margin: 4px 0 5px 15px; } +.topic .content img[align="left"] { margin: 4px 15px 10px 0; } /* Tags */ .topic .tags { margin: 0 0 6px; padding-left: 23px; background: url(../images/tag.png) no-repeat 0 2px; } @@ -333,7 +335,7 @@ p { margin-bottom: 18px; } .comment .info.self { background: #faf8f4 !important; } .comment .info.new { background: #fbfba8 !important; } .comment .info.del { background: #c5c5c5 !important; } -.comment .info.view { background: #cdf5a6 !important; } +.comment .info.view { background: #a5e7fa !important; } /* Comment List */ .comments.comment-list .path { padding-bottom: 3px; } diff --git a/templates/skin/developer/js/comments.js b/templates/skin/developer/js/comments.js index 26618ec7..180305d8 100644 --- a/templates/skin/developer/js/comments.js +++ b/templates/skin/developer/js/comments.js @@ -131,7 +131,7 @@ var lsCmtTreeClass = new Class({ if (!bNotFlushNew) { var aDivComments=$$('.comment'); aDivComments.each(function(item,index){ - var divContent=item.getChildren('div.content')[0]; + var divContent=item.getChildren('div.comment-inner').getChildren('ul.info')[0]; if (divContent) { divContent.removeClass('new'); divContent.removeClass('view'); @@ -234,9 +234,9 @@ var lsCmtTreeClass = new Class({ } this.docScroller.start(0,cmt.getPosition().y+deltaY); if (this.iCommentIdLastView) { - $('comment_content_id_'+this.iCommentIdLastView).removeClass('view'); + $('comment_content_id_'+this.iCommentIdLastView).getParent('div.comment-inner').getChildren('ul.info')[0].removeClass('view'); } - $('comment_content_id_'+idComment).addClass('view'); + $('comment_content_id_'+idComment).getParent('div.comment-inner').getChildren('ul.info')[0].addClass('view'); this.iCommentIdLastView=idComment; },