From: rich Date: Sat, 9 Oct 2004 15:46:29 +0000 (+0000) Subject: Nice, standards-compliant print-media CSS. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=d70cec18a8cd4532373818b5f3d35318366dcc6f;p=cocanwiki.git Nice, standards-compliant print-media CSS. --- 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