@@ -36,13 +36,16 @@ cxx-titlepage { page: title; page-break-after: always; }
36
36
37
37
@media print {
38
38
html { font-size : 10pt ; }
39
- * / deep/ pre , * / deep / code { font-size : 8 pt ; }
39
+ * / deep/ code { font-size : 80 % ; }
40
40
/* Note that only Prince generates clickable links. */
41
41
* / deep/ a[href ] { text-decoration : none; }
42
42
}
43
43
44
- /* Needed to make the <cxx-titlepage>'s vertical spacing work. */
45
- html , body {height : 100% }
44
+ @media screen {
45
+ /* Needed to make the <cxx-titlepage>'s vertical spacing work.
46
+ For print see the <cxx-titlepage> definition. */
47
+ html , body {height : 100% }
48
+ }
46
49
47
50
cxx-docnum { string-set : docnum content (); }
48
51
@@ -90,19 +93,25 @@ pre {
90
93
margin-top : .5em ;
91
94
margin-bottom : .5em ;
92
95
}
93
- pre > code { display : inline-block; }
94
-
95
96
96
- /* Use an em-dash for the list bullet. */
97
- ul {
98
- list-style : none;
99
- /* Relative positioning on the 'ul' lets the absolutely-positioned
100
- marker align relative to it.*/
101
- position : relative;
97
+ /* Use an em-dash for the list bullet.
98
+ 'print' is a proxy for supporting ::marker. */
99
+ @media screen {
100
+ ul {
101
+ list-style : none;
102
+ /* Relative positioning on the 'ul' lets the absolutely-positioned
103
+ marker align relative to it.*/
104
+ position : relative;
105
+ }
106
+ ul li : before {
107
+ content : "\2014" ;
108
+ position : absolute; left : 10px ;
109
+ }
102
110
}
103
- ul li : before {
104
- content : "\2014" ;
105
- position : absolute; left : 10px ;
111
+ @media print {
112
+ ul li ::marker {
113
+ content : "\2014" ;
114
+ }
106
115
}
107
116
108
117
/* This is here rather than inside elements/toc.html because browsers
0 commit comments