source: trunk/os2-doc/xhtml-xxe.css@ 90

Last change on this file since 90 was 27, checked in by dmik, 20 years ago

CSS files in /os2-doc are marked as text/css

  • Property svn:mime-type set to text/css
File size: 14.3 KB
RevLine 
[8]1/*
2 * Copyright (c) 2003 Pixware.
3 *
4 * This file is part of the XMLmind XML Editor project.
5 * For conditions of distribution and use, see the accompanying legal.txt file.
6 */
7
8html {
9 display: block;
10}
11
12/* ---------------------------------------------------------------------------
13 Head
14--------------------------------------------------------------------------- */
15
16head {
17 display: block;
18}
19
20title {
21 display: block;
22 text-align: center;
23 font-weight: bold;
24 font-size: 2em;
25 color: maroon;
26 margin-top: .67ex;
27 margin-bottom: .67ex;
28}
29
30base,
31meta,
32link,
33style,
34script,
35noscript {
36 display: tree;
37}
38
39/* ---------------------------------------------------------------------------
40 Body
41--------------------------------------------------------------------------- */
42
43body {
44 display: block;
45}
46
47/*
48 * Transitional
49 */
50body[bgcolor] {
51 background-color: concatenate(attr(bgcolor));
52}
53body[text] {
54 color: concatenate(attr(text));
55}
56
57/* ---------------------------------------------------------------------------
58 Blocks
59--------------------------------------------------------------------------- */
60
61div {
62 display: block;
63}
64
65/*
66 * Transitional
67 */
68center {
69 display: block;
70}
71div[align=center],
72center {
73 margin-left: auto;
74 margin-right: auto;
75 text-align: center;
76}
77div[align=right] {
78 margin-left: auto;
79 margin-right: 0;
80 text-align: right;
81}
82
83hr {
84 display: block;
85 content: icon(invisible) icon(invisible);
86 border: 2 inset gray;
87}
88
89/*
90 * Transitional
91 */
92hr[noshade] {
93 background-color: gray;
94 border-style: solid;
95}
96
97/* -------------------------------------
98 Headings
99------------------------------------- */
100
101h1,
102h2,
103h3,
104h4,
105h5,
106h6 {
107 display: block;
108 font-weight: bold;
109 color: maroon;
110}
111
112h1 {
113 font-size: 1.5em;
114 margin-top: .83ex;
115 margin-bottom: .83ex;
116}
117
118h2 {
119 font-size: 1.3em;
120 margin-top: 1ex;
121 margin-bottom: 1ex;
122}
123
124h3,
125h4,
126h5,
127h6 {
128 margin-top: 1.33ex;
129 margin-bottom: 1.33ex;
130}
131
132/*
133 * Transitional
134 */
135h1[align],
136h2[align],
137h3[align],
138h4[align],
139h5[align],
140h6[align] {
141 text-align: concatenate(attr(align));
142}
143
144/* -------------------------------------
145 Paragraphs
146------------------------------------- */
147
148address {
149 display: block;
150 font-style: italic;
151 margin-top: 1.33ex 0;
152}
153
154p {
155 display: block;
156 margin: 1.33ex 0;
157}
158
159/*
160 * Transitional
161 */
162p[align] {
163 text-align: concatenate(attr(align));
164}
165
166pre {
167 display: block;
168 white-space: pre;
169 font-family: monospace;
170 background-color: #EEEEEE;
171 border: thin solid gray;
172 padding: 2px;
173 margin: 1.33ex 0;
174}
175
176blockquote {
177 display: block;
178 margin: 1.33ex 10ex;
179}
180
181/* -------------------------------------
182 Lists
183------------------------------------- */
184
185ul {
186 display: block;
187 margin-left: 2ex;
188 margin-top: 1.33ex;
189 margin-bottom: 1.33ex;
190}
191
192li {
193 display: block;
194}
195
196ul > li {
197 margin-left: 2.5ex;
198}
199ul > li:before {
200 display: marker;
201 content: disc;
202 padding-top: .6ex;
203}
204ul > li ul > li:before {
205 content: square;
206}
207ul > li ul > li ul > li:before {
208 content: icon(diamond);
209}
210ul > li ul > li ul > li ul > li:before {
211 content: circle;
212}
213
214/*
215 * Transitional
216 */
217dir,
218menu {
219 display: block;
220 margin-left: 2ex;
221 margin-top: 1.33ex;
222 margin-bottom: 1.33ex;
223}
224dir > li,
225menu > li {
226 margin-left: 2.5ex;
227}
228dir > li:before {
229 display: marker;
230 content: icon(right-half-disc);
231 color: maroon;
232 padding-top: .6ex;
233}
234menu > li:before {
235 display: marker;
236 content: icon(right);
237 color: maroon;
238 padding-top: .6ex;
239}
240
241ol {
242 display: block;
243 margin-left: 2ex;
244 margin-top: 1.33ex;
245 margin-bottom: 1.33ex;
246}
247
248ol > li {
249 margin-left: 6ex;
250}
251ol > li:before {
252 display: marker;
253 content: counter(n, decimal) ".";
254 font-weight: bold;
255}
256
257/* Example of value for style attribute: "list-style-type: lower-roman;" */
258ol[style~=lower-alpha] > li:before {
259 content: counter(n, lower-alpha) ".";
260}
261ol[style~=upper-alpha] > li:before {
262 content: counter(n, upper-alpha) ".";
263}
264ol[style~=lower-roman] > li:before {
265 content: counter(n, lower-roman) ".";
266}
267ol[style~=upper-roman] > li:before {
268 content: counter(n, upper-roman) ".";
269}
270
271/*
272 * Transitional
273 */
274ol[type=a] > li:before {
275 content: counter(n, lower-alpha) ".";
276}
277ol[type=A] > li:before {
278 content: counter(n, upper-alpha) ".";
279}
280ol[type=i] > li:before {
281 content: counter(n, lower-roman) ".";
282}
283ol[type=I] > li:before {
284 content: counter(n, upper-roman) ".";
285}
286
287ol ul, ul ol, ul ul, ol ol {
288 margin-top: 0;
289 margin-bottom: 0;
290}
291
292dl {
293 display: block;
294 margin-left: 2ex;
295 margin-top: 1.33ex;
296 margin-bottom: 1.33ex;
297}
298
299dt {
300 display: block;
301 font-weight: bold;
302}
303
304dd {
305 display: block;
306 margin-left: 4ex;
307}
308
309/* -------------------------------------
310 Table
311------------------------------------- */
312
313/*
314 * "black" is the color used to draw a border around the table and its cells
315 * based on values of attributes such as border, frame, rules.
316 *
317 * "rgb(238,238,224)" (a very light gray) is the color used to draw
318 * a border around each cell whether the cell actually has borders or not.
319 * Remove this parameter if this ``cell footprint'' disturbs you.
320 *
321 * For more information about table support for XHTML, see Power User's Guide.
322 */
323@extension "com.xmlmind.xmleditapp.xhtml.TableSupport black rgb(238,238,224)";
324
325table {
326 display: table;
327 border-style: solid;
328 border-width: 1;
329 margin-top: 1.33ex;
330 margin-bottom: 1.33ex;
331}
332
333caption {
334 display: table-caption;
335 font-style: italic;
336 color: maroon;
337 text-align: center;
338 margin-left: 2ex;
339 margin-right: 2ex;
340 margin-top: 2;
341 margin-bottom: 2;
342}
343
344colgroup {
345 display: table-column-group;
346 collapsed: yes;
347}
348
349col {
350 display: table-column;
351 collapsed: yes;
352}
353
354thead,
355tbody,
356tfoot {
357 display: table-row-group;
358}
359
360tr {
361 display: table-row;
362}
363
364td,
365th {
366 display: table-cell;
367 border-style: solid;
368 border-width: 1;
369 padding: 2;
370}
371th {
372 font-weight: bold;
373}
374
375table {
376 collapsible: yes;
377 not-collapsible-head: 1;
378 collapsed-content: url(../../common/icons2/table.gif);
379}
380
381caption:first-child:before {
382 content: collapser() " ";
383}
384
385/*
386 * Transitional
387 */
388tr[bgcolor] > th,
389tr[bgcolor] > td {
390 background-color: inherit;
391}
392/* "tr > th" is used to make this rule more specific than the above one. */
393table[bgcolor],
394tr[bgcolor],
395tr > th[bgcolor],
396tr > td[bgcolor] {
397 background-color: concatenate(attr(bgcolor));
398}
399
400/* ---------------------------------------------------------------------------
401 Inlines
402
403 span
404 em strong cite dfn code samp kbd var abbr acronym
405 q
406 sub sup
407 br
408 tt i b
409 big small
410 basefont font
411 strike s u
412 a
413--------------------------------------------------------------------------- */
414
415b,
416strong {
417 font-weight: bold;
418}
419
420i,
421em,
422cite,
423q,
424var {
425 font-style: italic;
426}
427
428tt,
429kbd,
430code,
431samp,
432var {
433 font-family: monospace;
434}
435
436abbr,
437acronym {
438 font-weight: bold;
439}
440
441dfn {
442 background-color: #FFFFE0;
443}
444
445sub,
446sup {
447 display: inline-block;
448 white-space: nowrap;
449 font-size: small;
450}
451sub {
452 vertical-align: sub;
453}
454sup {
455 vertical-align: super;
456}
457
458/*
459 * Transitional
460 */
461strike,
462s {
463 text-decoration: line-through;
464}
465u {
466 text-decoration: underline;
467}
468
469br:before {
470 content: "\A";
471 color: gray;
472}
473
474big {
475 font-size: large;
476}
477small {
478 font-size: small;
479}
480
481/*
482 * Transitional
483 */
484basefont {
485 content: "basefont=" attr(size);
486 font-size: small;
487 color: gray;
488}
489font[color] {
490 color: concatenate(attr(color));
491}
492font[face] {
493 font-family: concatenate(attr(face));
494}
495font[size="1"] {
496 font-size: x-small;
497}
498font[size="2"] {
499 font-size: small;
500}
501font[size="3"] {
502 font-size: medium;
503}
504font[size="4"] {
505 font-size: large;
506}
507font[size="5"] {
508 font-size: x-large;
509}
510font[size="6"],
511font[size="7"] {
512 font-size: xx-large;
513}
514font[size="-3"] {
515 font-size: smaller;
516}
517font[size="-2"] {
518 font-size: smaller;
519}
520font[size="-1"] {
521 font-size: smaller;
522}
523font[size="+1"] {
524 font-size: larger;
525}
526font[size="+2"] {
527 font-size: larger;
528}
529font[size="+3"] {
530 font-size: larger;
531}
532
533a[href] {
534 color: navy;
535 text-decoration: underline;
536}
537a[name]:after {
538 content: icon(right-target);
539 color: gray;
540 vertical-align: text-top;
541}
542
543/* ---------------------------------------------------------------------------
544 Ins/del
545
546 When this is really needed, put the ins/del into a span
547 to force inline display.
548--------------------------------------------------------------------------- */
549
550ins {
551 display: block;
552 border-width: 2px;
553 border-style: solid;
554 border-color: transparent blue transparent transparent;
555 padding-right: 5px;
556}
557
558p ins,
559h1 ins, h2 ins, h3 ins, h4 ins, h5 ins, h6 ins,
560dt ins,
561address ins,
562a ins,
563span ins,
564bdo ins,
565em ins, strong ins,
566dfn ins,
567code ins,
568samp ins,
569kbd ins,
570var ins,
571cite ins,
572abbr ins, acronym ins,
573q ins,
574sub ins, sup ins,
575tt ins, i ins, b ins,
576big ins, small ins {
577 display: inline;
578 text-decoration: underline;
579}
580
581del {
582 display: block;
583 color: gray;
584 border-width: 2px;
585 border-style: solid;
586 border-color: transparent gray transparent transparent;
587 padding-right: 5px;
588}
589
590p del,
591h1 del, h2 del, h3 del, h4 del, h5 del, h6 del,
592dt del,
593address del,
594a del,
595span del,
596bdo del,
597em del, strong del,
598dfn del,
599code del,
600samp del,
601kbd del,
602var del,
603cite del,
604abbr del, acronym del,
605q del,
606sub del, sup del,
607tt del, i del, b del,
608big del, small del {
609 display: inline;
610 text-decoration: line-through;
611}
612
613/* ---------------------------------------------------------------------------
614 Objects
615--------------------------------------------------------------------------- */
616
617/*
618 * Showing a 400x200 thumbnail is sufficient.
619 * If you don't like that, replace the content property by a more traditional:
620 * content: image(attr(src), attr(width), attr(height));
621 */
622img {
623 display: inline;
624 content: image(attr(src), -400, -200);
625}
626
627/*
628 * Transitional
629 */
630img[align=bottom],
631img[align=middle],
632img[align=top] {
633 vertical-align: concatenate(attr(align));
634}
635
636object,
637applet,
638param {
639 display: tree;
640}
641
642map,
643area {
644 display: tree;
645}
646
647/* ---------------------------------------------------------------------------
648 Forms
649--------------------------------------------------------------------------- */
650
651form {
652 display: block;
653 margin-top: 1.33ex;
654 margin-bottom: 1.33ex;
655}
656
657label {
658 display: inline;
659 font-weight: bold;
660}
661
662fieldset {
663 display: block;
664 border: thin solid gray;
665 margin: 5px;
666}
667
668legend {
669 display: block;
670 background-color: silver;
671 font-weight: bold;
672 padding: 2px;
673}
674
675button {
676 display: inline-block;
677 text-align: center;
678 border: 2px outset silver;
679 background-color: silver;
680 padding: 2px;
681}
682
683input,
684select,
685textarea {
686 display: inline-block;
687 padding: 1px; /* Needed to display the red border of the selection */
688 background-color: transparent;
689}
690
691input {
692 content: component("com.xmlmind.xmleditapp.xhtml.Input");
693}
694
695input[type=hidden] {
696 content: "hidden";
697 font-size: x-small;
698 color: gray;
699}
700
701select {
702 content: component("com.xmlmind.xmleditapp.xhtml.Select");
703}
704
705select[multiple] {
706 vertical-align: text-top;
707}
708
709/* Not needed unless the document is invalid. */
710optgroup,
711option {
712 display: tree;
713}
714
715textarea {
716 content: component("com.xmlmind.xmleditapp.xhtml.TextArea");
717 vertical-align: text-top;
718}
719
720/* ---------------------------------------------------------------------------
721 Other
722--------------------------------------------------------------------------- */
723
724*::comment,
725*::processing-instruction {
726 display: block;
727 margin: 2px;
728 white-space: pre;
729 text-align: left;
730 font-family: monospace;
731 font-style: normal;
732 font-weight: normal;
733 font-size: small;
734}
735
736*::comment {
737 background-color: #FFFFCC;
738 color: #808000;
739}
740
741*::processing-instruction {
742 background-color: #CCFFCC;
743 color: #008000;
744}
745
746xi\:include {
747 display: tree;
748}
749
750*:read-only {
751 background-color: #F0F0F0;
752}
753
754/* ==================================
755 Useful to debug modular documents
756 ==================================
757
758*:property("LOCATION_INFO"):before,
759*:property("INCLUSION_INFO"):before {
760 display: block;
761 color: red;
762 font-size: small;
763 text-align: center;
764}
765
766*:property("LOCATION_INFO"):before {
767 content: "LOCATION_INFO=" property("LOCATION_INFO") "\A" icon(down);
768}
769
770*:property("INCLUSION_INFO"):before {
771 content: "INCLUSION_INFO=" property("INCLUSION_INFO") "\A" icon(down);
772}
773
774*:property("LOCATION_INFO"):property("INCLUSION_INFO"):before {
775 content: "LOCATION_INFO=" property("LOCATION_INFO")
776 "\A INCLUSION_INFO=" property("INCLUSION_INFO")
777 "\A" icon(down);
778}
779*/
780
781/* ---------------------------------------------------------------------------
782 When printing
783--------------------------------------------------------------------------- */
784
785@media print {
786 * {
787 background-color: transparent;
788 line-height: 1.2;
789 }
790
791 *:read-only {
792 background-color: transparent;
793 }
794
795 base,
796 meta,
797 link,
798 style,
799 script,
800 noscript {
801 display: none;
802 }
803
804 meta[name=author][content],
805 meta[name=date][content] {
806 display: block;
807 text-align: center;
808 /*
809 * Without paragraph(), a static text label is used
810 * and words are not wrapped.
811 */
812 content: paragraph(attr(content));
813 }
814
815 colgroup,
816 col {
817 display: none;
818 }
819
820 img {
821 content: image(attr(src), -500, -700, smooth);
822 }
823}
Note: See TracBrowser for help on using the repository browser.