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