]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/phpwiki.css
A couple of fixes so that this passes w3.org's CSS validator.
[SourceForge/phpwiki.git] / themes / default / phpwiki.css
1 /**
2  * $Id: phpwiki.css,v 1.6 2003-02-15 03:13:58 dairiki Exp $
3  *
4  * This incarnation of this stylesheet is a complete rewrite from the
5  * ground up.
6  *
7  * Mozilla's "DOM Inspector" Sidebar was an invaluable troubleshooting
8  * tool for mapping the more complex CSS node selectors, such as those
9  * used to reference the various CalendarPlugin elements.
10  */
11
12 /**
13  * NS4 doesn't grok @import. This allows us to put things which
14  * break NS4 in another file.
15  */
16 @import url(phpwiki-heavy.css);
17
18
19 /**
20  * General
21  */ 
22 img { border: 0; }
23
24 form { margin: 0; }
25 table {
26   border-spacing: 1px;
27   /* For Mozilla */
28   empty-cells: show;
29 }
30 caption {
31   caption-side: top;
32   text-align: left;
33   margin-bottom: .5ex;
34   /* Allow the caption to extend to the full page width
35      Mac ie5.1 ignores this*/
36   width: 100%;
37 }
38
39
40 /**
41  * Wiki
42  */
43 body {
44   /* ivory #ffe #fffff0*/
45   background: #fffff0;
46   font-family: Arial, Helvetica, sans-serif;
47   margin: 1.5ex 1em;
48 }
49
50 div.wikitext hr { height: 1px; }
51
52 div.wikitext pre { font-family: monospace; }
53
54
55 /**
56  * PageTypes
57  */
58 /* Main wiki text box */
59 div.wikitext {
60   margin-top:    1ex;
61   margin-bottom: 0.5ex;
62   background: white;
63   /* Netscape 4 requires this 1px border.
64      Without it, the paper borders below cause
65      the white background to disappear. */
66   border: 1px black solid;
67   /* "paper" borders */
68   border-top:  1px #e8e6df solid;
69   border-left: 1px #e8e6df solid;
70   border-bottom: 1px #d2d2d2 solid;
71   border-right:  1px #b2b2b2 solid;
72   padding-left:  0.8em; 
73   padding-right: 0.8em;
74   padding-top:    0.5ex;
75   padding-bottom: 0.5ex;
76   /*This breaks Netscape 4: (display does not go full width).
77    * width: auto;
78    */
79   clear: both;
80 }
81 .interwiki-map thead td { text-decoration: underline; }
82
83 /* Mozilla RecentChanges Sidebar */
84 body.sidebar {
85   font-size: smaller;
86   margin: 0.5em;
87 }
88 body.sidebar div.wikitext {
89   padding: 0.5em;
90 }
91 body.sidebar div.wikitext ul { padding-left: 1em; }
92 body.sidebar h2 { margin-top: 0; }
93
94
95 /**
96  * Wiki Forms
97  * 
98  * The div inside the wikiadmin upload form does not
99  * have a class yet, so it must be referenced indirectly
100  */
101 div.wikiaction { background-color: #eee; }
102 /* div.wikiadmin { background-color: #fee; } */
103 form.wikiadmin div { background-color: #fee; }
104
105
106 /**
107  * Link styles
108  */
109 .wiki, .named-wiki {
110   text-decoration: none;
111   font-weight: bold;
112 }
113
114 /* Action buttons */
115 a.wikiaction, a.wikiadmin, a.wiki-rc-action, a.wikiunsafe {
116   text-decoration: none;
117   font-family: Arial, Helvetica, sans-serif;
118   /* don't wrap text buttons */
119   white-space: nowrap;
120 }
121
122 a.wikiaction, input.wikiaction, input.button { background-color: #ddd; }
123
124 .wikiunsafe { background-color: #fcc; }
125
126 a.wikiadmin, input.wikiadmin  { background-color: #fdd; }
127
128 /* Unknown links */
129 .wikiunknown, .named-wikiunknown {
130   font-weight: normal;
131   font-size: 100%;
132 }
133  /* QuestionMark #600 */
134 .wikiunknown a, .named-wikiunknown a {
135   color: #447;
136   background-color: #eee;
137   text-decoration: none;
138   font-weight: normal;
139   font-size: smaller;
140 }
141
142 /* Backlinks */
143 .backlinks {
144   text-decoration: underline;
145   color: #006;
146 }
147 h1 .backlinks { text-decoration: underline; }
148
149 /* Interwiki links */
150 .wikipage  { font-weight: bold; }
151 .interwiki { text-decoration: none; }
152 .interwiki, i.interwiki .wikipage, em .interwiki .wikipage { font-style: oblique; }
153 .interwiki .wikipage, i .interwiki, em .interwiki { font-style: normal; }
154
155
156 /**
157  * headings
158  */
159 h1, h2, h3, h4, h5, h6 { font-family: Arial, Helvetica, sans-serif; }
160
161 h1 { margin: 0; }
162
163
164 /**
165  * Tables
166  */
167 table, td { font-family: Arial, Helvetica, sans-serif; }
168 caption { font-family: Arial, Helvetica, sans-serif; }
169 .pagelist {
170 }
171 .pagelist thead, .pagelist thead u {  }
172 .pagelist tr.evenrow { background: #eee; }
173 .pagelist tr.oddrow  { background: white; }
174
175
176 /**
177  * Toolbar
178  */
179 .toolbar, input.button, #signin { font-family: Arial, Helvetica, sans-serif; }
180
181 .toolbar {
182   padding: 0;
183   margin:  0;
184 }
185 #navbuttons {
186   padding-right: 4em; /* wrap around logo */
187   padding-bottom: 1ex; /* space for h1 */
188 }
189 .editdate {
190   font-family: Arial, Helvetica, sans-serif;
191   margin: 0;
192   padding: 0;
193   padding-top: 0.25ex;
194 }
195 #logo img {
196   /* Netscape 4 requires this 1px border.
197      Without it, the paper borders below cause
198      the white background to disappear. */
199   border: 1px black solid;
200   /* "paper" borders */
201   border-top:  1px #e8e6df solid;
202   border-left: 1px #e8e6df solid;
203   border-bottom: 1px #d2d2d2 solid;
204   border-right:  1px #b2b2b2 solid;
205 }
206
207 /**
208  * Edit Page & View Source
209  */
210
211 /* Make the textarea the full page width */
212 textarea.wikiedit {
213   width: 100%;
214   margin-bottom: 0.5ex;
215   margin-top:    0.5ex;
216   padding: 2px;
217 }
218
219 #editarea-size {
220   margin-top: 1ex;
221   text-align: right;
222   font-size: smaller;
223 }
224
225 /* IncludePage plugin */
226 .transclusion-title {
227   text-align: right;
228   font-style: oblique;
229   font-size:  smaller;
230   text-decoration: underline;
231   margin-bottom: 0.25ex;
232   margin-right:  0.25em;
233
234 .transclusion, .wiki-edithelp {
235   font-size: smaller;
236 }
237 .transclusion {
238   border: 1px solid gray;
239   padding-left:  0.8em; 
240   padding-right: 0.8em; 
241   padding-top:     0px;
242   padding-bottom:  0px;
243   margin-left:   0.25em;
244   margin-right:  0.25em;
245   margin-bottom: 0.1ex;
246 }
247 .wiki-edithelp {
248   background: white;
249   border: medium solid #fff8dc; /* darker ivory */
250   padding-left:  0.5em;
251   padding-right: 0.5em;
252   padding-top:    0.75ex;
253   padding-bottom: 0.75ex;
254   margin-left:  0;
255   margin-right: 0;
256   margin-top: 1ex;
257   margin-bottom: 1ex;
258 }
259 .wiki-edithelp .wiki {
260   /* color: #5454ff;*/
261 }
262 .wiki-edithelp p {
263   font-family: Arial, Helvetica, sans-serif;
264   padding-left:  0.5em;
265   padding-right: 0.5em;
266   padding-top:    0.5ex;
267   padding-bottom: 0.5ex;
268   margin: 0;
269 }
270
271
272 /**
273  * Calendar plugin
274  */
275 table.cal {
276   border: 1px outset gray;
277   background: white;
278   margin: 0.5ex 0.5em;
279   padding: 1px;
280   /* For Mozilla */
281   empty-cells: hide;
282
283
284 /* cells */
285 table.cal td {
286   background: white;
287   text-align: right;
288
289
290 /* Month-name header */
291 table.cal-header { font-size: larger; }
292 table.cal-header tr, table.cal-header td { text-align: center; }
293 .cal-arrow {
294   font-weight: bold;
295   text-decoration: none;
296 }
297
298 /* Day-names header */
299 table.cal tbody tr .cal-dayname {  }
300 .cal-dayname td {
301   text-align: center;
302   font-size: smaller;
303   text-decoration: underline;
304 }
305
306 /* Individual days */
307 a.cal-hide { text-decoration: none; }
308
309 /* Today */
310  /* cell */
311 table.cal td.cal-today {
312   margin: 1px;
313   border: 1px solid gray;
314 }
315  /* text */
316 table.cal td.cal-today a.cal-hide {  }
317
318 /**
319  * Diff Output
320  */
321 /* main box */
322 .diff {
323   margin-top:    1ex;
324   margin-bottom: 0.5ex;
325   background: white;
326   /* Netscape 4 requires this 1px border.
327      Without it, the paper borders below cause
328      the white background to disappear. */
329   border: 1px #ccc solid;
330   color: black;
331   border-top: 1px solid #494f5d;
332   border-left:  1px solid #494f5d;
333   border-bottom:  1px solid #c6d2de;
334   border-right: 1px solid #c6d2de;
335   padding-top:    1px;
336   padding-bottom: 1px;
337   padding-left:  .125em;
338   padding-right: .125em;
339   padding: 0;
340   /* "paper" borders */
341   /*border-top: 2px #d2d2d2 solid;
342   border-left:  2px #b2b2b2 solid;
343   border-bottom:  2px #e8e6df solid;
344   border-right: 2px #e8e6df solid;*/
345 /*  padding-left:  0em; 
346   padding-bottom: 0ex;*/
347 /*  border-style: inset;*/
348   /*This breaks Netscape 4: (display does not go full width).
349    * width: auto;
350    */
351   /* I'm not sure what the intent of this was, but it's
352    *  not valid CSS: */
353   /* display: editarea; */
354   clear: both;
355 }
356 .diff .block {
357   background: #ddd;
358   padding-left: 1em;
359   /* for NS4 */
360   /*border: none;*/
361 }
362
363 /* individual blocks */
364 .diff .context {
365   background: white;
366   /* for NS4 */
367   border: none;
368 }
369 /* entire difftextblock */
370 .difftext {
371   margin-top:    0;
372   margin-bottom: 0;
373   background: white;
374   /* Netscape 4 requires this 1px border.
375      Without it, the paper borders below cause
376      the white background to disappear. */
377   border: 1px black solid;
378   /* "paper" borders */
379   border-top:  1px #e8e6df solid;
380   border-left: 1px #e8e6df solid;
381   border-bottom: 1px #d2d2d2 solid;
382   border-right:  1px #b2b2b2 solid;
383   padding-left:  0em; 
384   padding-right: 0em;
385   padding-top:    0ex;
386   padding-bottom: 0ex;
387   /*This breaks Netscape 4: (display does not go full width).
388    * width: auto;
389    */
390   clear: both;
391 }
392 /* + - line prefix */
393 .diff .block tt {
394   font-weight: normal;
395   font-family: monospace;
396   color: black;
397   /* for NS4 */
398   margin-left: 0;
399   border: none;
400 }
401 /* changed words */
402 .diff del, .diff ins {
403   font-weight: bold;
404   text-decoration: none;
405 }
406
407 /* blocks containing deleted or added words */
408 .diff .original, .diff .deleted,
409 .diff .final, .diff .added {
410   background: white;
411 }
412 /* blocks containing deleted words */
413 .diff .original, .diff .deleted {
414   background: #fcc;
415   /* for NS4 */
416   border: none;
417 }
418 /* blocks containing added words */
419 .diff .final, .diff .added {
420   background: #cfc;
421   /* for NS4 */
422   border: none;
423 }
424
425 /* These don't work in NS4 -- it completely ignores <del> and <ins>. */
426 /* deleted words */
427 .diff del { background: #f99; }
428 /* added words */
429 .diff ins { background: #9f9; }
430
431
432 /**
433  * PageHistory, Info
434  */
435 td.pageinfo { font-weight: bold; }
436 .pageinfo-minoredit, .pageinfo-authorid {
437   font-size: smaller;
438   font-style: oblique;
439 }
440
441
442 /**
443  * Other
444  */
445 .printer { display: none; }
446
447 /* PHP Warnings */
448 div.errors {
449   color: black;
450   background: #eee;
451   margin-top:    1em;
452   margin-bottom: 1em;
453   padding-left:  0.8em; 
454   padding-right: 0.8em; 
455   padding-top:    0.8ex;
456   padding-bottom: 0;
457   border: medium solid red;
458   clear: both;
459 }
460 .errors h4 {
461   color: red;
462   margin:  0;
463   padding: 0;
464   text-decoration: underline;
465 }
466 .error { font-family: monospace; }
467 .error ul { font-family: monospace; }
468
469 /* Debug */
470 .debug {
471   color: black;
472   background: white;
473   font-family: monospace;
474   font-size: smaller;
475   margin: 1ex 0;
476   padding: 0.5ex 0.5em;
477   border: medium solid #fff8dc; /* darker ivory */
478 }
479
480 /* Hints */
481 .hint {
482   color: black;
483   background: #eeeeee;
484   font-size: smaller;
485   margin-left: 5em;
486   padding: 0.5ex 0.5em;
487   border: thin solid #aaaaaa;
488 }
489
490
491 /* For emacs users
492  *
493  * Local Variables:
494  * mode: c
495  * c-file-style: cc-mode
496  * End:
497  */