]> git.wh0rd.org - tt-rss.git/commitdiff
improve zoomed post content css
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 24 Mar 2013 16:22:16 +0000 (20:22 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 24 Mar 2013 16:22:16 +0000 (20:22 +0400)
include/functions.php
tt-rss.css

index 2ae0dc3b92b2a8823926db1d94c2fdfcd7cc541e..57838182bb5fb1998bc9d6a539f0fbed11b6c8a5 100644 (file)
                                                <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\">";
 
                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>";
index d693af93bbf490f132e4e6fb7e6bf1f851d3c365..715de1f6e5d9a42c60554c4a3bd1520ed34d9051 100644 (file)
@@ -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;
+}