]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - phpwiki.css
New theme with sidebar navigation and actions
[SourceForge/phpwiki.git] / phpwiki.css
1 /*
2   $Id: phpwiki.css,v 1.28 2002-01-26 09:19:42 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  * 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 /* This renders the ? invisible in OW4.1 < sp29 */
154 .wikiunknown A, .named-wikiunknown
155 { color: white; background-color: #600; }
156
157 /* Interwiki links */
158 a.interwiki { text-decoration: none; }
159 .wikipage   { font-weight: bold; }
160
161 .interwiki,
162 i .interwiki .wikipage, em .interwiki .wikipage
163 { font-style: oblique; }
164
165 .interwiki .wikipage,
166 i .interwiki, em .interwiki  
167 { font-style: normal; }
168
169 /*
170  * wikiaction, wikiadmin, wikiunsafe:
171  */
172 a.wikiaction, a.wikiadmin       { text-decoration: none; }
173 a.wikiaction, .wikiaction table, span.wikiaction { background-color: #ddd; }
174 a.wikiadmin, .wikiadmin table   { background-color: #fdd; }
175 .wikiunsafe                     { background-color: #ccc; }
176
177 /*
178  * No border on external link icons.
179  */
180 img.linkicon,
181 img.rssicon     { border: 0px; }
182 img.rssicon     { vertical-align: top; }
183
184 /*
185  * Put a border around wikiaction forms:
186  * This doesn't work for NS4.
187  */
188 .wikiaction table, .wikiadmin table
189 {
190   border-style: ridge;
191   border-width: medium;
192 }
193 .wikiaction table { border-color: #9cf; }
194 .wikiadmin table  { border-color: #f99; }
195
196 /* Backlinks */
197 a.backlinks { color: #006; }
198
199 /* Make the textarea on the edit page full width */
200 textarea.wikiedit { width: 100%; margin-top: 1ex; }
201
202
203 /* Calendar plugin */
204
205 a.cal-hide, a.cal-arrow { text-decoration: none; }
206 .cal-arrow      { font-weight: bold; }
207 .cal-header     { font-size: larger; }
208 .cal-dayname    { font-size: smaller; text-decoration: underline; }
209 td.cal-today,
210 table.cal       { border: thin solid black; } 
211
212 /* IncludePage plugin */
213 .transclusion-title {
214   font-style: oblique;
215   font-size: smaller; /* 0.75em; */
216   text-decoration: underline;
217   text-align: right;
218
219
220 div.transclusion { 
221   background:     #cfc;
222   border:         thin;
223   border-style:  solid;
224   padding-left:  0.8em; 
225   padding-right: 0.8em; 
226   padding-top:     0px;
227   padding-bottom:  0px;
228   margin:    0.5ex 0px;
229 }
230
231 /* The transclusion of the TextEditingRules Synopsis on templates/editpage.html */
232 div.wiki-edithelp .transclusion {
233   font-size:   smaller;
234   background:  inherit;
235   padding: 0.5ex 0.5em;
236   margin:     0.2ex 5%;
237 }
238 div.wiki-edithelp .transclusion p {
239   margin: 0;
240 }
241 div.wiki-edithelp {
242   background: #fff8dc; /* darker ivory */
243   font-size:  smaller;
244   padding: 0.05ex 2pt;
245 }
246   
247 /****************************************************************
248  **
249  ** Diff Output
250  **
251  *****************************************************************/
252 .diff .block    { padding: 0.5ex 0.5em; margin: 0.5ex 0; }
253 .diff .block tt { font-weight: bold; }
254 .diff del,
255 .diff ins       { font-weight: bold; text-decoration: none; }
256
257 /* These screw up NS4 --- moved to phpwiki-heavy.css
258 .diff .block div { position: relative; padding-left: 1.5em; } 
259 .diff .prefix   { position: absolute; left: 0.5em; top: 0; }
260 */
261
262 .diff .block    { background: #ccc; }
263 .diff .context  { background: #fff; }
264 .diff .original,
265 .diff .deleted  { background: #fcc; }
266 .diff .final,
267 .diff .added    { background: #cfc; }
268 /*
269 .diff .original { background: #feb; }
270 .diff .final    { background: #efb; }
271 */
272 /* These don't work in NS4 -- it completely ignores <del> and <ins>. */
273 .diff del       { background: #f99; }
274 .diff ins       { background: #9f9; }
275
276 /* PageList output */
277 .pagelist tr.evenrow { background: #eeeeee; }
278 .pagelist tr.oddrow  { background: white; }
279
280 /* For emacs users
281  *
282  * Local Variables:
283  * mode: c
284  * c-file-style: cc-mode
285  * End:
286  */