VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/css/topic_classed.css@ 98878

最後變更 在這個檔案從98878是 98584,由 vboxsync 提交於 2 年 前

Docs: bugref:10302. Setting svn properties of DITA-OT library.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 17.6 KB
 
1/*
2 | This file is part of the DITA Open Toolkit project hosted on
3 | Sourceforge.net. See the accompanying license.txt file for
4 | applicable licenses.
5*/
6/*
7 | (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved.
8*/
9
10*[class\~="topic\/ol"] > li > *[class\~="topic\/ol"] > *[class\~="topic\/li"] {
11 list-style-type: lower-alpha !important;
12}
13
14/* mods to update in topic_classed:
15 box model for link/linklist etc
16 CALS table model
17*/
18/* class-based lookups for DITA */
19author, copyright, critdates, permissions, audience, othermeta, language, category, context, dd, ddhd, desc, dl, dlhead, dlentry, dt, dthd, example, fig, figbody, lq, note, ol, p, prolog, relgroup, longdesc, title, ul {
20 display: block;
21}
22
23*[class~="topic\/topic"] {
24 display: block;
25 margin-top: 6pt;
26 margin-bottom: 9pt;
27 font-family: sans-serif;
28 padding-left: 5px;
29 padding-right: 5px;
30}
31
32*[class~="topic\/topic"] > *[class~="topic\/title"] {
33 display: block;
34 margin-top: 16pt;
35 margin-bottom: 9pt;
36 font-size: 22pt;
37 font-weight: bold;
38 color: #000001;
39}
40
41* > *[class~="topic\/topic"] > *[class~="topic\/title"] {
42 margin-top: 20pt;
43 font-size: 18pt;
44 font-weight: bold;
45 color: #000002;
46}
47
48* > * > *[class~="topic\/topic"] > *[class~="topic\/title"] {
49 margin-top: 20pt;
50 font-size: 16pt;
51 font-weight: bold;
52 color: #000002;
53}
54
55* > * > * > *[class~="topic\/topic"] > *[class~="topic\/title"] {
56 margin-top: 10pt;
57 font-size: 14pt;
58 font-weight: bold;
59 color: #000000;
60}
61
62*[class~="topic\/searchtitle"] {
63 margin-top: 6pt;
64 margin-left: 24pt;
65 font-size: 14pt;
66 font-weight: bold;
67 display: block;
68 color: teal;
69}
70
71*[class~="topic\/searchtitle"]:before {
72 color: blue;
73 font-weight: bold;
74 margin-left: 24pt;
75 display: inline;
76 margin-left: 24pt;
77 content: "Search Title: ";
78}
79
80/* For authoring, call attention to shortdesc by boxing it.
81 For output, its just a paragraph. */
82*[class~="topic\/shortdesc"] {
83 display: block;
84 margin-top: 6pt;
85 margin-bottom: 6pt;
86 border: thin solid black;
87}
88
89*[class~="topic\/prolog"] {
90 margin-top: 1pc;
91 margin-left: 24pt;
92 background-color: #99FFCC;
93 padding-top: 3pt;
94 padding-right: 3pt;
95 padding-left: 3pt;
96 padding-bottom: 6pt;
97 border: thin solid olive;
98 margin-bottom: 1pc;
99}
100
101*[class~="topic\/body"] {
102 display: block;
103 margin-left: 12pt;
104}
105
106/* general setup for section-like divisions and exhibits */
107*[class~="topic\/section"], *[class~="topic\/example"], *[class~="topic\/table"], *[class~="topic\/fig"] {
108 margin-top: 12pt;
109 display: block;
110}
111
112*[class~="topic\/section"] > *[class~="topic\/title"], *[class~="topic\/example"] > *[class~="topic\/title"] {
113 display: block;
114 font-weight: bold;
115 margin-top: 6pt;
116 margin-bottom: 2pt;
117}
118
119/*== special content and exhibits ==*/
120*[spectitle]:before {
121 display: block;
122 font-weight: bold;
123 margin-bottom: 2pt;
124 content: attr(spectitle) ": ";
125}
126
127*[spectitle][class~="topic\/section"]:before, *[spectitle][class~="topic\/example"]:before {
128 display: block;
129 font-weight: bold;
130 font-size: 11pt;
131 content: attr(spectitle) ": ";
132}
133
134*[specentry]:before {
135 display: block;
136 font-weight: bold;
137 margin-bottom: 2pt;
138 content: attr(specentry) ": ";
139}
140
141*[conref]:before {
142 content: "Conref: [" attr(conref) "]";
143}
144
145/*== body content ==*/
146/* apparently not supported in XXE */
147*[class~="topic\/section"] > p:first-child {
148 display: block;
149 margin-top: 6pt;
150 margin-bottom: 6pt;
151}
152
153*[class~="topic\/section"] > *[class~="topic\/p"] {
154 display: block;
155 margin-top: 6pt;
156}
157
158*[class~="topic\/p"], *[class~="topic\/note"] {
159 display: block;
160 margin-bottom: 6pt;
161}
162
163*[class~="topic\/note"] > *[class~="topic\/p"] {
164 display: block;
165 margin-top: 6pt;
166 margin-bottom: 6pt;
167}
168
169*[type="note"][class~="topic\/note"]:before {
170 font-weight: bold;
171 content: "Note: ";
172}
173
174*[type="tip"][class~="topic\/note"]:before {
175 font-weight: bold;
176 content: "Tip: ";
177}
178
179*[type="fastpath"][class~="topic\/note"]:before {
180 font-weight: bold;
181 content: "Fastpath: ";
182}
183
184/* additional to add here: attention, caution, danger, important, remember, restriction, other */
185note:before {
186 font-weight: bold;
187 content: attr(type) "Note: ";
188}
189
190/*== list item ==*/
191*[class~="topic\/li"] {
192 margin-left: 20pt;
193 display: list-item;
194 margin-bottom: 2pt;
195 margin-top: 6pt;
196}
197
198*[class~="topic\/ul"], *[class~="topic\/ol"] {
199 margin-top: 6pt;
200 margin-bottom: 6pt;
201}
202
203*[class~="topic\/ul"] > *[class~="topic\/li"] {
204 list-style-type: disc;
205}
206
207*[class~="topic\/ol"] > *[class~="topic\/li"] {
208 list-style-type: decimal;
209}
210
211*[class~="topic\/ol"] > *[class~="topic\/li"] > *[class~="topic\/ol"] > *[class~="topic\/li"] {
212 list-style-type: lower-alpha;
213}
214
215*[class~="topic\/sl"] {
216 list-style: none;
217}
218
219*[class~="topic\/sli"] {
220 display: list-item;
221}
222
223/*== phrase markup ==*/
224*[class\~="hi-d\/b"] {
225 font-weight: bold;
226}
227*[class\~="hi-d\/i"] {
228 font-style : italic;
229}
230*[class\~="hi-d\/u"] {
231 text-decoration : underline;
232}
233*[class\~="hi-d\/tt"], *[class\~="sw-d\/systemoutput"] {
234 font-family : monospace;
235}
236*[class\~="ui-d\/uicontrol"] , *[class\~="pr-d/parmname"] {
237 font-weight: bold;
238}
239
240*[class~="topic\/q"]:before {
241 content: "\"";
242}
243
244*[class~="topic\/q"]:after {
245 content: "\"";
246}
247
248*[class~="topic\/cite"] {
249 font-style: italic;
250}
251
252*[class~="topic\/fn"]:before {
253 color: purple;
254 font-weight: bold;
255 content: " [Footnote: ";
256}
257
258*[class~="topic\/fn"]:after {
259 color: purple;
260 font-weight: bold;
261 content: "] ";
262}
263
264*[class~="topic\/fn"] {
265 color: purple;
266 font-weight: bold;
267}
268
269/*== default (preferred) rendering of dl as indented list ==*/
270dl[title]:before, *[title]:before {
271 font-weight: bold;
272 font-size: 11pt;
273 content: attr(title) ": ";
274}
275
276*[class~="topic\/dlhead"] {
277 font-weight: bold;
278}
279
280*[class~="topic\/dl"] {
281 margin-left: 2ex;
282 margin-top: 1.33ex;
283 margin-bottom: 1.33ex;
284}
285
286*[class~="topic\/dt"], *[class~="topic\/dthd"] {
287 font-weight: bold;
288}
289
290*[class~="topic\/dd"], *[class~="topic\/ddhd"] {
291 margin-left: 4ex;
292}
293
294/*== line-oriented content ==*/
295*[class~="topic\/pre"] {
296 display: block;
297 white-space: pre;
298 background-color: #e0e0e0;
299 border: thin solid gray;
300 font-family: Courier;
301 margin-top: 1.33ex;
302 margin-bottom: 1.33ex;
303}
304
305*[class~="topic\/lines"] {
306 white-space: pre;
307 display: block;
308 font-style: normal;
309}
310
311/*== blocked paragraphs and contexts ==*/
312*[class~="topic\/lq"] {
313 margin-left: 20pt;
314 display: block;
315 margin-top: 6pt;
316}
317
318*[class~="topic\/p"] > *[class~="topic\/pre"] {
319 margin-top: 6pt;
320}
321
322/* generic support for the scale attribute (must match an e*/
323/*display-atts:
324scale (50|60|70|80|90|100|110|120|140|160|180|200) #IMPLIED
325frame (top | bottom |topbot | all | sides | none) #IMPLIED
326expanse (page|column|textline) #IMPLIED
327*/
328*[scale="50"] {
329 font-size: 50%;
330}
331
332*[scale="60"] {
333 font-size: 60%;
334}
335
336*[scale="70"] {
337 font-size: 70%;
338}
339
340*[scale="80"] {
341 font-size: 80%;
342}
343
344*[scale="90"] {
345 font-size: 90%;
346}
347
348*[scale="100"] {
349 font-size: 100%;
350}
351
352*[scale="110"] {
353 font-size: 110%;
354}
355
356*[scale="120"] {
357 font-size: 120%;
358}
359
360*[scale="140"] {
361 font-size: 140%;
362}
363
364*[scale="160"] {
365 font-size: 160%;
366}
367
368*[scale="180"] {
369 font-size: 180%;
370}
371
372*[scale="200"] {
373 font-size: 200%;
374}
375
376/*== figure markup ==*/
377*[frame="all"][class~="topic\/fig"] {
378 border: thin solid black;
379 margin-bottom: 6pt;
380}
381
382/*== compact (for dl and its derivatives; considering deprecation) ==*/
383*[compact="yes"] > *[class~="topic\/li"] {
384 margin-top: 0pt;
385}
386
387/* == titles for figs, tables == */
388*[class~="topic\/fig"] > *[class~="topic\/title"] {
389 font-weight: bold;
390 display: block;
391 margin-bottom: 4pt;
392}
393
394*[class~="topic\/fig"] > *[class~="topic\/title"]:before {
395 font-weight: bold;
396 content: "Figure: ";
397}
398
399*[class~="topic\/table"] > *[class~="topic\/title"] {
400 font-weight: bold;
401 display: block;
402 margin-bottom: 4pt;
403}
404
405*[class~="topic\/table"] > *[class~="topic\/title"]:before {
406 font-weight: bold;
407 content: "Table: ";
408}
409
410/*== CALS table markup ==*/
411*[class~="topic\/table"] {
412 display: block;
413}
414
415*[class~="topic\/thead"] > *[class~="topic\/row"] > *[class~="topic\/entry"] {
416 font-weight: bold;
417}
418
419*[class~="topic\/tgroup"] {
420 display: table;
421}
422
423*[class~="topic\/thead"] {
424 display: table-header-group;
425}
426
427*[class~="topic\/tfoot"] {
428 display: table-footer-group;
429}
430
431*[class~="topic\/tbody"] {
432 display: table-row-group;
433}
434
435*[class~="topic\/row"] {
436 display: table-row;
437}
438
439*[class~="topic\/entry"] {
440 display: table-cell;
441 border: thin solid black;
442}
443
444/* rendering for context dependent table content */
445/*
446*[class~="topic\/section"] > *[class~="topic\/table"],
447*[class~="topic\/example"] > *[class~="topic\/table"] {
448 margin-top: 0pt;
449}
450*/
451*[class~="topic\/entry"] > *[class~="topic\/image"] {
452 margin-top: 0pt;
453 margin-bottom: 0pt;
454}
455
456/*== simple table markup ==*/
457*[class~="topic\/simpletable"] {
458 display: table;
459 border: thin solid gray;
460}
461
462*[class~="topic\/strow"], *[class~="topic\/sthead"] {
463 display: table-row;
464}
465
466*[class~="topic\/sthead"] > *[class~="topic\/stentry"] {
467 display: table-cell;
468 font-weight: bold;
469 text-align: center;
470 border: thin solid gray;
471}
472
473*[class~="topic\/strow"] > *[class~="topic\/stentry"] {
474 display: table-cell;
475 border: thin solid gray;
476}
477
478*[class~="topic\/note"] {
479 margin-top: 6pt;
480}
481
482/*== frame support for figures, tables ==*/
483fig[frame="topbot"] {
484 border: thin solid black;
485}
486
487/* index terms in phrase contexts */
488indexterm {
489 display: block;
490 margin-left: 6pt;
491 border: thin inset gray;
492 color: black;
493 background-color: #ffddff;
494}
495
496indexterm:before {
497 content: "[index term: ";
498}
499
500indexterm:after {
501 content: "]";
502}
503
504/*== prolog and metadata ==*/
505*[class~="topic\/author"]:before {
506 color: blue;
507 font-weight: bold;
508 content: "Author [";
509}
510
511*[class~="topic\/author"]:after {
512 color: blue;
513 font-weight: bold;
514 content: "]";
515}
516
517*[class~="topic\/copyrholder"] {
518 display: block;
519}
520
521*[class~="topic\/year"]:before {
522 content: "Copyright year " attr(year) " ";
523}
524
525*[class~="topic\/copyright"]:before {
526 color: blue;
527 font-weight: bold;
528 content: "Copyright [";
529}
530
531*[class~="topic\/copyright"]:after {
532 color: blue;
533 font-weight: bold;
534 content: "]";
535}
536
537*[class~="topic\/critdates"]:before {
538 color: blue;
539 font-weight: bold;
540 content: "Critical dates [";
541}
542
543*[class~="topic\/critdates"]:after {
544 color: blue;
545 font-weight: bold;
546 content: "]";
547}
548
549*[class~="topic\/permissions"]:before {
550 color: blue;
551 font-weight: bold;
552 content: "Permissions [";
553}
554
555*[class~="topic\/permissions"]:after {
556 color: blue;
557 font-weight: bold;
558 content: "]";
559}
560
561*[class~="topic\/metadata"] {
562 display: block;
563 background-color: #66FF66;
564 padding-top: 3pt;
565 padding-right: 3pt;
566 padding-left: 3pt;
567 padding-bottom: 6pt;
568 border: thin solid red;
569 margin-top: 2pt;
570 margin-left: 2pt;
571 margin-right: 2pt;
572 margin-bottom: 2pt;
573}
574
575*[class~="topic\/prolog"]:before {
576 color: black;
577 font-weight: bold;
578 content: "Prolog:";
579}
580
581*[class~="topic\/metadata"]:before {
582 color: black;
583 font-weight: bold;
584 content: "Metadata:";
585}
586
587*[class~="topic\/prodinfo"] {
588 background-color: #e0e0e0;
589 display: block;
590 margin-left: 16pt;
591 margin-top: 6pt;
592 border: thin solid black;
593}
594
595*[class~="topic\/category"]:before {
596 color: blue;
597 font-weight: bold;
598 content: "Category [";
599}
600
601*[class~="topic\/category"]:after {
602 color: blue;
603 font-weight: bold;
604 content: "]";
605}
606
607*[class~="topic\/audience"]:before {
608 color: blue;
609 font-weight: bold;
610 content: "Audience [" attr(type) "]";
611}
612
613*[class~="topic\/keywords"]:before {
614 color: blue;
615 font-weight: bold;
616 content: "Keywords [";
617}
618
619*[class~="topic\/keywords"]:after {
620 color: blue;
621 font-weight: bold;
622 content: "]";
623}
624
625*[class~="topic\/language"]:before {
626 color: blue;
627 font-weight: bold;
628 content: "Language [" attr(lang) "]";
629}
630
631*[class~="topic\/othermeta"]:before {
632 color: blue;
633 font-weight: bold;
634 content: "Other Metadata: name=[" attr(name) "] content=[" attr(content) "]";
635}
636
637/*== image data ==*/
638*[class\~="topic\/image"], *[placement="inline"][class\~="topic\/image"] {
639 display: inline;
640 plugin-view: "com.morphon.visualplugins.docbook.DocBook_ImageData";
641 x-morphon-docbook-imagedata-xml-file-name: "href";
642}
643
644*[placement="break"][class~="topic\/image"] {
645 display: block;
646 plugin-view: "com.morphon.visualplugins.docbook.DocBook_ImageData";
647 x-morphon-docbook-imagedata-xml-file-name: "href";
648}
649
650*[class~="topic\/image"][alt]:after {
651 content: "Alt: [" attr(alt) "]";
652}
653
654/*== specially highlighted elements ==*/
655*[class~="topic\/required-cleanup"] {
656 color: #CC3333;
657 background-color: #FFFF99;
658 border: thick solid black;
659}
660
661*[class~="topic\/draft-comment"] {
662 display: block;
663 margin-top: 6pt;
664 margin-bottom: 2pt;
665 background-color: #FF99FF;
666 border: thin solid black;
667}
668
669/* color: #CC3333; */
670*[class~="topic\/draft-comment"]:before {
671 font-weight: bold;
672 content: "Comment by " attr(reviewer) ": ";
673}
674
675/*== linking in topics ==*/
676*[class~="topic\/related-links"] {
677 display: block;
678}
679
680*[class~="topic\/related-links"]:before {
681 display: block;
682 color: black;
683 font-weight: bold;
684 content: "Related Links:";
685}
686
687*[class~="topic\/links"], *[class~="topic\/linklist"], *[class~="topic\/linkpool"] {
688 margin-top: 1.33ex;
689 margin-bottom: 1.33ex;
690 display: block;
691 margin-left: 2ex;
692}
693
694*[class~="topic\/links"]:before, *[class~="topic\/linklist"]:before, *[class~="topic\/linkpool"]:before {
695 color: green;
696 font-weight: bold;
697 content: "Links:";
698}
699
700*[class~="topic\/links"] > *[class~="topic\/title"], *[class~="topic\/linklist"] > *[class~="topic\/title"], *[class~="topic\/linkpool"] > *[class~="topic\/title"] {
701 display: block;
702 font-weight: bold;
703 margin-top: 6pt;
704}
705
706/*== common and separate behaviors of link, xref, cite ==*/
707*[class~="topic\/link"] {
708 display: block;
709 margin-left: 20pt;
710}
711
712*[class~="topic\/xref"], *[class~="topic\/cite"] {
713 display: inline;
714}
715
716*[class~="topic\/link"], *[class~="topic\/xref"], *[class~="topic\/cite"] {
717 text-decoration: underline;
718 color: red;
719}
720
721*[href][class~="topic\/link"], *[href][class~="topic\/xref"], *[href][class~="topic\/cite"] {
722 text-decoration: underline;
723 color: blue;
724}
725
726*[class~="topic\/xref"]:before {
727 font-weight: bold;
728 content: "[" attr(type) "--" attr(href) "]";
729}
730
731/* linking in topics */
732*[class~="topic\/link"], *[class~="topic\/xref"] {
733 text-decoration: underline;
734 color: red;
735}
736
737*[href][class~="topic\/link"], *[href][class~="topic\/xref"] {
738 text-decoration: underline;
739 color: blue;
740}
741
742*[class~="topic\/link"] {
743 display: block;
744 margin-left: 20pt;
745}
746
747*[class~="topic\/xref"]:before {
748 font-weight: bold;
749 content: "[" attr(type) "--" attr(href) "]";
750}
751
752/* rendering support for XML meta elements (comments, PIs) */
753*:comment, *:processing-instruction {
754 padding: 2px;
755 font-size: smaller;
756 font-family: monospace;
757}
758
759*:comment {
760 border: thin solid rgb(128, 128, 0);
761 background-color: rgb(192, 192, 128);
762}
763
764*:processing-instruction {
765 border: thin solid rgb(0, 128, 0);
766 background-color: rgb(192, 255, 192);
767}
768
769*:comment, *:processing-instruction {
770 display: block;
771 white-space: pre;
772 margin: 2px;
773}
774
775/* process specific behaviors */
776@media morphon {
777 * {
778 additional-helpset-location: url(dita-help.jar);
779 additional-helpset-mapfile: url(morphon-map.xml);
780 additional-helpset-name: dita-help;
781 }
782 *[class~="topic\/entry"] {
783 display: table-cell;
784 }
785 *[class~="topic\/xtgroup"] {
786 table-model: cals;
787 }
788 *[format="GIF"][class~="topic\/image"] {
789 plugin-view: "com.morphon.visualplugins.docbook.DocBook_ImageData";
790 }
791
792}
793
794@media xxe {
795 /* list item */
796 *[class~="topic\/ul"] {
797 margin-left: 2ex;
798 margin-top: 1.33ex;
799 margin-bottom: 1.33ex;
800 }
801 *[class~="topic\/ul"] > li {
802 margin-left: 2.5ex;
803 }
804 *[class~="topic\/ul"] > li:before {
805 display: marker;
806 content: disc;
807 }
808 *[class~="topic\/ul"] > li *[class~="topic\/ul"] > li:before {
809 display: marker;
810 content: square;
811 }
812 *[class~="topic\/ul"] > li *[class~="topic\/ul"] > li *[class~="topic\/ul"] > li:before {
813 display: marker;
814 content: icon(diamond);
815 }
816 *[class~="topic\/ul"] > li *[class~="topic\/ul"] > li *[class~="topic\/ul"] > li *[class~="topic\/ul"] > li:before {
817 display: marker;
818 content: circle;
819 }
820 *[class~="topic\/ol"] {
821 margin-left: 2ex;
822 margin-top: 1.33ex;
823 margin-bottom: 1.33ex;
824 }
825 *[class~="topic\/ol"] > li {
826 margin-left: 6ex;
827 }
828 *[class~="topic\/ol"] > li:before {
829 display: marker;
830 content: counter(n,decimal);
831 font-weight: bold;
832 }
833 *[style~=lower-alpha][class~="topic\/ol"] > li:before {
834 display: marker;
835 content: counter(n,lower-alpha);
836 }
837 *[style~=upper-alpha][class~="topic\/ol"] > li:before {
838 display: marker;
839 content: counter(n,upper-alpha);
840 }
841 *[style~=lower-roman][class~="topic\/ol"] > li:before {
842 display: marker;
843 content: counter(n,lower-roman);
844 }
845 *[style~=upper-roman][class~="topic\/ol"] > li:before {
846 display: marker;
847 content: counter(n,upper-roman);
848 }
849 *[class~="topic\/ol"] ul, ul *[class~="topic\/ol"], ul ul, *[class~="topic\/ol"] *[class~="topic\/ol"] {
850 margin-top: 0;
851 margin-bottom: 0;
852 }
853
854}
855
856/* alternate dl rendering as a table */
857xdl {
858 display: table;
859}
860
861xdlhead {
862 display: table-row;
863}
864
865xdthd {
866 display: table-cell;
867 font-weight: bold;
868 background-color: silver;
869}
870
871xddhd {
872 content: " - ";
873 display: table-cell;
874 font-weight: bold;
875 background-color: silver;
876}
877
878xdlentry {
879 display: table-row;
880}
881
882xdt {
883 display: table-cell;
884 font-weight: bold;
885}
886
887xdd {
888 display: table-cell;
889}
890
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette