~ubuntu-branches/ubuntu/jaunty/calibre/jaunty-backports

« back to all changes in this revision

Viewing changes to src/calibre/ebooks/lit/html.css

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-01-20 17:14:02 UTC
  • Revision ID: james.westby@ubuntu.com-20090120171402-8y3znf6nokwqe80k
Tags: upstream-0.4.125+dfsg
ImportĀ upstreamĀ versionĀ 0.4.125+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ***** BEGIN LICENSE BLOCK *****
 
2
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 
3
 *
 
4
 * The contents of this file are subject to the Mozilla Public License Version
 
5
 * 1.1 (the "License"); you may not use this file except in compliance with
 
6
 * the License. You may obtain a copy of the License at
 
7
 * http://www.mozilla.org/MPL/
 
8
 *
 
9
 * Software distributed under the License is distributed on an "AS IS" basis,
 
10
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 
11
 * for the specific language governing rights and limitations under the
 
12
 * License.
 
13
 *
 
14
 * The Original Code is mozilla.org code.
 
15
 *
 
16
 * The Initial Developer of the Original Code is
 
17
 * Netscape Communications Corporation.
 
18
 * Portions created by the Initial Developer are Copyright (C) 1998
 
19
 * the Initial Developer. All Rights Reserved.
 
20
 *
 
21
 * Contributor(s):
 
22
 *   Blake Ross <BlakeR1234@aol.com>
 
23
 *
 
24
 * Alternatively, the contents of this file may be used under the terms of
 
25
 * either of the GNU General Public License Version 2 or later (the "GPL"),
 
26
 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 
27
 * in which case the provisions of the GPL or the LGPL are applicable instead
 
28
 * of those above. If you wish to allow use of your version of this file only
 
29
 * under the terms of either the GPL or the LGPL, and not to allow others to
 
30
 * use your version of this file under the terms of the MPL, indicate your
 
31
 * decision by deleting the provisions above and replace them with the notice
 
32
 * and other provisions required by the GPL or the LGPL. If you do not delete
 
33
 * the provisions above, a recipient may use your version of this file under
 
34
 * the terms of any one of the MPL, the GPL or the LGPL.
 
35
 *
 
36
 * ***** END LICENSE BLOCK ***** */
 
37
 
 
38
@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
 
39
 
 
40
/* blocks */
 
41
 
 
42
html, div, map, dt, isindex, form {
 
43
  display: block;
 
44
}
 
45
 
 
46
body {
 
47
  display: block;
 
48
  margin: 8px;
 
49
}
 
50
 
 
51
p, dl, multicol {
 
52
  display: block;
 
53
  margin: 1em 0;
 
54
}
 
55
 
 
56
dd {
 
57
  display: block;
 
58
}
 
59
 
 
60
blockquote {
 
61
  display: block;
 
62
  margin: 1em 40px;
 
63
}
 
64
 
 
65
address {
 
66
  display: block;
 
67
  font-style: italic;
 
68
}
 
69
 
 
70
center {
 
71
  display: block;
 
72
  text-align: center;
 
73
}
 
74
 
 
75
blockquote[type=cite] {
 
76
  display: block;
 
77
  margin: 1em 0px;
 
78
  border-color: blue;
 
79
  border-width: thin;
 
80
}
 
81
 
 
82
span[_moz_quote=true] {
 
83
  color: blue;
 
84
}
 
85
 
 
86
pre[_moz_quote=true] {
 
87
  color: blue;
 
88
}
 
89
 
 
90
h1 {
 
91
  display: block;
 
92
  font-size: 2em;
 
93
  font-weight: bold;
 
94
  margin: .67em 0;
 
95
}
 
96
 
 
97
h2 {
 
98
  display: block;
 
99
  font-size: 1.5em;
 
100
  font-weight: bold;
 
101
  margin: .83em 0;
 
102
}
 
103
 
 
104
h3 {
 
105
  display: block;
 
106
  font-size: 1.17em;
 
107
  font-weight: bold;
 
108
  margin: 1em 0;
 
109
}
 
110
 
 
111
h4 {
 
112
  display: block;
 
113
  font-weight: bold;
 
114
  margin: 1.33em 0;
 
115
}
 
116
 
 
117
h5 {
 
118
  display: block;
 
119
  font-size: 0.83em;
 
120
  font-weight: bold;
 
121
  margin: 1.67em 0;
 
122
}
 
123
 
 
124
h6 {
 
125
  display: block;
 
126
  font-size: 0.67em;
 
127
  font-weight: bold;
 
128
  margin: 2.33em 0;
 
129
}
 
130
 
 
131
listing {
 
132
  display: block;
 
133
  font-family: monospace;
 
134
  font-size: medium;
 
135
  white-space: pre;
 
136
  margin: 1em 0;
 
137
}
 
