Warning, /frameworks/khtml/src/css/html4.css is written in an unsupported language. File is not indexed.
0001 /* 0002 * The default style sheet used by khtml to render HTML pages 0003 * Copyright 2000-2003 Lars Knoll (knoll@kde.org) 0004 * 0005 * Konqueror/khtml relies on the existence of this style sheet for 0006 * rendering. Do not remove or modify this file unless you know 0007 * what you are doing. 0008 * 0009 * KHTML_STYLE_VERSION: 1 0010 */ 0011 0012 @namespace "http://www.w3.org/1999/xhtml"; 0013 0014 html { 0015 display: block; 0016 color: -khtml-text; 0017 } 0018 0019 /* 0020 * head and it's children all have display=none 0021 */ 0022 0023 head { 0024 display: none; 0025 } 0026 0027 meta { 0028 display: none; 0029 } 0030 0031 title { 0032 display: none; 0033 } 0034 0035 link { 0036 display: none; 0037 } 0038 0039 style { 0040 display: none; 0041 } 0042 0043 script { 0044 display: none; 0045 } 0046 0047 /* 0048 * generic block level elements 0049 */ 0050 0051 @media print { 0052 body { 0053 display: block; 0054 margin: 0px; 0055 } 0056 } 0057 0058 @media screen { 0059 body { 0060 display: block; 0061 margin: 10px; 0062 } 0063 } 0064 0065 p { 0066 display: block; 0067 margin: 1.0__qem 0px; 0068 } 0069 0070 div { 0071 display: block; 0072 } 0073 0074 /* to force a block level context for some cases (broken HTML) */ 0075 0076 layer { 0077 display: block; 0078 } 0079 0080 address { 0081 display: block; 0082 } 0083 0084 blockquote { 0085 display: block; 0086 margin: 1__qem 40px 1em 40px; 0087 } 0088 0089 /* default behaviour: 0090 :lang(en) > q { quotes: '"' '"' "'" "'" } 0091 */ 0092 0093 :lang(ar) > q, :lang(fa) > q { quotes: "\00AB" "\00BB"; } 0094 :lang(ca) > q, :lang(es) > q { quotes: "\00AB" "\00BB" "\0022" "\0022"; } 0095 :lang(el) > q, :lang(pt) > q, :lang(tr) > q, :lang(vi) > q { quotes: "\00AB" "\00BB" "\2039" "\203A"; } 0096 :lang(hy) > q { quotes: "\00AB" "\00BB" "\201C" "\201D"; } 0097 :lang(ru) > q, :lang(uk) > q { quotes: "\00AB" "\00BB" "\201E" "\201C"; } 0098 :lang(eo) > q { quotes: "\201C" "\201D"; } 0099 :lang(id) > q, :lang(it) > q, :lang(zh-cn) > q, :lang(ko) > q, :lang(nb) > q, :lang(no) > q { quotes: "\201C" "\201D" "\2018" "\2019"; } 0100 :lang(bg) > q { quotes: "\201E" "\201C"; } 0101 :lang(cs) > q, :lang(de) > q, :lang(lt) > q, :lang(sk) > q, :lang(sl) > q { quotes: "\201E" "\201C" "\201A" "\2018"; } 0102 :lang(da) > q { quotes: "\201E" "\201C" "\2019" "\2019"; } 0103 :lang(pl) > q, :lang(ro) > q { quotes: "\201E" "\201D" "\00AB" "\00BB"; } 0104 :lang(hu) > q { quotes: "\201E" "\201D" "\00BB" "\00AB"; } 0105 :lang(fi) > q, :lang(nl) > q, :lang(sv) > q { quotes: "\201D" "\201D" "\2019" "\2019"; } 0106 :lang(fr) > q { quotes: "\00AB\00A0" "\00A0\00BB" "\2039\00A0" "\00A0\203A"; } 0107 :lang(hr) > q { quotes: "\00BB" "\00AB" "\203A" "\2039"; } 0108 :lang(ja) > q, :lang(zh-hk) > q, :lang(zh-tw) > q { quotes: "\300C" "\300D" "\300E" "\300F"; } 0109 0110 q { 0111 display: inline; 0112 } 0113 0114 q:before { 0115 content: open-quote; 0116 } 0117 0118 q:after { 0119 content: close-quote; 0120 } 0121 0122 center { 0123 display: block; 0124 /* special centering to be able to emulate the html4/netscape behavior */ 0125 text-align: -khtml-center; 0126 } 0127 0128 hr { 0129 display: block; 0130 margin: 12px auto; 0131 border-style: inset; 0132 border-width: 1px; 0133 -khtml-flow-mode: -khtml-around-floats 0134 } 0135 0136 map { 0137 display: inline; 0138 } 0139 0140 /* 0141 * heading elements 0142 */ 0143 0144 h1 { 0145 display: block; 0146 margin: 0.67__qem 0 0.67em 0; 0147 font-size: 2em; 0148 font-weight: bold; 0149 } 0150 0151 h2 { 0152 display: block; 0153 margin: 0.83__qem 0 0.83em 0; 0154 font-size: 1.5em; 0155 font-weight: bold; 0156 } 0157 0158 h3 { 0159 display: block; 0160 margin: 1__qem 0 1em 0; 0161 font-size: 1.17em; 0162 font-weight: bold; 0163 } 0164 0165 h4 { 0166 display: block; 0167 margin: 1.33__qem 0 1.33em 0; 0168 font-size: 1em; 0169 font-weight: bold; 0170 } 0171 0172 h5 { 0173 display: block; 0174 margin: 1.67__qem 0 1.67em 0; 0175 font-size: 0.83em; 0176 font-weight: bold; 0177 } 0178 0179 h6 { 0180 display: block; 0181 margin: 2.33__qem 0 2.33em 0; 0182 font-size: 0.67em; 0183 font-weight: bold; 0184 } 0185 0186 /* 0187 * tables 0188 */ 0189 0190 table { 0191 display: table; 0192 border-collapse: separate; 0193 border-spacing: 2px; 0194 -khtml-flow-mode: -khtml-around-floats; 0195 box-sizing: border-box; 0196 } 0197 0198 thead { 0199 display: table-header-group; 0200 border-color: inherit; 0201 vertical-align: middle; 0202 } 0203 0204 tbody { 0205 display: table-row-group; 0206 border-color: inherit; 0207 vertical-align: middle; 0208 } 0209 0210 tfoot { 0211 display: table-footer-group; 0212 border-color: inherit; 0213 vertical-align: middle; 0214 } 0215 0216 col { 0217 display: table-column; 0218 } 0219 0220 colgroup { 0221 display: table-column-group; 0222 } 0223 0224 tr { 0225 display: table-row; 0226 vertical-align: inherit; 0227 border-color: inherit; 0228 } 0229 0230 td, th { 0231 display: table-cell; 0232 vertical-align: inherit; 0233 } 0234 0235 th { 0236 font-weight: bolder; 0237 } 0238 0239 caption { 0240 display: table-caption; 0241 text-align: -khtml-center; 0242 } 0243 0244 /* 0245 * lists 0246 */ 0247 0248 ul, menu, dir { 0249 display: block; 0250 list-style-type: disc; 0251 margin: 1__qem 0 1em 0; 0252 -khtml-padding-start: 40px 0253 } 0254 0255 ol { 0256 display: block; 0257 list-style-type: decimal; 0258 margin: 1__qem 0 1em 0; 0259 -khtml-padding-start: 40px 0260 } 0261 0262 li { 0263 display: list-item; 0264 } 0265 0266 ul ul ul, ul ol ul, ul menu ul, ul dir ul, 0267 ol ul ul, ol ol ul, ol menu ul, ol dir ul, 0268 menu ul ul, menu ol ul, menu menu ul, menu dir ul, 0269 dir ul ul, dir ol ul, dir menu ul, dir dir ul, 0270 ul ul menu, ul ol menu, ul menu menu, ul dir menu, 0271 ol ul menu, ol ol menu, ol menu menu, ol dir menu, 0272 menu ul menu, menu ol menu, menu menu menu, menu dir menu, 0273 dir ul menu, dir ol menu, dir menu menu, dir dir menu, 0274 ul ul dir, ul ol dir, ul menu dir, ul dir dir, 0275 ol ul dir, ol ol dir, ol menu dir, ol dir dir, 0276 menu ul dir, menu ol dir, menu menu dir, menu dir dir, 0277 dir ul dir, dir ol dir, dir menu dir, dir dir dir 0278 { 0279 list-style-type: square; 0280 } 0281 0282 ul ul, ul menu, ul dir, 0283 ol ul, ol menu, ol dir, 0284 menu ul, menu menu, menu dir, 0285 dir ul, dir menu, dir dir 0286 { 0287 list-style-type: circle; 0288 } 0289 0290 dd { 0291 display: block; 0292 } 0293 0294 dl > dd { 0295 -khtml-margin-start: 40px; 0296 } 0297 0298 dl { 0299 display: block; 0300 margin: 1__qem 0 1em 0; 0301 } 0302 0303 dt { 0304 display: block; 0305 } 0306 0307 ol ul, ol menu, ol dir, ol ol, 0308 ul ul, ul menu, ul dir, ul ol, 0309 menu ul, menu menu, menu dir, menu ol, 0310 dir ul, dir menu, dir dir, dir ol 0311 { 0312 margin-top: auto; 0313 margin-bottom: auto; 0314 } 0315 0316 li > p { 0317 margin-top: auto; 0318 /* margin-bottom: auto;*/ 0319 } 0320 0321 li > div { 0322 margin-top: auto; 0323 /* margin-bottom: auto;*/ 0324 } 0325 0326 /* 0327 * form elements 0328 */ 0329 0330 form { 0331 display: block; 0332 margin: 0__qem 0 1em 0; 0333 } 0334 0335 legend { 0336 display: block; 0337 padding-left: 2px; 0338 padding-right: 2px; 0339 border: none; 0340 margin: 0; 0341 } 0342 0343 fieldset { 0344 display: block; 0345 padding: 0.75em 0.625em; 0346 margin: 1.0em 0; 0347 border: 2px groove threedface; 0348 -khtml-flow-mode: -khtml-around-floats 0349 } 0350 0351 button { 0352 display: inline-block; 0353 border: 2px outset buttonface; 0354 background-color: buttonface; 0355 font-size: small; 0356 color: buttontext; 0357 padding: 2px 2px 2px 2px; 0358 cursor: default; 0359 box-sizing: border-box; 0360 } 0361 0362 button:enabled:active { 0363 border-style: inset; 0364 } 0365 0366 input, textarea { 0367 text-align: -khtml-auto; 0368 } 0369 0370 input, textarea, select, button { 0371 font-weight: normal; 0372 margin: 0__qem; 0373 } 0374 input:focus, textarea:focus, select:focus, button:focus { 0375 outline: none; 0376 } 0377 0378 input { color: windowtext; 0379 font-family: sans-serif; 0380 font-size: small; 0381 border: 2px -khtml-native; 0382 background-color: window; 0383 cursor: text; 0384 } 0385 0386 input[type="hidden"] { 0387 display: none; 0388 } 0389 0390 input[type="radio"], input[type="checkbox"] { 0391 margin: 0 0.5ex; 0392 background-color: window; 0393 color: windowtext; 0394 box-sizing: border-box; 0395 cursor: default; 0396 } 0397 0398 input[type="text"], input[type="password"] { 0399 background-color: window; 0400 color: windowtext; 0401 cursor: text; 0402 } 0403 0404 input[type="submit"], input[type="reset"], input[type="button"] { 0405 background-color: buttonface; 0406 color: buttontext; 0407 box-sizing: border-box; 0408 cursor: default; 0409 } 0410 0411 input[type="file"] { 0412 background-color: window; 0413 color: windowtext; 0414 box-sizing: border-box; 0415 cursor: default; 0416 } 0417 0418 input[type="image"] { 0419 background-color: transparent; 0420 cursor: default; 0421 } 0422 0423 isindex { color: windowtext; font-size: small; border: 2px -khtml-native; } 0424 0425 0426 option, 0427 optgroup, 0428 area, 0429 param { 0430 display: none; 0431 } 0432 0433 select { 0434 font-family: sans-serif; 0435 font-size: small; 0436 color: buttontext; 0437 background-color: window; 0438 box-sizing: border-box; 0439 border: 2px -khtml-native; 0440 } 0441 0442 select[multiple], 0443 select[size] { 0444 color: windowtext; 0445 } 0446 0447 select[size="0"]:not([multiple]), 0448 select[size="1"]:not([multiple]) { 0449 color: buttontext; 0450 } 0451 0452 textarea { 0453 color: windowtext; 0454 background-color: window; 0455 font-family: monospace; 0456 border: 2px -khtml-native; 0457 cursor: text; 0458 overflow-y: scroll; 0459 } 0460 0461 /* 0462 * inline elements 0463 */ 0464 0465 u, 0466 ins { 0467 text-decoration: underline; 0468 } 0469 0470 strong, 0471 b { 0472 font-weight: bolder; 0473 } 0474 0475 i, 0476 cite, 0477 em, 0478 var, 0479 address { 0480 font-style: italic; 0481 } 0482 0483 tt, 0484 code, 0485 kbd, 0486 samp { 0487 font-family: monospace; 0488 } 0489 0490 pre, 0491 listing, 0492 xmp, 0493 plaintext { 0494 display: block; 0495 font-family: monospace; 0496 white-space: pre; 0497 margin: 1__qem 0; 0498 } 0499 0500 big { 0501 font-size: larger; 0502 } 0503 0504 small { 0505 font-size: smaller; 0506 } 0507 0508 s, 0509 strike, 0510 del { 0511 text-decoration: line-through; 0512 } 0513 0514 sub { 0515 vertical-align: sub; 0516 font-size: smaller; 0517 } 0518 sup { 0519 vertical-align: super; 0520 font-size: smaller; 0521 } 0522 0523 abbr, acronym { 0524 font-variant: small-caps; 0525 letter-spacing: 0.1em 0526 } 0527 0528 *|:focus { outline: 1px dotted invert } 0529 a:link:active { color: red; outline: 1px dotted invert; } 0530 a:visited:active { color: red; outline: 1px dotted invert; } 0531 0532 /* with the current design it is too expensive to set this default via css 0533 :before,:after { white-space: pre-line } 0534 */ 0535 0536 /* ### use this to replace renderbr 0537 br:before { content: "\n" } 0538 */ 0539 0540 0541 /* bidirectionality settings (do not change) */ 0542 0543 bdo[dir="ltr"] { 0544 direction: ltr; 0545 unicode-bidi: bidi-override; 0546 } 0547 0548 bdo[dir="rtl"] { 0549 direction: rtl; 0550 unicode-bidi: bidi-override; 0551 } 0552 0553 *[dir="ltr"] { direction: ltr; unicode-bidi: embed } 0554 *[dir="rtl"] { direction: rtl; unicode-bidi: embed } 0555 0556 /* elements that are block-level in html4 */ 0557 /* ### don't support unicode-bidi at the moment 0558 address, blockquote, body, dd, div, dl, dt, fieldset, 0559 form, frame, frameset, h1, h2, h3, h4, h5, h6, iframe, 0560 noscript, noframes, object, ol, p, ul, applet, center, 0561 dir, hr, menu, pre, listing, li, table, tr, thead, tbody, tfoot, 0562 col, colgroup, td, th, caption 0563 { unicode-bidi: embed } 0564 */ 0565 0566 /* end bidi settings */ 0567 0568 /* 0569 * other elements 0570 */ 0571 0572 noframes { 0573 display: none; 0574 } 0575 0576 frameset { 0577 display: block; 0578 } 0579 0580 frame { 0581 display: block; 0582 } 0583 0584 iframe:focus, object:focus, frame:focus { 0585 outline: none; 0586 } 0587 0588 nobr { 0589 white-space: nowrap; 0590 } 0591 0592 marquee { 0593 display: inline-block; 0594 overflow: marquee; 0595 } 0596 0597 /* noscript is handled internally, as it depends on the html settings */ 0598 0599 @media print { 0600 h1, h2, h3, 0601 h4, h5, h6 { page-break-after: avoid } 0602 ul, ol, dl { page-break-before: avoid } 0603 }