]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Print stylesheet
authorSarven Capadisli <csarven@controlyourself.ca>
Tue, 24 Feb 2009 04:31:31 +0000 (04:31 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Tue, 24 Feb 2009 04:31:31 +0000 (04:31 +0000)
lib/action.php
theme/base/css/print.css [new file with mode: 0644]

index 455ebeff0beb4f3b9898b067243fec04d5ee87d4..dd7dd44e7f1f13129fa3cb12d0d2f4492e067383 100644 (file)
@@ -173,6 +173,10 @@ class Action extends HTMLOutputter // lawsuit
                                                  // TODO: "handheld" CSS for other mobile devices
                                                  'media' => 'only screen and (max-device-width: 480px)')); // Mobile WebKit
                 }
+                $this->element('link', array('rel' => 'stylesheet',
+                                             'type' => 'text/css',
+                                             'href' => theme_path('css/print.css', 'base') . '?version=' . LACONICA_VERSION,
+                                             'media' => 'print'));
                 Event::handle('EndShowLaconicaStyles', array($this));
             }
             if (Event::handle('StartShowUAStyles', array($this))) {
diff --git a/theme/base/css/print.css b/theme/base/css/print.css
new file mode 100644 (file)
index 0000000..cf3ac03
--- /dev/null
@@ -0,0 +1,28 @@
+body { font-size:12pt; }
+a:after { background-color:#fff; }
+a:not([href^="#"]):after { content:" ( "attr(href)" ) "; }
+a:not([href^="http:"]):after { content: " ( http://identi.ca/"attr(href)" ) "; }
+a[href^="/"]:after { content: " ( http://identi.ca" attr(href) " ) "; }
+
+img { border:none; }
+p { orphans: 2; widows: 1; }
+
+#site_nav_global_primary,
+#site_nav_local_views,
+#form_notice,
+.pagination,
+#site_nav_global_secondary,
+.entity_actions,
+.notice-options,
+#aside_primary {
+display:none;
+}
+
+.timestamp dt, .timestamp dd,
+.device dt, .device dd {
+display:inline;
+}
+
+.notices li {
+margin-bottom:18px;
+}