dfd73b5d67ca

Add a print stylesheet to hide unnecessary elements.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 15 Jun 2009 19:00:07 -0400
parents 304d881c8458
children 94edcb30827f
branches/tags (none)
files site-media/style/print.css templates/base.html

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/site-media/style/print.css	Mon Jun 15 19:00:07 2009 -0400
@@ -0,0 +1,14 @@
+/* @override http://localhost:8000/site-media/style/print.css */
+
+div#sidebar {
+    display: none;
+}
+div#blog-entry-new-comment {
+    display:  none;
+}
+div#projects-project-new-comment {
+    display:  none;
+}
+div#header {
+   font-size: 0.75em; 
+}
\ No newline at end of file
--- a/templates/base.html	Mon Jun 01 21:51:26 2009 -0400
+++ b/templates/base.html	Mon Jun 15 19:00:07 2009 -0400
@@ -19,6 +19,9 @@
         
     {% block style %}{% endblock %}
     
+    <link rel="stylesheet" href="/site-media/style/print.css" 
+          type="text/css" media="print"/> 
+    
     <script type="text/javascript"
             src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js">
     </script>