From bfd20019d5a01ba587e0a5ae5289acc73a6fc21e Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 5 Sep 2012 20:31:19 +0200 Subject: added padding to first img child to mark it as thumbnail --- css/news.css | 5 +++++ js/items.js | 2 ++ 2 files changed, 7 insertions(+) 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(); -- cgit v1.2.3