source: trunk/doc/eclipseos2-xxe.css@ 23

Last change on this file since 23 was 9, checked in by lpino, 18 years ago
  • Initial commit
File size: 8.1 KB
Line 
1/*
2 * A CSS stylesheet for XHTML 1.0 *Strict DTD*
3 *
4 * A basic (default) CSS for XXE and eclipseos2 project
5 *
6 * Changed from xhtml.css a bit (some bugs fixed and made more
7 * comparable with Mozila defaults).
8 *
9 * Since XXE needs all elements to be defined explictly (but
10 * browsers can interpret this definition in the other way)
11 * we make a separate (more narrow) CSS for browser and just paste
12 * it at the end of the file to simplify the synchronization of
13 * updates.
14 *
15 */
16
17html,
18head,
19body,
20div,
21p,
22h1, h2, h3, h4, h5, h6,
23ul, ol, li,
24dl, dt, dd,
25address,
26hr,
27pre,
28blockquote {
29 display: block;
30}
31
32title {
33 display: none;
34}
35
36/*
37base,
38meta,
39link,
40style,
41script,
42noscript {
43 display: tree;
44}
45*/
46
47object, param,
48map, area,
49form, label,
50input,
51select, optgroup, option,
52textarea,
53fieldset, legend,
54button {
55 display: tree;
56}
57
58/*
59 * By default these elements are displayed inline:
60 *
61 * a,
62 * span,
63 * bdo,
64 * br,
65 * em, strong,
66 * dfn,
67 * code,
68 * samp,
69 * kbd,
70 * var,
71 * cite,
72 * abbr, acronym,
73 * q,
74 * sub, sup,
75 * tt, i, b,
76 * big, small,
77 * img
78 */
79
80/*
81 * Title styles
82 */
83
84h1, h2, h3, h4, h5, h6 {
85 font-weight: bold;
86}
87h1 {
88 font-size: 2em;
89 margin-top: 1.33ex;
90 margin-bottom: 1.33ex;
91}
92h2 {
93 font-size: 1.5em;
94 margin-top: 1.33ex;
95 margin-bottom: 1.33ex;
96}
97h3 {
98 font-size: 1.17em;
99 margin-top: 1.33ex;
100 margin-bottom: 1.33ex;
101}
102h4, h5, h6 {
103 font-size: 1em;
104 margin-top: 1.33ex;
105 margin-bottom: 1.33ex;
106}
107
108/*
109 * Table style
110 */
111
112table {
113 display: table;
114 border: 1px outset gray;
115/* border-spacing: 0; */
116 margin-top: 1.33ex;
117 margin-bottom: 1.33ex;
118}
119caption {
120 display: table-caption;
121 font-style: italic;
122 text-align: center;
123 margin-left: 2ex;
124 margin-right: 2ex;
125 margin-top: 2px;
126 margin-bottom: 2px;
127}
128colgroup {
129 display: table-column-group;
130}
131col {
132 display: table-column;
133}
134thead, tbody, tfoot {
135 display: table-row-group;
136 text-align: eval(attr(align));
137}
138tr {
139 display: table-row;
140 text-align: eval(attr(align));
141}
142td, th {
143 display: table-cell;
144 text-align: eval(attr(align));
145 vertical-align: eval(attr(valign));
146 row-span: eval(attr(rowspan));
147 column-span: eval(attr(colspan));
148 border: 1px inset gray;
149 padding: 2px;
150}
151th {
152 font-weight: bold;
153}
154
155/*
156 * Block styles
157 */
158
159p {
160 margin-top: 1.33ex;
161 margin-bottom: 1.33ex;
162}
163
164ul {
165 margin-left: 2ex;
166 margin-top: 1.33ex;
167 margin-bottom: 1.33ex;
168}
169ul > li {
170 margin-left: 2.5ex;
171}
172ul > li:before {
173 display: marker;
174 content: disc;
175}
176ul > li ul > li:before {
177 display: marker;
178 content: square;
179}
180ul > li ul > li ul > li:before {
181 display: marker;
182 content: icon(diamond);
183}
184ul > li ul > li ul > li ul > li:before {
185 display: marker;
186 content: circle;
187}
188
189ol {
190 margin-left: 2ex;
191 margin-top: 1.33ex;
192 margin-bottom: 1.33ex;
193}
194ol > li {
195 margin-left: 6ex;
196}
197ol > li:before {
198 display: marker;
199 content: counter(n, decimal);
200 font-weight: bold;
201}
202ol[style~=lower-alpha] > li:before {
203 display: marker;
204 content: counter(n, lower-alpha);
205}
206ol[style~=upper-alpha] > li:before {
207 display: marker;
208 content: counter(n, upper-alpha);
209}
210ol[style~=lower-roman] > li:before {
211 display: marker;
212 content: counter(n, lower-roman);
213}
214ol[style~=upper-roman] > li:before {
215 display: marker;
216 content: counter(n, upper-roman);
217}
218
219ol ul, ul ol, ul ul, ol ol {
220 margin-top: 0;
221 margin-bottom: 0;
222}
223
224dl {
225/* margin-left: 2ex;*/
226 margin-top: 1.33ex;
227/* margin-bottom: 1.33ex;*/
228}
229dt {
230 font-weight: bold;
231}
232dd {
233 margin-left: 4ex;
234 margin-bottom: 1.33ex;
235}
236
237pre {
238 white-space: pre;
239 font-family: monospace;
240 font-size: 1em;
241 margin-top: 1.33ex;
242 margin-bottom: 1.33ex;
243}
244
245blockquote {
246 margin-left: 40px;
247 margin-right: 40px;
248 margin-top: 1.33ex;
249 margin-bottom: 1.33ex;
250}
251
252address {
253 font-style: italic;
254}
255
256hr {
257 content: icon(invisible) icon(invisible);
258 border: 2px inset gray;
259}
260
261/* Wrap <div class="center"> around some blocks to center them. */
262.center {
263 margin-left: auto;
264 margin-right: auto;
265 text-align: center;
266}
267
268/*
269 * Ins/del special case. When this is really needed, put the ins/del into
270 * a span to force inline display.
271 */
272
273ins {
274 display: block;
275 border-width: 2px;
276 border-style: solid;
277 border-color: transparent blue transparent transparent;
278 padding-right: 5px;
279}
280
281p ins,
282h1 ins, h2 ins, h3 ins, h4 ins, h5 ins, h6 ins,
283dt ins,
284address ins,
285a ins,
286span ins,
287bdo ins,
288em ins, strong ins,
289dfn ins,
290code ins,
291samp ins,
292kbd ins,
293var ins,
294cite ins,
295abbr ins, acronym ins,
296q ins,
297sub ins, sup ins,
298tt ins, i ins, b ins,
299big ins, small ins {
300 display: inline;
301 text-decoration: underline;
302}
303
304del {
305 display: block;
306 color: gray;
307 border-width: 2px;
308 border-style: solid;
309 border-color: transparent gray transparent transparent;
310 padding-right: 5px;
311}
312
313p del,
314h1 del, h2 del, h3 del, h4 del, h5 del, h6 del,
315dt del,
316address del,
317a del,
318span del,
319bdo del,
320em del, strong del,
321dfn del,
322code del,
323samp del,
324kbd del,
325var del,
326cite del,
327abbr del, acronym del,
328q del,
329sub del, sup del,
330tt del, i del, b del,
331big del, small del {
332 display: inline;
333 text-decoration: line-through;
334}
335
336/*
337 * Inline styles
338 */
339
340b,
341strong {
342 font-weight: bold;
343}
344
345i,
346em,
347cite,
348q,
349var {
350 font-style: italic;
351}
352
353tt,
354kbd,
355code,
356samp,
357var {
358 font-family: monospace;
359 font-size: 1em;
360}
361
362abbr,
363acronym {
364 font-weight: bold;
365}
366
367dfn {
368 background-color: #FFFFE0;
369}
370
371a[href] {
372 color: navy;
373 text-decoration: underline;
374}
375a[name]:after {
376 content: icon(right-target);
377 color: olive;
378 vertical-align: text-top;
379}
380
381big {
382 font-size: 1.17em;
383}
384small {
385 font-size: .83em;
386}
387
388sub,
389sup {
390 font-size: .83em;
391}
392sub {
393 vertical-align: sub;
394}
395sup {
396 vertical-align: super;
397}
398
399br:before {
400 content: "\A";
401 color: olive;
402}
403
404/*
405 * Showing a 400x200 thumbnail is sufficient.
406 * If you don't like that, replace the content property by a more traditional:
407 * content: image(attr(src), attr(width), attr(height));
408 */
409img {
410 content: image(attr(src), -400, -200);
411}
412
413@media print {
414 base,
415 meta,
416 link,
417 style,
418 script,
419 noscript {
420 display: none;
421 }
422
423 meta[name=author][content],
424 meta[name=date][content] {
425 display: block;
426 text-align: center;
427 /*
428 * Without paragraph(), a static text label is used
429 * and words are not wrapped.
430 */
431 content: paragraph(attr(content));
432 }
433
434 colgroup, col {
435 display: none;
436 }
437
438 * {
439 background-color: transparent;
440 line-height: 1.2;
441 }
442
443 pre {
444 background-color: #FFFFE0;
445 border: 1px solid #E0E0A0;
446 }
447
448 img {
449 content: image(attr(src), -500, -700, smooth);
450 }
451}
452
453/*
454 * A CSS stylesheet for eclipseos2 project
455 *
456 */
457
458html {
459 font-family: Arial, sans-serif;
460}
461
462head, title {
463 display: block;
464}
465
466title {
467 text-align: center;
468 font-weight: bold;
469 font-size: 2em;
470 color: black;
471 margin-top: .67ex;
472 margin-bottom: .67ex;
473 padding: 1ex;
474 background-color: #ADD8E6;
475}
476
477h1, h2, h3, h4, h5, h6 {
478 color: #800000;
479}
480h1 {
481 font-size: 1.8em;
482}
483h2 {
484 font-size: 1.33em;
485}
486h4 {
487 color: black;
488}
489
490table {
491 border: 1px outset gray;
492 border-spacing: 0px;
493}
494
495td, th {
496 border: 1px inset gray;
497 padding: 2px;
498 vertical-align: baseline;
499}
500
501kbd {
502 color: rgb(173,103,62); /* #4C7F7F; */ /* #4682B4; */
503}
504
505code {
506 color: rgb(51,102,153); /* #000090; */ /*blue;*/ /* #4169E1; */
507}
508
509dt {
510 font-weight: bold;
511}
512
513pre {
514 background-color: #E0E0E0;
515 border: thin solid gray;
516}
517
518a[href] {
519 color: #007800; /*#228B22; */
520}
Note: See TracBrowser for help on using the repository browser.