]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - phpwiki.css
Comment out all php_flag lines. Add note.
[SourceForge/phpwiki.git] / phpwiki.css
1 /*
2   $Id: phpwiki.css,v 1.21 2002-01-13 05:39:36 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  * This is a kluge for NS4 which doesn't honor the clear: settings on
69  * .tool-left and .tool-right.
70  *
71  * Putting in explicit <br clear="all"> messes up the formatting in
72  * other browsers.  Instead we'll put in a:
73  *
74  *  <div class="br"><br class="ignore" clear="all"></div>
75  *
76  * The clear:both on DIV.br seems to work.  And we'll disable the <br> altogether (in
77  * CSS aware browsers) by setting display:none.
78  *
79  * Actually, I haven't yet found a browser which doesn't put a line break
80  * between successive <div>'s.  This makes the <br class="ignore"> completely
81  * unnecessary. 
82  */
83 DIV.br { clear:both; line-height: 0px; }
84 .ignore { display: none; }
85  
86 DIV.errors {
87  background: #eee;
88  border: medium;
89  border-color: red;
90  border-style: solid;
91  padding-left: 0.8em; 
92  padding-right: 0.8em; 
93  padding-top: 0px;
94  padding-bottom: 0px;
95  margin: 1em;
96  /* This breaks Netscape 4: (display does not go full width).
97     width: auto;
98  */
99  clear: both;
100 }
101
102 .errors H4 {
103  color:red;
104  text-decoration: underline;
105  margin:0px;
106 }
107
108 P.error {
109  font-size: smaller;
110  font-family: monospace;
111  margin:0px;
112 }
113 .error UL
114 {
115  font-size: smaller;
116  font-family: monospace;
117 }
118
119 /*
120  * Style for <hr>s in wiki markup.
121  */
122 .wikitext HR {
123  background: #666;
124  height: 1px;
125  width: 90%;
126  margin-left:auto;
127  margin-right:auto;
128  align:center; /* for NS4 */
129 }
130
131
132 /*
133  * Link styles
134  */
135 /* Wiki Links */
136 A.wiki { text-decoration: none; }
137 .wiki  { font-weight: bold; }
138 /* This is obscene in NS4
139 B .wiki, STRONG .wiki { font-size: larger; }
140 */
141
142 /* Unknown links */
143 .wikiunknown A, .named-wikiunknown A, .wikiunknown U
144 { text-decoration: none; }
145
146 .wikiunknown, .named-wikiunknown
147 { color: #600; }
148
149 /* Interwiki links */
150 A.interwiki { text-decoration: none; }
151 .wikipage   { font-weight: bold; }
152
153 .interwiki,
154 I .interwiki .wikipage, EM .interwiki .wikipage
155 { font-style: oblique; }
156
157 .interwiki .wikipage,
158 I .interwiki, EM .interwiki  
159 { font-style: normal; }
160
161 /*
162  * wikiaction, wikiadmin, wikiunsafe:
163  */
164 A.wikiaction, A.wikiadmin       { text-decoration: none; }
165 A.wikiaction, .wikiaction TABLE, SPAN.wikiaction { background-color: #ddd; }
166 A.wikiadmin, .wikiadmin TABLE   { background-color: #fdd; }
167 .wikiunsafe                     { background-color: #ccc; }
168
169 /* Adds a little more surface area to make actions a little more like
170    buttons. Apparently some versions of ie choke on percentages, so
171    these just are fixed dimensions and may need some tweaking, add or
172    subtract a pixel or so. */
173 A.wikiaction, 
174 A.wikiadmin     { padding-top:    0pt;
175                   padding-left:   6pt;
176                   padding-bottom: 1pt;
177                   padding-right:  6pt; }
178
179 /* reduces the size of "(diff)" buttons in RecentChanges a bit so they
180    don't overlap as much (for mozilla) */
181 DIV.wikitext 
182 .wikiaction     { font-size:  smaller;
183                   padding-top:    0pt;
184                   padding-left:   2pt;
185                   padding-bottom: 0pt;
186                   padding-right:  2pt; }
187
188 /*
189  * No border on external link icons.
190  */
191 img.linkicon,
192 img.rssicon     { border: 0px; }
193 img.rssicon     { vertical-align: top; }
194 /* This screws up NS4, moved to phpwiki-heavy.css 
195 img.linkicon    { vertical-align: middle; }
196 */
197
198
199 /*
200  * Put a border around wikiaction forms:
201  * This doesn't work for NS4.
202  */
203 .wikiaction TABLE, .wikiadmin TABLE
204 {
205   border-style: ridge;
206   border-width: medium;
207 }
208 .wikiaction TABLE { border-color: #9cf; }
209 .wikiadmin TABLE  { border-color: #f99; }
210
211 /* Backlinks */
212 A.backlinks { color: #006; }
213
214 /* Make the textarea on the edit page full width */
215 TEXTAREA.wikiedit { width: 100%; margin-top: 1ex; }
216
217
218 /* Calendar plugin */
219
220 a.cal-hide, a.cal-arrow { text-decoration: none; }
221 .cal-arrow      { font-weight: bold; }
222 .cal-header     { font-size: larger; }
223 .cal-dayname    { font-size: smaller; text-decoration: underline; }
224 table.cal       { border: thin solid black; } 
225
226
227 /* IncludePage plugin */
228 .transclusion-title {
229   font-style: oblique;
230   font-size: smaller; /* 0.75em; */
231   text-decoration: underline;
232   text-align: right;
233
234
235 div.transclusion { 
236   background:     #cfc;
237   border:         thin;
238   border-style:  solid;
239   padding-left:  0.8em; 
240   padding-right: 0.8em; 
241   padding-top:     0px;
242   padding-bottom:  0px;
243   margin:    0.5ex 0px;
244 }
245
246 /* The transclusion of the TextEditingRules Synopsis on templates/editpage.html */
247 div.wiki-edithelp .transclusion {
248   font-size:   smaller;
249   background:  inherit;
250   padding: 0.5ex 0.5em;
251   margin:     0.2ex 5%;
252 }
253 div.wiki-edithelp .transclusion p {
254   margin: 0;
255 }
256 div.wiki-edithelp {
257   background: #fff8dc; /* darker ivory */
258   font-size:  smaller;
259   padding: 0.05ex 2pt;
260 }
261   
262 /****************************************************************
263  **
264  ** Diff Output
265  **
266  *****************************************************************/
267 .diff .block    { padding: 0.5ex 0.5em; margin: 0.5ex 0; }
268 .diff .block tt { font-weight: bold; }
269 .diff del,
270 .diff ins       { font-weight: bold; text-decoration: none; }
271
272 /* These screw up NS4 --- moved to phpwiki-heavy.css
273 .diff .block div { position: relative; padding-left: 1.5em; } 
274 .diff .prefix   { position: absolute; left: 0.5em; top: 0; }
275 */
276
277 .diff .block    { background: #ccc; }
278 .diff .context  { background: #fff; }
279 .diff .original,
280 .diff .deleted  { background: #fcc; }
281 .diff .final,
282 .diff .added    { background: #cfc; }
283 /*
284 .diff .original { background: #feb; }
285 .diff .final    { background: #efb; }
286 */
287 /* These don't work in NS4 -- it completely ignores <del> and <ins>. */
288 .diff del       { background: #f99; }
289 .diff ins       { background: #9f9; }
290
291
292
293 /* For emacs users
294  *
295  * Local Variables:
296  * mode: c
297  * c-file-style: cc-mode
298  * End:
299  */