diff --git a/css/screen.css b/css/screen.css
index 55ebe2e..60fc517 100644
--- a/css/screen.css
+++ b/css/screen.css
@@ -5,6 +5,12 @@ html, body {
font-family: FeuraSans, sans-serif;
}
+body.f1 { font-size: 0.75em; }
+body.f2 { font-size: 1em; }
+body.f3 { font-size: 1.25em; }
+body.f4 { font-size: 1.5em; }
+body.f5 { font-size: 1.75em; }
+
.red { background: #e74c3c; color: #ecf0f1; }
.white { background: #ecf0f1; color: #2c3e50; }
.blue { background: #3498db; color: #ecf0f1; }
@@ -32,7 +38,7 @@ a {
font-size: 1em;
}
-header .button, footer .button {
+header .button, footer .button, .button.small {
width: auto;
display: inline-block;
}
@@ -128,8 +134,6 @@ img {
}
canvas {
- width: 80px;
- height: 40px;
float: right;
}
@@ -317,4 +321,18 @@ canvas {
#settings .version {
font-style: italic;
+}
+
+#settings .font-size {
+ text-align: right;
+}
+
+#settings .font-size span {
+ float: left;
+ line-height: 2.4;
+}
+
+#settings .button.small {
+ width: 20%;
+ text-align: center;
}
\ No newline at end of file
diff --git a/index.html b/index.html
index 170bbed..5652662 100644
--- a/index.html
+++ b/index.html
@@ -23,7 +23,7 @@
@@ -35,6 +35,11 @@
- Log out
- View those info bubbles again
+ -
+ Font size:
+ -
+ +
+
- White colors
- Blue colors
- Yellow colors
@@ -76,7 +81,7 @@
diff --git a/js/App.js b/js/App.js
index cb341fd..325f507 100644
--- a/js/App.js
+++ b/js/App.js
@@ -6,7 +6,7 @@ function App() {
var color = localStorage.color;
if(!color) color = "red";
this.setColor(color);
-
+ this.fontChange();
};
App.prototype.authenticate = function() {
@@ -56,6 +56,10 @@ App.prototype.after_login = function() {
_this.showNext();
} else if(url == "#previous") {
_this.showPrevious();
+ } else if(url == "#font-smaller") {
+ _this.fontChange("smaller");
+ } else if(url == "#font-bigger") {
+ _this.fontChange("bigger");
}
// this is here so you can tap on a button more then once
@@ -311,3 +315,37 @@ App.prototype.setCurrentUnread = function() {
App.prototype.goToList = function() {
this.changeToPage("#list");
};
+
+App.prototype.fontChange = function(size) {
+ if(size == "bigger") {
+
+ var i = localStorage.font_size;
+ if(i < 5) {
+ document.body.removeClass("f" + i);
+ i++;
+ document.body.addClass("f" + i);
+ localStorage.font_size = i;
+ }
+
+ } else if(size == "smaller") {
+
+ var i = localStorage.font_size;
+ if(i > 1) {
+ document.body.removeClass("f" + i);
+ i--;
+ document.body.addClass("f" + i);
+ localStorage.font_size = i;
+ }
+
+ } else {
+
+ var i = localStorage.font_size;
+ if(typeof i == "undefined") {
+ i = localStorage.font_size = 2;
+ }
+
+ document.body.addClass("f" + i);
+ }
+
+
+};
\ No newline at end of file