]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - phpwiki.css
troubleshooting tip, note about schema file with latest pgsql
[SourceForge/phpwiki.git] / phpwiki.css
1 /*
2   Classes:
3
4   DIV.wikitext - the transformed wiki page text.
5
6   A.wiki           - link to page in wiki.
7   A.named-wiki    - a named link to page in wiki (from e.g. [name|WikiPage]).
8   A.interwiki     - link to page in another wiki
9     SPAN.wikipage    - page name within interwiki link.
10   A.named-interwiki  - link to page in another wiki
11   A.url           - link to external URL from wiki page.
12   A.named-url     - link to external URL from wiki page.
13
14   .wikiunknown A, .wikiunknown U
15   .named-wikiunknown A, .named-wikiunknown U
16   
17   A.wikiaction
18   A.wikiadmin
19   .wikiunsafe
20
21   A.backlinks
22   
23 TODO: Get rid of tables in wikiaction forms.
24 */
25
26 /* NS4 & OmniWeb 4 don't grok @import.  This allows us to put things which
27  * break NS4 and OW4 in another file.
28  */
29 @import url(phpwiki-heavy.css);
30
31 BODY { background: ivory; } //#ffe
32
33 BODY { font-family: arial, helvetica, sans-serif; }
34
35 /*
36  * NS4, defaults from BODY don't always propagate correctly.
37  * So we need this:
38  */ 
39 .wikitext, .toolbar, P, TD { font-family: arial, helvetica, sans-serif; }
40
41 INPUT.button { font-family: arial, helvetica, sans-serif; }
42
43 .wikitext PRE { font-family: monospace; }
44
45 DIV.wikitext {
46  background: white;
47  border: thin;
48  border-color: black;
49  border-style: solid;
50  padding-left: 0.8em; 
51  padding-right: 0.8em; 
52  padding-top: 0px;
53  padding-bottom: 0px;
54  margin: 0.5ex 0px;
55  /* This breaks Netscape 4: (display does not go full width).
56     width: auto;
57  */
58  clear: both;
59 }
60
61 INPUT.wikitext { margin:0px; }
62
63 DIV.toolbar { margin: 1ex 0ex; }
64
65 /*
66  * This is a kluge for NS4 which doesn't honor the clear: settings on
67  * .tool-left and .tool-right.
68  *
69  * Putting in explicit <br clear="all"> messes up the formatting in
70  * other browsers.  Instead we'll put in a:
71  *
72  *  <div class="br"><br class="ignore" clear="all"></div>
73  *
74  * The clear:both on DIV.br seems to work.  And we'll disable the <br> altogether (in
75  * CSS aware browsers) by setting display:none.
76  *
77  * Actually, I haven't yet found a browser which doesn't put a line break
78  * between successive <div>'s.  This makes the <br class="ignore"> completely
79  * unnecessary. 
80  */
81 DIV.br { clear:both; line-height: 0px; }
82 .ignore { display: none; }
83  
84 DIV.errors {
85  background: #eee;
86  border: medium;
87  border-color: red;
88  border-style: solid;
89  padding-left: 0.8em; 
90  padding-right: 0.8em; 
91  padding-top: 0px;
92  padding-bottom: 0px;
93  margin: 1em;
94  /* This breaks Netscape 4: (display does not go full width).
95     width: auto;
96  */
97  clear: both;
98 }
99
100 .errors H4 {
101  color:red;
102  text-decoration: underline;
103  margin:0px;
104 }
105
106 P.error {
107  font-size: smaller;
108  font-family: monospace;
109  margin:0px;
110 }
111 .error UL
112 {
113  font-size: smaller;
114  font-family: monospace;
115 }
116
117 /*
118  * Style for <hr>s in wiki markup.
119  */
120 .wikitext HR {
121  background: #666;
122  height: 1px;
123  width: 90%;
124  margin-left:auto;
125  margin-right:auto;
126  align:center; /* for NS4 */
127 }
128
129
130 /*
131  * Link styles
132  */
133 /* Wiki Links */
134 A.wiki { text-decoration: none; }
135 .wiki  { font-weight: bold; }
136 /* This is obscene in NS4
137 B .wiki, STRONG .wiki { font-size: larger; }
138 */
139
140 /* Unknown links */
141 .wikiunknown A, .named-wikiunknown A, .wikiunknown U
142 { text-decoration: none; }
143
144 .wikiunknown, .named-wikiunknown
145 {color: #600; }
146
147 /* Interwiki links */
148 A.interwiki { text-decoration: none; }
149 .wikipage   { font-weight: bold; }
150
151 .interwiki,
152 I .interwiki .wikipage, EM .interwiki .wikipage
153 { font-style: oblique; }
154
155 .interwiki .wikipage,
156 I .interwiki, EM .interwiki  
157 { font-style: normal; }
158
159 /*
160  * wikiaction, wikiadmin, wikiunsafe:
161  */
162 A.wikiaction, A.wikiadmin       { text-decoration: none; }
163 A.wikiaction, .wikiaction TABLE, SPAN.wikiaction  { background-color: #ddd; }
164 A.wikiadmin, .wikiadmin TABLE   { background-color: #fdd; }
165 .wikiunsafe                     { background-color: #ccc; }
166
167 /*
168  * No border on external link icons.
169  */
170 img.linkicon, img.rssicon       { border: 0px; }
171 img.rssicon             { vertical-align: top; }
172 /* This screws up NS4, moved to phpwiki-heavy.css 
173 img.linkicon            { vertical-align: middle; }
174 */
175
176  
177 /*
178  * Put a border around wikiaction forms:
179  * This doesn't work for NS4.
180  */
181 .wikiaction TABLE, .wikiadmin TABLE
182 {
183   border-style: ridge;
184   border-width: medium;
185 }
186 .wikiaction TABLE { border-color: #9cf; }
187 .wikiadmin TABLE  { border-color: #f99; }
188
189 /* Backlinks */
190 A.backlinks { color: #006; }
191
192 /* Make the textarea on the edit page full width */
193 TEXTAREA.wikiedit { width: 100%; margin-top: 1ex; }
194
195
196 /* Calendar plugin */
197
198 a.cal-hide, a.cal-arrow { text-decoration: none; }
199 .cal-arrow { font-weight: bold; }
200 .cal-header { font-size: larger; }
201 .cal-dayname { font-size: smaller; text-decoration: underline; }
202 table.cal { border: thin solid black; } 
203
204
205 /* IncludePage plugin */
206 .transclusion-title {
207   font-style: oblique;
208   font-size: smaller; /* 0.75em; */
209   text-decoration: underline;
210   text-align: right;
211
212
213 div.transclusion { 
214   background: #cfc;
215   border: thin;
216   border-style: solid;
217   padding-left: 0.8em; 
218   padding-right: 0.8em; 
219   padding-top: 0px;
220   padding-bottom: 0px;
221   margin: 0.5ex 0px;
222 }
223
224 /* The transclusion of the TextEditingRules Synopsis on templates/editpage.html */
225 div.wiki-edithelp .transclusion {
226   font-size: smaller;
227   background: inherit;
228   padding: 0.5ex 0.5em;
229   margin: 0.2ex 5%;
230 }
231 div.wiki-edithelp .transclusion p {
232   margin: 0;
233 }
234 div.wiki-edithelp {
235   background: #fff8dc; /* darker ivory */
236   font-size: smaller;
237   padding: 0.05ex 1%;
238 }
239   
240 /****************************************************************
241  **
242  ** Diff Output
243  **
244  *****************************************************************/
245 .diff .block    { padding: 0.5ex 0.5em; margin: 0.5ex 0; }
246 .diff .block tt { font-weight: bold; }
247 .diff del,
248 .diff ins       { font-weight: bold; text-decoration: none; }
249
250 /* These screw up NS4 --- moved to phpwiki-heavy.css
251 .diff .block div { position: relative; padding-left: 1.5em; } 
252 .diff .prefix   { position: absolute; left: 0.5em; top: 0; }
253 */
254
255 .diff .block    { background: #ccc; }
256 .diff .context  { background: #fff; }
257 .diff .original,
258 .diff .deleted  { background: #fcc; }
259 .diff .final,
260 .diff .added    { background: #cfc; }
261 /*
262 .diff .original { background: #feb; }
263 .diff .final    { background: #efb; }
264 */
265 /* These don't work in NS4 -- it completely ignores <del> and <ins>. */
266 .diff del       { background: #f99; }
267 .diff ins       { background: #9f9; }
268
269
270
271 /* For emacs users
272  *
273  * Local Variables:
274  * mode: c
275  * c-file-style: cc-mode
276  * End:
277  */