Browse files

Merge pull request #1 from renoirb/master

Print stylesheets for the documentation pages
  • Loading branch information...
2 parents 5984b41 + 835fc23 commit 12f4ed141e413d33f998457a7e5c2ecc0643227e @beberlei beberlei committed Apr 9, 2012
Showing with 43 additions and 2 deletions.
  1. +2 −2 doctrine/layout.html
  2. +41 −0 doctrine/static/default.css
View
4 doctrine/layout.html
@@ -261,7 +261,7 @@ <h1 id="h1title"></h1>
_uacct = "UA-288343-7";
urchinTracker();
</script>
- <a href="http://github.com/doctrine">
- <img style="position: absolute; top: 0; right: 0; border: 0;" src="https://a248.e.akamai.net/assets.github.com/img/30f550e0d38ceb6ef5b81500c64d970b7fb0f028/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67" alt="Fork me on GitHub"></a>
+ <a class="githublink" href="http://github.com/doctrine">
+ <img src="https://a248.e.akamai.net/assets.github.com/img/30f550e0d38ceb6ef5b81500c64d970b7fb0f028/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67" alt="Fork me on GitHub"></a>
</body>
</html>
View
41 doctrine/static/default.css
@@ -993,3 +993,44 @@ div.jsactive pre
#doctrine-projects {
clear: both;
}
+.githublink {
+ position: absolute;
+ top: 0;
+ right: 0;
+ display:block;
+}
+.githublink img {
+ border: 0;
+}
+
+
+/**
+ * Some special Print stylesheet for those who want to print documentation pages
+ **/
+@media print {
+ #footer,
+ .footer_popout,
+ #nav.cls,
+ #content .sphinxsidebar,
+ #content .related,
+ .githublink {
+ display:none !important;
+ }
+ #content .bodywrapper {
+ margin:0;
+ }
+ #content .bodywrapper .body {
+ max-width:initial;
+ }
+ #content {
+ font-size:120%;
+ }
+ #content div.body h1,
+ #content div.body h2,
+ #content div.body h3,
+ #content div.body h4,
+ #content div.body h5,
+ #content div.body h6 {
+ background:none;
+ }
+}

0 comments on commit 12f4ed1

Please sign in to comment.