]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/phpwiki.css
remove redundant wrong templates, fix IE errors by removing printf, improve Sidebar...
[SourceForge/phpwiki.git] / themes / default / phpwiki.css
1 /**
2  * $Id: phpwiki.css,v 1.46 2005-02-04 13:25:08 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: 0ex; }
23
24 form { margin: 0ex; }
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, a.wikiaction:visited, input.wikiaction, input.button { background-color: #ddd; }
129
130 .wikiunsafe { background-color: #fcc; }
131
132 a.wikiadmin, a.wikiadmin:visited, 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: Georgia
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 .pagelist thead td {
178   background: #e8e8e8;
179   text-decoration: none;
180   font-weight: bold;
181   font-size: smaller;
182 }
183 .pagelist thead td u { text-decoration: none; }
184 .pagelist tr.evenrow { background: #eee; }
185 .pagelist tr.oddrow  { background: white; }
186 th.gridbutton {
187   background-color: ThreedLightShadow;
188   color: black;
189   font-family: Tahoma, sans-serif, Arial, Helvetica;
190   font-size: small;
191   font-weight: normal;
192   /*font-style: menu;*/
193   white-space: nowrap;
194   margin: 5px 0px;
195   max-height: 24px;
196   padding: 5px 0px 5px 0px;
197   border-width: 1px;
198   border-style: solid;
199   border-color: ThreedHighlight ThreedDarkShadow ThreedDarkShadow ThreedHighlight;
200 }
201 input.gridbutton, a.gridbutton, a:hover.gridbutton, a:visited.gridbutton {
202   text-decoration: none;
203   font-size: small;
204   font-weight: normal;
205   /*font-style: menu;*/
206   font-family: Tahoma, sans-serif, Arial, Helvetica;
207   background-color: ThreedLightShadow;
208   color: black;
209 }
210
211
212 /**
213  * Toolbar
214  */
215 .toolbar, input.button, #signin { font-family: Arial, Helvetica, sans-serif; }
216
217 .toolbar {
218   padding: 0;
219   margin:  0;
220 }
221 .edit-toolbar {
222   padding: 0;
223   margin:  0;
224 }
225 .edit-toolbar img, .edit-toolbar input {
226   background-color: #fff;
227   border: 1px solid ButtonFace;
228 }
229
230 #navbuttons {
231   padding-right: 4em; /* wrap around logo */
232   padding-bottom: 1ex; /* space for h1 */
233 }
234 .editdate {
235   font-family: Arial, Helvetica, sans-serif;
236   margin: 0;
237   padding: 0;
238   padding-top: 0.25ex;
239 }
240 #logo img {
241   float: right;
242   /* Netscape 4 requires this 1px border.
243      Without it, the paper borders below cause
244      the white background to disappear. */
245   border: 1px black solid;
246   /* "paper" borders */
247   border-top:  1px #e8e6df solid;
248   border-left: 1px #e8e6df solid;
249   border-bottom: 1px #d2d2d2 solid;
250   border-right:  1px #b2b2b2 solid;
251 }
252
253 /**
254  * Edit Page & View Source
255  */
256
257 /* Make the textarea the full page width */
258 textarea.wikiedit {
259   width: 100%;
260   margin-bottom: 0.5ex;
261   margin-top:    0.5ex;
262   padding: 2px;
263 }
264
265 #editarea-size {
266   margin-top: 1ex;
267   text-align: right;
268   font-size: smaller;
269 }
270 #search-replace {
271   margin-top: 1ex;
272   text-align: left;
273   font-size: smaller;
274 }
275 #toolbar { padding:0px; }
276
277 /**
278  * Search Results
279  */
280 .search-context { background: white; }
281 .search-term {
282   background: yellow;
283   font-weight: normal;
284 }
285
286 /* IncludePage plugin */
287 .transclusion-title {
288   text-align: right;
289   font-style: oblique;
290   font-size:  smaller;
291   text-decoration: underline;
292   margin-bottom: 0.25ex;
293   margin-right:  0.25em;
294
295 .transclusion, .wiki-edithelp {
296   font-size: smaller;
297 }
298 .transclusion {
299   border: 1px solid gray;
300   padding-left:  0.8em; 
301   padding-right: 0.8em; 
302   padding-top:     0px;
303   padding-bottom:  0px;
304   margin-left:   0.25em;
305   margin-right:  0.25em;
306   margin-bottom: 0.1ex;
307 }
308 .wiki-edithelp {
309   background: white;
310   border: medium solid #fff8dc; /* darker ivory */
311   padding-left:  0.5em;
312   padding-right: 0.5em;
313   padding-top:    0.75ex;
314   padding-bottom: 0.75ex;
315   margin-left:  0;
316   margin-right: 0;
317   margin-top: 1ex;
318   margin-bottom: 1ex;
319 }
320 .wiki-edithelp .wiki {
321   /* color: #5454ff;*/
322 }
323 .wiki-edithelp p {
324   font-family: Arial, Helvetica, sans-serif;
325   padding-left:  0.5em;
326   padding-right: 0.5em;
327   padding-top:    0.5ex;
328   padding-bottom: 0.5ex;
329   margin: 0;
330 }
331
332
333 /**
334  * Calendar plugin
335  */
336 table.cal {
337   border: 1px outset gray;
338   background: white;
339   margin: 0.5ex 0.5em;
340   padding: 1px;
341   /* For Mozilla */
342   empty-cells: hide;
343
344
345 /* cells */
346 table.cal td {
347   background: white;
348   text-align: right;
349
350
351 /* Month-name header */
352 table.cal-header { font-size: larger; }
353 table.cal-header tr, table.cal-header td { text-align: center; }
354 .cal-arrow {
355   font-weight: bold;
356   text-decoration: none;
357 }
358
359 /* Day-names header */
360 table.cal tbody tr .cal-dayname {  }
361 .cal-dayname td {
362   text-align: center;
363   font-size: smaller;
364   text-decoration: underline;
365 }
366
367 /* Individual days */
368 a.cal-hide { text-decoration: none; }
369
370 /* Today */
371  /* cell */
372 table.cal td.cal-today {
373   margin: 1px;
374   border: 1px solid gray;
375 }
376  /* text */
377 table.cal td.cal-today a.cal-hide {  }
378
379 /**
380  * Diff Output
381  */
382 /* main box */
383 .diff {
384   margin-top:    1ex;
385   margin-bottom: 0.5ex;
386   background: white;
387   /* Netscape 4 requires this 1px border.
388      Without it, the paper borders below cause
389      the white background to disappear. */
390   border: 1px #ccc solid;
391   color: black;
392   border-top: 1px solid #494f5d;
393   border-left:  1px solid #494f5d;
394   border-bottom:  1px solid #c6d2de;
395   border-right: 1px solid #c6d2de;
396   padding-top:    1px;
397   padding-bottom: 1px;
398   padding-left:  .125em;
399   padding-right: .125em;
400   padding: 0;
401   /* "paper" borders */
402   /*border-top: 2px #d2d2d2 solid;
403   border-left:  2px #b2b2b2 solid;
404   border-bottom:  2px #e8e6df solid;
405   border-right: 2px #e8e6df solid;*/
406 /*  padding-left:  0em; 
407   padding-bottom: 0ex;*/
408 /*  border-style: inset;*/
409   /*This breaks Netscape 4: (display does not go full width).
410    * width: auto;
411    */
412   /* I'm not sure what the intent of this was, but it's
413    *  not valid CSS: */
414   /* display: editarea; */
415   clear: both;
416 }
417 .diff .block {
418   background: #ddd;
419   padding-left: 1em;
420   /* for NS4 */
421   /*border: none;*/
422 }
423
424 /* individual blocks */
425 .diff .context {
426   background: white;
427   /* for NS4 */
428   border: none;
429 }
430 /* entire difftextblock */
431 .difftext {
432   margin-top:    0;
433   margin-bottom: 0;
434   background: white;
435   /* Netscape 4 requires this 1px border.
436      Without it, the paper borders below cause
437      the white background to disappear. */
438   border: 1px black solid;
439   /* "paper" borders */
440   border-top:  1px #e8e6df solid;
441   border-left: 1px #e8e6df solid;
442   border-bottom: 1px #d2d2d2 solid;
443   border-right:  1px #b2b2b2 solid;
444   padding-left:  0em; 
445   padding-right: 0em;
446   padding-top:    0ex;
447   padding-bottom: 0ex;
448   /*This breaks Netscape 4: (display does not go full width).
449    * width: auto;
450    */
451   clear: both;
452 }
453 /* + - line prefix */
454 .diff .block tt {
455   font-weight: normal;
456   font-family: monospace;
457   color: black;
458   /* for NS4 */
459   margin-left: 0;
460   border: none;
461 }
462 /* changed words */
463 .diff del, .diff ins {
464   font-weight: bold;
465   text-decoration: none;
466 }
467
468 /* blocks containing deleted or added words */
469 .diff .original, .diff .deleted,
470 .diff .final, .diff .added {
471   background: white;
472 }
473 /* blocks containing deleted words */
474 .diff .original, .diff .deleted {
475   background: #fcc;
476   /* for NS4 */
477   border: none;
478 }
479 /* blocks containing added words */
480 .diff .final, .diff .added {
481   background: #cfc;
482   /* for NS4 */
483   border: none;
484 }
485
486 /* These don't work in NS4 -- it completely ignores <del> and <ins>. */
487 /* deleted words */
488 .diff del { background: #f99; }
489 /* added words */
490 .diff ins { background: #9f9; }
491
492
493 /**
494  * PageHistory, Info
495  */
496 td.pageinfo { font-weight: bold; }
497 .pageinfo-minoredit, .pageinfo-authorid {
498   font-size: smaller;
499   font-style: oblique;
500 }
501
502
503 /**
504  * Other
505  */
506 .printer, .no-css { display: none; }
507
508 /* PHP Warnings */
509 div.errors {
510   color: black;
511   background: #eee;
512   margin-top:    1em;
513   margin-bottom: 1em;
514   padding-left:  0.8em; 
515   padding-right: 0.8em; 
516   padding-top:    0.8ex;
517   padding-bottom: 0;
518   border: medium solid red;
519   clear: both;
520 }
521 .errors h4 {
522   color: red;
523   margin:  0;
524   padding: 0;
525   text-decoration: underline;
526 }
527 .error { font-family: monospace; font-size: 120%; }
528 .error ul { font-family: monospace; }
529
530 /* Debug */
531 .debug {
532   color: black;
533   background: white;
534   font-family: monospace;
535   font-size: smaller;
536   margin: 1ex 0;
537   padding: 0.5ex 0.5em;
538   border: medium solid #fff8dc; /* darker ivory */
539 }
540
541 /* Hints */
542 .hint {
543   color: black;
544   background: #eeeeee;
545    /* font-size: smaller; */
546   font-style: italic;
547   margin-left: 3em;
548   padding: 0.5ex 0.5em;
549   border: thin solid #aaaaaa;
550 }
551 span.hint {
552   padding: 0;
553 }
554
555 /* Disabled Plugins */
556 .disabled-plugin
557 {
558   clear: both;
559   margin: 1ex 0;
560   padding: 0;
561 }
562 .disabled-plugin .title {
563   color: #400;
564   background-color: inherit;
565   font-size: x-small;
566   text-align: right;
567   padding: 0 0.5em;
568 }
569 .disabled-plugin pre {
570   color: black;
571   background: #ddd;
572   margin: 0;
573   padding: 0.3ex 0.5em;
574 }
575
576 /* "(Redirected from ...)" message. */
577 span.redirectfrom {
578   font-size: small;
579   font-style: oblique;
580   font-weight: normal;
581   padding-left: 1em;
582 }
583
584
585 /*
586  * Vertical margins around block elements.
587  */
588
589 p { margin: 1em 0; }            /* Normal ("loose") paragraphs */
590 li p, dd p, td p { margin: 1ex 0; } /* Paragraphs within lists are a little tighter. */
591   
592 /* ul, ol, dl { margin: 0.2ex 0; }      /* A little room around lists. */
593 /* li ul, li ol, li dl,
594 dd ul, dd ol, dd dl { margin: 0 0; } /* but not around sub-lists. */
595
596 /* Normal ("loose") list elements */
597 li.tightenable { margin: 1em 0; }
598 dt.tightenable { margin-top: 1em; }
599 dd.tightenable { margin-bottom: 1.5ex; }
600
601   
602 li.tightenable.top,
603 dt.tightenable.top,
604 dd.tightenable.top {
605   margin-top: 0.2ex;
606 }
607 li li.tightenable.top {
608   margin-top: 0;
609 }
610 li.tightenable.bottom,
611 dd.tightenable.bottom {
612   margin-bottom: 0.2ex;
613 }
614 li li.tightenable.bottom {
615   margin-bottom: 0;
616 }
617
618 .tightenable.top {
619   margin-top: 0;
620 }
621 .tightenable.bottom {
622   margin-bottom: 0;
623 }
624
625 /*
626  * "DL tables"
627  */
628 .wiki-dl-table {
629   border-collapse: collapse;
630   border: 2px #444 solid;
631 }
632 .wiki-dl-table tr {
633   border-top: 2px #444 solid;
634   border-bottom: 2px #444 solid;
635   border-left: none; 
636   border-right: none; 
637 }
638 .wiki-dl-table tr.tightenable.top {
639   border-top: 1px #444 solid;
640 }
641 .wiki-dl-table tr.tightenable.bottom {
642   border-bottom: 1px #444 solid;
643 }
644 .wiki-dl-table th,
645 .wiki-dl-table td {
646   padding: 0.25em 0.5em;
647 }
648 .wiki-dl-table th {
649   vertical-align: top;
650   text-align: right;
651   border-right: 1px #444 solid;
652   border-left: none;
653   border-top: none;
654   border-bottom: none;
655 }
656 .wiki-dl-table td {
657   border: none;
658 }
659
660 /*
661  * "E-mail" style blockquote
662  */
663 blockquote.mail-style-quote {
664   border-left: medium #284 solid;
665   padding-left: 1em;
666   margin-left: 0;
667   margin-right: 0;
668 }
669 .mail-style-quote blockquote.mail-style-quote {
670   margin-left: -0.6em;
671 }
672
673
674 /*
675  * wikiblog
676  */
677 .floatleft { float: left; }
678 .floatright { float: right; }
679
680 div.wikiblog {
681   /* border: thin black solid; */
682   margin: 1ex 2em;
683   padding: 0 0;
684 }
685 div.wikiblog > div {
686   margin: 0 0;
687   padding: 0.5ex 0.5em;
688 }
689 div.wikiblog-header {
690   /* background-color: #ccf; */
691 }
692 div.wikiblog > div.wikiblog-footer {
693   /* background-color: #eee; */
694   padding: 0.2ex 0.5em;
695 }
696 h3.wikiblog-summary {
697   font-size: medium;
698   font-weight: bold;
699   margin: 0 0 1ex 0;
700 }
701
702 div.wikiblog.wikiblog-form {
703   /* background-color: #eee; */
704 }
705
706 table.wikiblog-form {
707   width: auto;
708   border-collapse: collapse;
709   margin: 0.25em 0;
710 }
711 .wikiblog-form caption {
712   /* background-color: #ccf; */
713   caption-side: top;
714   font-weight: bold;
715   text-align: left;
716   padding: 0.5ex 0.5em;
717 }
718 .wikiblog-form th {
719   vertical-align: top;
720   text-align: right;
721   padding: 0 0 0.3em 0.5em;
722 }
723 .wikiblog-form td {
724   padding: 0.25em 0.5em;
725 }
726 .wikiblog-form td.submit-button {
727   padding: 0;
728 }
729 .wikiblog-form input[type=text],
730 .wikiblog-form textarea {
731   margin: 0 0;
732   width: 100%;
733 }
734 div.wikicomment div.wikicomment-footer {
735   padding: 0.2ex 0.5em;
736 }
737 div.wikicomment div.wikicomment-footer named-wiki {
738   font-size: small;
739 }
740 table.interwiki-map {
741   margin: 1em 2em;
742 }
743 .interwiki-map th {
744   text-decoration: underline;
745   text-align: left;
746   padding-left: 1em;
747 }
748 .interwiki-map td.interwiki-url {
749   padding-left: 2em;
750 }
751 .interwiki-map th.interwiki-url {
752   padding-left: 3em;
753 }
754
755 .dialog {
756   background-color: #cdf;
757   color: black;
758   margin: 2em auto 2em auto;
759   border: thin black solid;
760   width: 50%;
761 }
762 .dialog h1, .dialog p, .dialog div {
763   text-align: center;
764 }
765 .dialog h1 {
766   font-size: large;
767   margin: 0.5em 0 1em 0;
768 }
769 .dialog div.message {
770   background-color: white;
771   color: black;
772   color: black;
773   margin: 0 1em;
774   padding: 0.5em 0.5em;
775 }
776 .dialog p.buttons {
777   margin: 1em 0 0.5em 0;
778 }
779
780
781 .clear-floats {
782   clear: both;
783 }
784
785
786 /* postnuke css:*/
787 .gensmall{font-size:10px}
788 .genmed{font-size:11px}
789 td.cat{font-weight:bold;letter-spacing:1px;color:#000000;background: url(./images/cellpic1.png);height:27px}
790 /* Main table cell colours and backgrounds */
791 td.row1{background:#eaedf4;color:#000000}
792 td.row2{background:#d9e2ec;color:#000000}
793 td.row3{background:#cad9ea;color:#000000}
794 td.spacerow{background:#cad9ea;color:#000000}
795
796 /* This is the outline round the main forum tables */
797 .forumline{background:#ffffff;color:#000000;border:1px solid #006699}
798
799 /* Sidebar */
800 .box { background:#ffffff; border: 1px solid #888888 }
801 .box-title { font-weight: normal; /*font-size: 11pt; */ background-color: #ccc; color: black; /*font-style: menu;*/ text-align: center; }
802 .box-data { width: 160px; font-size: 9pt; font-weight: normal; }
803 .box-data .wiki { font-weight: normal; }
804 td.sidebar { border-spacing: 0px; margin: 0ex;}
805
806 /* RssFeed */
807 div.rss { margin: 1em; padding: 1em; font-size: 0.9em; background-color: #eeeeee; border: thin dashed #aaa; }
808 div.feed { color: #333; margin: -0.5em; margin-bottom: 0em; padding: 0.3em; font-weight: bold; background-color: #f2f2f2; font-size: 1.2em; }
809 div.itemdesc {  padding-left: 1em; }
810 div.rssitem { border-top: thin dashed #aaa; }
811
812 /* SqlResult */
813 table.sqlresult { 
814   border: 1px outset gray;
815   background: white;
816   margin: 0.5ex 0.5em;
817   padding: 1px;
818 }
819 .sqlresult tr.evenrow { background: #eee; }
820 .sqlresult tr.oddrow  { background: white; }
821 table.sqlresult td {
822   margin: 1px;
823   border: 1px solid gray;
824 }
825
826 /**
827  * TeX2png plugin
828  */
829 img.tex { 
830   border: 0ex;
831   vertical-align: middle; 
832 }
833
834 /* For emacs users
835  *
836  * Local Variables:
837  * mode: c
838  * c-file-style: cc-mode
839  * End:
840  */