]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/phpwiki.css
Tweaked diff formatting. Added outset border to logo.
[SourceForge/phpwiki.git] / themes / default / phpwiki.css
1 /**
2  * $Id: phpwiki.css,v 1.5 2003-01-11 22:15:58 carstenklapp 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   text-decoration: none;
117   font-family: Arial, Helvetica, sans-serif;
118   /* don't wrap text buttons */
119   white-space: nowrap;
120 }
121
122 a.wikiaction, input.wikiaction, input.button { background-color: #ddd; }
123
124 .wikiunsafe { background-color: #fcc; }
125
126 a.wikiadmin, input.wikiadmin  { background-color: #fdd; }
127
128 /* Unknown links */
129 .wikiunknown, .named-wikiunknown {
130   font-weight: normal;
131   font-size: 100%;
132 }
133  /* QuestionMark #600 */
134 .wikiunknown a, .named-wikiunknown a {
135   color: #447;
136   background-color: #eee;
137   text-decoration: none;
138   font-weight: normal;
139   font-size: smaller;
140 }
141
142 /* Backlinks */
143 .backlinks {
144   text-decoration: underline;
145   color: #006;
146 }
147 h1 .backlinks { text-decoration: underline; }
148
149 /* Interwiki links */
150 .wikipage  { font-weight: bold; }
151 .interwiki { text-decoration: none; }
152 .interwiki, i.interwiki .wikipage, em .interwiki .wikipage { font-style: oblique; }
153 .interwiki .wikipage, i .interwiki, em .interwiki { font-style: normal; }
154
155
156 /**
157  * headings
158  */
159 h1, h2, h3, h4, h5, h6 { font-family: Arial, Helvetica, sans-serif; }
160
161 h1 { margin: 0; }
162
163
164 /**
165  * Tables
166  */
167 table, td { font-family: Arial, Helvetica, sans-serif; }
168 caption { font-family: Arial, Helvetica, sans-serif; }
169 .pagelist {
170 }
171 .pagelist thead, .pagelist thead u {  }
172 .pagelist tr.evenrow { background: #eee; }
173 .pagelist tr.oddrow  { background: white; }
174
175
176 /**
177  * Toolbar
178  */
179 .toolbar, input.button, #signin { font-family: Arial, Helvetica, sans-serif; }
180
181 .toolbar {
182   padding: 0;
183   margin:  0;
184 }
185 #navbuttons {
186   padding-right: 4em; /* wrap around logo */
187   padding-bottom: 1ex; /* space for h1 */
188 }
189 .editdate {
190   font-family: Arial, Helvetica, sans-serif;
191   margin: 0;
192   padding: 0;
193   padding-top: 0.25ex;
194 }
195 #logo img {
196   /* Netscape 4 requires this 1px border.
197      Without it, the paper borders below cause
198      the white background to disappear. */
199   border: 1px black solid;
200   /* "paper" borders */
201   border-top:  1px #e8e6df solid;
202   border-left: 1px #e8e6df solid;
203   border-bottom: 1px #d2d2d2 solid;
204   border-right:  1px #b2b2b2 solid;
205 }
206
207 /**
208  * Edit Page & View Source
209  */
210
211 /* Make the textarea the full page width */
212 textarea.wikiedit {
213   width: 100%;
214   margin-bottom: 0.5ex;
215   margin-top:    0.5ex;
216   padding: 2px;
217 }
218
219 #editarea-size {
220   margin-top: 1ex;
221   text-align: right;
222   font-size: smaller;
223 }
224
225 /* IncludePage plugin */
226 .transclusion-title {
227   text-align: right;
228   font-style: oblique;
229   font-size:  smaller;
230   text-decoration: underline;
231   margin-bottom: 0.25ex;
232   margin-right:  0.25em;
233
234 .transclusion, .wiki-edithelp {
235   font-size: smaller;
236 }
237 .transclusion {
238   border: 1px solid gray;
239   padding-left:  0.8em; 
240   padding-right: 0.8em; 
241   padding-top:     0px;
242   padding-bottom:  0px;
243   margin-left:   0.25em;
244   margin-right:  0.25em;
245   margin-bottom: 0.1ex;
246 }
247 .wiki-edithelp {
248   background: white;
249   border: medium solid #fff8dc; /* darker ivory */
250   padding-left:  0.5em;
251   padding-right: 0.5em;
252   padding-top:    0.75ex;
253   padding-bottom: 0.75ex;
254   margin-left:  0;
255   margin-right: 0;
256   margin-top: 1ex;
257   margin-bottom: 1ex;
258 }
259 .wiki-edithelp .wiki {
260   /* color: #5454ff;*/
261 }
262 .wiki-edithelp p {
263   font-family: Arial, Helvetica, sans-serif;
264   padding-left:  0.5em;
265   padding-right: 0.5em;
266   padding-top:    0.5ex;
267   padding-bottom: 0.5ex;
268   margin: 0;
269 }
270
271
272 /**
273  * Calendar plugin
274  */
275 table.cal {
276   border: 1px outset gray;
277   background: white;
278   margin: 0.5ex 0.5em;
279   padding: 1px;
280   /* For Mozilla */
281   empty-cells: hide;
282
283
284 /* cells */
285 table.cal td {
286   background: white;
287   text-align: right;
288
289
290 /* Month-name header */
291 table.cal-header { font-size: larger; }
292 table.cal-header tr, table.cal-header td { text-align: center; }
293 .cal-arrow {
294   font-weight: bold;
295   text-decoration: none;
296 }
297
298 /* Day-names header */
299 table.cal tbody tr .cal-dayname {  }
300 .cal-dayname td {
301   text-align: center;
302   font-size: smaller;
303   text-decoration: underline;
304 }
305
306 /* Individual days */
307 a.cal-hide { text-decoration: none; }
308
309 /* Today */
310  /* cell */
311 table.cal td.cal-today {
312   margin: 1px;
313   border: 1px solid gray;
314 }
315  /* text */
316 table.cal td.cal-today a.cal-hide {  }
317
318 /**
319  * Diff Output
320  */
321 /* main box */
322 .diff {
323   margin-top:    1ex;
324   margin-bottom: 0.5ex;
325   background: white;
326   /* Netscape 4 requires this 1px border.
327      Without it, the paper borders below cause
328      the white background to disappear. */
329   border: 1px ccc solid;
330   color: black;
331   border-top: 1px solid #494f5d;
332   border-left:  1px solid #494f5d;
333   border-bottom:  1px solid #c6d2de;
334   border-right: 1px solid #c6d2de;
335   padding-top:    1px;
336   padding-bottom: 1px;
337   padding-left:  .125em;
338   padding-right: .125em;
339   padding: 0;
340   /* "paper" borders */
341   /*border-top: 2px #d2d2d2 solid;
342   border-left:  2px #b2b2b2 solid;
343   border-bottom:  2px #e8e6df solid;
344   border-right: 2px #e8e6df solid;*/
345 /*  padding-left:  0em; 
346   padding-bottom: 0ex;*/
347 /*  border-style: inset;*/
348   /*This breaks Netscape 4: (display does not go full width).
349    * width: auto;
350    */
351    display: editarea;
352   clear: both;
353 }
354 .diff .block {
355   background: #ddd;
356   padding-left: 1em;
357   /* for NS4 */
358   /*border: none;*/
359 }
360
361 /* individual blocks */
362 .diff .context {
363   background: white;
364   /* for NS4 */
365   border: none;
366 }
367 /* entire difftextblock */
368 .difftext {
369   margin-top:    0;
370   margin-bottom: 0;
371   background: white;
372   /* Netscape 4 requires this 1px border.
373      Without it, the paper borders below cause
374      the white background to disappear. */
375   border: 1px black solid;
376   /* "paper" borders */
377   border-top:  1px #e8e6df solid;
378   border-left: 1px #e8e6df solid;
379   border-bottom: 1px #d2d2d2 solid;
380   border-right:  1px #b2b2b2 solid;
381   padding-left:  0em; 
382   padding-right: 0em;
383   padding-top:    0ex;
384   padding-bottom: 0ex;
385   /*This breaks Netscape 4: (display does not go full width).
386    * width: auto;
387    */
388   clear: both;
389 }
390 /* + - line prefix */
391 .diff .block tt {
392   font-weight: normal;
393   font-family: monospace;
394   color: black;
395   /* for NS4 */
396   margin-left: 0;
397   border: none;
398 }
399 /* changed words */
400 .diff del, .diff ins {
401   font-weight: bold;
402   text-decoration: none;
403 }
404
405 /* blocks containing deleted or added words */
406 .diff .original, .diff .deleted,
407 .diff .final, .diff .added {
408   background: white;
409 }
410 /* blocks containing deleted words */
411 .diff .original, .diff .deleted {
412   background: #fcc;
413   /* for NS4 */
414   border: none;
415 }
416 /* blocks containing added words */
417 .diff .final, .diff .added {
418   background: #cfc;
419   /* for NS4 */
420   border: none;
421 }
422
423 /* These don't work in NS4 -- it completely ignores <del> and <ins>. */
424 /* deleted words */
425 .diff del { background: #f99; }
426 /* added words */
427 .diff ins { background: #9f9; }
428
429
430 /**
431  * PageHistory, Info
432  */
433 td.pageinfo { font-weight: bold; }
434 .pageinfo-minoredit, .pageinfo-authorid {
435   font-size: smaller;
436   font-style: oblique;
437 }
438
439
440 /**
441  * Other
442  */
443 .printer { display: none; }
444
445 /* PHP Warnings */
446 div.errors {
447   color: black;
448   background: #eee;
449   margin-top:    1em;
450   margin-bottom: 1em;
451   padding-left:  0.8em; 
452   padding-right: 0.8em; 
453   padding-top:    0.8ex;
454   padding-bottom: 0;
455   border: medium solid red;
456   clear: both;
457 }
458 .errors h4 {
459   color: red;
460   margin:  0;
461   padding: 0;
462   text-decoration: underline;
463 }
464 .error { font-family: monospace; }
465 .error ul { font-family: monospace; }
466
467 /* Debug */
468 .debug {
469   color: black;
470   background: white;
471   font-family: monospace;
472   font-size: smaller;
473   margin: 1ex 0;
474   padding: 0.5ex 0.5em;
475   border: medium solid #fff8dc; /* darker ivory */
476 }
477
478 /* Hints */
479 .hint {
480   color: black;
481   background: #eeeeee;
482   font-size: smaller;
483   margin-left: 5em;
484   padding: 0.5ex 0.5em;
485   border: thin solid #aaaaaa;
486 }
487
488
489 /* For emacs users
490  *
491  * Local Variables:
492  * mode: c
493  * c-file-style: cc-mode
494  * End:
495  */