Repository navigation
Expand file tree
/
Copy pathditac.css
More file actions
1224 lines (1032 loc) · 30.5 KB
/
Copy pathditac.css
File metadata and controls
1224 lines (1032 loc) · 30.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* CSS Paged Media stylesheet for processing DITA content merged with TypesDitac */
@namespace ditac url(http://www.xmlmind.com/ditac/schema/ditac);
@font-face {
font-family: "Noto Sans Mono";
src: url("./fonts/NotoSansMono-VariableFont_wdth,wght.ttf");
font-weight: 100 900;
font-stretch: 62.5% 100%;
}
@font-face {
font-family: "Noto Serif Display";
src: url("./fonts/NotoSerifDisplay-Regular.ttf");
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "Noto Serif Display";
src: url("./fonts/NotoSerifDisplay-Bold.ttf");
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: "Noto Serif Display";
src: url("./fonts/NotoSerifDisplay-Italic.ttf");
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: "Noto Serif Display";
src: url("./fonts/NotoSerifDisplay-BoldItalic.ttf");
font-weight: 700;
font-style: italic;
}
@font-face {
font-family: "Noto Sans";
src: url("./fonts/NotoSans-Regular.ttf");
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "Noto Sans";
src: url("./fonts/NotoSans-Bold.ttf");
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: "Noto Sans";
src: url("./fonts/NotoSans-Italic.ttf");
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: "Noto Sans";
src: url("./fonts/NotoSans-BoldItalic.ttf");
font-weight: 700;
font-style: italic;
}
@font-face {
font-family: "Noto Sans JP";
src: url("./fonts/NotoSansCJKjp-Regular.otf");
font-weight: 400;
font-style: normal;
}
:lang(ja) {
font-family: "Noto Sans JP", "Noto Sans", sans-serif;
}
/* ------------------------------------------------------------------ */
/* Page geometry, running headers/footers, page numbering */
/* ------------------------------------------------------------------ */
@page {
size: A4;
margin: 1in;
@top-center {
content: string(book-title);
font-family: "Noto Sans", sans-serif;
font-size: 8pt;
color: #808080;
border-bottom: 0.5pt solid #808080;
padding-bottom: 4pt;
margin-bottom: 24pt;
vertical-align: bottom;
}
@bottom-left {
content: "";
border-top: 0.5pt solid #808080;
margin-top: 24pt;
}
@bottom-center {
content: string(chapter-title);
font-family: "Noto Sans", sans-serif;
font-size: 8pt;
color: #808080;
border-top: 0.5pt solid #808080;
padding-top: 4pt;
margin-top: 24pt;
vertical-align: top;
}
@bottom-right {
content: counter(page);
font-family: "Noto Sans", sans-serif;
font-size: 8pt;
color: #808080;
border-top: 0.5pt solid #808080;
padding-top: 4pt;
margin-top: 24pt;
vertical-align: top;
}
}
/* Title page: no running headers/footers at all */
@page :first {
@top-center { content: none; }
@bottom-left { content: none; }
@bottom-center { content: none; }
@bottom-right { content: none; }
}
/* Front matter (table of contents) and back matter (glossary) are
numbered with their own lower-roman sequence, like the reference PDF */
@page roman {
@top-center {
content: string(book-title);
font-family: "Noto Sans", sans-serif;
font-size: 8pt;
color: #808080;
border-bottom: 0.5pt solid #808080;
padding-bottom: 4pt;
margin-bottom: 24pt;
vertical-align: bottom;
}
@bottom-left {
content: "";
border-top: 0.5pt solid #808080;
margin-top: 24pt;
}
@bottom-center {
content: string(chapter-title);
font-family: "Noto Sans", sans-serif;
font-size: 8pt;
color: #808080;
border-top: 0.5pt solid #808080;
padding-top: 4pt;
margin-top: 24pt;
vertical-align: top;
}
@bottom-right {
content: counter(page, lower-roman);
font-family: "Noto Sans", sans-serif;
font-size: 8pt;
color: #808080;
border-top: 0.5pt solid #808080;
padding-top: 4pt;
margin-top: 24pt;
vertical-align: top;
}
}
/* ------------------------------------------------------------------ */
/* Document root and structural wrappers */
/* ------------------------------------------------------------------ */
bookmap {
display: block;
font-family: "Noto Sans", sans-serif;
font-size: 10pt;
line-height: 1.35;
orphans: 2;
widows: 2;
counter-reset: appendix;
}
/* topicmeta/navtitle carry no printable content of their own in this
file (an empty navtitle is their only child): safe to hide outright.
topicref is NOT hidden here: it is the wrapper around every nested
section topic and every glossary entry, and display:none would take
its descendants down with it. */
*[class~="map/topicmeta"], *[class~="topic/navtitle"] {
display: none;
}
/* every map/topicref (frontmatter, booklists, glossarylist, chapter,
backmatter, topicref...) is a pure container with no visual identity
of its own; left inline, one that holds a block would leave an empty
anonymous block before it, which stops the forced break of its first
topic from reaching the parent and gives a blank page */
*[class~="map/topicref"] {
display: block;
}
/* page and a forced break make a page group (GCPM 3 §3.2); the page
counter belongs to the page context (CSS Paged Media 3 §6.1), so each
group restarts it in an @page rule for its first page */
*[class~="bookmap/frontmatter"] {
page: roman;
break-before: page;
}
*[class~="bookmap/backmatter"] {
page: roman;
break-before: page;
/* clear the running chapter-title left over from the last chapter */
string-set: chapter-title "";
}
/* the main body restarts decimal page numbering at 1 on its first page:
the title page of the first part when the book has parts, otherwise
the first chapter */
bookmap > *[class~="bookmap/part"]:first-of-type > *[class~="topic/topic"],
bookmap:not(:has(> *[class~="bookmap/part"])) > *[class~="bookmap/chapter"]:first-of-type > *[class~="topic/topic"] {
page: body;
break-before: page;
}
/* counter-set, applied after the automatic increment of the page counter */
@page roman:nth(1 of roman) {
counter-set: page 1;
}
@page body:nth(1 of body) {
counter-set: page 1;
}
/* ------------------------------------------------------------------ */
/* Title page */
/* ------------------------------------------------------------------ */
ditac|titlePage {
display: block;
break-after: page;
}
/* booktitle is also a topic/title: undo the generic heading look so the
parts inside it style themselves */
ditac|titlePage *[class~="bookmap/booktitle"] {
display: block;
font-weight: normal;
color: black;
break-after: auto;
}
/* only the title-page copy of the title feeds the running header;
the duplicate bookmap/booktitle in the main flow (image only, no
text) must not overwrite the string with an empty value */
ditac|titlePage *[class~="bookmap/mainbooktitle"] {
string-set: book-title content();
display: block;
text-align: center;
font-family: "Noto Sans", sans-serif;
font-weight: bold;
font-size: 2em;
margin-top: 1.3cm;
}
*[class~="bookmap/mainbooktitle"] {
display: block;
text-align: center;
}
*[class~="bookmap/booktitlealt"] {
display: block;
text-align: center;
font-family: "Noto Sans", sans-serif;
font-style: italic;
font-size: 1.2em;
margin-top: 1.5em;
}
bookmap > *[class~="topic/title"] {
display: none;
}
/* Some books title their cover with a plain topic/title directly
inside ditac:titlePage instead of a bookmap/booktitle structure */
ditac|titlePage > *[class~="topic/title"]:not([class~="bookmap/booktitle"]) {
string-set: book-title content();
display: block;
text-align: center;
font-family: "Noto Sans", sans-serif;
font-weight: bold;
font-size: 2.4em;
color: #004885;
margin-top: 4cm;
}
/* Cover byline: author, organization, postal and contact details, date.
The titlePage prefix outranks the generic rule that hides topic/data. */
ditac|titlePage *[class~="bookmap/bookmeta"] {
display: block;
text-align: center;
font-family: "Noto Serif Display", serif;
margin-top: 1.5em;
}
ditac|titlePage *[class~="xnal-d/authorinformation"],
ditac|titlePage *[class~="xnal-d/personinfo"],
ditac|titlePage *[class~="xnal-d/organizationinfo"],
ditac|titlePage *[class~="xnal-d/addressdetails"],
ditac|titlePage *[class~="xnal-d/locality"],
ditac|titlePage *[class~="xnal-d/country"],
ditac|titlePage *[class~="xnal-d/contactnumbers"],
ditac|titlePage *[class~="xnal-d/contactnumber"],
ditac|titlePage *[class~="xnal-d/emailaddresses"],
ditac|titlePage *[class~="xnal-d/emailaddress"],
ditac|titlePage *[class~="xnal-d/urls"],
ditac|titlePage *[class~="xnal-d/url"] {
display: block;
}
ditac|titlePage *[class~="xnal-d/organizationinfo"] {
margin-top: 0.8em;
}
ditac|titlePage *[class~="xnal-d/namedetails"],
ditac|titlePage *[class~="xnal-d/personname"],
ditac|titlePage *[class~="xnal-d/firstname"],
ditac|titlePage *[class~="xnal-d/lastname"],
ditac|titlePage *[class~="xnal-d/organizationnamedetails"],
ditac|titlePage *[class~="xnal-d/organizationname"] {
display: inline;
}
ditac|titlePage *[class~="xnal-d/emailaddress"],
ditac|titlePage *[class~="xnal-d/url"] {
font-family: "Noto Sans Mono", monospace;
font-size: 0.8em;
color: #333399;
}
ditac|titlePage *[class~="topic/critdates"] {
display: block;
margin-top: 1.8em;
}
ditac|titlePage *[class~="topic/revised"]:last-of-type::before {
content: attr(golive);
}
/* ------------------------------------------------------------------ */
/* Table of contents (frontmatter) */
/* */
/* ditac:tocEntry carries its label in the "title" attribute and no */
/* text children, and the link to the chapter/section it refers to in */
/* its "targetLink" attribute. The entry is a leader-dotted title */
/* followed by the page of that target. */
/* ------------------------------------------------------------------ */
ditac|toc {
display: block;
break-before: page;
counter-reset: toc-appendix;
}
ditac|toc > *[class~="topic/title"] {
display: block;
bookmark-level: 1;
font-family: "Noto Sans", sans-serif;
font-weight: bold;
font-size: 1.9em;
color: #004885;
margin-bottom: 0.8em;
}
ditac|tocEntry {
display: block;
break-inside: avoid;
--dest: attr(targetLink);
-cssmedia-link: var(--dest);
}
ditac|tocEntry > ditac|tocEntry {
margin-left: 1.5em;
}
ditac|tocEntry::before {
content: attr(title) leader(dotted) -cssmedia-link-counter(page);
}
ditac|frontmatterTOC ditac|tocEntry::before,
ditac|backmatterTOC ditac|tocEntry::before {
content: attr(title) leader(dotted) -cssmedia-link-counter(page, lower-roman);
}
ditac|tocEntry[role="appendix"] {
counter-increment: toc-appendix;
}
ditac|tocEntry[role="appendix"]::before {
content: "Appendix " counter(toc-appendix, upper-alpha) ": " attr(title) leader(dotted) -cssmedia-link-counter(page);
}
ditac|tocEntry:not([targetLink]) {
--dest: attr(title);
}
ditac|tocEntry[role="part"] {
margin-top: 1em;
}
ditac|tocEntry[role="part"]::before {
font-weight: bold;
font-size: 1.1em;
}
ditac|tocEntry[role="chapter"],
ditac|tocEntry[role="appendix"],
ditac|backmatterTOC > ditac|tocEntry {
margin-top: 0.6em;
}
ditac|tocEntry[role="chapter"]::before,
ditac|tocEntry[role="appendix"]::before,
ditac|backmatterTOC > ditac|tocEntry::before {
font-weight: bold;
}
ditac|tocEntry[role="section2"]::before {
font-size: 0.95em;
}
/* Index (backmatter). ditac:indexEntry/ditac:div carry their label in
"term"/"title" attributes with no text children, the same situation
as ditac:tocEntry above. Each ditac:indexAnchor links to the body
location of one occurrence of the term, and prints its page. */
ditac|indexList {
display: block;
break-before: page;
}
ditac|indexList > *[class~="topic/title"] {
display: block;
bookmark-level: 1;
font-family: "Noto Sans", sans-serif;
font-weight: bold;
font-size: 1.9em;
color: #004885;
border-bottom: 2pt solid #004885;
padding-bottom: 0.2em;
margin-bottom: 0.6em;
}
ditac|div {
display: block;
break-inside: avoid;
}
/* List of Figures / List of Tables. ditac:figure/ditac:table carry their
label in the "title" attribute and no text children, same as
ditac:tocEntry above: each entry is the title, a leader and the page of
the figure or table it names. Their "number" attribute is a structural
path (part.1 chapter.2 figure.1), not a label to print. */
ditac|figureList,
ditac|tableList {
display: block;
break-before: page;
}
ditac|figureList > *[class~="topic/title"],
ditac|tableList > *[class~="topic/title"] {
display: block;
bookmark-level: 1;
font-family: "Noto Sans", sans-serif;
font-weight: bold;
font-size: 1.9em;
color: #004885;
margin-bottom: 0.8em;
}
ditac|figure,
ditac|table {
display: block;
break-inside: avoid;
margin: 0.2em 0 0.2em 4em;
--dest: attr(targetLink);
-cssmedia-link: var(--dest);
}
ditac|figure::before,
ditac|table::before {
content: attr(title) leader(dotted) target-counter(var(--dest), page);
}
ditac|div::before {
content: attr(title);
display: block;
font-weight: bold;
color: #004885;
margin-top: 0.8em;
margin-bottom: 0.3em;
}
ditac|indexEntry {
display: block;
margin: 0.15em 0;
}
ditac|indexEntry::before {
content: attr(term);
}
ditac|indexSee::before {
content: ". See " attr(term);
font-style: italic;
}
ditac|indexSeeAlso::before {
content: ". See also " attr(term);
font-style: italic;
}
ditac|indexAnchor {
display: inline;
--dest: attr(targetLink);
-cssmedia-link: var(--dest);
}
ditac|indexAnchor::before {
content: ", " target-counter(var(--dest), page);
}
/* ------------------------------------------------------------------ */
/* Topics, titles, headings */
/* ------------------------------------------------------------------ */
*[class~="topic/topic"] {
display: block;
}
*[class~="topic/body"] {
display: block;
}
*[class~="topic/title"] {
display: block;
font-family: "Noto Sans", sans-serif;
font-weight: bold;
color: #004885;
break-after: avoid;
}
/* H1: chapter-level topic title (direct child of a chapter) */
*[class~="bookmap/chapter"] > *[class~="topic/topic"] {
break-before: page;
}
*[class~="bookmap/chapter"] > *[class~="topic/topic"] > *[class~="topic/title"] {
string-set: chapter-title content();
bookmark-level: 1;
font-size: 1.9em;
border-bottom: 2pt solid #004885;
padding-bottom: 0.2em;
margin-top: 0;
margin-bottom: 0.6em;
}
/* H2: section1-level topic title (one topicref deep inside a chapter) */
*[class~="bookmap/chapter"] > topicref > *[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-level: 2;
font-size: 1.35em;
border-bottom: 1pt solid #004885;
padding-bottom: 0.15em;
margin-top: 1.4em;
margin-bottom: 0.5em;
}
/* H3: section2-level topic title (two topicrefs deep inside a chapter) */
*[class~="bookmap/chapter"] > topicref > topicref > *[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-level: 3;
font-size: 1.1em;
margin-top: 1.1em;
margin-bottom: 0.4em;
}
/* Part: a divider level above chapter, grouping several chapters
under one heading and (optionally) an intro paragraph */
*[class~="bookmap/part"] > *[class~="topic/topic"] {
break-before: page;
}
*[class~="bookmap/part"] > *[class~="topic/topic"] > *[class~="topic/title"] {
display: block;
bookmark-level: 1;
text-align: center;
font-size: 2.2em;
margin-top: 3cm;
margin-bottom: 0.6em;
}
*[class~="bookmap/part"] *[class~="bookmap/chapter"] > *[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-level: 2;
}
*[class~="bookmap/part"] *[class~="bookmap/chapter"] > topicref > *[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-level: 3;
}
*[class~="bookmap/part"] *[class~="bookmap/chapter"] > topicref > topicref > *[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-level: 4;
}
*[class~="map/shortdesc"] {
display: block;
font-style: italic;
margin: 0.6em 0;
}
*[class~="bookmap/part"] > *[class~="topic/topic"] > *[class~="map/shortdesc"] {
text-align: center;
margin: 0 3em;
}
/* Appendix: same visual weight as a chapter title, prefixed with an
auto-numbered "Appendix A", "Appendix B"... label */
*[class~="bookmap/appendix"] > *[class~="topic/topic"] {
break-before: page;
counter-increment: appendix;
}
*[class~="bookmap/appendix"] > *[class~="topic/topic"] > *[class~="topic/title"] {
string-set: chapter-title content();
bookmark-level: 1;
font-size: 1.9em;
border-bottom: 2pt solid #004885;
padding-bottom: 0.2em;
margin-top: 0;
margin-bottom: 0.6em;
}
*[class~="bookmap/appendix"] > *[class~="topic/topic"] > *[class~="topic/title"]::before {
content: "Appendix " counter(appendix, upper-alpha) ": ";
}
/* Glossary heading (backmatter) reuses the chapter-level title style */
*[class~="bookmap/glossarylist"] > *[class~="topic/topic"] > *[class~="topic/title"] {
display: block;
font-family: "Noto Sans", sans-serif;
font-weight: bold;
bookmark-level: 1;
font-size: 1.9em;
color: #004885;
border-bottom: 2pt solid #004885;
padding-bottom: 0.2em;
margin-top: 0;
margin-bottom: 0.6em;
break-before: page;
break-after: avoid;
}
*[class~="topic/shortdesc"], *[class~="topic/abstract"] {
display: block;
font-style: italic;
margin: 0.6em 0;
}
*[class~="topic/section"] {
display: block;
margin: 1em 0;
}
*[class~="topic/section"] > *[class~="topic/title"] {
font-size: 1.1em;
color: #004885;
margin-top: 1em;
margin-bottom: 0.4em;
}
*[class~="topic/fig"] {
display: block;
margin: 0.8em 0;
text-align: center;
}
*[class~="topic/fig"] > *[class~="topic/title"] {
display: block;
font-weight: normal;
font-style: italic;
color: black;
font-size: 1em;
text-align: left;
margin-bottom: 0.4em;
}
/* front matter book abstract: a preface-like topic, own page,
chapter-weight title */
*[class~="bookmap/bookabstract"] {
display: block;
break-before: page;
}
*[class~="bookmap/bookabstract"] > *[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-level: 1;
font-size: 1.9em;
border-bottom: 2pt solid #004885;
padding-bottom: 0.2em;
margin-top: 0;
margin-bottom: 0.6em;
}
*[class~="topic/example"] {
display: block;
margin: 1em 0;
}
*[class~="topic/example"] > *[class~="topic/title"] {
font-size: 1em;
font-style: italic;
color: black;
margin-top: 0;
margin-bottom: 0.4em;
}
/* ------------------------------------------------------------------ */
/* Task/reference structure: auto-generated section labels */
/* ------------------------------------------------------------------ */
*[class~="task/taskbody"] {
display: block;
}
*[class~="task/context"]::before,
*[class~="task/prereq"]::before,
*[class~="task/result"]::before,
*[class~="task/postreq"]::before,
*[class~="reference/refsyn"]::before {
display: block;
font-family: "Noto Sans", sans-serif;
font-weight: bold;
color: #004885;
font-size: 1.1em;
margin-top: 1.1em;
margin-bottom: 0.4em;
}
*[class~="task/context"]::before { content: "About this task"; }
*[class~="task/prereq"]::before { content: "Prerequisites"; }
*[class~="task/result"]::before { content: "Results"; }
*[class~="task/postreq"]::before { content: "Next Steps"; }
*[class~="reference/refsyn"]::before { content: "Syntax"; }
*[class~="task/steps"]::before {
display: block;
font-family: "Noto Sans", sans-serif;
font-weight: bold;
color: #004885;
font-size: 1.1em;
margin-top: 1.1em;
margin-bottom: 0.4em;
content: "Procedure";
}
*[class~="task/cmd"] {
display: inline;
}
*[class~="task/info"],
*[class~="task/stepresult"],
*[class~="task/tutorialinfo"],
*[class~="task/stepxmp"] {
display: block;
margin: 0.5em 0 0.5em 0;
}
/* ------------------------------------------------------------------ */
/* Paragraphs, lists */
/* ------------------------------------------------------------------ */
*[class~="topic/p"] {
display: block;
margin: 0.6em 0;
}
*[class~="topic/itemgroup"] {
display: block;
margin: 0.6em 0;
}
*[class~="topic/note"] {
display: block;
margin: 1em 0 1em 8pt;
padding: 8pt 10pt;
background-color: #F2F2F2;
border-left: 3pt solid #004885;
}
*[class~="topic/note"]::before {
content: "Note";
display: block;
break-after: avoid;
font-family: "Noto Sans", sans-serif;
font-weight: bold;
color: #004885;
margin-bottom: 4pt;
}
*[class~="topic/note"][type="important"] {
background-color: #FBEAEA;
border-left-color: #B00020;
}
*[class~="topic/note"][type="important"]::before {
content: "Important";
color: #B00020;
}
*[class~="topic/note"][type="notice"]::before {
content: "Notice";
text-transform: uppercase;
}
*[class~="topic/ol"] {
display: block;
list-style-type: decimal;
margin: 0.6em 0;
}
*[class~="topic/ul"] {
display: block;
list-style-type: disc;
margin: 0.6em 0;
}
*[class~="topic/ul"] *[class~="topic/ul"] {
list-style-type: "\2013\0020";
}
*[class~="task/substeps"] {
list-style-type: lower-alpha;
}
*[class~="topic/li"] {
display: list-item;
margin: 0.3em 0 0.3em 2em;
}
*[class~="topic/sl"] {
display: block;
list-style-type: disc;
margin: 0.6em 0;
}
*[class~="topic/sli"] {
display: list-item;
margin: 0.2em 0 0.2em 2em;
}
*[class~="topic/dl"] {
display: block;
margin: 0.6em 0;
}
*[class~="topic/dlentry"] {
display: block;
margin: 0.5em 0;
}
*[class~="topic/dt"] {
display: block;
font-weight: bold;
break-after: avoid;
}
*[class~="topic/dd"] {
display: block;
margin-left: 2em;
}
*[class~="topic/lq"] {
display: block;
font-style: italic;
margin: 0.8em 2em;
}
/* topic/pre and its pr-d/codeblock and ui-d/screen specializations
(both share this base class) */
*[class~="topic/pre"] {
display: block;
font-family: "Noto Sans Mono", monospace;
font-size: 0.9em;
white-space: pre-wrap;
overflow-wrap: anywhere;
background-color: #F0F0F0;
border: 0.5pt solid #D0D0D0;
padding: 0.5em;
margin: 0.6em 0;
break-inside: avoid;
}
*[class~="topic/lines"] {
display: block;
white-space: pre-line;
}
/* topic/div is a generic, unstyled grouping wrapper */
*[class~="topic/div"] {
display: block;
}
/* ------------------------------------------------------------------ */
/* Inline phrases */
/* ------------------------------------------------------------------ */
/* topic/keyword covers its sw-d/pr-d/markup-d/xml-d specializations
(cmdname, varname, apiname, option, xmlelement, xmlatt, xmlpi...):
all of them name something from code, so monospace throughout */
*[class~="pr-d/codeph"], *[class~="sw-d/userinput"], *[class~="sw-d/filepath"], *[class~="topic/keyword"], *[class~="hi-d/tt"] {
font-family: "Noto Sans Mono", monospace;
}
*[class~="topic/cite"], *[class~="topic/term"] {
font-style: italic;
}
*[class~="topic/tm"][tmtype="tm"]::after {
content: "\2122";
font-size: 0.7em;
vertical-align: super;
}
*[class~="topic/tm"][tmtype="reg"]::after {
content: "\00AE";
font-size: 0.7em;
vertical-align: super;
}
*[class~="topic/tm"][tmtype="service"]::after {
content: "\2120";
font-size: 0.7em;
vertical-align: super;
}
/* footnotes are not floated to the page bottom (no reliable general
CSS mechanism for that in this pipeline yet); shown inline instead,
set off from the surrounding sentence */
*[class~="topic/fn"] {
font-size: 0.85em;
color: #404040;
}
*[class~="topic/fn"]::before {
content: " (";
}
*[class~="topic/fn"]::after {
content: ")";
}
/* equations and inline SVG figures: no attempt to render the math or
vector content itself, just reasonable block/inline placement */
*[class~="equation-d/equation-block"], *[class~="equation-d/equation-figure"] {
display: block;
text-align: center;
margin: 0.8em 0;
}
*[class~="svg-d/svg-container"] {
display: block;
text-align: center;
margin: 0.6em 0;
}
*[class~="topic/indexterm"] {
position: absolute;
visibility: hidden;
}
/* metadata-only elements: nothing here is meant to reach the page */
*[class~="topic/titlealts"],
*[class~="topic/prolog"],
*[class~="topic/data"],
*[class~="topic/object"],
*[class~="topic/param"],
*[class~="topic/index-base"],
*[class~="map/reltable"] {
display: none;
}
*[class~="hi-d/b"] {
font-weight: bold;
}