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