]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - phpwiki-printer.css
Fine tune position and style of "Last edited" message. Reduce excessive margin size.
[SourceForge/phpwiki.git] / phpwiki-printer.css
1 /**
2  * $Id: phpwiki-printer.css,v 1.8 2002-02-03 21:32:41 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 :     1em;
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 p.editdate { font-size: smaller; margin-top: -1ex; }
37
38 .rawurl {
39         text-decoration : underline;
40 }
41
42 /* Some browsers don't understand visibility settings, so we use white text
43  * on white in addition to hidden.
44  */
45
46 /* hide the toolbars */
47 .toolbar {
48         visibility : hidden;
49         color :      white;
50         background : white;
51 }
52
53 #actionbar, #navbar {
54         visibility : hidden;
55         color :      white;
56         background : white;
57 }
58
59 .toolbar hr {
60         visibility : hidden;
61         color :      white;
62         background : white;
63 }
64
65 /**
66  * Hide wiki links in the toolbar for browsers which ignore visibility
67  * and don't honour the inheritance of the above .toolbar style. 
68  */
69 .toolbar .wiki {
70         visibility : hidden;
71         color :      white;
72         background : white;
73 }
74
75 /* Hide wikiaction links in the toolbar */
76 .toolbar .wikiaction {
77         visibility : hidden;
78         color :      white;
79         background : white;
80 }
81
82 /* Hide (diff) links and days buttons in RecentChanges */
83 .wiki-rc-action {
84         visibility : hidden;
85         color :      white;
86         /**
87          * This hack works in Mozilla to reduce the extra white space
88          * which results from hiding (diff). Browsers which allow a minimum
89          * font size as a user preference will not honour it.
90          */
91         font-size :  1pt;
92 }
93
94 /**
95  * Hide image borders for older browsers--newer broswers default to a zero
96  * border around images anyway.
97  */
98 img { vertical-align: baseline;
99       border : none;
100 }
101
102 /* Hide other non-essential page elements from the printer. */
103 .linkicon {
104         /**
105          * Some browsers ignore this completely: OmniWeb 4.1
106          * also shrink down the image to nothing so the text flows around it.
107          */
108         visibility : hidden;
109         width :  0;
110         height : 0;
111 }
112
113 /* Hide the rss icon from the printed page (perhaps this should be left in? */
114 .rssicon {
115         visibility : none;
116         width :      0;
117         height :     0;
118 }
119
120 /* Hide the w3.org link image from the printed page */
121 #xhtml-validator {
122         visibility : hidden;
123         width :      0;
124         height :     0;
125 }
126
127 /**
128  * One last-ditch effort to hide the search field, if the browser still won't
129  * hide it then it's just going to have to show up on the printed page.
130  */
131 form {
132         visibility : hidden;
133 }