]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - phpwiki-printer.css
New theme with sidebar navigation and actions
[SourceForge/phpwiki.git] / phpwiki-printer.css
1 /**
2  * $Id: phpwiki-printer.css,v 1.6 2002-01-26 07:24:47 carstenklapp Exp $
3  *
4  * PhpWiki style sheet for the printed page:
5  * Black on white only, with no toolbar commands and no link icons.
6  * Styles are kept to a minimum, so the printed page will otherwise
7  * appear according to your browser's default font settings.
8  */
9 body {
10         margin :     .5in;
11         color :      black;
12         background : white; 
13 }
14
15 /**
16  * Render links with black text and no underlines for readability on b&w
17  * printers which try to render colors as greys. (Greyscale text is often
18  * difficult to read on older 300dpi lasers.)
19  */
20 a {
21         color :           black;
22         text-decoration : none;
23 }
24
25 /**
26  * Override the above to keep underlines for WikiLinks and generic urls,
27  * they are useful indicators on the printed page.
28  * (most browsers underline links by default anyway but this overrides
29  * any user-defined default style sheets.)
30  */
31 .wiki {
32         text-decoration : underline;
33         font-weight :     bold;
34 }
35
36 .rawurl {
37         text-decoration : underline;
38 }
39
40 /* Some browsers don't understand visibility settings, so we use white text
41  * on white in addition to hidden.
42  */
43
44 /* hide the toolbar */
45 .toolbar {
46         visibility : hidden;
47         color :      white;
48         background : white;
49 }
50
51 .toolbar hr {
52         visibility : hidden;
53         color :      white;
54         background : white;
55 }
56
57 /**
58  * Hide wiki links in the toolbar for browsers which ignore visibility
59  * and don't honour the inheritance of the above .toolbar style. 
60  */
61 .toolbar .wiki {
62         visibility : hidden;
63         color :      white;
64         background : white;
65 }
66
67 /* Hide wikiaction links in the toolbar */
68 .toolbar .wikiaction {
69         visibility : hidden;
70         color :      white;
71         background : white;
72 }
73
74 /* Hide (diff) links and days buttons in RecentChanges */
75 a.wiki-rc-action, div.wiki-rc-action {
76         visibility : hidden;
77         color :      white;
78         /**
79          * This hack works in Mozilla to reduce the extra white space
80          * which results from hiding (diff). Browsers which allow a minimum
81          * font size as a user preference will not honour it.
82          */
83         font-size :  1pt;
84 }
85
86 /**
87  * Hide image borders for older browsers--newer broswers default to a zero
88  * border around images anyway.
89  */
90 img {
91         border : none;
92 }
93
94 /* Hide other non-essential page elements from the printer. */
95 .linkicon {
96         /**
97          * Some browsers ignore this completely: OmniWeb 4.1
98          * also shrink down the image to nothing so the text flows around it.
99          */
100         visibility : hidden;
101         width :  0;
102         height : 0;
103 }
104
105 /* Hide the rss icon from the printed page (perhaps this should be left in? */
106 .rssicon {
107         visibility : none;
108         width :      0;
109         height :     0;
110 }
111
112 /* Hide the w3.org link image from the printed page */
113 div.xhtml-validator {
114         visibility : hidden;
115         width :      0;
116         height :     0;
117 }
118
119 /**
120  * One last-ditch effort to hide the search field, if the browser still won't
121  * hide it then it's just going to have to show up on the printed page.
122  */
123 form {
124         visibility : hidden;
125 }