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