aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/css/conversation.css30
-rw-r--r--view/js/main.js8
-rw-r--r--view/theme/redbasic/css/style.css13
3 files changed, 31 insertions, 20 deletions
diff --git a/view/css/conversation.css b/view/css/conversation.css
index 2688bde58..7ecd41627 100644
--- a/view/css/conversation.css
+++ b/view/css/conversation.css
@@ -97,6 +97,18 @@
/* conv_item */
+.wall-item-head {
+ padding: 10px 10px 0.5em 10px;
+}
+
+.wall-item-content {
+ padding: 0.5em 10px;
+}
+
+.wall-item-tools {
+ padding: 0.5em 10px 10px 10px;
+}
+
.wall-item-info {
display: block;
float: left;
@@ -195,6 +207,20 @@ a.wall-item-name-link {
margin-bottom: 20px;
}
+.ivoted {
+ color: #337AB7;
+}
+
+.item-highlight {
+ border-left: 3px solid #337AB7;
+}
+
+.item-highlight .wall-item-head,
+.item-highlight .wall-item-content,
+.item-highlight .wall-item-tools {
+ padding-left: 7px;
+}
+
/* comment_item */
.comment-edit-text-empty,
@@ -340,7 +366,3 @@ img.smiley.emoji:hover {
#filer_save {
margin-left: 15px;
}
-
-.ivoted {
- color: #337AB7;
-}
diff --git a/view/js/main.js b/view/js/main.js
index 65a5311af..0239fc1f8 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -652,14 +652,16 @@ function updateConvItems(mode,data) {
}
// auto-scroll to a particular comment in a thread (designated by mid) when in single-thread mode
- if($('.item_' + bParam_mid.substring(0,32)).length && mode == 'replace') {
- $('html, body').animate({ scrollTop: $('.item_' + bParam_mid.substring(0,32)).offset().top - $('nav').outerHeight(true) }, 'slow');
+ if($('.item_' + bParam_mid.substring(0,32)).length && !$('.item_' + bParam_mid.substring(0,32)).hasClass('toplevel_item') && mode == 'replace') {
if($('.collapsed-comments').length) {
var scrolltoid = $('.collapsed-comments').attr('id').substring(19);
- $('#collapsed-comments-' + scrolltoid).slideDown();
+ $('#collapsed-comments-' + scrolltoid + ' .autotime').timeago();
+ $('#collapsed-comments-' + scrolltoid).show();
$('#hide-comments-' + scrolltoid).html(aStr.showfewer);
$('#hide-comments-total-' + scrolltoid).hide();
}
+ $('html, body').animate({ scrollTop: $('.item_' + bParam_mid.substring(0,32)).offset().top - $('nav').outerHeight() }, 'slow');
+ $('.item_' + bParam_mid.substring(0,32)).addClass('item-highlight');
}
}
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css
index 2b0f3b853..a6d1d2a7e 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -1267,14 +1267,6 @@ img.mail-conv-sender-photo {
font-size: $body_font_size;
}
-.wall-item-head {
- padding: 10px 10px 0.5em 10px;
-}
-
-.wall-item-content {
- padding: 0.5em 10px;
-}
-
.wall-event-item {
padding: 10px;
color: #fff;
@@ -1289,11 +1281,6 @@ img.mail-conv-sender-photo {
border-top-left-radius: $radiuspx;
}
-.wall-item-tools {
- padding: 0.5em 10px 10px 10px;
-}
-
-
.wall-item-title {
font-size: $font_size;
}