VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/css/topic.css@ 99040

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

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

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

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