2 $Id: phpwiki.css,v 1.22 2002-01-16 18:12:34 dairiki Exp $
6 div.wikitext - the transformed wiki page text.
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.
16 .wikiunknown a, .wikiunknown u
17 .named-wikiunknown a, .named-wikiunknown u
25 TODO: Get rid of tables in wikiaction forms.
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 :-(
31 @import url(phpwiki-heavy.css);
33 body { background: ivory; } /* #ffe */
35 body { font-family: arial, helvetica, sans-serif; }
38 * NS4, defaults from BODY don't always propagate correctly.
41 .wikitext, .toolbar, p, td { font-family: arial, helvetica, sans-serif; }
43 input.button { font-family: arial, helvetica, sans-serif; }
45 .wikitext pre { font-family: monospace; }
57 /* This breaks Netscape 4: (display does not go full width).
63 input.wikitext { margin:0px; }
65 div.toolbar { margin: 1ex 0ex; }
68 * FIXME: how much of this is needed anymore?
70 * This is a kluge for NS4 which doesn't honor the clear: settings on
71 * .tool-left and .tool-right.
73 * Putting in explicit <br clear="all"> messes up the formatting in
74 * other browsers. Instead we'll put in a:
76 * <div class="br"><br class="ignore" clear="all"></div>
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.
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
85 div.br { clear:both; line-height: 0px; }
86 .ignore { display: none; }
88 /* FIXME: some problems in NS4 */
99 /* This breaks Netscape 4: (display does not go full width).
105 /* FIXME: to be cleaned up/simplified */
108 text-decoration: underline;
114 font-family: monospace;
120 font-family: monospace;
124 * Style for <hr>s in wiki markup.
132 align:center; /* for NS4 */
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; }
147 .wikiunknown a, .named-wikiunknown a, .wikiunknown u
148 { text-decoration: none; }
150 .wikiunknown, .named-wikiunknown
153 /* Interwiki links */
154 a.interwiki { text-decoration: none; }
155 .wikipage { font-weight: bold; }
158 i .interwiki .wikipage, em .interwiki .wikipage
159 { font-style: oblique; }
161 .interwiki .wikipage,
162 i .interwiki, em .interwiki
163 { font-style: normal; }
166 * wikiaction, wikiadmin, wikiunsafe:
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; }
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.
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
183 a.wikiadmin { padding-top: 0pt;
186 padding-right: 6pt; }
189 /* reduces the size of "(diff)" buttons in RecentChanges a bit so they
190 don't overlap as much (for mozilla)
192 This, too, completely screws up NS4.
194 .wikiaction { font-size: smaller;
198 padding-right: 2pt; }
202 * No border on external link icons.
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; }
213 * Put a border around wikiaction forms:
214 * This doesn't work for NS4.
216 .wikiaction table, .wikiadmin table
219 border-width: medium;
221 .wikiaction table { border-color: #9cf; }
222 .wikiadmin table { border-color: #f99; }
225 a.backlinks { color: #006; }
227 /* Make the textarea on the edit page full width */
228 textarea.wikiedit { width: 100%; margin-top: 1ex; }
231 /* Calendar plugin */
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; }
240 /* IncludePage plugin */
241 .transclusion-title {
243 font-size: smaller; /* 0.75em; */
244 text-decoration: underline;
253 padding-right: 0.8em;
259 /* The transclusion of the TextEditingRules Synopsis on templates/editpage.html */
260 div.wiki-edithelp .transclusion {
263 padding: 0.5ex 0.5em;
266 div.wiki-edithelp .transclusion p {
270 background: #fff8dc; /* darker ivory */
275 /****************************************************************
279 *****************************************************************/
280 .diff .block { padding: 0.5ex 0.5em; margin: 0.5ex 0; }
281 .diff .block tt { font-weight: bold; }
283 .diff ins { font-weight: bold; text-decoration: none; }
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; }
290 .diff .block { background: #ccc; }
291 .diff .context { background: #fff; }
293 .diff .deleted { background: #fcc; }
295 .diff .added { background: #cfc; }
297 .diff .original { background: #feb; }
298 .diff .final { background: #efb; }
300 /* These don't work in NS4 -- it completely ignores <del> and <ins>. */
301 .diff del { background: #f99; }
302 .diff ins { background: #9f9; }
308 * c-file-style: cc-mode