]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/phpwiki-printer.css
Minimize CSS
[SourceForge/phpwiki.git] / themes / default / phpwiki-printer.css
1 /**
2  * $Id$
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  
14 /**
15  * required for Mozilla with MacOSX theme, because of
16  * body {background-image: url(/finkwiki/themes/MacOSX/images/bgpaper8.png);}
17  * within the html itself. It still does not suppress
18  * the bg image of a small strip near the top and bottom. :/
19  */
20 html { background: white; }
21
22 body {
23   margin: 1em;
24   padding: 0;
25   color:  black;
26   background: white;
27 }
28 div.wikitext {
29   border: 0;
30   padding: 0;
31   margin: 0;
32   margin-top: 1ex;
33   background: white;
34 }
35 img {
36   border: 0;
37   vertical-align: baseline;
38 }
39
40 form  { margin: 0; }
41 input { margin: 0.1em; }
42 input.numeric { text-align: right; }
43
44 table {
45   border-spacing: 1px;
46   /* For Mozilla */
47   empty-cells: show;
48 }
49 caption {
50   caption-side: top;
51   text-align: left;
52   margin-bottom: .5ex;
53   /* Allow the caption to extend to the full page width
54      Mac ie5.1 ignores this*/
55   width: 100%;
56 }
57
58 /**
59  * Render links with black text and no underlines for readability on b&w
60  * printers which try to render colors as greys. (Greyscale text is often
61  * difficult to read on older 300dpi lasers.)
62  */
63 a {
64   color: black;
65   text-decoration: none;
66 }
67 /* Override the above to keep underlines for WikiLinks and generic urls,
68    they are useful indicators on the printed page.
69    (most browsers underline links by default anyway but this overrides
70    any user-defined default style sheets.) */
71 .wiki {
72   text-decoration: underline;
73   font-weight: bold;
74 }
75 /* Interwiki links */
76 .interwiki, i.interwiki .wikipage, em .interwiki .wikipage {
77   font-style: oblique;
78 }
79 .wikipage {
80   text-decoration: underline;
81 }
82 .interwiki .wikipage, i .interwiki, em .interwiki {
83   font-style: normal;
84 }
85
86 .rawurl {
87   text-decoration: underline;
88 }
89
90 .wikiblog-form { display: none }
91
92 /**
93  * Toolbars
94  */
95 #header, #logo, #footer {
96   background: white;
97 }
98 /**
99  * Get rid of extra space at bottom (which may contain a bg image)
100  * this br was used to clear past the xhtml validator
101  * buttons which are not visible here.
102  */
103 table + br.clear-floats { display: none; }
104 #navbuttons, #actionbuttons, #signin {
105   display: none;
106 }
107 p.editdate {
108   font-size: smaller;
109   margin-top: 0;
110   background: white;
111 }
112
113 hr.toolbar {
114   display: none;
115 }
116
117 hr.printer {
118   display: block;
119   background: white;
120 }
121
122 /* Hide (diff) links and days buttons in RecentChanges */
123 .wiki-rc-action {
124   display: none;
125 }
126
127 /**
128  * Hide image borders for older browsers--newer broswers default to a zero
129  * border around images anyway.
130  */
131 img {
132   vertical-align: baseline;
133   border: 0 none white;
134 }
135
136 /* Hide other non-essential page elements. */
137 .linkicon {
138   display: none;
139 }
140
141 /* Hide the rss icon (perhaps this should be left in?) */
142 .rssicon {
143   display: none;
144 }
145
146 /**
147  * Edit Page & View Source
148  */
149
150 /* Make the textarea the full page width */
151 textarea.wikiedit {
152   width: 100%;
153   margin-bottom: 0.5ex;
154   margin-top:    0.5ex;
155   padding: 2px;
156 }
157
158 #editarea-size {
159   display: none;
160 }
161
162 /* IncludePage plugin ================================================= */
163
164 .transclusion-title {
165   text-align: right;
166   font-style: oblique;
167   font-size:  smaller;
168   text-decoration: underline;
169   margin-bottom: 0.25ex;
170   margin-right:  0.25em;
171
172 .transclusion, .wiki-edithelp {
173   font-size: smaller;
174 }
175 .transclusion {
176   background: inherit;
177   border: 1pt solid gray;
178   padding-left:  0.8em; 
179   padding-right: 0.8em; 
180   padding-top:     0px;
181   padding-bottom:  0px;
182   margin-left:   0.25em;
183   margin-right:  0.25em;
184   margin-bottom: 0.1ex;
185 }
186 .wiki-edithelp {
187   border: 1pt solid black;
188   padding-left:  0.5em;
189   padding-right: 0.5em;
190   padding-top:    0.75ex;
191   padding-bottom: 0.75ex;
192   margin-left:  0;
193   margin-right: 0;
194   margin-top: 1ex;
195   margin-bottom: 1ex;
196 }
197 .wiki-edithelp p {
198   font-family: Arial, Helvetica, sans-serif;
199   padding-left:  0.5em;
200   padding-right: 0.5em;
201   padding-top:    0.5ex;
202   padding-bottom: 0.5ex;
203   margin: 0;
204 }
205
206 /**
207  * Calendar plugin
208  */
209 table.cal {
210   border: thin outset gray;
211   margin: 0.5ex 0.5em;
212   padding: 1px;
213   /* For Mozilla */
214   empty-cells: hide;
215
216
217 /* cells */
218 table.cal td {
219   text-align: right;
220
221
222 /* Month-name header */
223 table.cal-header { /* the html for this should really be in the thead */
224   font-size: larger;
225 }
226 table.cal-header tr, table.cal-header td {
227   text-align: center;
228   background: inherit;
229 }
230
231 .cal-dayname td {
232   text-align: center;
233   font-size: smaller;
234   text-decoration: underline;
235 }
236
237 /* Individual days */
238 a.cal-hide { text-decoration: none; }
239
240 /* Today */
241  /* cell */
242 table.cal td.cal-today {
243   background: inherit;
244   margin: 1px;
245   border: 1px solid black;
246 }
247
248 /**
249  * Other
250  */
251
252 /* Hide the w3.org validator images */
253 #xhtml-validator {
254   display: none;
255 }
256
257 .error {
258   margin-top:    1em;
259   margin-bottom: 1em;
260   padding-left:  0.8em; 
261   padding-right: 0.8em; 
262   padding-top:    0.8ex;
263   padding-bottom: 0;
264   font-size: smaller;
265   border: 0.5pt solid black;
266   clear: both;
267 }
268
269 /* Debug */
270 .debug {
271   display: none;
272 }
273
274 .portlet {
275   display: none;
276 }
277
278 #img-logo-right, #rateit-widget-top, #footer {
279   display: none;
280 }
281
282 #content {
283     margin: 0;
284     padding: 0;
285     border: 0;
286 }
287
288 /* For emacs users
289  *
290  * Local Variables:
291  * mode: c
292  * c-file-style: cc-mode
293  * End:
294  */