]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - phpwiki.css
REQUIRE_SIGNIN_BEFORE_EDIT make the UserPage plugin obsolete.
[SourceForge/phpwiki.git] / phpwiki.css
1 /*
2   $Id: phpwiki.css,v 1.25 2002-01-23 03:24:01 carstenklapp Exp $
3
4   Classes:
5
6   div.wikitext - the transformed wiki page text.
7
8   a.wiki            - link to page in wiki.
9   a.named-wiki      - a named link to page in wiki (from e.g. [name|WikiPage]).
10   a.interwiki       - link to page in another wiki
11     span.wikipage   - page name within interwiki link.
12   a.named-interwiki - link to page in another wiki
13   a.url             - link to external URL from wiki page.
14   a.named-url       - link to external URL from wiki page.
15
16   .wikiunknown a, .wikiunknown u
17   .named-wikiunknown a, .named-wikiunknown u
18   
19   a.wikiaction
20   a.wikiadmin
21   .wikiunsafe
22
23   a.backlinks
24   
25 TODO: Get rid of tables in wikiaction forms.
26 */
27
28 /* NS4 doesn't grok @import.  This allows us to put things which
29  * break NS4 in another file. As of OmniWeb 4.1, OW now @imports :-(
30  */
31 @import url(phpwiki-heavy.css);
32
33 body { background: ivory; } /* #ffe */
34
35 body { font-family: arial, helvetica, sans-serif; }
36
37 /*
38  * NS4, defaults from BODY don't always propagate correctly.
39  * So we need this:
40  */
41 .wikitext, .toolbar, p, td { font-family: arial, helvetica, sans-serif; }
42
43 input.button { font-family: arial, helvetica, sans-serif; }
44
45 .wikitext pre { font-family: monospace; }
46
47 div.wikitext {
48  background:    white;
49  border:         thin;
50  border-color:  black;
51  border-style:  solid;
52  padding-left:  0.8em; 
53  padding-right: 0.8em; 
54  padding-top:     0px;
55  padding-bottom:  0px;
56  margin:    0.5ex 0px;
57  /* This breaks Netscape 4: (display does not go full width).
58     width: auto;
59  */
60  clear: both;
61 }
62
63 input.wikitext { margin:0px; }
64
65 div.toolbar { margin: 1ex 0ex; }
66
67 /*
68  * FIXME: how much of this is needed anymore?
69  *
70  * This is a kluge for NS4 which doesn't honor the clear: settings on
71  * .tool-left and .tool-right.
72  *
73  * Putting in explicit <br clear="all"> messes up the formatting in
74  * other browsers.  Instead we'll put in a:
75  *
76  *  <div class="br"><br class="ignore" clear="all"></div>
77  *
78  * The clear:both on DIV.br seems to work.  And we'll disable the <br> altogether (in
79  * CSS aware browsers) by setting display:none.
80  *
81  * Actually, I haven't yet found a browser which doesn't put a line break
82  * between successive <div>'s.  This makes the <br class="ignore"> completely
83  * unnecessary. 
84  */
85 div.br { clear:both; line-height: 0px; }
86 .ignore { display: none; }
87
88 /* FIXME: some problems in NS4 */
89 div.errors {
90  background: #eee;
91  border: medium;
92  border-color: red;
93  border-style: solid;
94  padding-left: 0.8em; 
95  padding-right: 0.8em; 
96  padding-top: 0px;
97  padding-bottom: 0px;
98  margin: 1em;
99  /* This breaks Netscape 4: (display does not go full width).
100     width: auto;
101  */
102  clear: both;
103 }
104
105 /* FIXME: to be cleaned up/simplified */
106 .errors h4 {
107  color:red;
108  text-decoration: underline;
109  margin:0px;
110 }
111
112 p.error {
113  font-size: smaller;
114  font-family: monospace;
115  margin:0px;
116 }
117 .error ul
118 {
119  font-size: smaller;
120  font-family: monospace;
121 }
122
123 /*
124  * Style for <hr>s in wiki markup.
125  */
126 .wikitext hr {
127  background: #666;
128  height: 1px;
129  width: 90%;
130  margin-left:auto;
131  margin-right:auto;
132  align:center; /* for NS4 */
133 }
134
135
136 /*
137  * Link styles
138  */
139 /* Wiki Links */
140 a.wiki { text-decoration: none; }
141 .wiki  { font-weight: bold; }
142 /* This is obscene in NS4
143 b .wiki, strong .wiki { font-size: larger; }
144 */
145
146 /* Unknown links */
147 .wikiunknown a, .named-wikiunknown a, .wikiunknown u
148 { text-decoration: none; }
149
150 .wikiunknown, .named-wikiunknown
151 { color: #600; }
152
153 /* This renders the ? invisible in OW4.1 < sp29 */
154 .wikiunknown A, .named-wikiunknown
155 { color: white; background-color: #600; }
156
157 /* Interwiki links */
158 a.interwiki { text-decoration: none; }
159 .wikipage   { font-weight: bold; }
160
161 .interwiki,
162 i .interwiki .wikipage, em .interwiki .wikipage
163 { font-style: oblique; }
164
165 .interwiki .wikipage,
166 i .interwiki, em .interwiki  
167 { font-style: normal; }
168
169 /*
170  * wikiaction, wikiadmin, wikiunsafe:
171  */
172 a.wikiaction, a.wikiadmin       { text-decoration: none; }
173 a.wikiaction, .wikiaction table, span.wikiaction { background-color: #ddd; }
174 a.wikiadmin, .wikiadmin table   { background-color: #fdd; }
175 .wikiunsafe                     { background-color: #ccc; }
176
177 /* Adds a little more surface area to make actions a little more like
178    buttons. Apparently some versions of ie choke on percentages, so
179    these just are fixed dimensions and may need some tweaking, add or
180    subtract a pixel or so.
181
182    DELETEME: This completely screws up NS4.  (Margins and padding on
183    in-line elements are generally bad for NS4.)  So this belongs in
184    phpwiki-heavy.css.  But it's already there (albeit, with different
185    dimensions.)
186 a.wikiaction, 
187 a.wikiadmin     { padding-top:    0pt;
188                   padding-left:   6pt;
189                   padding-bottom: 1pt;
190                   padding-right:  6pt; }
191 */
192
193 /* reduces the size of "(diff)" buttons in RecentChanges a bit so they
194    don't overlap as much (for mozilla)
195
196    This, too, completely screws up NS4.
197 div.wikitext 
198 .wikiaction     { font-size:  smaller;
199                   padding-top:    0pt;
200                   padding-left:   2pt;
201                   padding-bottom: 0pt;
202                   padding-right:  2pt; }
203 */
204
205 /*
206  * No border on external link icons.
207  */
208 img.linkicon,
209 img.rssicon     { border: 0px; }
210 img.rssicon     { vertical-align: top; }
211 /* This screws up NS4, moved to phpwiki-heavy.css 
212 img.linkicon    { vertical-align: middle; }
213 */
214
215
216 /*
217  * Put a border around wikiaction forms:
218  * This doesn't work for NS4.
219  */
220 .wikiaction table, .wikiadmin table
221 {
222   border-style: ridge;
223   border-width: medium;
224 }
225 .wikiaction table { border-color: #9cf; }
226 .wikiadmin table  { border-color: #f99; }
227
228 /* Backlinks */
229 a.backlinks { color: #006; }
230
231 /* Make the textarea on the edit page full width */
232 textarea.wikiedit { width: 100%; margin-top: 1ex; }
233
234
235 /* Calendar plugin */
236
237 a.cal-hide, a.cal-arrow { text-decoration: none; }
238 .cal-arrow      { font-weight: bold; }
239 .cal-header     { font-size: larger; }
240 .cal-dayname    { font-size: smaller; text-decoration: underline; }
241 table.cal       { border: thin solid black; } 
242
243
244 /* IncludePage plugin */
245 .transclusion-title {
246   font-style: oblique;
247   font-size: smaller; /* 0.75em; */
248   text-decoration: underline;
249   text-align: right;
250
251
252 div.transclusion { 
253   background:     #cfc;
254   border:         thin;
255   border-style:  solid;
256   padding-left:  0.8em; 
257   padding-right: 0.8em; 
258   padding-top:     0px;
259   padding-bottom:  0px;
260   margin:    0.5ex 0px;
261 }
262
263 /* The transclusion of the TextEditingRules Synopsis on templates/editpage.html */
264 div.wiki-edithelp .transclusion {
265   font-size:   smaller;
266   background:  inherit;
267   padding: 0.5ex 0.5em;
268   margin:     0.2ex 5%;
269 }
270 div.wiki-edithelp .transclusion p {
271   margin: 0;
272 }
273 div.wiki-edithelp {
274   background: #fff8dc; /* darker ivory */
275   font-size:  smaller;
276   padding: 0.05ex 2pt;
277 }
278   
279 /****************************************************************
280  **
281  ** Diff Output
282  **
283  *****************************************************************/
284 .diff .block    { padding: 0.5ex 0.5em; margin: 0.5ex 0; }
285 .diff .block tt { font-weight: bold; }
286 .diff del,
287 .diff ins       { font-weight: bold; text-decoration: none; }
288
289 /* These screw up NS4 --- moved to phpwiki-heavy.css
290 .diff .block div { position: relative; padding-left: 1.5em; } 
291 .diff .prefix   { position: absolute; left: 0.5em; top: 0; }
292 */
293
294 .diff .block    { background: #ccc; }
295 .diff .context  { background: #fff; }
296 .diff .original,
297 .diff .deleted  { background: #fcc; }
298 .diff .final,
299 .diff .added    { background: #cfc; }
300 /*
301 .diff .original { background: #feb; }
302 .diff .final    { background: #efb; }
303 */
304 /* These don't work in NS4 -- it completely ignores <del> and <ins>. */
305 .diff del       { background: #f99; }
306 .diff ins       { background: #9f9; }
307
308 /* PageList output */
309 tr.pagelist .evenrow { background: #eeeeee; }
310 tr.pagelist .oddrow  { background: white; }
311
312 /* For emacs users
313  *
314  * Local Variables:
315  * mode: c
316  * c-file-style: cc-mode
317  * End:
318  */