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