]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/phpwiki.css
Fix so that submit buttons match the other wikiaction "buttons".
[SourceForge/phpwiki.git] / themes / default / phpwiki.css
1 /**
2  * $Id: phpwiki.css,v 1.8 2003-02-17 05:53:35 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 table {
26   border-spacing: 1px;
27   /* For Mozilla */
28   empty-cells: show;
29 }
30 caption {
31   caption-side: top;
32   text-align: left;
33   margin-bottom: .5ex;
34   /* Allow the caption to extend to the full page width
35      Mac ie5.1 ignores this*/
36   width: 100%;
37 }
38
39
40 /**
41  * Wiki
42  */
43 body {
44   /* ivory #ffe #fffff0*/
45   background: #fffff0;
46   font-family: Arial, Helvetica, sans-serif;
47   margin: 1.5ex 1em;
48 }
49
50 div.wikitext hr { height: 1px; }
51
52 div.wikitext pre { font-family: monospace; }
53
54
55 /**
56  * PageTypes
57  */
58 /* Main wiki text box */
59 div.wikitext {
60   margin-top:    1ex;
61   margin-bottom: 0.5ex;
62   background: white;
63   /* Netscape 4 requires this 1px border.
64      Without it, the paper borders below cause
65      the white background to disappear. */
66   border: 1px black solid;
67   /* "paper" borders */
68   border-top:  1px #e8e6df solid;
69   border-left: 1px #e8e6df solid;
70   border-bottom: 1px #d2d2d2 solid;
71   border-right:  1px #b2b2b2 solid;
72   padding-left:  0.8em; 
73   padding-right: 0.8em;
74   padding-top:    0.5ex;
75   padding-bottom: 0.5ex;
76   /*This breaks Netscape 4: (display does not go full width).
77    * width: auto;
78    */
79   clear: both;
80 }
81 .interwiki-map thead td { text-decoration: underline; }
82
83 /* Mozilla RecentChanges Sidebar */
84 body.sidebar {
85   font-size: smaller;
86   margin: 0.5em;
87 }
88 body.sidebar div.wikitext {
89   padding: 0.5em;
90 }
91 body.sidebar div.wikitext ul { padding-left: 1em; }
92 body.sidebar h2 { margin-top: 0; }
93
94
95 /**
96  * Wiki Forms
97  * 
98  * The div inside the wikiadmin upload form does not
99  * have a class yet, so it must be referenced indirectly
100  */
101 div.wikiaction { background-color: #eee; }
102 /* div.wikiadmin { background-color: #fee; } */
103 form.wikiadmin div { background-color: #fee; }
104
105
106 /**
107  * Link styles
108  */
109 .wiki, .named-wiki {
110   text-decoration: none;
111   font-weight: bold;
112 }
113
114 /* Action buttons */
115 a.wikiaction, a.wikiadmin, a.wiki-rc-action, a.wikiunsafe,
116 input.wikiaction, input.button {
117   text-decoration: none;
118   font-family: Arial, Helvetica, sans-serif;
119   /* don't wrap text buttons */
120   white-space: nowrap;
121 }
122
123 a.wikiaction, input.wikiaction, input.button { background-color: #ddd; }
124
125 .wikiunsafe { background-color: #fcc; }
126
127 a.wikiadmin, input.wikiadmin  { background-color: #fdd; }
128
129 /* Unknown links */
130 .wikiunknown, .named-wikiunknown {
131   font-weight: normal;
132   font-size: 100%;
133 }
134  /* QuestionMark #600 */
135 .wikiunknown a, .named-wikiunknown a {
136   color: #447;
137   background-color: #eee;
138   text-decoration: none;
139   font-weight: normal;
140   font-size: smaller;
141 }
142
143 /* Backlinks */
144 .backlinks {
145   text-decoration: underline;
146   color: #006;
147 }
148 h1 .backlinks { text-decoration: underline; }
149
150 /* Interwiki links */
151 .wikipage  { font-weight: bold; }
152 .interwiki { text-decoration: none; }
153 .interwiki, i.interwiki .wikipage, em .interwiki .wikipage { font-style: oblique; }
154 .interwiki .wikipage, i .interwiki, em .interwiki { font-style: normal; }
155
156
157 /**
158  * headings
159  */
160 h1, h2, h3, h4, h5, h6 { font-family: Arial, Helvetica, sans-serif; }
161
162 h1 { margin: 0; }
163
164
165 /**
166  * Tables
167  */
168 table, td { font-family: Arial, Helvetica, sans-serif; }
169 caption { font-family: Arial, Helvetica, sans-serif; }
170 .pagelist {
171 }
172 .pagelist thead, .pagelist thead u {  }
173 .pagelist tr.evenrow { background: #eee; }
174 .pagelist tr.oddrow  { background: white; }
175
176
177 /**
178  * Toolbar
179  */
180 .toolbar, input.button, #signin { font-family: Arial, Helvetica, sans-serif; }
181
182 .toolbar {
183   padding: 0;
184   margin:  0;
185 }
186 #navbuttons {
187   padding-right: 4em; /* wrap around logo */
188   padding-bottom: 1ex; /* space for h1 */
189 }
190 .editdate {
191   font-family: Arial, Helvetica, sans-serif;
192   margin: 0;
193   padding: 0;
194   padding-top: 0.25ex;
195 }
196 #logo img {
197   /* Netscape 4 requires this 1px border.
198      Without it, the paper borders below cause
199      the white background to disappear. */
200   border: 1px black solid;
201   /* "paper" borders */
202   border-top:  1px #e8e6df solid;
203   border-left: 1px #e8e6df solid;
204   border-bottom: 1px #d2d2d2 solid;
205   border-right:  1px #b2b2b2 solid;
206 }
207
208 /**
209  * Edit Page & View Source
210  */
211
212 /* Make the textarea the full page width */
213 textarea.wikiedit {
214   width: 100%;
215   margin-bottom: 0.5ex;
216   margin-top:    0.5ex;
217   padding: 2px;
218 }
219
220 #editarea-size {
221   margin-top: 1ex;
222   text-align: right;
223   font-size: smaller;
224 }
225
226 /* IncludePage plugin */
227 .transclusion-title {
228   text-align: right;
229   font-style: oblique;
230   font-size:  smaller;
231   text-decoration: underline;
232   margin-bottom: 0.25ex;
233   margin-right:  0.25em;
234
235 .transclusion, .wiki-edithelp {
236   font-size: smaller;
237 }
238 .transclusion {
239   border: 1px solid gray;
240   padding-left:  0.8em; 
241   padding-right: 0.8em; 
242   padding-top:     0px;
243   padding-bottom:  0px;
244   margin-left:   0.25em;
245   margin-right:  0.25em;
246   margin-bottom: 0.1ex;
247 }
248 .wiki-edithelp {
249   background: white;
250   border: medium solid #fff8dc; /* darker ivory */
251   padding-left:  0.5em;
252   padding-right: 0.5em;
253   padding-top:    0.75ex;
254   padding-bottom: 0.75ex;
255   margin-left:  0;
256   margin-right: 0;
257   margin-top: 1ex;
258   margin-bottom: 1ex;
259 }
260 .wiki-edithelp .wiki {
261   /* color: #5454ff;*/
262 }
263 .wiki-edithelp p {
264   font-family: Arial, Helvetica, sans-serif;
265   padding-left:  0.5em;
266   padding-right: 0.5em;
267   padding-top:    0.5ex;
268   padding-bottom: 0.5ex;
269   margin: 0;
270 }
271
272
273 /**
274  * Calendar plugin
275  */
276 table.cal {
277   border: 1px outset gray;
278   background: white;
279   margin: 0.5ex 0.5em;
280   padding: 1px;
281   /* For Mozilla */
282   empty-cells: hide;
283
284
285 /* cells */
286 table.cal td {
287   background: white;
288   text-align: right;
289
290
291 /* Month-name header */
292 table.cal-header { font-size: larger; }
293 table.cal-header tr, table.cal-header td { text-align: center; }
294 .cal-arrow {
295   font-weight: bold;
296   text-decoration: none;
297 }
298
299 /* Day-names header */
300 table.cal tbody tr .cal-dayname {  }
301 .cal-dayname td {
302   text-align: center;
303   font-size: smaller;
304   text-decoration: underline;
305 }
306
307 /* Individual days */
308 a.cal-hide { text-decoration: none; }
309
310 /* Today */
311  /* cell */
312 table.cal td.cal-today {
313   margin: 1px;
314   border: 1px solid gray;
315 }
316  /* text */
317 table.cal td.cal-today a.cal-hide {  }
318
319 /**
320  * Diff Output
321  */
322 /* main box */
323 .diff {
324   margin-top:    1ex;
325   margin-bottom: 0.5ex;
326   background: white;
327   /* Netscape 4 requires this 1px border.
328      Without it, the paper borders below cause
329      the white background to disappear. */
330   border: 1px #ccc solid;
331   color: black;
332   border-top: 1px solid #494f5d;
333   border-left:  1px solid #494f5d;
334   border-bottom:  1px solid #c6d2de;
335   border-right: 1px solid #c6d2de;
336   padding-top:    1px;
337   padding-bottom: 1px;
338   padding-left:  .125em;
339   padding-right: .125em;
340   padding: 0;
341   /* "paper" borders */
342   /*border-top: 2px #d2d2d2 solid;
343   border-left:  2px #b2b2b2 solid;
344   border-bottom:  2px #e8e6df solid;
345   border-right: 2px #e8e6df solid;*/
346 /*  padding-left:  0em; 
347   padding-bottom: 0ex;*/
348 /*  border-style: inset;*/
349   /*This breaks Netscape 4: (display does not go full width).
350    * width: auto;
351    */
352   /* I'm not sure what the intent of this was, but it's
353    *  not valid CSS: */
354   /* display: editarea; */
355   clear: both;
356 }
357 .diff .block {
358   background: #ddd;
359   padding-left: 1em;
360   /* for NS4 */
361   /*border: none;*/
362 }
363
364 /* individual blocks */
365 .diff .context {
366   background: white;
367   /* for NS4 */
368   border: none;
369 }
370 /* entire difftextblock */
371 .difftext {
372   margin-top:    0;
373   margin-bottom: 0;
374   background: white;
375   /* Netscape 4 requires this 1px border.
376      Without it, the paper borders below cause
377      the white background to disappear. */
378   border: 1px black solid;
379   /* "paper" borders */
380   border-top:  1px #e8e6df solid;
381   border-left: 1px #e8e6df solid;
382   border-bottom: 1px #d2d2d2 solid;
383   border-right:  1px #b2b2b2 solid;
384   padding-left:  0em; 
385   padding-right: 0em;
386   padding-top:    0ex;
387   padding-bottom: 0ex;
388   /*This breaks Netscape 4: (display does not go full width).
389    * width: auto;
390    */
391   clear: both;
392 }
393 /* + - line prefix */
394 .diff .block tt {
395   font-weight: normal;
396   font-family: monospace;
397   color: black;
398   /* for NS4 */
399   margin-left: 0;
400   border: none;
401 }
402 /* changed words */
403 .diff del, .diff ins {
404   font-weight: bold;
405   text-decoration: none;
406 }
407
408 /* blocks containing deleted or added words */
409 .diff .original, .diff .deleted,
410 .diff .final, .diff .added {
411   background: white;
412 }
413 /* blocks containing deleted words */
414 .diff .original, .diff .deleted {
415   background: #fcc;
416   /* for NS4 */
417   border: none;
418 }
419 /* blocks containing added words */
420 .diff .final, .diff .added {
421   background: #cfc;
422   /* for NS4 */
423   border: none;
424 }
425
426 /* These don't work in NS4 -- it completely ignores <del> and <ins>. */
427 /* deleted words */
428 .diff del { background: #f99; }
429 /* added words */
430 .diff ins { background: #9f9; }
431
432
433 /**
434  * PageHistory, Info
435  */
436 td.pageinfo { font-weight: bold; }
437 .pageinfo-minoredit, .pageinfo-authorid {
438   font-size: smaller;
439   font-style: oblique;
440 }
441
442
443 /**
444  * Other
445  */
446 .printer { display: none; }
447
448 /* PHP Warnings */
449 div.errors {
450   color: black;
451   background: #eee;
452   margin-top:    1em;
453   margin-bottom: 1em;
454   padding-left:  0.8em; 
455   padding-right: 0.8em; 
456   padding-top:    0.8ex;
457   padding-bottom: 0;
458   border: medium solid red;
459   clear: both;
460 }
461 .errors h4 {
462   color: red;
463   margin:  0;
464   padding: 0;
465   text-decoration: underline;
466 }
467 .error { font-family: monospace; }
468 .error ul { font-family: monospace; }
469
470 /* Debug */
471 .debug {
472   color: black;
473   background: white;
474   font-family: monospace;
475   font-size: smaller;
476   margin: 1ex 0;
477   padding: 0.5ex 0.5em;
478   border: medium solid #fff8dc; /* darker ivory */
479 }
480
481 /* Hints */
482 .hint {
483   color: black;
484   background: #eeeeee;
485   font-size: smaller;
486   margin-left: 5em;
487   padding: 0.5ex 0.5em;
488   border: thin solid #aaaaaa;
489 }
490
491 /* Disabled Plugins */
492 .disabled-plugin
493 {
494   clear: both;
495   margin: 1ex 0;
496   padding: 0;
497 }
498 .disabled-plugin .title {
499   color: #400;
500   background-color: inherit;
501   font-size: x-small;
502   text-align: right;
503   padding: 0 0.5em;
504 }
505 .disabled-plugin pre {
506   color: black;
507   background: #ddd;
508   margin: 0;
509   padding: 0.3ex 0.5em;
510 }
511
512 /* "(Redirected from ...)" message. */
513 span.redirectfrom {
514   font-size: small;
515   font-style: oblique;
516   font-weight: normal;
517   padding-left: 1em;
518 }
519   
520
521 /* For emacs users
522  *
523  * Local Variables:
524  * mode: c
525  * c-file-style: cc-mode
526  * End:
527  */