]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - phpwiki-heavy.css
about 45 messages changed or added
[SourceForge/phpwiki.git] / phpwiki-heavy.css
1 /**
2  * $Id: phpwiki-heavy.css,v 1.21 2002-02-17 01:27:34 carstenklapp Exp $
3  *
4  * This is stuff which should be in phpwiki.css, but which breaks Netscape 4.
5  *
6  * The use of these css functions are generally bad for NS4:
7  * <ol>
8  * <li> NS4 adds the equivalent of a <br> on inline elements with
9  *      margins, padding and borders.
10  * <li> Background colors are not applied properly to inline elements with
11  *      padding. The resulting effect is visually like an "internal margin"
12  *      rather than a padding.
13  * <li> Specifying a color or background as "inherit" produces unpredictable
14  *      results, often yielding a lime green color.
15  * <li> Image alignment and text-alignment in css gives seemingly random and
16  *      unpredictable positioning of the element on the page.
17  * </ol>
18  */
19
20 /* Hide the elements we put in just to get around NS4 bugs. */
21 div.br { display: none; }
22
23 /* This makes spacings in NS4 too big. */
24 .toolbar, div.toolbar { margin: 0.5ex 0ex; }
25
26 /* This breaks NS4, but is necessary for IE4. */
27 div.wikitext { width: auto; }
28
29
30 /**
31  * General
32  */
33 /* for NS4 */
34 img { vertical-align: baseline; }
35 input { margin: 0.1em; }
36 input.numeric { text-align: right; }
37
38
39 /**
40  * Wiki Forms
41  * 
42  * The div inside the wikiadmin upload form does not
43  * have a class yet, so it must be referenced indirectly
44  */
45 /* div.wikiaction, div.wikiadmin { */
46 div.wikiaction, form.wikiadmin div {
47   border: 1px inset #006;
48   margin-top: 0.5ex;
49   margin-bottom: 0.5ex;
50   padding: 0.5ex 0.5em;
51   /* Emulate the display behaviour of a table, to shrink it's width.
52    * ie5.1Mac ignores this */
53   display: table;
54 }
55
56 /* Add space between the input field and following buttons, but not after the last button. */
57 div.wikiaction input[type=text], div.wikiadmin input[type=text], form.wikiadmin input[type=file] { margin-right: 0.5em; }
58
59
60 /**
61  * Links
62  */
63
64 /* Make wikiaction links look like buttons */ 
65 a.wikiaction, a.wikiadmin, a.wikiunsafe,
66 input.wikiaction, input.wikiadmin, input.wikiunsafe, input.button {
67   color: black;
68   border: 1px outset #006;
69   padding-top:    0.2ex;
70   padding-bottom: 0.1ex;
71   padding-left:  .5em;
72   padding-right: .5em;
73 }
74
75 /* Prevent buttons from overlapping when the toolbar is wrapped. */
76 a.wikiaction, a.wikiadmin { line-height: 2.6ex; }
77
78 /* QuestionMark */
79 .wikiunknown a, .named-wikiunknown a {
80   border: 1px outset black;
81   padding-left:  1px;
82   padding-right: 1px;
83   padding-top: 1px;
84   margin-right: 1px;
85 }
86
87 /* Link icons */
88 img.linkicon { vertical-align: middle; }
89
90
91 /**
92  * Edit Page & View Source
93  */
94 /* color: inherit; and background: inherit; display as lime in NS4 */
95
96 /**
97  * Diff Output
98  */
99 .diff .block div {
100   position: relative;
101   padding-left: 1.5em;
102
103 .diff .prefix {
104   position: absolute;
105   left: 0;
106   top:  0;
107 }
108