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