summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-09-05 20:31:19 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-09-05 20:31:19 +0200
commitbfd20019d5a01ba587e0a5ae5289acc73a6fc21e (patch)
treeaea4659fe7563c10bcb4fbb11003e030e1c5929d
parent9b971c54b0e377996623fe0fd686a66457a378e6 (diff)
added padding to first img child to mark it as thumbnail
-rw-r--r--css/news.css5
-rw-r--r--js/items.js2
2 files changed, 7 insertions, 0 deletions
diff --git a/css/news.css b/css/news.css
index 40772a556..e4de3cdc1 100644
--- a/css/news.css
+++ b/css/news.css
@@ -557,6 +557,11 @@ div.add_parentfolder {
max-width: 55em;
}
+ .feed_item div.body img.thumbnail {
+ padding: 0 1em 0 0;
+ float: left;
+ }
+
.feed_item div.body h1, .feed_item div.body h2 {
font-size: 1.25em;
font-weight: bold;
diff --git a/js/items.js b/js/items.js
index b84f93f67..8c80b6073 100644
--- a/js/items.js
+++ b/js/items.js
@@ -409,6 +409,8 @@ var News = News || {};
this._read = this._$html.hasClass('read');
this._locked = false;
this._important = this._$html.find('li.star').hasClass('important');
+ this._$html.children('.body').children('img:first-child').addClass('thumbnail');
+
var $stamp = this._$html.find('.timestamp');
this._timestamp = parseInt($stamp.html());
$stamp.remove();