1/* 2 * The default style sheet used to render HTML. 3 * 4 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Library General Public 9 * License as published by the Free Software Foundation; either 10 * version 2 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Library General Public License for more details. 16 * 17 * You should have received a copy of the GNU Library General Public License 18 * along with this library; see the file COPYING.LIB. If not, write to 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20 * Boston, MA 02110-1301, USA. 21 * 22 */ 23 24@namespace "http://www.w3.org/1999/xhtml"; 25 26html { 27 display: block 28} 29 30/* children of the <head> element all have display:none */ 31head { 32 display: none 33} 34 35meta { 36 display: none 37} 38 39title { 40 display: none 41} 42 43link { 44 display: none 45} 46 47style { 48 display: none 49} 50 51script { 52 display: none 53} 54 55/* generic block-level elements */ 56 57body { 58 display: block; 59 margin: 8px 60} 61 62p { 63 display: block; 64 margin: 1.0__qem 0px 65} 66 67div { 68 display: block 69} 70 71layer { 72 display: block 73} 74 75marquee { 76 display: inline-block; 77 overflow: -webkit-marquee 78} 79 80address { 81 display: block 82} 83 84blockquote { 85 display: block; 86 margin: 1__qem 40px 1em 40px 87} 88 89q { 90 display: inline 91} 92 93q:before { 94 content: '"' 95 /* FIXME: content: open-quote; */ 96} 97 98q:after { 99 content: '"' 100 /* FIXME: content: close-quote; */ 101} 102 103center { 104 display: block; 105 /* special centering to be able to emulate the html4/netscape behaviour */ 106 text-align: -webkit-center 107} 108 109hr { 110 display: block; 111 margin: 0.5em auto; 112 border-style: inset; 113 border-width: 1px 114} 115 116map { 117 display: inline 118} 119 120/* heading elements */ 121 122h1 { 123 display: block; 124 font-size: 2em; 125 margin: .67__qem 0 .67em 0; 126 font-weight: bold 127} 128 129h2 { 130 display: block; 131 font-size: 1.5em; 132 margin: .83__qem 0 .83em 0; 133 font-weight: bold 134} 135 136h3 { 137 display: block; 138 font-size: 1.17em; 139 margin: 1__qem 0 1em 0; 140 font-weight: bold 141} 142 143h4 { 144 display: block; 145 margin: 1.33__qem 0 1.33em 0; 146 font-weight: bold 147} 148 149h5 { 150 display: block; 151 font-size: .83em; 152 margin: 1.67__qem 0 1.67em 0; 153 font-weight: bold 154} 155 156h6 { 157 display: block; 158 font-size: .67em; 159 margin: 2.33__qem 0 2.33em 0; 160 font-weight: bold 161} 162 163/* tables */ 164 165table { 166 display: table; 167 border-collapse: separate; 168 border-spacing: 2px; 169 border-color: gray 170} 171 172thead { 173 display: table-header-group; 174 vertical-align: middle; 175 border-color: inherit 176} 177 178tbody { 179 display: table-row-group; 180 vertical-align: middle; 181 border-color: inherit 182} 183 184tfoot { 185 display: table-footer-group; 186 vertical-align: middle; 187 border-color: inherit 188} 189 190/* for tables without table section elements (can happen with XHTML or dynamically created tables) */ 191table > tr { 192 vertical-align: middle; 193} 194 195col { 196 display: table-column 197} 198 199colgroup { 200 display: table-column-group 201} 202 203tr { 204 display: table-row; 205 vertical-align: inherit; 206 border-color: inherit 207} 208 209td, th { 210 display: table-cell; 211 vertical-align: inherit 212} 213 214th { 215 font-weight: bold 216} 217 218caption { 219 display: table-caption; 220 text-align: -webkit-center 221} 222 223/* lists */ 224 225ul, menu, dir { 226 display: block; 227 list-style-type: disc; 228 margin: 1__qem 0 1em 0; 229 -webkit-padding-start: 40px 230} 231 232ol { 233 display: block; 234 list-style-type: decimal; 235 margin: 1__qem 0 1em 0; 236 -webkit-padding-start: 40px 237} 238 239li { 240 display: list-item 241} 242 243ul ul, ol ul { 244 list-style-type: circle 245} 246 247ol ol ul, ol ul ul, ul ol ul, ul ul ul { 248 list-style-type: square 249} 250 251dd { 252 display: block; 253 -webkit-margin-start: 40px 254} 255 256dl { 257 display: block; 258 margin: 1__qem 0 1em 0 259} 260 261dt { 262 display: block 263} 264 265ol ul, ul ol, ul ul, ol ol { 266 margin-top: 0; 267 margin-bottom: 0 268} 269 270/* form elements */ 271 272form { 273 display: block; 274 margin-top: 0__qem 275} 276 277label { 278 cursor: default; 279} 280 281legend { 282 display: block; 283 padding-left: 2px; 284 padding-right: 2px; 285 border: none 286} 287 288fieldset { 289 display: block; 290 margin-left: 2px; 291 margin-right: 2px; 292 padding: 0.35em 0.75em 0.625em; 293 border: 2px groove ThreeDFace 294} 295 296button { 297 -webkit-appearance: button; 298} 299 300input, textarea, keygen, select, button, isindex, datagrid { 301 margin: 0__qem; 302 font: -webkit-small-control; 303 color: initial; 304 letter-spacing: normal; 305 word-spacing: normal; 306 line-height: normal; 307 text-transform: none; 308 text-indent: 0; 309 text-shadow: none; 310 display: inline-block; 311 text-align: -webkit-auto; 312} 313 314input[type="hidden"] { 315 display: none 316} 317 318input, input[type="password"], input[type="search"], isindex { 319 -webkit-appearance: textfield; 320 padding: 1px; 321 background-color: white; 322 border: 2px inset; 323 -webkit-rtl-ordering: logical; 324 -webkit-user-select: text; 325 cursor: auto; 326} 327 328input[type="search"] { 329 -webkit-appearance: searchfield; 330 -webkit-box-sizing: border-box; 331} 332 333input[type="search"]::-webkit-search-cancel-button { 334 -webkit-appearance: searchfield-cancel-button; 335 display: inline-block; 336} 337 338input[type="search"]::-webkit-search-decoration { 339 -webkit-appearance: searchfield-decoration; 340 display: inline-block; 341} 342 343input[type="search"]::-webkit-search-results-decoration { 344 -webkit-appearance: searchfield-results-decoration; 345 display: inline-block; 346} 347 348input[type="search"]::-webkit-search-results-button { 349 -webkit-appearance: searchfield-results-button; 350 display: inline-block; 351} 352 353textarea { 354 -webkit-appearance: textarea; 355 background-color: white; 356 border: 1px solid; 357 -webkit-rtl-ordering: logical; 358 -webkit-user-select: text; 359 -webkit-box-orient: vertical; 360 resize: auto; 361 cursor: auto; 362 padding: 2px; 363 white-space: pre-wrap; 364 word-wrap: break-word; 365} 366 367input::-webkit-input-placeholder, isindex::-webkit-input-placeholder { 368 color: darkGray; 369} 370 371input[type="password"] { 372 -webkit-text-security: disc !important; 373} 374 375input[type="hidden"], input[type="image"], input[type="file"] { 376 -webkit-appearance: initial; 377 padding: initial; 378 background-color: initial; 379 border: initial; 380} 381 382input[type="file"] { 383 -webkit-box-align: baseline; 384 text-align: start !important; 385} 386 387input:-webkit-autofill { 388 background-color: #FAFFBD !important; 389 background-image:none !important; 390} 391 392input[type="radio"], input[type="checkbox"] { 393 margin: 3px 0.5ex; 394 padding: initial; 395 background-color: initial; 396 border: initial; 397} 398 399input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button { 400 -webkit-appearance: push-button; 401 white-space: pre 402} 403 404input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button { 405 -webkit-box-align: center; 406 text-align: center; 407 cursor: default; 408 color: ButtonText; 409 padding: 2px 6px 3px 6px; 410 border: 2px outset ButtonFace; 411 background-color: ButtonFace; 412 -webkit-box-sizing: border-box 413} 414 415input[type="range"] { 416 -webkit-appearance: slider-horizontal; 417 padding: initial; 418 border: initial; 419 margin: 2px; 420} 421 422input[type="range"]::-webkit-slider-thumb { 423 -webkit-appearance: sliderthumb-horizontal; 424} 425 426input[type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled, 427input[type="file"]:disabled::-webkit-file-upload-button, button:disabled, 428select:disabled, keygen:disabled, optgroup:disabled, option:disabled, datagrid:disabled { 429 color: GrayText 430} 431 432input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]:active::-webkit-file-upload-button, button:active { 433 border-style: inset 434} 435 436input[type="button"]:active:disabled, input[type="submit"]:active:disabled, input[type="reset"]:active:disabled, input[type="file"]:active:disabled::-webkit-file-upload-button, button:active:disabled { 437 border-style: outset 438} 439 440area, param { 441 display: none 442} 443 444input[type="checkbox"] { 445 -webkit-appearance: checkbox; 446 -webkit-box-sizing: border-box; 447} 448 449input[type="radio"] { 450 -webkit-appearance: radio; 451 -webkit-box-sizing: border-box; 452} 453 454keygen, select { 455 -webkit-appearance: menulist; 456 -webkit-box-sizing: border-box; 457 -webkit-box-align: center; 458 border: 1px solid; 459 -webkit-border-radius: 5px; 460 white-space: pre; 461 -webkit-rtl-ordering: logical; 462 color: black; 463 background-color: white; 464 cursor: default; 465} 466 467select[size], 468select[multiple], 469select[size][multiple] { 470 -webkit-appearance: listbox; 471 -webkit-box-align: start; 472 border: 1px inset gray; 473 -webkit-border-radius: initial; 474 white-space: initial; 475} 476 477select[size="0"], 478select[size="1"] { 479 -webkit-appearance: menulist; 480 -webkit-box-align: center; 481 border: 1px solid; 482 -webkit-border-radius: 5px; 483 white-space: pre; 484} 485 486optgroup { 487 font-weight: bolder; 488} 489 490option { 491 font-weight: normal; 492} 493 494/* datagrid */ 495 496datagrid { 497 height: 150px; /* We don't use width:300px in CSS, since we want width:intrinsic and width:min-intrinsic to reset to 300 properly. */ 498 -webkit-appearance: datagrid; 499 -webkit-box-sizing: border-box; 500 -webkit-rtl-ordering: logical; 501 color: black; 502 background-color: white; 503 cursor: default; 504 border: 1px inset gray; 505 white-space: initial; 506} 507 508/* inline elements */ 509 510u, ins { 511 text-decoration: underline 512} 513 514strong, b { 515 font-weight: bolder 516} 517 518i, cite, em, var, address { 519 font-style: italic 520} 521 522tt, code, kbd, samp { 523 font-family: monospace 524} 525 526pre, xmp, plaintext, listing { 527 display: block; 528 font-family: monospace; 529 white-space: pre; 530 margin: 1__qem 0 531} 532 533big { 534 font-size: larger 535} 536 537small { 538 font-size: smaller 539} 540 541s, strike, del { 542 text-decoration: line-through 543} 544 545sub { 546 vertical-align: sub; 547 font-size: smaller 548} 549 550sup { 551 vertical-align: super; 552 font-size: smaller 553} 554 555nobr { 556 white-space: nowrap 557} 558 559/* states */ 560 561:focus { 562 outline: auto 5px -webkit-focus-ring-color 563} 564 565/* Read-only text fields do not show a focus ring but do still receive focus */ 566html:focus, body:focus, input[readonly]:focus { 567 outline: none 568} 569 570input:focus, textarea:focus, isindex:focus, keygen:focus, select:focus { 571 outline-offset: -2px 572} 573 574input[type="button"]:focus, 575input[type="checkbox"]:focus, 576input[type="file"]:focus, 577input[type="hidden"]:focus, 578input[type="image"]:focus, 579input[type="radio"]:focus, 580input[type="reset"]:focus, 581input[type="search"]:focus, 582input[type="submit"]:focus, 583input[type="file"]:focus::-webkit-file-upload-button { 584 outline-offset: 0 585} 586 587a:-webkit-any-link { 588 color: -webkit-link; 589 text-decoration: underline; 590 cursor: auto; 591} 592 593a:-webkit-any-link:active { 594 color: -webkit-activelink 595} 596 597/* other elements */ 598 599noframes { 600 display: none 601} 602 603frameset, frame { 604 display: block 605} 606 607frameset { 608 border-color: inherit 609} 610 611iframe { 612 border: 2px inset 613} 614 615/* noscript is handled internally, as it depends on settings */ 616