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