138
 
 
139
xmp, pre, plaintext {
 
140
  display: block;
 
141
  font-family: monospace;
 
142
  white-space: pre;
 
143
  margin: 1em 0;
 
144
}
 
145
 
 
146
/* tables */
 
147
 
 
148
table {
 
149
  display: table;
 
150
  border-spacing: 2px;
 
151
  border-collapse: separate;
 
152
  margin-top: 0;
 
153
  margin-bottom: 0;
 
154
  text-indent: 0;
 
155
}
 
156
 
 
157
table[align="left"] {
 
158
  float: left;
 
159
}
 
160
 
 
161
table[align="right"] {
 
162
  float: right;
 
163
}
 
164
 
 
165
table[rules]:not([rules="none"]) {
 
166
  border-collapse: collapse;
 
167
}
 
168
   
 
169
/* caption inherits from table not table-outer */  
 
170
caption {
 
171
  display: table-caption;
 
172
  text-align: center;
 
173
}
 
174
 
 
175
table[align="center"] > caption {
 
176
  margin-left: auto;
 
177
  margin-right: auto;
 
178
}
 
179
 
 
180
table[align="center"] > caption[align="left"] {
 
181
  margin-right: 0;
 
182
}
 
183
 
 
184
table[align="center"] > caption[align="right"] {
 
185
  margin-left: 0;
 
186
}
 
187
 
 
188
tr {
 
189
  display: table-row;
 
190
  vertical-align: inherit;
 
191
}
 
192
 
 
193
col {
 
194
  display: table-column;
 
195
}
 
196
 
 
197
colgroup {
 
198
  display: table-column-group;
 
199
}
 
200
 
 
201
tbody {
 
202
  display: table-row-group;
 
203
  vertical-align: middle;
 
204
}
 
205
 
 
206
thead {
 
207
  display: table-header-group;
 
208
  vertical-align: middle;
 
209
}
 
210
 
 
211
tfoot {
 
212
  display: table-footer-group;
 
213
  vertical-align: middle;
 
214
}
 
215
 
 
216
/* for XHTML tables without tbody */
 
217
table > tr {
 
218
  vertical-align: middle;
 
219
}
 
220
 
 
221
td { 
 
222
  display: table-cell;
 
223
  vertical-align: inherit;
 
224
  text-align: inherit; 
 
225
  padding: 1px;
 
226
}
 
227
 
 
228
th {
 
229
  display: table-cell;
 
230
  vertical-align: inherit;
 
231
  font-weight: bold;
 
232
  padding: 1px;
 
233
}
 
234
 
 
235
/* inlines */
 
236
 
 
237
q:before {
 
238
  content: open-quote;
 
239
}
 
240
 
 
241
q:after {
 
242
  content: close-quote;
 
243
}
 
244
 
 
245
b, strong {
 
246
  font-weight: bolder;
 
247
}
 
248
 
 
249
i, cite, em, var, dfn {
 
250
  font-style: italic;
 
251
}
 
252
 
 
253
tt, code, kbd, samp {
 
254
  font-family: monospace;
 
255
}
 
256
 
 
257
u, ins {
 
258
  text-decoration: underline;
 
259
}
 
260
 
 
261
s, strike, del {
 
262
  text-decoration: line-through;
 
263
}
 
264
 
 
265
blink {
 
266
  text-decoration: blink;
 
267
}
 
268
 
 
269
big {
 
270
  font-size: larger;
 
271
}
 
272
 
 
273
small {
 
274
  font-size: smaller;
 
275
}
 
276
 
 
277
sub {
 
278
  vertical-align: sub;
 
279
  font-size: smaller;
 
280
  line-height: normal;
 
281
}
 
282
 
 
283
sup {
 
284
  vertical-align: super;
 
285
  font-size: smaller;
 
286
  line-height: normal;
 
287
}
 
288
 
 
289
nobr {
 
290
  white-space: nowrap;
 
291
}
 
292
 
 
293
/* titles */
 
294
abbr[title], acronym[title] {
 
295
  border-bottom: dotted 1px;
 
296
}
 
297
 
 
298
/* lists */
 
299
 
 
300
ul, menu, dir {
 
301
  display: block;
 
302
  list-style-type: disc;
 
303
  margin: 1em 0;
 
304
}
 
305
 
 
306
ol {
 
307
  display: block;
 
308
  list-style-type: decimal;
 
309
  margin: 1em 0;
 
310
}
 
311
 
 
312
li {
 
313
  display: list-item;
 
314
}
 
315
 
 
316
/* nested lists have no top/bottom margins */
 
317
ul ul,   ul ol,   ul dir,   ul menu,   ul dl,
 
318
ol ul,   ol ol,   ol dir,   ol menu,   ol dl,
 
319
dir ul,  dir ol,  dir dir,  dir menu,  dir dl,
 
