diff options
author | Andrew Dolgov <[email protected]> | 2013-03-24 20:22:16 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-24 20:22:16 +0400 |
commit | b87a625c385ddfe7915c12d9f615a845fd65a0e7 (patch) | |
tree | 6eb43c4253226a5d31dd0df060d8fbc4e9b31dd0 | |
parent | 480d358c5f610710eaed05214f098ce5e3bd5e7a (diff) |
improve zoomed post content css
-rw-r--r-- | include/functions.php | 4 | ||||
-rw-r--r-- | tt-rss.css | 16 |
2 files changed, 18 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php index 2ae0dc3b9..57838182b 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3002,7 +3002,7 @@ <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/> <title>Tiny Tiny RSS - ".$line["title"]."</title> <link rel=\"stylesheet\" type=\"text/css\" href=\"tt-rss.css\"> - </head><body>"; + </head><body id=\"ttrssZoom\">"; } $rv['content'] .= "<div class=\"postReply\" id=\"POST-$id\">"; @@ -3115,7 +3115,7 @@ if ($zoom_mode) { $rv['content'] .= " - <div style=\"text-align : center\"> + <div class='footer'> <button onclick=\"return window.close()\">". __("Close this window")."</button></div>"; $rv['content'] .= "</body></html>"; diff --git a/tt-rss.css b/tt-rss.css index d693af93b..715de1f6e 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -1204,3 +1204,19 @@ div.postHeader span.author { font-size : 11px; font-weight : normal; } + +body#ttrssZoom { + margin-left : auto; + margin-right : auto; + max-width : 650px; + background : #f0f0f0; +} + +body#ttrssZoom div.postContent, body#ttrssZoom div.postHeader { + background-color : white; +} + +body#ttrssZoom div.footer { + margin-top : 1em; + text-align : center; +} |