better read colors, more fixes

This commit is contained in:
jeena 2013-08-28 17:30:08 +02:00
parent c33cfe1ed6
commit 33add515d3
4 changed files with 38 additions and 10 deletions

View file

@ -156,6 +156,11 @@ canvas {
position: relative; position: relative;
} }
.red #list li { border-bottom: 1px solid #c0392b; }
.white #list li { border-bottom: 1px solid #bdc3c7; }
.blue #list li { border-bottom: 1px solid #2980b9; }
.yellow #list li { border-bottom: 1px solid #f39c12; }
#list li:after { #list li:after {
content: ""; content: "";
position: absolute; position: absolute;
@ -166,6 +171,11 @@ canvas {
font-family: "Open Sans"; font-family: "Open Sans";
} }
.red #list li:after { color: #c0392b; }
.white #list li:after { color: #bdc3c7; }
.blue #list li:after { color: #2980b9; }
.yellow #list li:after { color: #f39c12; }
#list li > a { #list li > a {
display: block; display: block;
padding: 5px 25px 5px 10px; padding: 5px 25px 5px 10px;
@ -174,7 +184,7 @@ canvas {
} }
#list li.unread:after { #list li.unread:after {
font-weight: bold; color: inherit;
} }
#full > article { #full > article {
@ -188,6 +198,8 @@ canvas {
padding: 0; padding: 0;
} }
#full h1 a { #full h1 a {
text-decoration: none; text-decoration: none;
} }
@ -202,8 +214,17 @@ canvas {
text-decoration: underline; text-decoration: underline;
} }
#full article header {
margin: 20px 0;
}
#full article header p {
margin: 0;
padding: 0;
}
#full footer.bar { #full footer.bar {
margin: 10px -10px 0 -10px; margin: 30px -10px 0 -10px;
} }
#full footer.bar a.next { #full footer.bar a.next {

BIN
feedmonkey.zip Normal file

Binary file not shown.

View file

@ -29,7 +29,7 @@
<section id="settings"> <section id="settings">
<header class="bar"> <header class="bar">
<a class="button" href="#list">Back</a> <a class="button" href="#list">List</a>
</header> </header>
<article> <article>
<ul> <ul>

View file

@ -7,11 +7,6 @@ function App() {
if(!color) color = "red"; if(!color) color = "red";
this.setColor(color); this.setColor(color);
var request = window.navigator.mozApps.getSelf();
request.onsuccess = function() {
$("#version").innerHTML = request.result.manifest.version;
}
}; };
App.prototype.authenticate = function() { App.prototype.authenticate = function() {
@ -20,6 +15,11 @@ App.prototype.authenticate = function() {
App.prototype.after_login = function() { App.prototype.after_login = function() {
var request = window.navigator.mozApps.getSelf();
request.onsuccess = function() {
$("#version").innerHTML = request.result.manifest.version;
}
var _this = this; var _this = this;
window.onhashchange = function(e) { window.onhashchange = function(e) {
@ -31,6 +31,7 @@ App.prototype.after_login = function() {
var url = window.location.hash; var url = window.location.hash;
if(url == "#list") { if(url == "#list") {
_this.setCurrentRead();
_this.changeToPage("#list"); _this.changeToPage("#list");
} else if(url == "#reload") { } else if(url == "#reload") {
_this.reload(); _this.reload();
@ -68,7 +69,9 @@ App.prototype.after_login = function() {
$(".info.swipe").addClass("hidden"); $(".info.swipe").addClass("hidden");
}; };
if(localStorage.info_swipe) { var supportsTouch = 'ontouchend' in document;
if(!supportsTouch || localStorage.info_swipe) {
$(".info.swipe").addClass("hidden"); $(".info.swipe").addClass("hidden");
} }
@ -271,14 +274,18 @@ App.prototype.showPrevious = function() {
App.prototype.setCurrentRead = function() { App.prototype.setCurrentRead = function() {
var article = this.unread_articles[this.currentIndex]; var article = this.unread_articles[this.currentIndex];
if(!article) return; // happens if we're not on a full article site
if(!article.set_unread) { if(!article.set_unread) {
article.unread = false; article.unread = false;
this.updateList(); this.updateList();
var _this = this; var _this = this;
setTimeout(function() { _this.ttrss.setArticleRead(article.id); },100); setTimeout(function() { _this.ttrss.setArticleRead(article.id); }, 100);
} }
article.set_unread = false; article.set_unread = false;
this.updatePieChart();
}; };
App.prototype.setCurrentUnread = function() { App.prototype.setCurrentUnread = function() {