]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - phpwiki.css
new class .numeric for right-aligning numeric text input
[SourceForge/phpwiki.git] / phpwiki.css
1 /*
2   $Id: phpwiki.css,v 1.33 2002-02-08 22:56: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 input.numeric { text-align: right; }
46
47 .wikitext pre { font-family: monospace; }
48
49 div.wikitext {
50  background:    white;
51  border:         thin;
52  border-color:  black;
53  border-style:  solid;
54  padding-left:  0.8em; 
55  padding-right: 0.8em; 
56  padding-top:     0px;
57  padding-bottom:  0px;
58  margin:    0.5ex 0px;
59  /* This breaks Netscape 4: (display does not go full width).
60     width: auto;
61  */
62  clear: both;
63 }
64
65 p.editdate { margin-bottom: 0ex; }
66
67 input.wikitext { margin:0px; }
68
69 div.toolbar { margin: 1ex 0ex; }
70
71 /*
72  * FIXME: how much of this is needed anymore?
73  *
74  * This is a kluge for NS4 which doesn't honor the clear: settings on
75  * .tool-left and .tool-right.
76  *
77  * Putting in explicit <br clear="all"> messes up the formatting in
78  * other browsers.  Instead we'll put in a:
79  *
80  *  <div class="br"><br class="ignore" clear="all"></div>
81  *
82  * The clear:both on DIV.br seems to work.  And we'll disable the <br> altogether (in
83  * CSS aware browsers) by setting display:none.
84  *
85  * Actually, I haven't yet found a browser which doesn't put a line break
86  * between successive <div>'s.  This makes the <br class="ignore"> completely
87  * unnecessary. 
88  */
89 div.br { clear:both; line-height: 0px; }
90 .ignore { display: none; }
91
92 /* FIXME: some problems in NS4 */
93 div.errors {
94  background: #eee;
95  border: medium;
96  border-color: red;
97  border-style: solid;
98  padding-left: 0.8em; 
99  padding-right: 0.8em; 
100  padding-top: 0px;
101  padding-bottom: 0px;
102  margin: 1em;
103  /* This breaks Netscape 4: (display does not go full width).
104     width: auto;
105  */
106  clear: both;
107 }
108
109 /* FIXME: to be cleaned up/simplified */
110 .errors h4 {
111  color:red;
112  text-decoration: underline;
113  margin:0px;
114 }
115
116 p.error {
117  font-size: smaller;
118  font-family: monospace;
119  margin:0px;
120 }
121 .error ul
122 {
123  font-size: smaller;
124  font-family: monospace;
125 }
126
127 /*
128  * Style for <hr>s in wiki markup.
129  */
130 .wikitext hr {
131  background: #666;
132  height: 1px;
133  width: 90%;
134  margin-left:auto;
135  margin-right:auto;
136 /* this is not valid css but NS4 needs it to center the 90% wide line */
137  align: center;
138 }
139
140
141 /*
142  * Link styles
143  */
144 /* Wiki Links */
145 a.wiki { text-decoration: none; }
146 .wiki  { font-weight: bold; }
147 /* This is obscene in NS4
148 b .wiki, strong .wiki { font-size: larger; }
149 */
150
151 /* Unknown links */
152 .wikiunknown a, .named-wikiunknown a, .wikiunknown u
153 { text-decoration: none; }
154
155 .wikiunknown, .named-wikiunknown
156 { color: #600; }
157
158 /* This renders the ? invisible in OW4.1 < sp29 */
159 .wikiunknown A, .named-wikiunknown
160 { color: white; background-color: #600; }
161
162 /* Interwiki links */
163 a.interwiki { text-decoration: none; }
164 .wikipage   { font-weight: bold; }
165
166 .interwiki,
167 i .interwiki .wikipage, em .interwiki .wikipage
168 { font-style: oblique; }
169
170 .interwiki .wikipage,
171 i .interwiki, em .interwiki  
172 { font-style: normal; }
173
174 /*
175  * wikiaction, wikiadmin, wikiunsafe:
176  */
177 a.wikiaction, a.wikiadmin       { text-decoration: none; }
178 a.wikiaction, .wikiaction table, span.wikiaction { background-color: #ddd; }
179 a.wikiadmin, .wikiadmin table   { background-color: #fdd; }
180 .wikiunsafe                     { background-color: #ccc; }
181
182 /*
183  * No border on external link icons.
184  */
185 img.linkicon,
186 img.rssicon     { border: 0px; }
187 img.rssicon     { vertical-align: top; }
188
189 /*
190  * Put a border around wikiaction forms:
191  * This doesn't work for NS4.
192  */
193 .wikiaction table, .wikiadmin table
194 {
195   border-style: ridge;
196   border-width: medium;
197 }
198 .wikiaction table { border-color: #9cf; }
199 .wikiadmin table  { border-color: #f99; }
200
201 /* Backlinks */
202 a.backlinks { color: #006; }
203
204 /* Make the textarea on the edit page full width */
205 textarea.wikiedit { width: 100%; margin-top: 1ex; }
206
207
208 /* Calendar plugin */
209
210 a.cal-hide, a.cal-arrow { text-decoration: none; }
211 .cal-arrow       { font-weight: bold; }
212 table.cal-header { font-size: larger; }
213 .cal-dayname     { font-size: smaller; text-decoration: underline; }
214 td.cal-today,
215  table.cal       { border: thin solid black; } 
216
217 /* IncludePage plugin */
218 .transclusion-title {
219   font-style: oblique;
220   font-size: smaller; /* 0.75em; */
221   text-decoration: underline;
222   text-align: right;
223
224
225 div.transclusion { 
226   background:     #cfc;
227   border:         thin;
228   border-style:  solid;
229   padding-left:  0.8em; 
230   padding-right: 0.8em; 
231   padding-top:     0px;
232   padding-bottom:  0px;
233   margin:    0.5ex 0px;
234 }
235
236 /* The transclusion of the TextEditingRules Synopsis on templates/editpage.html */
237 div.wiki-edithelp .transclusion {
238   font-size:   smaller;
239   background:  inherit;
240   padding: 0.5ex 0.5em;
241   margin:     0.2ex 5%;
242 }
243 div.wiki-edithelp .transclusion p {
244   margin: 0;
245 }
246 div.wiki-edithelp {
247   background: #fff8dc; /* darker ivory */
248   font-size:  smaller;
249   padding: 0.05ex 2pt;
250 }
251   
252 /****************************************************************
253  **
254  ** Diff Output
255  **
256  *****************************************************************/
257 .diff .block    { padding: 0.5ex 0.5em; margin: 0.5ex 0; }
258 .diff .block tt { font-weight: bold; }
259 .diff del,
260 .diff ins       { font-weight: bold; text-decoration: none; }
261
262 /* These screw up NS4 --- moved to phpwiki-heavy.css
263 .diff .block div { position: relative; padding-left: 1.5em; } 
264 .diff .prefix   { position: absolute; left: 0.5em; top: 0; }
265 */
266
267 .diff .block    { background: #ccc; }
268 .diff .context  { background: #fff; }
269 .diff .original,
270 .diff .deleted  { background: #fcc; }
271 .diff .final,
272 .diff .added    { background: #cfc; }
273 /*
274 .diff .original { background: #feb; }
275 .diff .final    { background: #efb; }
276 */
277 /* These don't work in NS4 -- it completely ignores <del> and <ins>. */
278 .diff del       { background: #f99; }
279 .diff ins       { background: #9f9; }
280
281 /* PageList output */
282 .pagelist tr.evenrow { background: #eeeeee; }
283 .pagelist tr.oddrow  { background: white; }
284
285 /* For emacs users
286  *
287  * Local Variables:
288  * mode: c
289  * c-file-style: cc-mode
290  * End:
291  */