]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - phpwiki.css
Refactor diff code:
[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; }
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 /* This renders the ? invisible in OW4 */
147 .wikiunknown A, .named-wikiunknown
148 { color: white; background-color: #600; }
149
150
151 /* Interwiki links */
152 A.interwiki { text-decoration: none; }
153 .wikipage   { font-weight: bold; }
154
155 .interwiki,
156 I .interwiki .wikipage, EM .interwiki .wikipage
157 { font-style: oblique; }
158
159 .interwiki .wikipage,
160 I .interwiki, EM .interwiki  
161 { font-style: normal; }
162
163 /*
164  * wikiaction, wikiadmin, wikiunsafe:
165  */
166 A.wikiaction, A.wikiadmin       { text-decoration: none; }
167 A.wikiaction, .wikiaction TABLE, SPAN.wikiaction  { background-color: #ddd; }
168 A.wikiadmin, .wikiadmin TABLE   { background-color: #fdd; }
169 .wikiunsafe                     { background-color: #ccc; }
170
171 /*
172  * No border on external link icons.
173  */
174 img.linkicon {
175   border: none;
176   margin-right: 0.5ex;
177   margin-left: 0.25ex;
178   vertical-align: middle /* bottom */;
179 }
180    
181 /*
182  * Put a border around wikiaction forms:
183  * This doesn't work for NS4.
184  */
185 .wikiaction TABLE, .wikiadmin TABLE
186 {
187   border-style: ridge;
188   border-width: medium;
189 }
190 .wikiaction TABLE { border-color: #9cf; }
191 .wikiadmin TABLE  { border-color: #f99; }
192
193 /* Backlinks */
194 A.backlinks { color: #006; }
195
196 /* Make the textarea on the edit page full width */
197 TEXTAREA.wikiedit { width: 100%; margin-top: 1ex; }
198
199
200 /* Calendar plugin */
201
202 a.cal-hide, a.cal-arrow { text-decoration: none; }
203 .cal-arrow { font-weight: bold; }
204 .cal-header { font-size: larger; }
205 .cal-dayname { font-size: smaller; text-decoration: underline; }
206 table.cal { border: thin solid black; } 
207
208
209 /* IncludePage plugin */
210 .transclusion-title {
211   font-style: oblique;
212   font-size: smaller; /* 0.75em; */
213   text-decoration: underline;
214   text-align: right;
215
216
217 div.transclusion { 
218   background: lightgreen;
219   border: thin;
220   border-style: solid;
221   padding-left: 0.8em; 
222   padding-right: 0.8em; 
223   padding-top: 0px;
224   padding-bottom: 0px;
225   margin: 0.5ex 0px;
226 }
227
228 /* Diff output */
229 .diff .block {
230   padding: 0.5ex 0.5em;
231   margin: 0.5ex 0;
232   border: 0.1px; /* hack for NS4 to get background color filled in whole div */
233
234 .diff .block tt { font-weight: bold; }
235
236 .diff .block div { position: relative; padding-left: 1.5em; }
237 .diff .prefix   { position: absolute; left: 0.5em; top: 0; }
238
239 .diff .block    { background: #ccc; }
240
241 .diff .context  { background: white; }
242 .diff .deleted  { background: #fee; }
243 .diff .added    { background: #efe; }
244 .diff .changed  { background: #ffb; }
245
246 .diff del       { background: #fbb; font-weight: bold; text-decoration: none; }
247 .diff ins       { background: #bfb; font-weight: bold; text-decoration: none; }
248
249  
250 /* For emacs users
251  *
252  * Local Variables:
253  * mode: c
254  * c-file-style: cc-mode
255  * End:
256  */