]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/phpwiki.css
Finish tight/loose list refactor.
[SourceForge/phpwiki.git] / themes / default / phpwiki.css
1 /**
2  * $Id: phpwiki.css,v 1.10 2003-02-18 02:49:20 dairiki 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   margin: 1.5ex 1em;
50 }
51
52 div.wikitext hr { height: 1px; }
53
54 div.wikitext pre { font-family: monospace; }
55
56
57 /**
58  * PageTypes
59  */
60 /* Main wiki text box */
61 div.wikitext {
62   margin-top:    1ex;
63   margin-bottom: 0.5ex;
64   background: white;
65   /* Netscape 4 requires this 1px border.
66      Without it, the paper borders below cause
67      the white background to disappear. */
68   border: 1px black solid;
69   /* "paper" borders */
70   border-top:  1px #e8e6df solid;
71   border-left: 1px #e8e6df solid;
72   border-bottom: 1px #d2d2d2 solid;
73   border-right:  1px #b2b2b2 solid;
74   padding-left:  0.8em; 
75   padding-right: 0.8em;
76   padding-top:    0.5ex;
77   padding-bottom: 0.5ex;
78   /*This breaks Netscape 4: (display does not go full width).
79    * width: auto;
80    */
81   clear: both;
82 }
83 .interwiki-map thead td { text-decoration: underline; }
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 {
119   text-decoration: none;
120   font-family: Arial, Helvetica, sans-serif;
121   /* don't wrap text buttons */
122   white-space: nowrap;
123 }
124
125 a.wikiaction, input.wikiaction, input.button { background-color: #ddd; }
126
127 .wikiunsafe { background-color: #fcc; }
128
129 a.wikiadmin, input.wikiadmin  { background-color: #fdd; }
130
131 /* Unknown links */
132 .wikiunknown, .named-wikiunknown {
133   font-weight: normal;
134   font-size: 100%;
135 }
136  /* QuestionMark #600 */
137 .wikiunknown a, .named-wikiunknown a {
138   color: #447;
139   background-color: #eee;
140   text-decoration: none;
141   font-weight: normal;
142   font-size: smaller;
143 }
144
145 /* Backlinks */
146 .backlinks {
147   text-decoration: underline;
148   color: #006;
149 }
150 h1 .backlinks { text-decoration: underline; }
151
152 /* Interwiki links */
153 .wikipage  { font-weight: bold; }
154 .interwiki { text-decoration: none; }
155 .interwiki, i.interwiki .wikipage, em .interwiki .wikipage { font-style: oblique; }
156 .interwiki .wikipage, i .interwiki, em .interwiki { font-style: normal; }
157
158
159 /**
160  * headings
161  */
162 h1, h2, h3, h4, h5, h6 { font-family: Arial, Helvetica, sans-serif; }
163
164 h1 { margin: 0; }
165
166
167 /**
168  * Tables
169  */
170 table, td { font-family: Arial, Helvetica, sans-serif; }
171 caption { font-family: Arial, Helvetica, sans-serif; }
172 .pagelist {
173 }
174 .pagelist thead, .pagelist thead u {  }
175 .pagelist tr.evenrow { background: #eee; }
176 .pagelist tr.oddrow  { background: white; }
177
178
179 /**
180  * Toolbar
181  */
182 .toolbar, input.button, #signin { font-family: Arial, Helvetica, sans-serif; }
183
184 .toolbar {
185   padding: 0;
186   margin:  0;
187 }
188 #navbuttons {
189   padding-right: 4em; /* wrap around logo */
190   padding-bottom: 1ex; /* space for h1 */
191 }
192 .editdate {
193   font-family: Arial, Helvetica, sans-serif;
194   margin: 0;
195   padding: 0;
196   padding-top: 0.25ex;
197 }
198 #logo img {
199   /* Netscape 4 requires this 1px border.
200      Without it, the paper borders below cause
201      the white background to disappear. */
202   border: 1px black solid;
203   /* "paper" borders */
204   border-top:  1px #e8e6df solid;
205   border-left: 1px #e8e6df solid;
206   border-bottom: 1px #d2d2d2 solid;
207   border-right:  1px #b2b2b2 solid;
208 }
209
210 /**
211  * Edit Page & View Source
212  */
213
214 /* Make the textarea the full page width */
215 textarea.wikiedit {
216   width: 100%;
217   margin-bottom: 0.5ex;
218   margin-top:    0.5ex;
219   padding: 2px;
220 }
221
222 #editarea-size {
223   margin-top: 1ex;
224   text-align: right;
225   font-size: smaller;
226 }
227
228 /* IncludePage plugin */
229 .transclusion-title {
230   text-align: right;
231   font-style: oblique;
232   font-size:  smaller;
233   text-decoration: underline;
234   margin-bottom: 0.25ex;
235   margin-right:  0.25em;
236
237 .transclusion, .wiki-edithelp {
238   font-size: smaller;
239 }
240 .transclusion {
241   border: 1px solid gray;
242   padding-left:  0.8em; 
243   padding-right: 0.8em; 
244   padding-top:     0px;
245   padding-bottom:  0px;
246   margin-left:   0.25em;
247   margin-right:  0.25em;
248   margin-bottom: 0.1ex;
249 }
250 .wiki-edithelp {
251   background: white;
252   border: medium solid #fff8dc; /* darker ivory */
253   padding-left:  0.5em;
254   padding-right: 0.5em;
255   padding-top:    0.75ex;
256   padding-bottom: 0.75ex;
257   margin-left:  0;
258   margin-right: 0;
259   margin-top: 1ex;
260   margin-bottom: 1ex;
261 }
262 .wiki-edithelp .wiki {
263   /* color: #5454ff;*/
264 }
265 .wiki-edithelp p {
266   font-family: Arial, Helvetica, sans-serif;
267   padding-left:  0.5em;
268   padding-right: 0.5em;
269   padding-top:    0.5ex;
270   padding-bottom: 0.5ex;
271   margin: 0;
272 }
273
274
275 /**
276  * Calendar plugin
277  */
278 table.cal {
279   border: 1px outset gray;
280   background: white;
281   margin: 0.5ex 0.5em;
282   padding: 1px;
283   /* For Mozilla */
284   empty-cells: hide;
285
286
287 /* cells */
288 table.cal td {
289   background: white;
290   text-align: right;
291
292
293 /* Month-name header */
294 table.cal-header { font-size: larger; }
295 table.cal-header tr, table.cal-header td { text-align: center; }
296 .cal-arrow {
297   font-weight: bold;
298   text-decoration: none;
299 }
300
301 /* Day-names header */
302 table.cal tbody tr .cal-dayname {  }
303 .cal-dayname td {
304   text-align: center;
305   font-size: smaller;
306   text-decoration: underline;
307 }
308
309 /* Individual days */
310 a.cal-hide { text-decoration: none; }
311
312 /* Today */
313  /* cell */
314 table.cal td.cal-today {
315   margin: 1px;
316   border: 1px solid gray;
317 }
318  /* text */
319 table.cal td.cal-today a.cal-hide {  }
320
321 /**
322  * Diff Output
323  */
324 /* main box */
325 .diff {
326   margin-top:    1ex;
327   margin-bottom: 0.5ex;
328   background: white;
329   /* Netscape 4 requires this 1px border.
330      Without it, the paper borders below cause
331      the white background to disappear. */
332   border: 1px #ccc solid;
333   color: black;
334   border-top: 1px solid #494f5d;
335   border-left:  1px solid #494f5d;
336   border-bottom:  1px solid #c6d2de;
337   border-right: 1px solid #c6d2de;
338   padding-top:    1px;
339   padding-bottom: 1px;
340   padding-left:  .125em;
341   padding-right: .125em;
342   padding: 0;
343   /* "paper" borders */
344   /*border-top: 2px #d2d2d2 solid;
345   border-left:  2px #b2b2b2 solid;
346   border-bottom:  2px #e8e6df solid;
347   border-right: 2px #e8e6df solid;*/
348 /*  padding-left:  0em; 
349   padding-bottom: 0ex;*/
350 /*  border-style: inset;*/
351   /*This breaks Netscape 4: (display does not go full width).
352    * width: auto;
353    */
354   /* I'm not sure what the intent of this was, but it's
355    *  not valid CSS: */
356   /* display: editarea; */
357   clear: both;
358 }
359 .diff .block {
360   background: #ddd;
361   padding-left: 1em;
362   /* for NS4 */
363   /*border: none;*/
364 }
365
366 /* individual blocks */
367 .diff .context {
368   background: white;
369   /* for NS4 */
370   border: none;
371 }
372 /* entire difftextblock */
373 .difftext {
374   margin-top:    0;
375   margin-bottom: 0;
376   background: white;
377   /* Netscape 4 requires this 1px border.
378      Without it, the paper borders below cause
379      the white background to disappear. */
380   border: 1px black solid;
381   /* "paper" borders */
382   border-top:  1px #e8e6df solid;
383   border-left: 1px #e8e6df solid;
384   border-bottom: 1px #d2d2d2 solid;
385   border-right:  1px #b2b2b2 solid;
386   padding-left:  0em; 
387   padding-right: 0em;
388   padding-top:    0ex;
389   padding-bottom: 0ex;
390   /*This breaks Netscape 4: (display does not go full width).
391    * width: auto;
392    */
393   clear: both;
394 }
395 /* + - line prefix */
396 .diff .block tt {
397   font-weight: normal;
398   font-family: monospace;
399   color: black;
400   /* for NS4 */
401   margin-left: 0;
402   border: none;
403 }
404 /* changed words */
405 .diff del, .diff ins {
406   font-weight: bold;
407   text-decoration: none;
408 }
409
410 /* blocks containing deleted or added words */
411 .diff .original, .diff .deleted,
412 .diff .final, .diff .added {
413   background: white;
414 }
415 /* blocks containing deleted words */
416 .diff .original, .diff .deleted {
417   background: #fcc;
418   /* for NS4 */
419   border: none;
420 }
421 /* blocks containing added words */
422 .diff .final, .diff .added {
423   background: #cfc;
424   /* for NS4 */
425   border: none;
426 }
427
428 /* These don't work in NS4 -- it completely ignores <del> and <ins>. */
429 /* deleted words */
430 .diff del { background: #f99; }
431 /* added words */
432 .diff ins { background: #9f9; }
433
434
435 /**
436  * PageHistory, Info
437  */
438 td.pageinfo { font-weight: bold; }
439 .pageinfo-minoredit, .pageinfo-authorid {
440   font-size: smaller;
441   font-style: oblique;
442 }
443
444
445 /**
446  * Other
447  */
448 .printer { display: none; }
449
450 /* PHP Warnings */
451 div.errors {
452   color: black;
453   background: #eee;
454   margin-top:    1em;
455   margin-bottom: 1em;
456   padding-left:  0.8em; 
457   padding-right: 0.8em; 
458   padding-top:    0.8ex;
459   padding-bottom: 0;
460   border: medium solid red;
461   clear: both;
462 }
463 .errors h4 {
464   color: red;
465   margin:  0;
466   padding: 0;
467   text-decoration: underline;
468 }
469 .error { font-family: monospace; }
470 .error ul { font-family: monospace; }
471
472 /* Debug */
473 .debug {
474   color: black;
475   background: white;
476   font-family: monospace;
477   font-size: smaller;
478   margin: 1ex 0;
479   padding: 0.5ex 0.5em;
480   border: medium solid #fff8dc; /* darker ivory */
481 }
482
483 /* Hints */
484 .hint {
485   color: black;
486   background: #eeeeee;
487   font-size: smaller;
488   margin-left: 5em;
489   padding: 0.5ex 0.5em;
490   border: thin solid #aaaaaa;
491 }
492
493 /* Disabled Plugins */
494 .disabled-plugin
495 {
496   clear: both;
497   margin: 1ex 0;
498   padding: 0;
499 }
500 .disabled-plugin .title {
501   color: #400;
502   background-color: inherit;
503   font-size: x-small;
504   text-align: right;
505   padding: 0 0.5em;
506 }
507 .disabled-plugin pre {
508   color: black;
509   background: #ddd;
510   margin: 0;
511   padding: 0.3ex 0.5em;
512 }
513
514 /* "(Redirected from ...)" message. */
515 span.redirectfrom {
516   font-size: small;
517   font-style: oblique;
518   font-weight: normal;
519   padding-left: 1em;
520 }
521
522
523 /*
524  * Vertical margins around block elements.
525  */
526
527 p { margin: 2ex 0; }            /* Normal ("loose") paragraphs */
528 li p, dd p, td p { margin: 1ex 0; } /* Paragraphs within lists are a little tighter. */
529   
530 ul, ol, dl { margin: 0.2ex 0; } /* A little room around lists. */
531 li ul, li ol, li dl,
532 dd ul, dd ol, dd dl { margin: 0 0; } /* but not around sub-lists. */
533
534 /* Normal ("loose") list elements */
535 li { margin: 1.5ex 0; }
536 dt { margin-top: 1.5ex; }
537 dd { margin-bottom: 1.5ex; }
538
539   
540 li.tight-top, dt.tight-top, dd.tight-top {
541   margin-top: 0.2ex;
542 }
543 li li.tight-top {
544   margin-top: 0;
545 }
546 li.tight-bottom, dd.tight-bottom {
547   margin-bottom: 0.2ex;
548 }
549 li li.tight-bottom {
550   margin-bottom: 0;
551 }
552
553   
554 .tight-top {
555   margin-top: 0;
556 }
557 .tight-bottom {
558   margin-bottom: 0;
559 }
560
561 /*
562  * "DL tables"
563  */
564 .wiki-dl-table {
565   border-collapse: collapse;
566   border: 2px #444 solid;
567 }
568 .wiki-dl-table tr {
569   border-top: 2px #444 solid;
570   border-bottom: 2px #444 solid;
571   border-left: none; 
572   border-right: none; 
573 }
574 .wiki-dl-table tr.tight-top {
575   border-top: 1px #444 solid;
576 }
577 .wiki-dl-table tr.tight-bottom {
578   border-bottom: 1px #444 solid;
579 }
580 .wiki-dl-table th, .wiki-dl-table td {
581   padding: 0.1ex 0.5em;
582 }
583 .wiki-dl-table th {
584   vertical-align: top;
585   text-align: right;
586   border-right: 1px #444 solid;
587   border-left: none;
588   border-top: none;
589   border-bottom: none;
590 }
591 .wiki-dl-table td {
592   border: none;
593 }
594
595 /*
596  * "E-mail" style blockquote
597  */
598 blockquote.mail-style-quote {
599   border-left: medium #284 solid;
600   padding-left: 1em;
601   margin-left: 0;
602   margin-right: 0;
603 }
604 .mail-style-quote blockquote.mail-style-quote {
605   margin-left: -0.6em;
606 }
607   
608 /* For emacs users
609  *
610  * Local Variables:
611  * mode: c
612  * c-file-style: cc-mode
613  * End:
614  */