Add filter-highlight to threads on the catalog.

Conflicts:
	css/style.css
This commit is contained in:
Mayhem 2014-01-26 18:19:23 +01:00 committed by ccd0
parent 662a3660fe
commit 5a456f0cbe
3 changed files with 7 additions and 0 deletions

View File

@ -113,6 +113,7 @@ Filter =
# Highlight
$.addClass @nodes.root, result.class
@thread.highlight = result.class
if !@isReply and result.top
@thread.isOnTop = true

View File

@ -363,6 +363,8 @@ Build =
'<div class="comment">&{thread.OP.nodes.comment}</div>'
) %>
$.addClass root, thread.highlight if thread.highlight
if thread.isSticky
$.add $('.thread-icons', root), $.el 'img',
src: "#{staticPath}sticky#{gifIcon}"

View File

@ -516,6 +516,7 @@ hr ~ div.center:not(.ad-cnt) {
.thumb {
max-width: 150px;
max-height: 150px;
border-radius: 2px;
box-shadow: 0 0 5px rgba(0, 0, 0, .25);
}
.thunb.spoiler-file {
@ -823,6 +824,9 @@ span.hide-announcement {
.filter-highlight > .reply {
box-shadow: -5px 0 rgba(255, 0, 0, .5);
}
.filter-highlight .thumb {
border: 2px solid rgba(255, 0, 0, .5);
}
/* Spoiler text */
:root.reveal-spoilers s {