Add filter-highlight to threads on the catalog.
This commit is contained in:
parent
bdf2b4a6ba
commit
7623040593
@ -420,6 +420,7 @@ a[href="javascript:;"] {
|
||||
.thumb {
|
||||
max-width: 150px;
|
||||
max-height: 150px;
|
||||
border-radius: 2px;
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, .25);
|
||||
}
|
||||
.thunb.spoiler-file {
|
||||
@ -648,6 +649,9 @@ a.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);
|
||||
}
|
||||
|
||||
/* Thread & Reply Hiding */
|
||||
.hide-thread-button,
|
||||
|
||||
@ -110,6 +110,7 @@ Filter =
|
||||
|
||||
# Highlight
|
||||
$.addClass @nodes.root, result.class
|
||||
@thread.highlight = result.class
|
||||
if !@isReply and result.top
|
||||
@thread.isOnTop = true
|
||||
|
||||
|
||||
@ -297,6 +297,8 @@ Build =
|
||||
className: 'catalog-thread'
|
||||
innerHTML: <%= importHTML('General/Thread-catalog-view') %>
|
||||
|
||||
$.addClass root, thread.highlight if thread.highlight
|
||||
|
||||
if thread.isSticky
|
||||
$.add $('.thread-icons', root), $.el 'img',
|
||||
src: "#{staticPath}sticky#{gifIcon}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user