From d70cec18a8cd4532373818b5f3d35318366dcc6f Mon Sep 17 00:00:00 2001 From: rich Date: Sat, 9 Oct 2004 15:46:29 +0000 Subject: [PATCH] Nice, standards-compliant print-media CSS. --- html/_css/standard.css | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/html/_css/standard.css b/html/_css/standard.css index 3ac7ab9..c53955f 100644 --- a/html/_css/standard.css +++ b/html/_css/standard.css @@ -1,5 +1,5 @@ /* Stylesheet for COCANWIKI. - * $Id: standard.css,v 1.11 2004/10/09 08:33:02 rich Exp $ + * $Id: standard.css,v 1.12 2004/10/09 15:46:29 rich Exp $ */ body { @@ -440,3 +440,31 @@ table.cal_day a.cal_day_left { table.cal_day a.cal_day_right { margin-left: 2em; } + +/* For print media. */ +@media print { + /* Move the body up (no top menu anymore). */ + body { margin-top: 4em; } + + /* Hide the navigation. */ + div#search_div { display: none; } + ul#topmenu { display: none; } + div#menu_div { display: none; } + p.edit_link { display: none; } + + /* Display the target of external links. */ + a.external { + background: none; + padding-right: 0px; + } + a.external:after { + content: " [" attr(href) "]"; + } + a.mailto:after { + background: none; + padding-right: 0px; + } + a.mailto:after { + content: " [" attr(href) "]"; + } +} \ No newline at end of file -- 1.8.3.1