Debian Codegraph @

src/docbkx/css/print.css

raw
1 /*
2 * Copyright 2009-2013 Roland Huss
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 @page {
17 size: A4;
18 padding: 0;
19 margin: 2cm;
20 }
21
22 @page contentpage {
23 margin-bottom: 2.2cm;
24 @bottom-right {
25 content: 'Page ' counter(page) ' of ' counter(pages);
26 font-family: 'Lucida Grande','Lucida Sans Unicode','Lucida Sans','Geneva','Verdana',sans-serif;
27 font-size: 10pt;
28 color: #777777;
29 padding-bottom: 1.2cm;
30 vertical-align: bottom;
31 }
32 }
33
34 body {
35 font-size: 10pt;
36 margin: 0;
37 margin-bottom: 2cm;
38 padding: 0;
39 padding-bottom: 2cm;
40 }
41
42 /*
43 * Override colour -> black and white
44 */
45 body, div, td {
46 color: black;
47 }
48
49 h1, h2, h3, h4, h5 {
50 color: black;
51 }
52
53 a {
54 color: black;
55 }
56
57 /*
58 * Book title page
59 */
60
61 .titlepage h1.title {
62 font-size: 360%;
63 margin: 0;
64 color: black;
65 }
66
67 .titlepage h2.subtitle {
68 font-size: 240%;
69 margin: 0;
70 color: black;
71 }
72
73 .titlepage .releaseinfo {
74 margin-top: 50%;
75 font-size: 180%;
76 color: black;
77 }
78
79 .book .titlepage div.title {
80 text-align: right;
81 page-break-after: always;
82 border: none;
83 background-color: white;
84 margin: 0;
85 padding-top: 24%;
86 padding-left: 0;
87 padding-right: 5%;
88 padding-bottom: 0;
89 }
90
91 .toc {
92 page-break-before: always;
93 }
94
95 .toc * {
96 line-height: 120%;
97 }
98
99 /**
100 * Chapter and Appendix title page
101 */
102
103 .chapter {
104 page: contentpage;
105 page-break-before: always;
106 }
107
108 .appendix {
109 page: contentpage;
110 page-break-before: always;
111 }
112
113 .chapter > .titlepage h1 {
114 font-size: 240%;
115 text-align: right;
116 }
117
118 .chapter > .titlepage h2 {
119 font-size: 400%;
120 text-align: right;
121 }
122
123 .chapter > .titlepage {
124 margin-bottom: 4em;
125 }
126
127 .appendix > .titlepage h1 {
128 font-size: 240%;
129 text-align: right;
130 }
131
132 .appendix > .titlepage h2 {
133 font-size: 400%;
134 text-align: right;
135 }
136
137 .appendix > .titlepage {
138 margin-bottom: 4em;
139 }
140
141 .section .titlepage {
142 page-break-after: avoid;
143 }
144
145 p {
146 text-align: justify;
147 }
148
149 /**
150 * Examples
151 */
152
153 .example .title {
154 text-align: left;
155 white-space: nowrap;
156 color: #666666
157 }
158
159 .example {
160 page-break-inside: avoid;
161 }
162
163 .figure .title {
164 text-align: left;
165 white-space: nowrap;
166 color: #666666
167 }
168
169 .figure {
170 page-break-inside: avoid;
171 }
172
173 .figure img {
174 width: 100%;
175 }
176
177 .table .title {
178 text-align: left;
179 white-space: nowrap;
180 color: #666666
181 }
182
183 .table {
184 page-break-inside: avoid;
185 }
186
187 .programlisting {
188 page-break-inside: avoid;
189 font-size: 90%;
190 }
191
192 .screen {
193 page-break-inside: avoid;
194 font-size: 90%;
195 }