]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - phpwiki.css
Jeff's hacks II.
[SourceForge/phpwiki.git] / phpwiki.css
1 /*
2   Classes:
3
4   DIV.wikitext - the transformed wiki page text.
5
6   A.wiki           - link to page in wiki.
7   A.named-wiki    - a named link to page in wiki (from e.g. [name|WikiPage]).
8   A.interwiki     - link to page in another wiki
9     SPAN.wikipage    - page name within interwiki link.
10   A.named-interwiki  - link to page in another wiki
11   A.url           - link to external URL from wiki page.
12   A.named-url     - link to external URL from wiki page.
13
14   .wikiunknown A, .wikiunknown U
15   .named-wikiunknown A, .named-wikiunknown U
16   
17   A.wikiaction
18   A.wikiadmin
19   .wikiunsafe
20
21   A.backlinks
22   
23 TODO: Get rid of tables in wikiaction forms.
24 */
25
26 /* NS4 doesn't grok @import.  This allows us to put things which break NS4
27  * in another file.
28  */
29 @import url(phpwiki-heavy.css);
30
31 BODY { background: ivory; }
32
33 BODY { font-family: arial, helvetica, sans-serif; }
34
35 /*
36  * NS4, defaults from BODY don't always propagate correctly.
37  * So we need this:
38  */ 
39 .wikitext, .toolbar, P, TD { font-family: arial, helvetica, sans-serif; }
40
41 INPUT.button { font-family: arial, helvetica, sans-serif; }
42
43 .wikitext PRE { font-family: monospace; }
44
45 DIV.wikitext {
46  background: white;
47  border: thin;
48  border-color: black;
49  border-style: solid;
50  padding-left: 0.8em; 
51  padding-right: 0.8em; 
52  padding-top: 0px;
53  padding-bottom: 0px;
54  margin: 0.5ex 0px;
55  /* This breaks Netscape 4: (display does not go full width).
56     width: auto;
57  */
58  clear: both;
59 }
60
61 INPUT.wikitext { margin:0px; }
62
63 DIV.toolbar { margin: 1ex 0ex; }
64
65 /*
66  * This is a kluge for NS4 which doesn't honor the clear: settings on
67  * .tool-left and .tool-right.
68  *
69  * Putting in explicit <br clear="all"> messes up the formatting in
70  * other browsers.  Instead we'll put in a:
71  *
72  *  <div class="br"><br class="ignore" clear="all"></div>
73  *
74  * The clear:both on DIV.br seems to work.  And we'll disable the <br> altogether (in
75  * CSS aware browsers) by setting display:none.
76  *
77  * Actually, I haven't yet found a browser which doesn't put a line break
78  * between successive <div>'s.  This makes the <br class="ignore"> completely
79  * unnecessary. 
80  */
81 DIV.br { clear:both; line-height: 0px; }
82 .ignore { display: none; }
83  
84 DIV.errors {
85  background: #eee;
86  border: medium;
87  border-color: red;
88  border-style: solid;
89  padding-left: 0.8em; 
90  padding-right: 0.8em; 
91  padding-top: 0px;
92  padding-bottom: 0px;
93  margin: 1em;
94  /* This breaks Netscape 4: (display does not go full width).
95     width: auto;
96  */
97  clear: both;
98 }
99
100 .errors H4 {
101  color:red;
102  text-decoration: underline;
103  margin:0px;
104 }
105
106 P.error {
107  font-size: smaller;
108  font-family: monospace;
109  margin:0px;
110 }
111 .error UL
112 {
113  font-size: smaller;
114  font-family: monospace;
115 }
116
117 /*
118  * Style for <hr>s in wiki markup.
119  */
120 .wikitext HR {
121  background: #666;
122  height: 1px;
123  width: 90%;
124  margin-left:auto;
125  margin-right:auto;
126  align:center; /* for NS4 */
127 }
128
129
130 /*
131  * Link styles
132  */
133 /* Wiki Links */
134 A.wiki { text-decoration: none; }
135 .wiki  { font-weight: bold; }
136 /* This is obscene in NS4
137 B .wiki, STRONG .wiki { font-size: larger; }
138 */
139
140 /* Unknown links */
141 .wikiunknown A, .named-wikiunknown A, .wikiunknown U
142 { text-decoration: none; }
143
144 .wikiunknown, .named-wikiunknown
145 {color: #600; }
146 .wikiunknown A, .named-wikiunknown
147 { color: white; background-color: #600; }
148
149
150 /* Interwiki links */
151 A.interwiki { text-decoration: none; }
152 .wikipage   { font-weight: bold; }
153
154 .interwiki,
155 I .interwiki .wikipage, EM .interwiki .wikipage
156 { font-style: oblique; }
157
158 .interwiki .wikipage,
159 I .interwiki, EM .interwiki  
160 { font-style: normal; }
161
162 /*
163  * wikiaction, wikiadmin, wikiunsafe:
164  */
165 A.wikiaction, A.wikiadmin       { text-decoration: none; }
166 A.wikiaction, .wikiaction TABLE, SPAN.wikiaction  { background-color: #ddd; }
167 A.wikiadmin, .wikiadmin TABLE   { background-color: #fdd; }
168 .wikiunsafe                     { background-color: #ccc; }
169
170 /*
171  * Put a border around wikiaction forms:
172  * This doesn't work for NS4.
173  */
174 .wikiaction TABLE, .wikiadmin TABLE
175 {
176   border-style: ridge;
177   border-width: medium;
178 }
179 .wikiaction TABLE { border-color: #9cf; }
180 .wikiadmin TABLE  { border-color: #f99; }
181
182 /* Backlinks */
183 A.backlinks { color: #006; }
184
185 /* Make the textarea on the edit page full width */
186 TEXTAREA.wikiedit { width: 100%; margin-top: 1ex; }
187
188 /* For emacs users
189  *
190  * Local Variables:
191  * mode: c
192  * c-file-style: cc-mode
193  * End:
194  */