320
menu ul, menu ol, menu dir, menu menu, menu dl,
 
321
dl ul,   dl ol,   dl dir,   dl menu,   dl dl {
 
322
  margin-top: 0;
 
323
  margin-bottom: 0;
 
324
}
 
325
 
 
326
/* 2 deep unordered lists use a circle */
 
327
ol ul,   ul ul,   menu ul,   dir ul,
 
328
ol menu, ul menu, menu menu, dir menu,
 
329
ol dir,  ul dir,  menu dir,  dir dir {
 
330
  list-style-type: circle;
 
331
}
 
332
 
 
333
/* 3 deep (or more) unordered lists use a square */
 
334
ol ol ul,     ol ul ul,     ol menu ul,     ol dir ul,
 
335
ol ol menu,   ol ul menu,   ol menu menu,   ol dir menu,
 
336
ol ol dir,    ol ul dir,    ol menu dir,    ol dir dir,
 
337
ul ol ul,     ul ul ul,     ul menu ul,     ul dir ul,
 
338
ul ol menu,   ul ul menu,   ul menu menu,   ul dir menu,
 
339
ul ol dir,    ul ul dir,    ul menu dir,    ul dir dir,
 
340
menu ol ul,   menu ul ul,   menu menu ul,   menu dir ul,
 
341
menu ol menu, menu ul menu, menu menu menu, menu dir menu,
 
342
menu ol dir,  menu ul dir,  menu menu dir,  menu dir dir,
 
343
dir ol ul,    dir ul ul,    dir menu ul,    dir dir ul,
 
344
dir ol menu,  dir ul menu,  dir menu menu,  dir dir menu,
 
345
dir ol dir,   dir ul dir,   dir menu dir,   dir dir dir {
 
346
  list-style-type: square;
 
347
}
 
348
 
 
349
 
 
350
/* leafs */
 
351
 
 
352
/* <hr> noshade and color attributes are handled completely by
 
353
 * the nsHTMLHRElement attribute mapping code
 
354
 */
 
355
hr {
 
356
  display: block;
 
357
  height: 2px;
 
358
  border: 1px inset;
 
359
  margin: 0.5em auto 0.5em auto;
 
360
  color: gray;
 
361
}
 
362
 
 
363
hr[size="1"] {
 
364
  border-style: solid none none none;
 
365
}
 
366
 
 
367
img[usemap], object[usemap] {
 
368
  color: blue;
 
369
}
 
370
 
 
371
frameset {
 
372
  display: block ! important;
 
373
  position: static ! important;
 
374
  float: none ! important;
 
375
  border: none ! important;
 
376
}
 
377
 
 
378
frame {
 
379
  border: none ! important;
 
380
}
 
381
 
 
382
iframe {
 
383
  border: 2px inset;
 
384
}
 
385
 
 
386
noframes {
 
387
  display: none;
 
388
}
 
389
 
 
390
spacer {
 
391
  position: static ! important;
 
392
  float: none ! important;
 
393
}
 
394
 
 
395
/* focusable content: anything w/ tabindex >=0 is focusable */
 
396
abbr:focus, acronym:focus, address:focus, applet:focus, b:focus, 
 
397
base:focus, big:focus, blockquote:focus, br:focus, canvas:focus, caption:focus,
 
398
center:focus, cite:focus, code:focus, col:focus, colgroup:focus, dd:focus,
 
399
del:focus, dfn:focus, dir:focus, div:focus, dl:focus, dt:focus, em:focus,
 
400
fieldset:focus, font:focus, form:focus, h1:focus, h2:focus, h3:focus, h4:focus,
 
401
h5:focus, h6:focus, hr:focus, i:focus, img:focus, ins:focus, 
 
402
kbd:focus, label:focus, legend:focus, li:focus, link:focus, menu:focus, 
 
403
object:focus, ol:focus, p:focus, pre:focus, q:focus, s:focus, samp:focus, 
 
404
small:focus, span:focus, strike:focus, strong:focus, sub:focus, sup:focus, 
 
405
table:focus, tbody:focus, td:focus, tfoot:focus, th:focus, thead:focus, 
 
406
tr:focus, tt:focus, u:focus, ul:focus, var:focus {
 
407
  /* Don't specify the outline-color, we should always use initial value. */
 
408
   outline: 1px dotted;
 
409
}
 
410
 
 
411
/* hidden elements */
 
412
area, base, basefont, head, meta, script, style, title,
 
413
noembed, param, link {
 
414
   display: none;
 
415
}
 
416
 
 
417
/* Page breaks at body tags, to help out with LIT-generation */
 
418
body {
 
419
  page-break-before: always;
 
420
}
 
421
 
 
422
/* Explicit line-breaks are blocks, sure... */
 
423
br {
 
424
  display: block;
 
425
}
 
426