]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - phpwiki.css
autosplit_wikiwords constant replaced by new property of Theme class.
[SourceForge/phpwiki.git] / phpwiki.css
1 /*
2   $Id: phpwiki.css,v 1.22 2002-01-16 18:12:34 dairiki 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 /* Interwiki links */
154 a.interwiki { text-decoration: none; }
155 .wikipage   { font-weight: bold; }
156
157 .interwiki,
158 i .interwiki .wikipage, em .interwiki .wikipage
159 { font-style: oblique; }
160
161 .interwiki .wikipage,
162 i .interwiki, em .interwiki  
163 { font-style: normal; }
164
165 /*
166  * wikiaction, wikiadmin, wikiunsafe:
167  */
168 a.wikiaction, a.wikiadmin       { text-decoration: none; }
169 a.wikiaction, .wikiaction table, span.wikiaction { background-color: #ddd; }
170 a.wikiadmin, .wikiadmin table   { background-color: #fdd; }
171 .wikiunsafe                     { background-color: #ccc; }
172
173 /* Adds a little more surface area to make actions a little more like
174    buttons. Apparently some versions of ie choke on percentages, so
175    these just are fixed dimensions and may need some tweaking, add or
176    subtract a pixel or so.
177
178    DELETEME: This completely screws up NS4.  (Margins and padding on
179    in-line elements are generally bad for NS4.)  So this belongs in
180    phpwiki-heavy.css.  But it's already there (albeit, with different
181    dimensions.)
182 a.wikiaction, 
183 a.wikiadmin     { padding-top:    0pt;
184                   padding-left:   6pt;
185                   padding-bottom: 1pt;
186                   padding-right:  6pt; }
187 */
188
189 /* reduces the size of "(diff)" buttons in RecentChanges a bit so they
190    don't overlap as much (for mozilla)
191
192    This, too, completely screws up NS4.
193 div.wikitext 
194 .wikiaction     { font-size:  smaller;
195                   padding-top:    0pt;
196                   padding-left:   2pt;
197                   padding-bottom: 0pt;
198                   padding-right:  2pt; }
199 */
200
201 /*
202  * No border on external link icons.
203  */
204 img.linkicon,
205 img.rssicon     { border: 0px; }
206 img.rssicon     { vertical-align: top; }
207 /* This screws up NS4, moved to phpwiki-heavy.css 
208 img.linkicon    { vertical-align: middle; }
209 */
210
211
212 /*
213  * Put a border around wikiaction forms:
214  * This doesn't work for NS4.
215  */
216 .wikiaction table, .wikiadmin table
217 {
218   border-style: ridge;
219   border-width: medium;
220 }
221 .wikiaction table { border-color: #9cf; }
222 .wikiadmin table  { border-color: #f99; }
223
224 /* Backlinks */
225 a.backlinks { color: #006; }
226
227 /* Make the textarea on the edit page full width */
228 textarea.wikiedit { width: 100%; margin-top: 1ex; }
229
230
231 /* Calendar plugin */
232
233 a.cal-hide, a.cal-arrow { text-decoration: none; }
234 .cal-arrow      { font-weight: bold; }
235 .cal-header     { font-size: larger; }
236 .cal-dayname    { font-size: smaller; text-decoration: underline; }
237 table.cal       { border: thin solid black; } 
238
239
240 /* IncludePage plugin */
241 .transclusion-title {
242   font-style: oblique;
243   font-size: smaller; /* 0.75em; */
244   text-decoration: underline;
245   text-align: right;
246
247
248 div.transclusion { 
249   background:     #cfc;
250   border:         thin;
251   border-style:  solid;
252   padding-left:  0.8em; 
253   padding-right: 0.8em; 
254   padding-top:     0px;
255   padding-bottom:  0px;
256   margin:    0.5ex 0px;
257 }
258
259 /* The transclusion of the TextEditingRules Synopsis on templates/editpage.html */
260 div.wiki-edithelp .transclusion {
261   font-size:   smaller;
262   background:  inherit;
263   padding: 0.5ex 0.5em;
264   margin:     0.2ex 5%;
265 }
266 div.wiki-edithelp .transclusion p {
267   margin: 0;
268 }
269 div.wiki-edithelp {
270   background: #fff8dc; /* darker ivory */
271   font-size:  smaller;
272   padding: 0.05ex 2pt;
273 }
274   
275 /****************************************************************
276  **
277  ** Diff Output
278  **
279  *****************************************************************/
280 .diff .block    { padding: 0.5ex 0.5em; margin: 0.5ex 0; }
281 .diff .block tt { font-weight: bold; }
282 .diff del,
283 .diff ins       { font-weight: bold; text-decoration: none; }
284
285 /* These screw up NS4 --- moved to phpwiki-heavy.css
286 .diff .block div { position: relative; padding-left: 1.5em; } 
287 .diff .prefix   { position: absolute; left: 0.5em; top: 0; }
288 */
289
290 .diff .block    { background: #ccc; }
291 .diff .context  { background: #fff; }
292 .diff .original,
293 .diff .deleted  { background: #fcc; }
294 .diff .final,
295 .diff .added    { background: #cfc; }
296 /*
297 .diff .original { background: #feb; }
298 .diff .final    { background: #efb; }
299 */
300 /* These don't work in NS4 -- it completely ignores <del> and <ins>. */
301 .diff del       { background: #f99; }
302 .diff ins       { background: #9f9; }
303
304 /* For emacs users
305  *
306  * Local Variables:
307  * mode: c
308  * c-file-style: cc-mode
309  * End:
310  */