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