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
|
/*
* The default style sheet used by khtml to render HTML pages
* (C) 2000-2003 Lars Knoll (knoll@kde.org)
*
* Konqueror/khtml relies on the existence of this style sheet for
* rendering. Do not remove or modify this file unless you know
* what you are doing.
*/
@namespace "http://www.w3.org/1999/xhtml";
html {
display: block;
color: -khtml-text;
}
/*
* head and it's children all have display=none
*/
head {
display: none;
}
meta {
display: none;
}
title {
display: none;
}
link {
display: none;
}
style {
display: none;
}
script {
display: none;
}
/*
* generic block level elements
*/
@media print {
body {
display: block;
margin: 0px;
}
}
@media screen {
body {
display: block;
margin: 10px;
}
}
p {
display: block;
margin: 1.0__qem 0px;
}
div {
display: block;
}
/* to force a block level context for some cases (broken HTML) */
layer {
display: block;
}
address {
display: block;
}
blockquote {
display: block;
margin: 1__qem 40px 1em 40px;
}
q {
display: inline;
}
q:before {
content: open-quote;
}
q:after {
content: close-quote;
}
center {
display: block;
/* special centering to be able to emulate the html4/netscape behavior */
text-align: -khtml-center;
}
hr {
display: block;
margin: 12px auto;
border-style: inset;
border-width: 1px;
-khtml-flow-mode: -khtml-around-floats
}
map {
display: inline;
}
/*
* heading elements
* margin values rely on font-sizes ratio defined in css-2.1 15.7
* (cf. cssstyleselector for absolute font-sizes computation)
* we have an 1.1/font-ratio margin
*/
h1 {
display: block;
font-size: xx-large;
margin: .55__qem 0 .55em 0;
font-weight: bolder;
}
h2 {
display: block;
font-size: x-large;
margin: .73__qem 0 .73em 0;
font-weight: bolder;
}
h3 {
display: block;
font-size: large;
margin: 0.92__qem 0 0.92em 0;
font-weight: bolder;
}
h4 {
display: block;
font-size: medium;
margin: 1.1__qem 0 1.1em 0;
font-weight: bolder;
}
h5 {
display: block;
font-size: small;
margin: 1.24__qem 0 1.24em 0;
font-weight: bolder;
}
h6 {
display: block;
font-size: xx-small;
margin: 1.83__qem 0 1.83em 0;
font-weight: bolder;
}
/*
* tables
*/
table {
display: table;
border-collapse: separate;
border-spacing: 2px;
-khtml-flow-mode: -khtml-around-floats;
box-sizing: border-box;
}
table[align="center"] {
margin-left: auto;
margin-right: auto;
}
table[align="left"] {
float: -khtml-left;
}
table[align="right"] {
float: -khtml-right;
}
thead {
display: table-header-group;
border-color: inherit;
vertical-align: middle;
}
tbody {
display: table-row-group;
border-color: inherit;
vertical-align: middle;
}
tfoot {
display: table-footer-group;
border-color: inherit;
vertical-align: middle;
}
col {
display: table-column;
}
colgroup {
display: table-column-group;
}
tr {
display: table-row;
vertical-align: inherit;
border-color: inherit;
}
td, th {
display: table-cell;
vertical-align: inherit;
}
th {
font-weight: bolder;
}
caption {
display: table-caption;
text-align: -khtml-center;
}
/*
* lists
*/
ul, menu, dir {
display: block;
list-style-type: disc;
margin: 1__qem 0 1em 0;
-khtml-padding-start: 40px
}
ol {
display: block;
list-style-type: decimal;
margin: 1__qem 0 1em 0;
-khtml-padding-start: 40px
}
li {
display: list-item;
-khtml-flow-mode: -khtml-around-floats;
}
ul ul, ol ul {
list-style-type: circle;
}
ol ol ul, ol ul ul, ul ol ul, ul ul ul {
list-style-type: square;
}
dd {
display: block;
}
dl > dd {
-khtml-margin-start: 40px;
}
dl {
display: block;
margin: 1__qem 0 1em 0;
}
dt {
display: block;
}
dl[compact] > dt {
display: compact;
}
ol ul,
ul ol,
ul ul,
ol ol {
margin-top: auto;
margin-bottom: auto;
}
li > p {
margin-top: auto;
/* margin-bottom: auto;*/
}
li > div {
margin-top: auto;
/* margin-bottom: auto;*/
}
/*
* form elements
*/
form {
display: block;
margin: 0__qem 0 1em 0;
}
legend {
display: block;
padding-left: 2px;
padding-right: 2px;
border: none;
margin: 0;
}
fieldset {
display: block;
padding: 0.75em 0.625em;
margin: 1.0em 0;
border: 2px groove threedface;
-khtml-flow-mode: -khtml-around-floats
}
button {
display: inline-block;
border: 2px outset buttonface;
background-color: buttonface;
color: buttontext;
padding: 2px 2px 2px 2px;
cursor: default;
}
button:active {
border-style: inset;
}
input, textarea {
text-align: -khtml-auto;
}
input, textarea, select, button {
font-weight: normal;
margin: 0__qem;
}
input { color: windowtext;
font-family: sans-serif;
font-size: small;
border: 2px -khtml-native;
}
input[type="hidden"] {
display: none;
}
input[type="radio"], input[type="checkbox"] {
margin: 0 0.5ex;
color: buttontext;
}
input[type="text"], input[type="password"] {
cursor: text;
}
input[type="submit"], input[type="reset"], input[type="button"] {
color: buttontext;
}
isindex { color: windowtext; font-size: small; }
option,
optgroup,
area,
param {
display: none;
}
select {
font-family: sans-serif;
font-size: small;
color: windowtext;
}
textarea {
color: windowtext;
font-family: monospace;
border: 2px -khtml-native;
}
/*
* inline elements
*/
u,
ins {
text-decoration: underline;
}
strong,
b {
font-weight: bolder;
}
i,
cite,
em,
var,
address {
font-style: italic;
}
tt,
code,
kbd,
samp {
font-family: monospace;
}
pre,
xmp,
plaintext {
display: block;
font-family: monospace;
white-space: pre;
margin: 1__qem 0;
}
big {
font-size: larger;
}
small {
font-size: smaller;
}
s,
strike,
del {
text-decoration: line-through;
}
sub {
vertical-align: sub;
font-size: smaller;
}
sup {
vertical-align: super;
font-size: smaller;
}
abbr, acronym {
font-variant: small-caps;
letter-spacing: 0.1em
}
pre[wrap] {
white-space: pre-wrap
}
*|:focus { outline: 1px dotted invert }
a:link:active { color: red; outline: 1px dotted invert; }
a:visited:active { color: red; outline: 1px dotted invert; }
/* with the current design it is too expensive to set this default via css
:before,:after { white-space: pre-line }
*/
/* ### use this to replace renderbr
br:before { content: "\n" }
*/
/* bidirectionality settings (do not change) */
bdo[dir="ltr"] {
direction: ltr;
unicode-bidi: bidi-override;
}
bdo[dir="rtl"] {
direction: rtl;
unicode-bidi: bidi-override;
}
/* ### this selector seems to be still broken ...
*[dir="ltr"] { direction: ltr; unicode-bidi: embed }
*[dir="rtl"] { direction: rtl; unicode-bidi: embed }
*/
/* elements that are block-level in html4 */
/* ### don't support unicode-bidi at the moment
address, blockquote, body, dd, div, dl, dt, fieldset,
form, frame, frameset, h1, h2, h3, h4, h5, h6, iframe,
noscript, noframes, object, ol, p, ul, applet, center,
dir, hr, menu, pre, li, table, tr, thead, tbody, tfoot,
col, colgroup, td, th, caption
{ unicode-bidi: embed }
*/
/* end bidi settings */
/*
* other elements
*/
noframes {
display: none;
}
frameset {
display: block;
}
frame {
display: block;
}
nobr {
white-space: nowrap;
}
wbr {
white-space: normal;
}
marquee {
display: inline-block;
overflow: marquee;
}
/* noscript is handled internally, as it depends on the html settings */
@media print {
h1, h2, h3,
h4, h5, h6 { page-break-after: avoid }
ul, ol, dl { page-break-before: avoid }
}
|