1 body { 2 cursor: default; 3 font-size: 13px; 4 } 5 6 a:link { 7 color: rgb(63, 110, 194); 8 } 9 10 a:active { 11 color: rgb(37, 64, 113); 12 } 13 14 #settings-title { 15 -webkit-padding-end: 24px; 16 -webkit-user-select: none; 17 color: #53637d; 18 cursor: pointer; 19 font-size: 200%; 20 font-weight: normal; 21 margin: 0; 22 padding-bottom: 14px; 23 padding-top: 13px; 24 text-align: end; 25 text-shadow: white 0 1px 2px; 26 } 27 28 #main-content { 29 display: -webkit-box; 30 position: absolute; 31 left: 0; 32 right: 0; 33 top: 0; 34 bottom: 0; 35 } 36 37 .frozen, 38 .subpage-sheet-container.frozen { 39 position: fixed; 40 } 41 42 #search-field { 43 font-size: inherit; 44 margin: 0; 45 } 46 47 .overlay { 48 -webkit-box-align: center; 49 -webkit-box-pack: center; 50 -webkit-transition: 0.25s opacity; 51 background: -webkit-radial-gradient(rgba(127, 127, 127, 0.5), 52 rgba(127, 127, 127, 0.5) 35%, 53 rgba(0, 0, 0, 0.7)); 54 bottom: 0; 55 display: -webkit-box; 56 left: 0; 57 padding: 20px; 58 padding-bottom: 130px; 59 position: fixed; 60 right: 0; 61 top: 0; 62 z-index: 10; 63 } 64 65 .raw-button, 66 .raw-button:hover, 67 .raw-button:active { 68 -webkit-box-shadow: none; 69 background-color: transparent; 70 background-repeat: no-repeat; 71 border: none; 72 min-width: 0; 73 padding: 1px 6px; 74 } 75 76 .close-subpage { 77 background-image: url('chrome://theme/IDR_CLOSE_BAR'); 78 height: 16px; 79 min-width: 0; 80 position: relative; 81 top: 16px; 82 width: 16px; 83 } 84 85 .close-subpage:hover { 86 background-image: url('chrome://theme/IDR_CLOSE_BAR_H'); 87 } 88 89 .close-subpage:active { 90 background-image: url('chrome://theme/IDR_CLOSE_BAR_P'); 91 } 92 93 html[dir='ltr'] .close-subpage { 94 float: right; 95 right: 20px; 96 } 97 98 html[dir='rtl'] .close-subpage { 99 float: left; 100 left: 20px; 101 } 102 103 html.hide-menu .close-subpage { 104 display: none 105 } 106 107 .content-area { 108 padding: 10px 15px 5px 15px; 109 } 110 111 .action-area { 112 -webkit-box-align: center; 113 -webkit-box-orient: horizontal; 114 -webkit-box-pack: end; 115 border-top: 1px solid rgba(188, 193, 208, .5); 116 display: -webkit-box; 117 padding: 12px; 118 } 119 120 html[dir='rtl'] .action-area { 121 left: 0; 122 } 123 124 .action-area-right { 125 display: -webkit-box; 126 } 127 128 .button-strip { 129 -webkit-box-orient: horizontal; 130 display: -webkit-box; 131 } 132 133 .bottom-strip { 134 padding: 12px; 135 position: absolute; 136 right: 0px; 137 bottom: 0px; 138 border-top: none; 139 } 140 141 html[toolkit=views] .button-strip { 142 -webkit-box-direction: reverse; 143 } 144 145 .button-strip > button { 146 -webkit-margin-start: 10px; 147 display: block; 148 } 149 150 .overlay .page { 151 -webkit-box-shadow: 0px 5px 80px #505050; 152 background: white; 153 border: 1px solid rgb(188, 193, 208); 154 border-radius: 2px; 155 min-width: 400px; 156 padding: 0; 157 position: relative; 158 } 159 160 #navbar { 161 margin: 0; 162 } 163 164 #navbar-container { 165 -webkit-border-end: 1px solid #c6c9ce; 166 background: -webkit-linear-gradient(rgba(234, 238, 243, 0.2), #eaeef3), 167 -webkit-linear-gradient(left, #eaeef3, #eaeef3 97%, #d3d7db); 168 position: fixed; 169 bottom: 0; 170 /* We set both left and right for the sake of RTL. */ 171 left: 0; 172 right: 0; 173 top: 0; 174 width: 216px; 175 z-index: 2; 176 } 177 178 html[dir='rtl'] #navbar-container { 179 background: -webkit-linear-gradient(rgba(234, 238, 243, 0), #EAEEF3), 180 -webkit-linear-gradient(right, #EAEEF3, #EAEEF3 97%, #D3D7DB); 181 } 182 183 html.hide-menu #navbar-container { 184 display: none; 185 } 186 187 #navbar-container > ul { 188 -webkit-user-select: none; 189 list-style-type: none; 190 margin: 0; 191 padding: 0; 192 } 193 194 .navbar-item { 195 border-bottom: 1px solid transparent; 196 border-top: 1px solid transparent; 197 color: #426dc9; 198 cursor: pointer; 199 display: block; 200 font-size: 105%; 201 outline: none; 202 padding: 7px 0; 203 text-align: end; 204 text-shadow: white 0 1px 1px; 205 -webkit-padding-end: 24px; 206 } 207 208 .navbar-item:focus { 209 border-bottom: 1px solid #8faad9; 210 border-top: 1px solid #8faad9; 211 } 212 213 .navbar-item-selected { 214 -webkit-box-shadow: 0px 1px 0px #f7f7f7; 215 background: -webkit-linear-gradient(left, #bbcee9, #bbcee9 97%, #aabedc); 216 border-bottom: 1px solid #8faad9; 217 border-top: 1px solid #8faad9; 218 color: black; 219 text-shadow: #bbcee9 0 1px 1px; 220 } 221 222 #mainview { 223 -webkit-box-align: stretch; 224 -webkit-padding-start: 216px; 225 margin: 0; 226 position: absolute; 227 left: 0; 228 right: 0; 229 top: 0; 230 bottom: 0; 231 z-index: 1; 232 } 233 234 html.hide-menu #mainview { 235 -webkit-padding-start: 0; 236 } 237 238 #mainview-content { 239 min-height: 100%; 240 position: relative; 241 } 242 243 #toplevel-page-container { 244 box-sizing: border-box; 245 max-width: 888px; 246 min-width: 600px; 247 padding: 0 24px; 248 } 249 250 #subpage-backdrop { 251 -webkit-transition: 0.25s opacity; 252 background-color: rgba(233, 238, 242, .5); 253 height: 100%; 254 left: 216px; 255 right: 216px; 256 position: fixed; 257 top: 0; 258 width: 100%; 259 } 260 261 .subpage-sheet-container { 262 -webkit-transition: 0.25s opacity, 0.1s padding-left, 0.1s padding-right; 263 box-sizing: border-box; 264 min-height: 100%; 265 position: absolute; 266 /* We set both left and right for the sake of RTL. */ 267 left: 0; 268 right: 0; 269 top: 0; 270 width: 100%; 271 } 272 273 #subpage-sheet-container-1 { 274 -webkit-padding-start: 40px; 275 z-index: 5; 276 } 277 278 #subpage-sheet-container-2 { 279 -webkit-padding-start: 80px; 280 z-index: 10; 281 } 282 283 .subpage-sheet { 284 -webkit-box-shadow: #666 0px 2px 5px; 285 background-color: white; 286 border-left: 1px solid #b8b8b8; 287 box-sizing: border-box; 288 min-height: 100%; 289 width: 100%; 290 min-width: 651px; 291 } 292 293 .subpage-sheet-contents { 294 box-sizing: border-box; 295 padding: 0px 20px 20px 20px; 296 width: 650px; 297 } 298 299 #managed-prefs-banner { 300 background: -webkit-linear-gradient(#fff2b7, #fae691 97%, #878787); 301 height: 31px; 302 width: 100%; 303 } 304 305 #managed-prefs-banner { 306 margin: 0; 307 padding: 0; 308 vertical-align: middle; 309 } 310 311 #managed-prefs-icon { 312 background-image: url("chrome://theme/IDR_WARNING"); 313 background-repeat: no-repeat; 314 background-position:center; 315 display: inline-block; 316 padding: 5px; 317 height: 21px; 318 vertical-align: middle; 319 width: 24px; 320 } 321 322 #managed-prefs-text { 323 vertical-align: middle; 324 } 325 326 .page h1 { 327 -webkit-padding-end: 24px; 328 -webkit-user-select: none; 329 border-bottom: 1px solid #eeeeee; 330 color: #53637d; 331 font-size: 200%; 332 font-weight: normal; 333 margin: 0; 334 padding-bottom: 4px; 335 padding-top: 13px; 336 text-shadow: white 0 1px 2px; 337 } 338 339 .subpage-sheet .page h1 { 340 margin-bottom: 10px; 341 } 342 343 .overlay .page h1 { 344 background: -webkit-linear-gradient(white, #F8F8F8); 345 border-bottom: 1px solid rgba(188, 193, 208, .5); 346 font-size: 105%; 347 font-weight: bold; 348 padding: 10px 15px 8px 15px; 349 } 350 351 .page list { 352 /* Min height is a multiple of the list item height (32) */ 353 min-height: 192px; 354 } 355 356 section { 357 -webkit-box-orient: horizontal; 358 border-bottom: 1px solid #eeeeee; 359 display: -webkit-box; 360 margin-top: 17px; 361 padding-bottom: 20px; 362 } 363 364 div.page section:last-child { 365 border-bottom: none; 366 } 367 368 div.page > h3 { 369 font-size: 105%; 370 font-weight: bold; 371 margin: 20px 0 10px 0; 372 } 373 374 section > h3 { 375 font-size: 105%; 376 font-weight: bold; 377 margin: 0; 378 vertical-align: middle; 379 width: 140px; 380 } 381 382 section > div:only-of-type { 383 -webkit-box-flex: 1; 384 } 385 386 .option { 387 margin-top: 0; 388 } 389 390 div.checkbox, 391 div.radio { 392 margin: 5px 0; 393 } 394 395 /* [hidden] does display:none, but its priority is too low in some cases. */ 396 .hidden, 397 [hidden] { 398 display: none !important; 399 } 400 401 .transparent { 402 opacity: 0; 403 } 404 405 div.disabled { 406 color: #888; 407 } 408 409 .touch-slider { 410 -webkit-appearance: slider-horizontal; 411 } 412 413 .link-button, 414 .link-button:active, 415 .link-button:focus, 416 .link-button:hover { 417 -webkit-box-shadow: none; 418 background: transparent none; 419 border: none; 420 color: blue; 421 cursor: pointer; 422 text-decoration: underline; 423 } 424 425 .text-button, 426 .text-button:active, 427 .text-button:focus, 428 .text-button:hover { 429 -webkit-box-shadow: none; 430 background: transparent none; 431 border-color: transparent; 432 color: #000; 433 } 434 435 .settings-list, 436 .settings-list-empty { 437 border: 1px solid #d9d9d9; 438 border-radius: 2px; 439 } 440 441 .settings-list-empty { 442 background-color: #f4f4f4; 443 box-sizing: border-box; 444 min-height: 125px; 445 padding-left: 20px; 446 padding-top: 20px; 447 } 448 449 list > * { 450 -webkit-box-align: center; 451 -webkit-transition: .15s background-color; 452 box-sizing: border-box; 453 border-radius: 0; 454 display: -webkit-box; 455 height: 32px; 456 border: none; 457 margin: 0; 458 } 459 460 list:not([disabled]) > :hover { 461 background-color: #e4ecf7; 462 } 463 464 /* TODO(stuartmorgan): Once this becomes the list style for other WebUI pages 465 * these rules can be simplified (since they wont need to override other rules). 466 */ 467 468 list:not([hasElementFocus]) > [selected], 469 list:not([hasElementFocus]) > [lead][selected] { 470 background-color: #d0d0d0; 471 background-image: none; 472 } 473 474 list[hasElementFocus] > [selected], 475 list[hasElementFocus] > [lead][selected], 476 list:not([hasElementFocus]) > [selected]:hover, 477 list:not([hasElementFocus]) > [selected][lead]:hover { 478 background-color: #bbcee9; 479 background-image: none; 480 } 481 482 list[hasElementFocus] > [lead], 483 list[hasElementFocus] > [lead][selected] { 484 border-top: 1px solid #7892b4; 485 border-bottom: 1px solid #7892b4; 486 } 487 488 list[hasElementFocus] > [lead]:nth-child(2), 489 list[hasElementFocus] > [lead][selected]:nth-child(2) { 490 border-top: 1px solid transparent; 491 } 492 493 list[hasElementFocus] > [lead]:nth-last-child(2), 494 list[hasElementFocus] > [lead][selected]:nth-last-child(2) { 495 border-bottom: 1px solid transparent; 496 } 497 498 list[disabled] > [lead][selected], 499 list[disabled]:focus > [lead][selected] { 500 border: none; 501 } 502 503 list[disabled] { 504 opacity: 0.6; 505 } 506 507 list > .heading { 508 color: #666666; 509 } 510 511 list > .heading:hover { 512 background-color: transparent; 513 border-color: transparent; 514 } 515 516 list .deletable-item { 517 -webkit-box-align: center; 518 } 519 520 list .deletable-item > :first-child { 521 -webkit-box-align: center; 522 -webkit-box-flex: 1; 523 -webkit-padding-end: 5px; 524 display: -webkit-box; 525 } 526 527 list .close-button { 528 -webkit-transition: .15s opacity; 529 background-color: transparent; 530 /* TODO(stuartmorgan): Replace with real images once they are available. */ 531 background-image: url("../../../app/theme/close_bar.png"); 532 border: none; 533 display: block; 534 height: 16px; 535 opacity: 1; 536 width: 16px; 537 } 538 539 list > *:not(:hover):not([lead]) .close-button, 540 list > *:not(:hover):not([selected]) .close-button, 541 list:not([hasElementFocus]) > *:not(:hover) .close-button, 542 list[disabled] .close-button, 543 list .close-button[disabled] { 544 opacity: 0; 545 pointer-events: none; 546 } 547 548 list .close-button:hover { 549 background-image: url("../../../app/theme/close_bar_h.png"); 550 } 551 552 list .close-button:active { 553 background-image: url("../../../app/theme/close_bar_p.png"); 554 } 555 556 list .static-text { 557 overflow: hidden; 558 text-overflow: ellipsis; 559 white-space: nowrap; 560 } 561 562 list[inlineeditable] input { 563 box-sizing: border-box; 564 margin: 0; 565 width: 100%; 566 } 567 568 list > :not([editing]) [displaymode="edit"] { 569 display: none; 570 } 571 572 list > [editing] [displaymode="static"] { 573 display: none; 574 } 575 576 list > [editing] input:invalid { 577 /* TODO(stuartmorgan): Replace with validity badge */ 578 background-color: pink; 579 } 580 581 .option-name { 582 padding-right: 5px; 583 } 584 585 html[dir=rtl].option-name { 586 padding-left: 5px; 587 } 588 589 .favicon-cell { 590 -webkit-padding-start: 20px; 591 background-position: left; 592 background-repeat: no-repeat; 593 } 594 595 input[type="url"].favicon-cell { 596 -webkit-padding-start: 22px; 597 background-position-x: 4px; 598 } 599 600 /* TODO(jhawkins): Use something better than 99.3% when CSS3 background 601 * positioning is available. 602 */ 603 html[dir=rtl] input.favicon-cell { 604 background-position-x: 99.3%; 605 } 606 607 list .favicon-cell { 608 -webkit-margin-start: 7px; 609 -webkit-padding-start: 26px; 610 display: block; 611 text-overflow: ellipsis; 612 overflow: hidden; 613 white-space: nowrap; 614 } 615 616 html[dir=rtl] list .favicon-cell { 617 background-position: right; 618 } 619 620 html[enable-background-mode=false] #background-mode-section { 621 display: none; 622 } 623 624 /* UI Controls */ 625 626 /* Currently we can't make custom focus outlines look right on the Mac, so 627 * we stick to native focus rings. Once outlines follow border radius, we 628 * can revisit. 629 */ 630 html:not([os=mac]) button:focus, 631 html:not([os=mac]) input:focus, 632 html:not([os=mac]) input[type='submit']:focus, 633 html:not([os=mac]) select:focus { 634 outline-color: rgba(0, 128, 256, 0.5); 635 } 636 html[os=mac] button:focus, 637 html[os=mac] input[type='submit']:focus { 638 outline-offset: -2px; 639 } 640 641 /* LIST */ 642 html:not([os=mac]) list[hasElementFocus] { 643 outline: 1px solid rgba(0, 128, 256, 0.5); 644 outline-offset: -2px; 645 } 646 647 /* This matches the native list outline on Mac */ 648 html[os=mac] list[hasElementFocus] { 649 outline-color: #759ad9; 650 outline-offset: -1px; 651 outline-style: auto; 652 outline-width: 5px; 653 } 654 655 /* TEXT */ 656 input[type='password'], 657 input[type='text'], 658 input[type='url'], 659 input:not([type]) { 660 -webkit-border-radius: 2px; 661 border: 1px solid #aaa; 662 font-size: inherit; 663 padding: 3px; 664 } 665 666 /* SELECT */ 667 select { 668 -webkit-appearance: button; 669 -webkit-border-radius: 2px; 670 -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1); 671 -webkit-padding-end: 20px; 672 -webkit-padding-start: 2px; 673 -webkit-user-select: none; 674 background-image: url("select.png"), -webkit-linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5); 675 background-position: center right; 676 background-repeat: no-repeat; 677 border: 1px solid #aaa; 678 color: #555; 679 font-size: inherit; 680 margin: 0; 681 overflow: hidden; 682 padding-top: 2px; 683 padding-bottom: 2px; 684 text-overflow: ellipsis; 685 white-space: nowrap; 686 } 687 688 select:disabled { 689 color: graytext; 690 } 691 692 html[dir='rtl'] select { 693 background-position: center left; 694 } 695 696 select:enabled:hover { 697 -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2); 698 background-image: url("select.png"), -webkit-linear-gradient(#fefefe, #f8f8f8 40%, #e9e9e9); 699 color: #333; 700 } 701 702 select:enabled:active { 703 -webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2); 704 background-image: url("select.png"), -webkit-linear-gradient(#f4f4f4, #efefef 40%, #dcdcdc); 705 color: #444; 706 } 707 708 /* CHECKBOX, RADIO */ 709 input[type=checkbox], 710 input[type=radio] { 711 margin-left: 0; 712 margin-right: 0; 713 position: relative; 714 top: 1px; 715 } 716 717 /* Checkbox and radio buttons have different sizes on different platforms. The 718 * following rules have platform specific tweaks. 719 * TODO(arv): Test the vertical position on Linux and CrOS as well. 720 */ 721 722 label > input[type=checkbox], 723 label > input[type=radio] { 724 margin-top: 1px; 725 } 726 727 html[os=mac] label > input[type=checkbox], 728 html[os=mac] label > input[type=radio] { 729 margin-top: 2px; 730 } 731 732 html[os=chromeos] label > input[type=checkbox], 733 html[os=chromeos] label > input[type=radio] { 734 top: 2px; 735 } 736 737 /* This will 'disable' the label associated with any input whose next sibling is 738 * the span containing the label (usually a checkbox or radio). 739 */ 740 label > input[disabled] ~ span { 741 color: #888; 742 } 743 744 .suboption { 745 -webkit-margin-start: 16px; 746 } 747 748 .informational-text { 749 color: grey; 750 } 751 752 #main-content list.autocomplete-suggestions { 753 background-color: white; 754 border: 1px solid #aaa; 755 border-radius: 2px; 756 min-height: 0; 757 opacity: 0.9; 758 position: fixed; 759 z-index: 3; 760 } 761 762 list.autocomplete-suggestions > div { 763 height: auto; 764 } 765 766 list.autocomplete-suggestions:not([hasElementFocus]) > [selected], 767 list.autocomplete-suggestions:not([hasElementFocus]) > [lead][selected] { 768 background-color: #bbcee9; 769 } 770 771 html:not([hasFlashPlugin]) .flash-plugin-area, 772 /* If the Flash plug-in supports the NPP_ClearSiteData API, we don't need to 773 * show the link to the Flash storage settings manager: 774 */ 775 html[flashPluginSupportsClearSiteData] .flash-plugin-area, 776 html:not([flashPluginSupportsClearSiteData]) .clear-plugin-lso-data-enabled, 777 html[flashPluginSupportsClearSiteData] .clear-plugin-lso-data-disabled { 778 display: none; 779 } 780