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