]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/phpwiki.css
store current user->page and ->action in session for WhoIsOnline
[SourceForge/phpwiki.git] / themes / default / phpwiki.css
1 /**
2  * $Id: phpwiki.css,v 1.19 2004-03-10 15:38:49 rurban 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
26 table {
27   border-spacing: 1px;
28   /* For Mozilla */
29   empty-cells: show;
30 }
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 /**
43  * Wiki
44  */
45 body {
46   /* ivory #ffe #fffff0*/
47   background: #fffff0;
48   font-family: Arial, Helvetica, sans-serif;
49   font-size: 85%; /* The default is too large. But enlarge monospace below */
50   margin: 1.5ex 1em;
51 }
52
53 div.wikitext hr { height: 1px; }
54
55 div.wikitext pre { font-family: monospace; }
56
57
58 /**
59  * PageTypes
60  */
61 /* Main wiki text box */
62 div.wikitext {
63   margin-top:    1ex;
64   margin-bottom: 0.5ex;
65   background: white;
66   /* Netscape 4 requires this 1px border.
67      Without it, the paper borders below cause
68      the white background to disappear. */
69   border: 1px black solid;
70   /* "paper" borders */
71   border-top:  1px #e8e6df solid;
72   border-left: 1px #e8e6df solid;
73   border-bottom: 1px #d2d2d2 solid;
74   border-right:  1px #b2b2b2 solid;
75   padding-left:  0.8em; 
76   padding-right: 0.8em;
77   padding-top:    0.5ex;
78   padding-bottom: 0.5ex;
79   /*This breaks Netscape 4: (display does not go full width).
80    * width: auto;
81    */
82   clear: both;
83 }
84 /* .interwiki-map thead td { text-decoration: underline; } */
85
86 /* Mozilla RecentChanges Sidebar */
87 body.sidebar {
88   font-size: smaller;
89   margin: 0.5em;
90 }
91 body.sidebar div.wikitext {
92   padding: 0.5em;
93 }
94 body.sidebar div.wikitext ul { padding-left: 1em; }
95 body.sidebar h2 { margin-top: 0; }
96
97
98 /**
99  * Wiki Forms
100  * 
101  * The div inside the wikiadmin upload form does not
102  * have a class yet, so it must be referenced indirectly
103  */
104 div.wikiaction { background-color: #eee; }
105 /* div.wikiadmin { background-color: #fee; } */
106 form.wikiadmin div { background-color: #fee; }
107
108
109 /**
110  * Link styles
111  */
112 .wiki, .named-wiki {
113   text-decoration: none;
114   font-weight: normal;
115   /* font-weight: bold; */
116 }
117
118 /* Action buttons */
119 a.wikiaction, a.wikiadmin, a.wiki-rc-action, a.wikiunsafe,
120 input.wikiaction, input.button, input.wikiadmin {
121   text-decoration: none;
122   font-family: Arial, Helvetica, sans-serif;
123   /* don't wrap text buttons */
124   white-space: nowrap;
125   /*font-size: inherit; */
126 }
127
128 a.wikiaction, input.wikiaction, input.button { background-color: #ddd; }
129
130 .wikiunsafe { background-color: #fcc; }
131
132 a.wikiadmin, input.wikiadmin  { background-color: #fdd; }
133
134 /* Unknown links */
135 .wikiunknown, .named-wikiunknown {
136   font-weight: normal;
137   font-size: 100%;
138 }
139  /* QuestionMark #600 */
140 .wikiunknown a, .named-wikiunknown a {
141   color: #447;
142   background-color: #eee;
143   text-decoration: none;
144   font-weight: normal;
145   font-size: smaller;
146 }
147
148 /* Backlinks */
149 .backlinks {
150   text-decoration: underline;
151   color: #006;
152 }
153 h1 .backlinks { text-decoration: underline; }
154
155 /* Interwiki links */
156 /* .wikipage  { font-weight: bold; } */
157 .wikipage  { font-weight: normal; }
158 .interwiki { text-decoration: none; }
159 .interwiki, i.interwiki .wikipage, em .interwiki .wikipage { font-style: oblique; }
160 .interwiki .wikipage, i .interwiki, em .interwiki { font-style: normal; }
161
162
163 /**
164  * headings
165  */
166 h1, h2, h3, h4, h5, h6 { font-family: Arial, Helvetica, sans-serif; }
167
168 h1 { margin: 0; font-size: 140% }
169
170
171 /**
172  * Tables
173  */
174 table, td { font-family: Arial, Helvetica, sans-serif; }
175 caption { font-family: Arial, Helvetica, sans-serif; }
176 .pagelist {
177 }
178 .pagelist thead, .pagelist thead u {  }
179 .pagelist tr.evenrow { background: #eee; }
180 .pagelist tr.oddrow  { background: white; }
181
182
183 /**
184  * Toolbar
185  */
186 .toolbar, input.button, #signin { font-family: Arial, Helvetica, sans-serif; }
187
188 .toolbar {
189   padding: 0;
190   margin:  0;
191 }
192 #navbuttons {
193   padding-right: 4em; /* wrap around logo */
194   padding-bottom: 1ex; /* space for h1 */
195 }
196 .editdate {
197   font-family: Arial, Helvetica, sans-serif;
198   margin: 0;
199   padding: 0;
200   padding-top: 0.25ex;
201 }
202 #logo img {
203   /* Netscape 4 requires this 1px border.
204      Without it, the paper borders below cause
205      the white background to disappear. */
206   border: 1px black solid;
207   /* "paper" borders */
208   border-top:  1px #e8e6df solid;
209   border-left: 1px #e8e6df solid;
210   border-bottom: 1px #d2d2d2 solid;
211   border-right:  1px #b2b2b2 solid;
212 }
213
214 /**
215  * Edit Page & View Source
216  */
217
218 /* Make the textarea the full page width */
219 textarea.wikiedit {
220   width: 100%;
221   margin-bottom: 0.5ex;
222   margin-top:    0.5ex;
223   padding: 2px;
224 }
225
226 #editarea-size {
227   margin-top: 1ex;
228   text-align: right;
229   font-size: smaller;
230 }
231
232 /* IncludePage plugin */
233 .transclusion-title {
234   text-align: right;
235   font-style: oblique;
236   font-size:  smaller;
237   text-decoration: underline;
238   margin-bottom: 0.25ex;
239   margin-right:  0.25em;
240
241 .transclusion, .wiki-edithelp {
242   font-size: smaller;
243 }
244 .transclusion {
245   border: 1px solid gray;
246   padding-left:  0.8em; 
247   padding-right: 0.8em; 
248   padding-top:     0px;
249   padding-bottom:  0px;
250   margin-left:   0.25em;
251   margin-right:  0.25em;
252   margin-bottom: 0.1ex;
253 }
254 .wiki-edithelp {
255   background: white;
256   border: medium solid #fff8dc; /* darker ivory */
257   padding-left:  0.5em;
258   padding-right: 0.5em;
259   padding-top:    0.75ex;
260   padding-bottom: 0.75ex;
261   margin-left:  0;
262   margin-right: 0;
263   margin-top: 1ex;
264   margin-bottom: 1ex;
265 }
266 .wiki-edithelp .wiki {
267   /* color: #5454ff;*/
268 }
269 .wiki-edithelp p {
270   font-family: Arial, Helvetica, sans-serif;
271   padding-left:  0.5em;
272   padding-right: 0.5em;
273   padding-top:    0.5ex;
274   padding-bottom: 0.5ex;
275   margin: 0;
276 }
277
278
279 /**
280  * Calendar plugin
281  */
282 table.cal {
283   border: 1px outset gray;
284   background: white;
285   margin: 0.5ex 0.5em;
286   padding: 1px;
287   /* For Mozilla */
288   empty-cells: hide;
289
290
291 /* cells */
292 table.cal td {
293   background: white;
294   text-align: right;
295
296
297 /* Month-name header */
298 table.cal-header { font-size: larger; }
299 table.cal-header tr, table.cal-header td { text-align: center; }
300 .cal-arrow {
301   font-weight: bold;
302   text-decoration: none;
303 }
304
305 /* Day-names header */
306 table.cal tbody tr .cal-dayname {  }
307 .cal-dayname td {
308   text-align: center;
309   font-size: smaller;
310   text-decoration: underline;
311 }
312
313 /* Individual days */
314 a.cal-hide { text-decoration: none; }
315
316 /* Today */
317  /* cell */
318 table.cal td.cal-today {
319   margin: 1px;
320   border: 1px solid gray;
321 }
322  /* text */
323 table.cal td.cal-today a.cal-hide {  }
324
325 /**
326  * Diff Output
327  */
328 /* main box */
329 .diff {
330   margin-top:    1ex;
331   margin-bottom: 0.5ex;
332   background: white;
333   /* Netscape 4 requires this 1px border.
334      Without it, the paper borders below cause
335      the white background to disappear. */
336   border: 1px #ccc solid;
337   color: black;
338   border-top: 1px solid #494f5d;
339   border-left:  1px solid #494f5d;
340   border-bottom:  1px solid #c6d2de;
341   border-right: 1px solid #c6d2de;
342   padding-top:    1px;
343   padding-bottom: 1px;
344   padding-left:  .125em;
345   padding-right: .125em;
346   padding: 0;
347   /* "paper" borders */
348   /*border-top: 2px #d2d2d2 solid;
349   border-left:  2px #b2b2b2 solid;
350   border-bottom:  2px #e8e6df solid;
351   border-right: 2px #e8e6df solid;*/
352 /*  padding-left:  0em; 
353   padding-bottom: 0ex;*/
354 /*  border-style: inset;*/
355   /*This breaks Netscape 4: (display does not go full width).
356    * width: auto;
357    */
358   /* I'm not sure what the intent of this was, but it's
359    *  not valid CSS: */
360   /* display: editarea; */
361   clear: both;
362 }
363 .diff .block {
364   background: #ddd;
365   padding-left: 1em;
366   /* for NS4 */
367   /*border: none;*/
368 }
369
370 /* individual blocks */
371 .diff .context {
372   background: white;
373   /* for NS4 */
374   border: none;
375 }
376 /* entire difftextblock */
377 .difftext {
378   margin-top:    0;
379   margin-bottom: 0;
380   background: white;
381   /* Netscape 4 requires this 1px border.
382      Without it, the paper borders below cause
383      the white background to disappear. */
384   border: 1px black solid;
385   /* "paper" borders */
386   border-top:  1px #e8e6df solid;
387   border-left: 1px #e8e6df solid;
388   border-bottom: 1px #d2d2d2 solid;
389   border-right:  1px #b2b2b2 solid;
390   padding-left:  0em; 
391   padding-right: 0em;
392   padding-top:    0ex;
393   padding-bottom: 0ex;
394   /*This breaks Netscape 4: (display does not go full width).
395    * width: auto;
396    */
397   clear: both;
398 }
399 /* + - line prefix */
400 .diff .block tt {
401   font-weight: normal;
402   font-family: monospace;
403   color: black;
404   /* for NS4 */
405   margin-left: 0;
406   border: none;
407 }
408 /* changed words */
409 .diff del, .diff ins {
410   font-weight: bold;
411   text-decoration: none;
412 }
413
414 /* blocks containing deleted or added words */
415 .diff .original, .diff .deleted,
416 .diff .final, .diff .added {
417   background: white;
418 }
419 /* blocks containing deleted words */
420 .diff .original, .diff .deleted {
421   background: #fcc;
422   /* for NS4 */
423   border: none;
424 }
425 /* blocks containing added words */
426 .diff .final, .diff .added {
427   background: #cfc;
428   /* for NS4 */
429   border: none;
430 }
431
432 /* These don't work in NS4 -- it completely ignores <del> and <ins>. */
433 /* deleted words */
434 .diff del { background: #f99; }
435 /* added words */
436 .diff ins { background: #9f9; }
437
438
439 /**
440  * PageHistory, Info
441  */
442 td.pageinfo { font-weight: bold; }
443 .pageinfo-minoredit, .pageinfo-authorid {
444   font-size: smaller;
445   font-style: oblique;
446 }
447
448
449 /**
450  * Other
451  */
452 .printer, .no-css { display: none; }
453
454 /* PHP Warnings */
455 div.errors {
456   color: black;
457   background: #eee;
458   margin-top:    1em;
459   margin-bottom: 1em;
460   padding-left:  0.8em; 
461   padding-right: 0.8em; 
462   padding-top:    0.8ex;
463   padding-bottom: 0;
464   border: medium solid red;
465   clear: both;
466 }
467 .errors h4 {
468   color: red;
469   margin:  0;
470   padding: 0;
471   text-decoration: underline;
472 }
473 .error { font-family: monospace; font-size: 120%; }
474 .error ul { font-family: monospace; }
475
476 /* Debug */
477 .debug {
478   color: black;
479   background: white;
480   font-family: monospace;
481   font-size: smaller;
482   margin: 1ex 0;
483   padding: 0.5ex 0.5em;
484   border: medium solid #fff8dc; /* darker ivory */
485 }
486
487 /* Hints */
488 .hint {
489   color: black;
490   background: #eeeeee;
491   font-size: smaller;
492   margin-left: 5em;
493   padding: 0.5ex 0.5em;
494   border: thin solid #aaaaaa;
495 }
496
497 /* Disabled Plugins */
498 .disabled-plugin
499 {
500   clear: both;
501   margin: 1ex 0;
502   padding: 0;
503 }
504 .disabled-plugin .title {
505   color: #400;
506   background-color: inherit;
507   font-size: x-small;
508   text-align: right;
509   padding: 0 0.5em;
510 }
511 .disabled-plugin pre {
512   color: black;
513   background: #ddd;
514   margin: 0;
515   padding: 0.3ex 0.5em;
516 }
517
518 /* "(Redirected from ...)" message. */
519 span.redirectfrom {
520   font-size: small;
521   font-style: oblique;
522   font-weight: normal;
523   padding-left: 1em;
524 }
525
526
527 /*
528  * Vertical margins around block elements.
529  */
530
531 p { margin: 1em 0; }            /* Normal ("loose") paragraphs */
532 li p, dd p, td p { margin: 1ex 0; } /* Paragraphs within lists are a little tighter. */
533   
534 /* ul, ol, dl { margin: 0.2ex 0; }      /* A little room around lists. */
535 /* li ul, li ol, li dl,
536 dd ul, dd ol, dd dl { margin: 0 0; } /* but not around sub-lists. */
537
538 /* Normal ("loose") list elements */
539 li.tightenable { margin: 1em 0; }
540 dt.tightenable { margin-top: 1em; }
541 dd.tightenable { margin-bottom: 1.5ex; }
542
543   
544 li.tightenable.top,
545 dt.tightenable.top,
546 dd.tightenable.top {
547   margin-top: 0.2ex;
548 }
549 li li.tightenable.top {
550   margin-top: 0;
551 }
552 li.tightenable.bottom,
553 dd.tightenable.bottom {
554   margin-bottom: 0.2ex;
555 }
556 li li.tightenable.bottom {
557   margin-bottom: 0;
558 }
559
560 .tightenable.top {
561   margin-top: 0;
562 }
563 .tightenable.bottom {
564   margin-bottom: 0;
565 }
566
567 /*
568  * "DL tables"
569  */
570 .wiki-dl-table {
571   border-collapse: collapse;
572   border: 2px #444 solid;
573 }
574 .wiki-dl-table tr {
575   border-top: 2px #444 solid;
576   border-bottom: 2px #444 solid;
577   border-left: none; 
578   border-right: none; 
579 }
580 .wiki-dl-table tr.tightenable.top {
581   border-top: 1px #444 solid;
582 }
583 .wiki-dl-table tr.tightenable.bottom {
584   border-bottom: 1px #444 solid;
585 }
586 .wiki-dl-table th,
587 .wiki-dl-table td {
588   padding: 0.25em 0.5em;
589 }
590 .wiki-dl-table th {
591   vertical-align: top;
592   text-align: right;
593   border-right: 1px #444 solid;
594   border-left: none;
595   border-top: none;
596   border-bottom: none;
597 }
598 .wiki-dl-table td {
599   border: none;
600 }
601
602 /*
603  * "E-mail" style blockquote
604  */
605 blockquote.mail-style-quote {
606   border-left: medium #284 solid;
607   padding-left: 1em;
608   margin-left: 0;
609   margin-right: 0;
610 }
611 .mail-style-quote blockquote.mail-style-quote {
612   margin-left: -0.6em;
613 }
614
615
616 /*
617  * wikiblog
618  */
619 .floatleft { float: left; }
620 .floatright { float: right; }
621
622 div.wikiblog {
623   border: thin black solid;
624   margin: 1ex 2em;
625   padding: 0 0;
626 }
627 div.wikiblog > div {
628   margin: 0 0;
629   padding: 0.5ex 0.5em;
630 }
631 div.wikiblog-header {
632   background-color: #ccf;
633 }
634 div.wikiblog > div.wikiblog-footer {
635   background-color: #eee;
636   padding: 0.2ex 0.5em;
637 }
638 h3.wikiblog-summary {
639   font-size: medium;
640   font-weight: bold;
641   margin: 0 0 1ex 0;
642 }
643
644 div.wikiblog.wikiblog-form {
645   background-color: #eee;
646 }
647
648 table.wikiblog-form {
649   width: auto;
650   border-collapse: collapse;
651   margin: 0.25em 0;
652 }
653 .wikiblog-form caption {
654   background-color: #ccf;
655   caption-side: top;
656   font-weight: bold;
657   text-align: left;
658   padding: 0.5ex 0.5em;
659 }
660 .wikiblog-form th {
661   vertical-align: top;
662   text-align: right;
663   padding: 0 0 0.3em 0.5em;
664 }
665 .wikiblog-form td {
666   padding: 0.25em 0.5em;
667 }
668 .wikiblog-form td.submit-button {
669   padding: 0;
670 }
671 .wikiblog-form input[type=text],
672 .wikiblog-form textarea {
673   margin: 0 0;
674   width: 100%;
675 }
676
677 table.interwiki-map {
678   margin: 1em 2em;
679 }
680 .interwiki-map th {
681   text-decoration: underline;
682   text-align: left;
683   padding-left: 1em;
684 }
685 .interwiki-map td.interwiki-url {
686   padding-left: 2em;
687 }
688 .interwiki-map th.interwiki-url {
689   padding-left: 3em;
690 }
691
692 .dialog {
693   background-color: #cdf;
694   color: black;
695   margin: 2em auto 2em auto;
696   border: thin black solid;
697   width: 50%;
698 }
699 .dialog h1, .dialog p, .dialog div {
700   text-align: center;
701 }
702 .dialog h1 {
703   font-size: large;
704   margin: 0.5em 0 1em 0;
705 }
706 .dialog div.message {
707   background-color: white;
708   color: black;
709   color: black;
710   margin: 0 1em;
711   padding: 0.5em 0.5em;
712 }
713 .dialog p.buttons {
714   margin: 1em 0 0.5em 0;
715 }
716
717
718 .clear-floats {
719   clear: both;
720 }
721
722 th.gridbutton {
723   background-color: threedlightshadow;
724   color: black;
725   font-weight: normal;
726   font-style: menu;
727   margin: 5px 0px;
728   padding-top: 5px;
729   border-width: 1px;
730   border-style: solid;
731   border-color: threedhighlight threeddarkshadow threeddarkshadow threedhighlight;
732 }
733 a.gridbutton, a:hover.gridbutton, a:visited.gridbutton {
734   text-decoration: none;
735   font-size: small;
736   font-weight: normal;
737   font-style: menu;
738   font-family: Tahoma, sans-serif, Arial, Helvetica;
739   background-color: threedlightshadow;
740   color: black;
741 }
742
743 /* postnuke css:*/
744 .gensmall{font-size:10px}
745 .genmed{font-size:11px}
746 td.cat{font-weight:bold;letter-spacing:1px;color:#000000;background: url(./images/cellpic1.png);height:27px}
747 /*
748 /* Main table cell colours and backgrounds */
749 td.row1{background:#eaedf4;color:#000000}
750 td.row2{background:#d9e2ec;color:#000000}
751 td.row3{background:#cad9ea;color:#000000}
752 td.spacerow{background:#cad9ea;color:#000000}
753 /* This is the outline round the main forum tables */
754 .forumline{background:#ffffff;color:#000000;border:1px solid #006699}
755
756 /* For emacs users
757  *
758  * Local Variables:
759  * mode: c
760  * c-file-style: cc-mode
761  * End:
762  */