2 * The default style sheet used by khtml to render HTML pages
3 * Copyright 2000-2003 Lars Knoll (knoll@kde.org)
5 * Konqueror/khtml relies on the existence of this style sheet for
6 * rendering. Do not remove or modify this file unless you know
9 * KHTML_STYLE_VERSION: 1
12 @namespace "http://www.w3.org/1999/xhtml";
20 * head and it's children all have display=none
48 * generic block level elements
74 /* to force a block level context for some cases (broken HTML) */
86 margin: 1__qem 40px 1em 40px;
103 /* special centering to be able to emulate the html4/netscape behavior */
104 text-align: -khtml-center
;
112 -khtml-flow-mode: -khtml-around-floats
121 * margin values rely on font-sizes ratio defined in css-2.1 15.7
122 * (cf. cssstyleselector for absolute font-sizes computation)
123 * we have an 1.1/font-ratio margin
129 margin: .55__qem 0 .55em 0;
136 margin: .73__qem 0 .73em 0;
143 margin: 0.92__qem 0 0.92em 0;
150 margin: 1.1__qem 0 1.1em 0;
157 margin: 1.24__qem 0 1.24em 0;
164 margin: 1.83__qem 0 1.83em 0;
174 border-collapse: separate
;
176 -khtml-flow-mode: -khtml-around-floats
;
177 box-sizing: border-box
;
181 display: table-header-group
;
182 border-color: inherit
;
183 vertical-align: middle
;
187 display: table-row-group
;
188 border-color: inherit
;
189 vertical-align: middle
;
193 display: table-footer-group
;
194 border-color: inherit
;
195 vertical-align: middle
;
199 display: table-column
;
203 display: table-column-group
;
208 vertical-align: inherit
;
209 border-color: inherit
;
214 vertical-align: inherit
;
222 display: table-caption
;
223 text-align: -khtml-center
;
232 list-style-type: disc
;
233 margin: 1__qem 0 1em 0;
234 -khtml-padding-start: 40px
239 list-style-type: decimal
;
240 margin: 1__qem 0 1em 0;
241 -khtml-padding-start: 40px
248 ul ul ul
, ul ol ul
, ul menu ul
, ul dir ul
,
249 ol ul ul
, ol ol ul
, ol menu ul
, ol dir ul
,
250 menu ul ul
, menu ol ul
, menu menu ul
, menu dir ul
,
251 dir ul ul
, dir ol ul
, dir menu ul
, dir dir ul
,
252 ul ul menu
, ul ol menu
, ul menu menu
, ul dir menu
,
253 ol ul menu
, ol ol menu
, ol menu menu
, ol dir menu
,
254 menu ul menu
, menu ol menu
, menu menu menu
, menu dir menu
,
255 dir ul menu
, dir ol menu
, dir menu menu
, dir dir menu
,
256 ul ul dir
, ul ol dir
, ul menu dir
, ul dir dir
,
257 ol ul dir
, ol ol dir
, ol menu dir
, ol dir dir
,
258 menu ul dir
, menu ol dir
, menu menu dir
, menu dir dir
,
259 dir ul dir
, dir ol dir
, dir menu dir
, dir dir dir
261 list-style-type: square
;
264 ul ul
, ul menu
, ul dir
,
265 ol ul
, ol menu
, ol dir
,
266 menu ul
, menu menu
, menu dir
,
267 dir ul
, dir menu
, dir dir
269 list-style-type: circle
;
277 -khtml-margin-start: 40px;
282 margin: 1__qem 0 1em 0;
289 ol ul
, ol menu
, ol dir
, ol ol
,
290 ul ul
, ul menu
, ul dir
, ul ol
,
291 menu ul
, menu menu
, menu dir
, menu ol
,
292 dir ul
, dir menu
, dir dir
, dir ol
300 /* margin-bottom: auto;*/
305 /* margin-bottom: auto;*/
314 margin: 0__qem 0 1em 0;
327 padding: 0.75em 0.625em;
329 border: 2px groove threedface
;
330 -khtml-flow-mode: -khtml-around-floats
334 display: inline-block
;
335 border: 2px outset buttonface
;
336 background-color: buttonface
;
338 -khtml-background-clip: padding
;
340 padding: 2px 2px 2px 2px;
344 button:enabled:active
{
349 text-align: -khtml-auto
;
352 input
, textarea
, select
, button
{
357 input
{ color: windowtext
;
358 font-family: sans-serif
;
360 border: 2px -khtml-native
;
361 background-color: window
;
364 input
[type
="hidden"] {
368 input
[type
="radio"], input
[type
="checkbox"] {
370 background-color: window
;
372 -khtml-background-clip: padding
;
375 input
[type
="text"], input
[type
="password"] {
376 background-color: window
;
378 -khtml-background-clip: padding
;
382 input
[type
="submit"], input
[type
="reset"], input
[type
="button"] {
383 background-color: buttonface
;
384 -khtml-background-clip: padding
;
389 background-color: window
;
393 input
[type
="image"] {
394 background-color: transparent
;
397 isindex
{ color: windowtext
; font-size: small
; }
408 font-family: sans-serif
;
411 background-color: buttonface
;
412 -khtml-background-clip: padding
;
417 background-color: window
;
421 select
[size
="0"]:not
([multiple
]),
422 select
[size
="1"]:not
([multiple
]) {
423 background-color: buttonface
;
429 background-color: window
;
430 -khtml-background-clip: padding
;
431 font-family: monospace
;
432 border: 2px -khtml-native
;
442 text-decoration: underline
;
462 font-family: monospace
;
470 font-family: monospace
;
486 text-decoration: line-through
;
494 vertical-align: super
;
499 font-variant: small-caps
;
500 letter-spacing: 0.1em
503 *|
:focus
{ outline: 1px dotted invert
}
504 a:link:active
{ color: red
; outline: 1px dotted invert
; }
505 a:visited:active
{ color: red
; outline: 1px dotted invert
; }
507 /* with the current design it is too expensive to set this default via css
508 :before,:after { white-space: pre-line }
511 /* ### use this to replace renderbr
512 br:before { content: "\n" }
516 /* bidirectionality settings (do not change) */
520 unicode-bidi: bidi-override
;
525 unicode-bidi: bidi-override
;
528 *[dir
="ltr"] { direction: ltr
; unicode-bidi: embed
}
529 *[dir
="rtl"] { direction: rtl
; unicode-bidi: embed
}
531 /* elements that are block-level in html4 */
532 /* ### don't support unicode-bidi at the moment
533 address, blockquote, body, dd, div, dl, dt, fieldset,
534 form, frame, frameset, h1, h2, h3, h4, h5, h6, iframe,
535 noscript, noframes, object, ol, p, ul, applet, center,
536 dir, hr, menu, pre, listing, li, table, tr, thead, tbody, tfoot,
537 col, colgroup, td, th, caption
538 { unicode-bidi: embed }
541 /* end bidi settings */
564 display: inline-block
;
568 /* noscript is handled internally, as it depends on the html settings */
572 h4
, h5
, h6
{ page-break-after: avoid
}
573 ul
, ol
, dl
{ page-break-before: avoid
}