hgbook

view stylesheets/hgbook.css @ 661:65b82a891cf7

Add epub format
author Dongsheng Song <dongsheng.song@gmail.com>
date Tue Mar 31 11:04:18 2009 +0800 (2009-03-31)
parents f7d674e6e736
children 4dd63ae7ba87
line source
1 body
2 {
3 background: white;
4 margin: 1in;
5 font-family: Georgia,SimSun,serif;
6 }
8 p, li, ul, ol, dd, dt
9 {
10 font-style: normal;
11 font-weight: normal;
12 color: black;
13 }
15 tt, pre
16 {
17 font-family: Consolas,KaiTi,FangSong,SimSun,monospace;
18 }
20 a
21 {
22 color: blue;
23 text-decoration: underline;
24 }
26 a:hover
27 {
28 background: rgb(75%,75%,100%);
29 color: blue;
30 text-decoration: underline;
31 }
33 a:visited
34 {
35 color: purple;
36 text-decoration: underline;
37 }
39 img
40 {
41 border: none;
42 }
44 h1.title
45 {
46 font-size: 250%;
47 font-style: normal;
48 font-weight: bold;
49 color: black;
50 }
52 h2.subtitle
53 {
54 font-size: 150%;
55 font-style: italic;
56 color: black;
57 }
59 h2.title
60 {
61 font-size: 150%;
62 font-style: normal;
63 font-weight: bold;
64 color: black;
65 }
67 h3.title
68 {
69 font-size: 125%;
70 font-style: normal;
71 font-weight: bold;
72 color: black;
73 }
75 h4.title
76 {
77 font-size: 100%;
78 font-style: normal;
79 font-weight: bold;
80 color: black;
81 }
83 strong
84 {
85 font-weight: normal;
86 }
88 .toc b
89 {
90 font-family: Verdana,SimHei,sans-serif;
91 font-size: 120%;
92 font-style: normal;
93 font-weight: bold;
94 color: black;
95 }
97 .title
98 {
99 font-family: Verdana,SimHei,sans-serif;
100 }
102 .screen, .programlisting, .structname
103 {
104 font-family: Consolas,KaiTi,FangSong,SimSun,monospace;
105 font-style: normal;
106 font-weight: normal;
107 }
109 .userinput
110 {
111 font-weight: normal;
112 }
114 .command
115 {
116 font-style: italic;
117 }
119 .filename
120 {
121 font-family: Georgia,SimSun,serif;
122 font-style: italic;
123 }
125 .figure, .example, .table
126 {
127 margin: 0.125in 0.25in;
128 }
130 .figure p.title b, .example p.title b, .table p.title b
131 {
132 font-family: Georgia,SimSun,serif;
133 font-size: 80%;
134 font-style: italic;
135 font-weight: normal;
136 }
138 .table table
139 {
140 border-width: 1px;
141 border-style: solid;
142 border-color: black;
143 border-spacing: 0;
144 background: rgb(240,240,240);
145 }
147 .table td
148 {
149 border: none;
150 border-right: 1px black solid;
151 border-bottom: 1px black solid;
152 padding: 2px;
153 }
155 .table th
156 {
157 background: rgb(180,180,180);
158 border: none;
159 border-right: 1px black solid;
160 border-bottom: 1px black solid;
161 padding: 2px;
162 }
164 .table p.title, .figure p.title, .example p.title
165 {
166 text-align: left !important;
167 font-size: 100% !important;
168 }
170 .author, .pubdate
171 {
172 margin: 0;
173 font-size: 100%;
174 font-style: italic;
175 font-weight: normal;
176 color: black;
177 }
179 .preface div.author, .preface .pubdate
180 {
181 font-size: 80%;
182 }
184 .sidebar
185 {
186 border-top: dotted 1px black;
187 border-left: dotted 1px black;
188 border-right: solid 2px black;
189 border-bottom: solid 2px black;
190 background: rgb(240,220,170);
191 padding: 0 0.12in;
192 margin: 0.25in;
193 }
195 .note .programlisting, .note .screen,
196 .tip .programlisting, .tip .screen,
197 .warning .programlisting, .warning .screen,
198 .sidebar .programlisting, .sidebar .screen
199 {
200 border: none;
201 background: none;
202 }
204 .sidebar p.title
205 {
206 text-align: center;
207 font-size: 125%;
208 }
210 .note, .tip, .warning
211 {
212 border: black solid 1px;
213 margin: 0.125in 0;
214 padding: 0 55px;
215 font-size: 90%;
216 }
218 .note
219 {
220 background: url(./figs/note.png) no-repeat rgb(252,246,220);
221 }
223 .tip
224 {
225 background: url(./figs/tip.png) no-repeat rgb(224,244,255);
226 }
228 .warning
229 {
230 background: url(./figs/warning.png) no-repeat rgb(255,210,210);
231 }
233 .note .title, .tip .title, .warning .title
234 {
235 display: none;
236 }
238 .programlisting, .screen
239 {
240 font-size: 90%;
241 color: black;
242 margin: 1em 0.25in;
243 padding: 0.5em;
244 background: rgb(240,240,240);
245 border-top: black dotted 1px;
246 border-left: black dotted 1px;
247 border-right: black solid 2px;
248 border-bottom: black solid 2px;
249 }
251 .navheader, .navfooter
252 {
253 border: black solid 1px;
254 background: rgb(180,180,200);
255 }
257 .navheader hr, .navfooter hr
258 {
259 display: none;
260 }
262 #svn-footer
263 {
264 font-size: 80%;
265 text-align: center;
266 }
268 #svn-footer hr
269 {
270 display: none;
271 }
273 /* --------------------- */
274 /* PRINT MEDIA OVERRIDES */
275 /* --------------------- */
277 @media print
278 {
279 body
280 {
281 margin: 0;
282 }
284 .navheader, .navfooter
285 {
286 display: none;
287 }
289 #svn-footer hr
290 {
291 display: block;
292 }
293 }