.notification a color
This commit is contained in:
parent
52508aa02f
commit
8804aba7cd
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -323,7 +323,6 @@ th {
|
|||||||
top: 100%;
|
top: 100%;
|
||||||
}
|
}
|
||||||
.notification {
|
.notification {
|
||||||
color: #fff;
|
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
|
text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
|
||||||
box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
|
box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
|
||||||
@ -346,13 +345,14 @@ th {
|
|||||||
.notification.success {
|
.notification.success {
|
||||||
background-color: hsla(104, 100%, 38%, .9);
|
background-color: hsla(104, 100%, 38%, .9);
|
||||||
}
|
}
|
||||||
|
.notification,
|
||||||
.notification a {
|
.notification a {
|
||||||
color: #fff;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
.notification > .close {
|
.notification > .close {
|
||||||
padding: 6px;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 5px;
|
padding: 2px;
|
||||||
|
right: 4px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -86,6 +86,7 @@ Unread =
|
|||||||
# Force line on visible threads if there were no unread posts previously.
|
# Force line on visible threads if there were no unread posts previously.
|
||||||
Unread.setLine posts.contains Unread.posts[0]
|
Unread.setLine posts.contains Unread.posts[0]
|
||||||
Unread.read()
|
Unread.read()
|
||||||
|
Unread.update()
|
||||||
|
|
||||||
addPostQuotingYou: (post) ->
|
addPostQuotingYou: (post) ->
|
||||||
return unless QR.db
|
return unless QR.db
|
||||||
@ -115,7 +116,7 @@ Unread =
|
|||||||
break if post.ID > Unread.lastReadPost
|
break if post.ID > Unread.lastReadPost
|
||||||
arr.splice 0, i
|
arr.splice 0, i
|
||||||
|
|
||||||
read: $.debounce 50, ->
|
read: $.debounce 50, (e) ->
|
||||||
return if d.hidden or !Unread.posts.length
|
return if d.hidden or !Unread.posts.length
|
||||||
height = doc.clientHeight
|
height = doc.clientHeight
|
||||||
{posts} = Unread
|
{posts} = Unread
|
||||||
@ -142,7 +143,7 @@ Unread =
|
|||||||
Unread.lastReadPost = ID if Unread.lastReadPost < ID or !Unread.lastReadPost
|
Unread.lastReadPost = ID if Unread.lastReadPost < ID or !Unread.lastReadPost
|
||||||
Unread.saveLastReadPost()
|
Unread.saveLastReadPost()
|
||||||
Unread.readArray Unread.postsQuotingYou
|
Unread.readArray Unread.postsQuotingYou
|
||||||
Unread.update()
|
Unread.update() if e
|
||||||
|
|
||||||
saveLastReadPost: $.debounce 2 * $.SECOND, ->
|
saveLastReadPost: $.debounce 2 * $.SECOND, ->
|
||||||
return if Unread.thread.isDead
|
return if Unread.thread.isDead
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user