mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Colored unread bubbles in the feed view. Now I gotta finish that Story view and the extra website view.
This commit is contained in:
parent
702c94a4d9
commit
4534c185eb
3 changed files with 31 additions and 7 deletions
|
@ -2,4 +2,28 @@
|
|||
width: 16px;
|
||||
height: 16px;
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
#NB-feed-list a {
|
||||
padding-right: 32px;
|
||||
}
|
||||
#NB-feed-list .ui-li-count {
|
||||
position: static;
|
||||
float: right;
|
||||
margin: 2px 2px 0 0;
|
||||
white-space: nowrap;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
text-shadow: none;
|
||||
}
|
||||
#NB-feed-list .ui-li-count.ui-li-count-positive {
|
||||
color: white;
|
||||
background: #559F4D -webkit-gradient(linear, 0% 0%, 0% 100%, from(#559F4D), to(#3B7613));
|
||||
}
|
||||
#NB-feed-list .ui-li-count.ui-li-count-neutral {
|
||||
background: #F9C72A -webkit-gradient(linear, 0% 0%, 0% 100%, from(#F9C72A), to(#E4AB00));
|
||||
}
|
||||
#NB-feed-list .ui-li-count.ui-li-count-negative {
|
||||
color: white;
|
||||
background: #CC2A2E -webkit-gradient(linear, 0% 0%, 0% 100%, from(#CC2A2E), to(#9B181B));
|
||||
}
|
|
@ -99,17 +99,17 @@
|
|||
var $feed = _.template('\
|
||||
<li class="<%= unread_class %> <%= exception_class %>">\
|
||||
<a href="#stories" data-feed-id="<%= feed.id %>">\
|
||||
<img src="<%= $.favicon(feed.favicon) %>" class="ui-li-icon">\
|
||||
<%= feed.feed_title %>\
|
||||
<% if (feed.ps) { %>\
|
||||
<span class="ui-li-count ui-li-count-positive"><%= feed.ps %></span>\
|
||||
<% } %>\
|
||||
<% if (feed.nt) { %>\
|
||||
<span class="ui-li-count ui-li-count-positive"><%= feed.nt %></span>\
|
||||
<span class="ui-li-count ui-li-count-neutral"><%= feed.nt %></span>\
|
||||
<% } %>\
|
||||
<% if (feed.ng) { %>\
|
||||
<span class="ui-li-count ui-li-count-positive"><%= feed.ng %></span>\
|
||||
<span class="ui-li-count ui-li-count-negative"><%= feed.ng %></span>\
|
||||
<% } %>\
|
||||
<img src="<%= $.favicon(feed.favicon) %>" class="ui-li-icon">\
|
||||
<%= feed.feed_title %>\
|
||||
</a>\
|
||||
</li>', {
|
||||
feed : feed,
|
||||
|
|
|
@ -1623,7 +1623,7 @@
|
|||
// NEWSBLUR.log(['Titles loaded, iframe NOT loaded -- prefetching now']);
|
||||
_.delay(_.bind(function() {
|
||||
this.prefetch_story_locations_in_story_frame();
|
||||
}, this), 500);
|
||||
}, this), 250);
|
||||
}
|
||||
} else if (this.story_view == 'feed') {
|
||||
this.prefetch_story_locations_in_feed_view();
|
||||
|
@ -2080,7 +2080,7 @@
|
|||
!$story.length ||
|
||||
this.flags['iframe_fetching_story_locations'] ||
|
||||
this.flags['iframe_story_locations_fetched'] ||
|
||||
parseInt($story.offset().top, 10) > this.cache['prefetch_iteration']*4000) {
|
||||
parseInt($story.offset().top, 10) > this.cache['prefetch_iteration']*2000) {
|
||||
if ($story && $story.length) {
|
||||
// NEWSBLUR.log(['Prefetch break on position too far', parseInt($story.offset().top, 10), this.cache['prefetch_iteration']*4000]);
|
||||
break;
|
||||
|
@ -2101,7 +2101,7 @@
|
|||
&& !self.flags['iframe_story_locations_fetched']) {
|
||||
self.prefetch_story_locations_in_story_frame();
|
||||
}
|
||||
}, 2000);
|
||||
}, 1000);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue