]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - phpwiki-modern.css
autosplit_wikiwords constant replaced by new property of Theme class.
[SourceForge/phpwiki.git] / phpwiki-modern.css
1 /*
2   $Id: phpwiki-modern.css,v 1.6 2002-01-16 20:04:04 carstenklapp Exp $
3
4   Inspiration for this stylesheet:
5
6   http://www.timestretch.com/db/home/load/36/
7   http://www.apache.org/
8
9   Classes:
10
11   div.wikitext - the transformed wiki page text.
12
13   a.wiki             - link to page in wiki.
14   a.named-wiki       - a named link to page in wiki (from e.g. [name|WikiPage]).
15   a.interwiki        - link to page in another wiki
16     span.wikipage    - page name within interwiki link.
17   a.named-interwiki  - link to page in another wiki
18   a.url              - link to external URL from wiki page.
19   a.named-url        - link to external URL from wiki page.
20
21   .wikiunknown a, .wikiunknown u
22   .named-wikiunknown a, .named-wikiunknown u
23   
24   a.wikiaction
25   a.wikiadmin
26   .wikiunsafe
27
28   a.backlinks
29   
30 TODO: Get rid of tables in wikiaction forms.
31 */
32
33 /* NS4 & OmniWeb 4 don't grok @import.  This allows us to put things which
34  * break NS4 and OW4 in another file.
35  */
36 @import url(phpwiki-modern-heavy.css);
37
38 /* FIXME: logo needs to be moved, it's floating upwards in Mozilla for some reason */
39 img { border : 0;
40       vertical-align: baseline; }
41
42 BODY {
43  background: #EEEEEE; /* light grey */
44  margin: 0;
45 }
46
47 BODY { /* user's browser settings */ }
48
49 /*
50  * NS4, defaults from BODY don't always propagate correctly.
51  * So we need this:
52  */ 
53 .toolbar, TD { font-family: arial, helvetica, sans-serif; }
54
55 input.button { font-family: arial, helvetica, sans-serif; }
56
57 .wikitext PRE { font-family: monospace; }
58
59 div.wikitext {
60  background:     white;
61  border:         0.5pt;
62  border-color: #888888;
63  border-style:   solid;
64  padding-left:   0.8em; 
65  padding-right:  0.8em; 
66  padding-top:    0.8em;
67  padding-bottom: 0.8em;
68  margin-left:      1em;
69  margin-right:     1em;
70  margin-top:       1em;
71  margin-bottom:    1em;
72  /* This breaks Netscape 4: (display does not go full width).
73     width: auto;
74  */
75  clear: both;
76 }
77
78 h1, h2, h3 { font-family: Arial, Helvetica, sans-serif; }
79
80 h1 {    color :            #ffffff;
81         background-color : #000000;
82         padding-top :          1em;
83         padding-left :       0.6em;
84         padding-bottom :     0.2em;
85         padding-right :      0.6em;
86 }
87
88 h1 a.backlinks {
89         color :            #ffffff;
90         text-decoration:      none;
91 }
92
93 h2 {
94         color :            #ffffff;
95         background-color : #525D76;
96         padding-top :       0.15em;
97         padding-left :       0.6em;
98         padding-bottom :     0.1em;
99         padding-right :      0.6em;
100 }
101
102 h3 {    color :            #ffffff;
103         background-color : #828da6;
104         padding-top :       0.15em;
105         padding-left :       0.6em;
106         padding-bottom :     0.1em;
107         padding-right :      0.6em;
108         margin-left :          1em;
109 }
110
111 input.wikitext { margin: 0px; }
112
113 .toolbar {
114  color:          black;
115  background:   #dddddd; /* dark grey */
116  border:         0.5pt;
117  border-color: #666666; /* medium grey */
118  border-style:   solid;
119  padding-left:     5pt; 
120  padding-right:    5pt; 
121  padding-top:      2pt;
122  padding-bottom:   3pt;
123  margin:           1em;
124  margin-top:         0;
125  margin-bottom:    2pt;
126  width:            94%;
127 }
128
129 /*
130  * This is a kluge for NS4 which doesn't honor the clear: settings on
131  * .tool-left and .tool-right.
132  *
133  * Putting in explicit <br clear="all"> messes up the formatting in
134  * other browsers.  Instead we'll put in a:
135  *
136  *  <div class="br"><br class="ignore" clear="all"></div>
137  *
138  * The clear:both on div.br seems to work.  And we'll disable the <br> altogether (in
139  * CSS aware browsers) by setting display:none.
140  *
141  * Actually, I haven't yet found a browser which doesn't put a line break
142  * between successive <div>'s.  This makes the <br class="ignore"> completely
143  * unnecessary. 
144  */
145 div.br { clear:both; line-height: 0px; }
146 .ignore { display: none; }
147  
148 div.errors {
149  background:     white;
150  border:          thin;
151  border-color:     red;
152  border-style:  dashed;
153  padding-left:   0.8em; 
154  padding-right:  0.8em; 
155  padding-top:    0.5em;
156  padding-bottom: 0.8em;
157  margin:           1em;
158  /* This breaks Netscape 4: (display does not go full width).
159     width: auto;
160  */
161  clear: both;
162 }
163
164 .errors h4 {
165  color: red;
166  text-decoration: underline;
167  margin: 0px;
168 }
169
170 P.error {
171  font-size: smaller;
172  font-family: monospace;
173  margin: 0px;
174 }
175 .error ul
176 {
177  font-size:     smaller;
178  font-family: monospace;
179 }
180
181 /*
182  * Style for <hr>s in wiki markup.
183  */
184 .wikitext hr { height: 1pt; }
185
186
187 /*
188  * Link styles
189  */
190 /* Wiki Links */
191 a.wiki { text-decoration: none;
192 color: #004662 /* dark cyan */
193 }
194 a.wikiaction:hover {
195   color: #5454ff;  /* blue */
196   padding-top:    1pt;
197   padding-left:   0pt;
198   padding-bottom: 1pt;
199   padding-right:  0pt;
200
201 }
202
203 a.wiki:hover, a.backlinks:hover {
204   color: #5454ff;  /* blue */
205 }
206
207 .wiki  { 
208  font-weight: bold;
209 }
210 /* This is obscene in NS4
211 B .wiki, STRONG .wiki { font-size: larger; }
212 */
213 .wikiaction  { 
214   color: #69798f;  /* pale cyan */
215 }
216
217 /* Unknown links */
218 .wikiunknown a, .named-wikiunknown a, .wikiunknown u
219 { text-decoration: none; }
220
221 .wikiunknown, .named-wikiunknown
222 {color: #600; }
223
224 /* Interwiki links */
225 a.interwiki { text-decoration: none; }
226 .wikipage   { font-weight: bold; }
227
228 .interwiki,
229 I .interwiki .wikipage, EM .interwiki .wikipage
230 { font-style: oblique; }
231
232 .interwiki .wikipage,
233 I .interwiki, EM .interwiki  
234 { font-style: normal; }
235
236 /*
237  * wikiaction, wikiadmin, wikiunsafe:
238  */
239 a.wikiaction, a.wikiadmin       { text-decoration: none; }
240 a.wikiaction, .wikiaction table, span.wikiaction  { /* background-color: #ddd; */ }
241 a.wikiadmin, .wikiadmin table   { /* background-color: #fdd; */ }
242 .wikiunsafe                     { /* background-color: #ccc; */ }
243
244 /*
245  * No border on external link icons.
246  */
247 img.linkicon, img.rssicon       { border: 0px; }
248 img.rssicon             { vertical-align: baseline; }
249 /* This screws up NS4, moved to phpwiki-heavy.css 
250 img.linkicon            { vertical-align: middle; }
251 */
252
253  
254 /*
255  * Put a border around wikiaction forms:
256  * This doesn't work for NS4.
257  */
258 .wikiaction table, .wikiadmin table
259 {
260 /*
261   border-style: ridge;
262   border-width: medium;
263 */
264 }
265 .wikiaction table { border-color: #9cf; }
266 .wikiadmin table  { border-color: #f99; }
267
268 /* Backlinks */
269 A.backlinks { color: #006; }
270
271 /* Make the textarea on the edit page full width */
272 textarea.wikiedit { width: 100%; margin-top: 1ex; }
273
274
275 /* Calendar plugin */
276
277 a.cal-hide, a.cal-arrow { text-decoration: none; }
278 .cal-arrow      { font-weight: bold; }
279 .cal-header     { font-size: larger; }
280 .cal-dayname    { font-size: smaller; text-decoration: underline; }
281 table.cal       { border: thin solid black; } 
282
283
284 /* IncludePage plugin */
285 .transclusion-title {
286   font-style:        oblique;
287   font-size:         smaller; /* 0.75em; */
288   text-decoration: underline;
289   text-align:          right;
290
291
292 div.transclusion { 
293   background:   #eeeeff; /*powder blue */
294   border:         0.5pt;
295   border-color:   white;
296   border-style:   solid;
297   padding-left:   0.8em; 
298   padding-right:  0.8em; 
299   padding-top:    0.8em;
300   padding-bottom: 0.8em;
301   margin-top:       1em;
302   margin-bottom:    1em;
303 }
304
305 /* The transclusion of the TextEditingRules Synopsis on templates/editpage.html */
306 div.wiki-edithelp .transclusion {
307   font-size:   smaller;
308   background:  inherit;
309   padding: 0.5ex 0.5em;
310   margin:     0.2ex 5%;
311 }
312 div.wiki-edithelp .transclusion p {
313   margin: 0;
314 }
315
316 div.wiki-edithelp .wiki {
317   background: #a9a9e6;  /* blue highlight */
318   padding: 1pt;
319 }
320
321 div.wiki-edithelp {
322   background: #eeeeff;  /* powder blue */
323   border:         1pt;
324   border-color: white;
325   border-style: solid;
326   font-size:  smaller;
327   padding: 0.05ex 2pt;
328 }
329   
330 /****************************************************************
331  **
332  ** Diff Output
333  **
334  *****************************************************************/
335 .diff .block    { padding: 0.5ex 0.5em; margin: 0.5ex 0; }
336 .diff .block tt { font-weight: bold; }
337 .diff del,
338 .diff ins       { font-weight: bold; text-decoration: none; }
339
340 /* These screw up NS4 --- moved to phpwiki-heavy.css
341 .diff .block div { position: relative; padding-left: 1.5em; } 
342 .diff .prefix   { position: absolute; left: 0.5em; top: 0; }
343 */
344
345 .diff .block    { background: #ccc; }
346 .diff .context  { background: #fff; }
347 .diff .original,
348 .diff .deleted  { background: #fcc; }
349 .diff .final,
350 .diff .added    { background: #cfc; }
351 /*
352 .diff .original { background: #feb; }
353 .diff .final    { background: #efb; }
354 */
355 /* These don't work in NS4 -- it completely ignores <del> and <ins>. */
356 .diff del       { background: #f99; }
357 .diff ins       { background: #9f9; }
358
359
360
361 /* For emacs users
362  *
363  * Local Variables:
364  * mode: c
365  * c-file-style: cc-mode
366  * End:
367  */