common.css (33095B)
1 /* - This Source Code Form is subject to the terms of the Mozilla Public 2 - License, v. 2.0. If a copy of the MPL was not distributed with this file, 3 - You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 @namespace html "http://www.w3.org/1999/xhtml"; 6 @namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; 7 8 *|*:root { 9 --in-content-page-color: #ffffff; 10 --in-content-page-background: #181411; 11 --in-content-frame-background: #181411; 12 --in-content-main-border-color: rgb(50,50,50); 13 --in-content-main-background-color: #181411; 14 --in-content-main-background-image: transparent; 15 --in-content-text-color: #ffffff; 16 --in-content-selected-text: #fff; 17 --in-content-header-border-color: rgb(50,50,50); 18 --in-content-box-background: #181411; 19 --in-content-box-background-odd: #f3f6fa; 20 --in-content-box-background-hover: #181411; 21 --in-content-box-background-active: rgb(1,1,1); 22 --in-content-box-border-color: rgb(75,75,75); 23 --in-content-item-hover: rgb(110,110,110); 24 --in-content-item-selected: rgb(110,110,110); 25 --in-content-border-highlight: #ff9500; 26 --in-content-border-focus: rgb(75,75,75); 27 --in-content-border-hover: rgb(75,75,75); 28 --in-content-border-color: rgb(50,50,50); 29 --in-content-category-text: #fff; 30 --in-content-category-border-focus: 1px dotted #fff; 31 --in-content-category-text-selected: #f2f2f2; 32 --in-content-category-background: #424f5a; 33 --in-content-category-background-hover: #5e6972; 34 --in-content-category-background-active: #343f48; 35 --in-content-tab-color: #424f5a; 36 --in-content-link-color: #ffffff; 37 --in-content-link-color-hover: rgb(219,219,219); 38 --in-content-link-color-active: rgb(219,219,219); 39 --in-content-link-color-visited: #551a8b; 40 --in-content-primary-button-background: #181411; 41 --in-content-primary-button-background-hover: rgb(110,110,110); 42 --in-content-primary-button-background-active: rgb(43,43,43); 43 --in-content-table-border-dark-color: rgb(50,50,50); 44 --in-content-table-header-background: rgb(1,1,1); 45 } 46 47 html|html, 48 html|body, 49 xul|page, 50 xul|window { 51 font: message-box; 52 -moz-appearance: none; 53 background-color: var(--in-content-page-background); 54 color: var(--in-content-page-color); 55 } 56 57 html|body { 58 font-size: 15px; 59 font-weight: normal; 60 margin: 0; 61 } 62 63 html|h1 { 64 font-size: 2.5em; 65 font-weight: lighter; 66 line-height: 1.2; 67 color: var(--in-content-text-color); 68 margin: 0; 69 margin-bottom: .5em; 70 } 71 72 html|hr { 73 border-style: solid none none none; 74 border-color: var(--in-content-border-color); 75 } 76 77 xul|caption { 78 -moz-appearance: none; 79 margin: 0; 80 } 81 82 html|h2 { 83 font-size: 1.3rem; 84 font-weight: bold; 85 line-height: 22px; 86 } 87 88 xul|caption > xul|checkbox, 89 xul|caption > xul|label { 90 font-size: 1.3rem; 91 font-weight: bold; 92 line-height: 22px; 93 margin: 0 !important; 94 } 95 96 xul|description { 97 margin-inline-start: 0; 98 } 99 100 101 /* something goes here! */ 102 103 104 *|*.main-content { 105 border: 1px solid var(--in-content-main-border-color); 106 border-radius: 5px; 107 background-color: var(--in-content-main-background-color); 108 background-image: var(--in-content-main-background-image); 109 padding-top: 25px; 110 padding-inline-end: 44px; /* compensate the 4px margin of child elements */ 111 padding-bottom: 40px; 112 padding-inline-start: 48px; 113 overflow: auto; 114 } 115 116 xul|prefpane > xul|*.content-box { 117 overflow: visible; 118 } 119 120 /* groupboxes */ 121 122 xul|groupbox { 123 -moz-appearance: none; 124 border: none; 125 margin: 15px 0 0; 126 padding-inline-start: 0; 127 padding-inline-end: 0; 128 font-size: 1.25rem; 129 } 130 131 xul|groupbox xul|label { 132 /* !important needed to override toolkit !important rule */ 133 margin-inline-start: 0 !important; 134 margin-inline-end: 0 !important; 135 } 136 137 /* tabpanels and tabs */ 138 139 xul|tabpanels { 140 -moz-appearance: none; 141 font-size: 1.25rem; 142 line-height: 22px; 143 border: none; 144 padding: 0; 145 background-color: transparent; 146 color: inherit; 147 } 148 149 xul|tabs { 150 position:relative; 151 margin: 8px 0 15px; 152 margin-inline-end: 4px; 153 border: 0; 154 border-bottom: 1px solid #c1c1c1; 155 } 156 157 xul|*.tabs-left, 158 xul|*.tabs-right { 159 border-bottom: none; 160 } 161 162 xul|tab { 163 -moz-appearance: none; 164 position: relative; 165 margin-top: 0; 166 margin-inline-end: -1px; 167 padding: 4px 20px; 168 min-height: 44px; 169 max-height: 45px; 170 height: 45px; 171 color: #6d6d6d; 172 background-color: transparent; 173 border: 1px solid transparent; 174 border-bottom-width: 0; 175 border-radius: 0; 176 transition: background-color 50ms ease 0s, 177 border-color 150ms ease 0s; 178 } 179 xul|tab:last-of-type{ 180 margin-inline-end: 0; 181 } 182 183 xul|tab::before{ 184 display: block; 185 margin: calc(.5em - 4px); 186 margin-inline-start: -21px; 187 margin-inline-end: 20px; 188 height: calc(44px - 1em); 189 border-right: 1px solid #c1c1c1; 190 transition: border-color 150ms ease 0s; 191 content: ""; /* just show a border! */ 192 } 193 xul|tab:first-of-type::before{ 194 border-color: transparent; 195 } 196 xul|tabs:hover > tab::before{ 197 border-color: transparent; 198 } 199 200 xul|tabs:hover > tab:-moz-locale-dir(ltr){ 201 border-left-color: #c1c1c1; 202 border-top-color: #c1c1c1; 203 } 204 xul|tabs:hover > tab:-moz-locale-dir(rtl){ 205 border-right-color: #c1c1c1; 206 border-top-color: #c1c1c1; 207 } 208 xul|tabs:hover > tab:last-of-type:-moz-locale-dir(ltr){ 209 border-right-color: #c1c1c1; 210 } 211 xul|tabs:hover > tab:last-of-type:-moz-locale-dir(rtl){ 212 border-left-color: #c1c1c1; 213 } 214 215 xul|tab:hover { 216 background-color: #ebebeb; 217 } 218 219 xul|tab[selected] { 220 z-index: 2; 221 background-color: #ebebeb; 222 color: var(--in-content-page-color); 223 border-color: #c1c1c1; 224 transition: background-color 50ms ease 0s, 225 border-color 0ms ease 0s; 226 } 227 xul|tab[selected]::before, 228 xul|tab[selected] + tab::before{ 229 border-color: transparent; 230 transition: border-color 0ms ease 0s; 231 } 232 233 xul|tab[selected] + tab:-moz-locale-dir(ltr){ 234 border-left-color: transparent; 235 transition: background-color 50ms ease 0s, 236 border-left-color 0ms ease 0s, 237 border-color 150ms ease 0s; 238 } 239 xul|tab[selected] + tab:-moz-locale-dir(rtl){ 240 border-left-color: transparent; 241 transition: background-color 50ms ease 0s, 242 border-right-color 0ms ease 0s, 243 border-color 150ms ease 0s; 244 } 245 246 xul|*.tab-text { 247 font-size: 1.4rem; 248 font-weight: 600; /* semi-bold --johnGraciliano */ 249 line-height: 22px; 250 } 251 252 253 /* html buttons */ 254 255 html|button { 256 padding: 3px; 257 /* override forms.css */ 258 font: inherit; 259 } 260 261 /* xul buttons and menulists */ 262 263 *|button, 264 xul|colorpicker[type="button"], 265 xul|menulist { 266 -moz-appearance: none; 267 min-height: 30px; /* Testing! This was "height: 30px;" --johnGraciliano */ 268 color: var(--in-content-text-color); 269 line-height: 20px; /* This keeps the single line text button height to 30px */ 270 border: 1px solid var(--in-content-box-border-color); 271 -moz-border-top-colors: none !important; 272 -moz-border-right-colors: none !important; 273 -moz-border-bottom-colors: none !important; 274 -moz-border-left-colors: none !important; 275 border-radius: 2px; 276 background-color: var(--in-content-box-background); 277 } 278 279 html|button:not(.category):enabled:hover, 280 xul|button:not([disabled="true"]):hover, 281 xul|colorpicker[type="button"]:not([disabled="true"]):hover, 282 xul|menulist:not([disabled="true"]):hover { 283 background-color: var(--in-content-box-background-hover); 284 } 285 286 html|button:not(.category):enabled:hover:active, 287 xul|button:not([disabled="true"]):hover:active, 288 xul|colorpicker[type="button"]:not([disabled="true"]):hover:active, 289 xul|menulist[open="true"]:not([disabled="true"]) { 290 background-color: var(--in-content-box-background-active); 291 } 292 293 html|button:disabled, 294 xul|button[disabled="true"], 295 xul|colorpicker[type="button"][disabled="true"], 296 xul|menulist[disabled="true"] { 297 cursor: not-allowed; 298 opacity: 0.5; 299 } 300 301 *|button.primary { 302 background-color: var(--in-content-primary-button-background); 303 border-color: transparent; 304 color: var(--in-content-selected-text); 305 } 306 307 html|button.primary:enabled:hover, 308 xul|button.primary:not([disabled="true"]):hover { 309 background-color: var(--in-content-primary-button-background-hover); 310 } 311 312 html|button.primary:enabled:hover:active, 313 xul|button.primary:not([disabled="true"]):hover:active { 314 background-color: var(--in-content-primary-button-background-active); 315 } 316 317 xul|colorpicker[type="button"] { 318 padding: 6px; 319 width: 50px; 320 } 321 322 xul|button > xul|*.button-box, 323 xul|menulist > xul|*.menulist-label-box { 324 padding-right: 10px !important; 325 padding-left: 10px !important; 326 } 327 328 xul|menulist > xul|*.menulist-label-box > xul|*.menulist-icon[src] { 329 margin-inline-end: 5px; 330 } 331 332 xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker { 333 -moz-appearance: none; 334 margin: 1px 0; 335 margin-inline-start: 10px; 336 padding: 0; 337 width: 10px; 338 height: 16px; 339 border: none; 340 background-color: transparent; 341 list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown"); 342 } 343 344 xul|*.help-button { 345 min-width: 16px; 346 margin-inline-end: 0; 347 border-width: 0; 348 background-image: none; 349 /* Override default button background */ 350 background-color: transparent; 351 box-shadow: none; 352 list-style-image: url("chrome://global/skin/in-content/help-glyph.svg"); 353 } 354 355 xul|*.help-button:not([disabled="true"]):hover { 356 background-image: none; 357 /* Override default button background */ 358 background-color: transparent; 359 list-style-image: url("chrome://global/skin/in-content/help-glyph.svg#hover"); 360 } 361 362 xul|*.help-button:not([disabled="true"]):hover:active { 363 background-image: none; 364 /* Override default button background */ 365 background-color: transparent; 366 list-style-image: url("chrome://global/skin/in-content/help-glyph.svg#active"); 367 } 368 369 xul|*.close-icon > xul|*.button-box, 370 xul|*.help-button > xul|*.button-box { 371 padding-top: 0; 372 padding-bottom: 0; 373 padding-right: 0 !important; 374 padding-left: 0 !important; 375 } 376 377 xul|*.help-button > xul|*.button-box > xul|*.button-icon { 378 width: 18px; 379 height: 18px; 380 } 381 382 xul|*.help-button > xul|*.button-box > xul|*.button-text { 383 display: none; 384 } 385 386 html|*.help-button { 387 width: 18px; 388 height: 18px; 389 border: 0; 390 padding: 0; 391 display: inline-block; 392 background-image: url("chrome://global/skin/in-content/help-glyph.svg"); 393 background-repeat: no-repeat; 394 background-position: center center; 395 background-size: contain; 396 } 397 398 html|*.help-button:hover { 399 background-image: url("chrome://global/skin/in-content/help-glyph.svg#hover"); 400 } 401 402 html|*.help-button:hover:active { 403 background-image: url("chrome://global/skin/in-content/help-glyph.svg#active"); 404 } 405 406 /* Special dimensions for the help button in the options page --johnGraciliano */ 407 script[src$="preferences.js"] ~ stack *|button.help-button { 408 position: relative; 409 z-index: 1; 410 height: auto; 411 min-height: unset; 412 margin: -1px; 413 margin-inline-end: 0; 414 } 415 416 /* Reposition the help buttom from the bottom to the top of the options page --johnGraciliano */ 417 script[src$="preferences.js"] ~ stack .main-content{ 418 position: relative; 419 } 420 script[src$="preferences.js"] ~ stack .main-content > hbox:last-child { 421 display: flex; 422 justify-content: flex-end; 423 position: absolute; 424 top: 15px; 425 max-width: calc(100% - 96px); 426 width: 796px ; 427 } 428 429 xul|*.spinbuttons-button { 430 min-height: initial; 431 margin-inline-start: 10px !important; 432 margin-inline-end: 2px !important; 433 } 434 435 xul|*.spinbuttons-up { 436 margin-top: 2px !important; 437 border-radius: 1px 1px 0 0; 438 } 439 440 xul|*.spinbuttons-down { 441 margin-bottom: 2px !important; 442 border-radius: 0 0 1px 1px; 443 } 444 445 xul|*.spinbuttons-button > xul|*.button-box { 446 padding: 1px 5px 2px !important; 447 } 448 449 xul|*.spinbuttons-up > xul|*.button-box > xul|*.button-icon { 450 list-style-image: url("chrome://global/skin/arrow/arrow-v.svg#ip"); 451 } 452 453 xul|*.spinbuttons-up[disabled="true"] > xul|*.button-box > xul|*.button-icon { 454 list-style-image: url("chrome://global/skin/arrow/arrow-v.svg#up-dis"); 455 } 456 457 xul|*.spinbuttons-down > xul|*.button-box > xul|*.button-icon { 458 list-style-image: url("chrome://global/skin/arrow/arrow-v.svg#dn"); 459 } 460 461 xul|*.spinbuttons-down[disabled="true"] > xul|*.button-box > xul|*.button-icon { 462 list-style-image: url("chrome://global/skin/arrow/arrow-v.svg#dn-dis"); 463 } 464 465 xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker { 466 -moz-appearance: none; 467 margin-inline-end: 4px; 468 padding: 0; 469 border: none; 470 background-color: transparent; 471 list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown"); 472 } 473 474 xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker > xul|*.dropmarker-icon { 475 width: 18px; 476 height: 18px; 477 } 478 479 xul|menulist[disabled="true"]:not([editable="true"]) > xul|*.menulist-dropmarker { 480 list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown-disabled") 481 } 482 483 xul|menulist > xul|menupopup, 484 xul|button[type="menu"] > xul|menupopup { 485 -moz-appearance: none; 486 border: 1px solid var(--in-content-box-border-color); 487 border-radius: 2px; 488 background-color: var(--in-content-box-background); 489 } 490 491 xul|menulist > xul|menupopup xul|menu, 492 xul|menulist > xul|menupopup xul|menuitem, 493 xul|button[type="menu"] > xul|menupopup xul|menu, 494 xul|button[type="menu"] > xul|menupopup xul|menuitem { 495 -moz-appearance: none; 496 font-size: 1em; 497 color: var(--in-content-text-color); 498 padding-top: 0.2em; 499 padding-bottom: 0.2em; 500 padding-inline-start: 10px; 501 padding-inline-end: 30px; 502 } 503 504 xul|menulist > xul|menupopup > xul|menu[_moz-menuactive="true"], 505 xul|menulist > xul|menupopup > xul|menuitem[_moz-menuactive="true"], 506 xul|button[type="menu"] > xul|menupopup > xul|menu[_moz-menuactive="true"], 507 xul|button[type="menu"] > xul|menupopup > xul|menuitem[_moz-menuactive="true"] { 508 color: var(--in-content-text-color); 509 background-color: var(--in-content-item-hover); 510 } 511 512 xul|menulist > xul|menupopup > xul|menu[selected="true"], 513 xul|menulist > xul|menupopup > xul|menuitem[selected="true"], 514 xul|button[type="menu"] > xul|menupopup > xul|menu[selected="true"], 515 xul|button[type="menu"] > xul|menupopup > xul|menuitem[selected="true"] { 516 color: var(--in-content-selected-text); 517 background-color: var(--in-content-item-selected); 518 } 519 520 xul|menulist > xul|menupopup xul|menuseparator, 521 xul|button[type="menu"] > xul|menupopup xul|menuseparator { 522 -moz-appearance: none; 523 margin: 0; 524 padding: 0; 525 border-top: 1px solid var(--in-content-box-border-color); 526 border-bottom: none; 527 } 528 529 /* textboxes */ 530 531 html|input[type="text"], 532 html|textarea, 533 *|textbox { 534 -moz-appearance: none; 535 box-sizing: border-box; 536 height: 30px; /* These may only be for xul|textbox */ 537 color: var(--in-content-text-color); 538 line-height: 20px; /* These may only be for xul|textbox */ 539 padding-right: 10px; /* These may only be for xul|textbox */ 540 padding-left: 10px; /* These may only be for xul|textbox */ 541 border: 1px solid var(--in-content-box-border-color); 542 -moz-border-top-colors: none !important; 543 -moz-border-right-colors: none !important; 544 -moz-border-bottom-colors: none !important; 545 -moz-border-left-colors: none !important; 546 border-radius: 2px; 547 background-color: var(--in-content-box-background); 548 } 549 550 xul|textbox { 551 min-height: 30px; /* Possibly, this should be part of the rule above */ 552 /* padding-right: 10px; ** These are applied above */ 553 /* padding-left: 10px; ** These are applied above */ 554 } 555 556 html|input[type="text"], 557 html|textarea { 558 font-family: inherit; 559 font-size: inherit; 560 padding: 3px 10px; /* in the default theme it's 5px 10px --johnGraciliano */ 561 } 562 563 html|input[type="text"]:not(:disabled):not(:focus):hover, 564 html|textarea:not(:disabled):not(:focus):hover, 565 html|textbox:not(:disabled):not(:focus):hover, 566 xul|textbox:not([disabled="true"]):not([focused]):hover { 567 border-color: var(--in-content-border-hover); 568 } 569 570 html|input[type="text"]:disabled, 571 html|textarea:disabled, 572 html|textbox:disabled, 573 xul|textbox[disabled="true"] { 574 opacity: 0.5; 575 } 576 577 /* Links */ 578 579 html|a, 580 .text-link, 581 .inline-link { 582 line-height: 22px; 583 color: var(--in-content-link-color); 584 text-decoration: none; 585 } 586 587 html|a:hover, 588 .text-link:hover, 589 .inline-link:hover { 590 color: var(--in-content-link-color-hover); 591 text-decoration: underline; 592 } 593 594 html|a:hover:active, 595 .text-link:hover:active, 596 .inline-link:hover:active { 597 color: var(--in-content-link-color-active); 598 text-decoration: none; 599 } 600 601 /* Checkboxes and radio buttons */ 602 603 /* Hide the actual checkbox */ 604 html|input[type="checkbox"] { 605 opacity: 0; 606 width: 0; 607 /*visibility: hidden; */ 608 pointer-events: none; /* It is really see thru! */ 609 position: absolute; 610 /* z-index: -1; /* This will prevent it from being top, even invisible*/ 611 } 612 613 /* Create a box to style as the checkbox */ 614 html|input[type="checkbox"] + html|label:before { 615 display: inline-block; 616 content: ""; 617 vertical-align: middle; 618 } 619 620 html|input[type="checkbox"] + html|label { 621 line-height: 0px; 622 } 623 624 xul|checkbox { 625 margin-inline-start: 0; 626 } 627 628 xul|*.checkbox-check, 629 html|input[type="checkbox"] + html|label:before { 630 -moz-appearance: none; 631 box-sizing: border-box; 632 width: 23px; 633 height: 23px; 634 border-radius: 2px; 635 border: 1px solid var(--in-content-box-border-color); 636 margin-inline-end: 10px; 637 background: initial !important; /* !important needed to override toolkit checked !important rule */ 638 } 639 640 xul|checkbox:not([disabled="true"]):hover > xul|*.checkbox-check, 641 html|input[type="checkbox"]:not(:disabled) + html|label:hover:before { 642 border-color: var(--in-content-border-hover); 643 } 644 645 xul|*.checkbox-check[checked] { 646 list-style-image: url("chrome://global/skin/in-content/check.svg#check"); 647 } 648 649 html|input[type="checkbox"]:checked + html|label:before { 650 background-image: url("chrome://global/skin/in-content/check.svg#check") !important; 651 } 652 653 xul|checkbox[disabled="true"] > xul|*.checkbox-check, 654 html|input[type="checkbox"]:disabled + html|label { 655 opacity: 0.5; 656 } 657 658 xul|*.checkbox-label-box { 659 margin-inline-start: -1px; /* negative margin for the transparent border */ 660 padding-inline-start: 0; 661 } 662 663 xul|richlistitem > xul|*.checkbox-check { 664 margin: 3px 6px; 665 } 666 667 xul|radio { 668 margin-inline-start: 0; 669 } 670 671 xul|*.radio-check { 672 -moz-appearance: none; 673 width: 23px; 674 height: 23px; 675 border: 1px solid var(--in-content-box-border-color); 676 border-radius: 50%; 677 margin-inline-end: 10px; 678 background: initial; 679 } 680 681 xul|radio:not([disabled="true"]):hover > xul|*.radio-check { 682 border-color: var(--in-content-border-hover); 683 } 684 685 xul|*.radio-check[selected] { 686 list-style-image: url("chrome://global/skin/in-content/radio.svg#radio"); 687 } 688 689 xul|radio[disabled="true"] > xul|*.radio-check { 690 opacity: 0.5; 691 } 692 693 xul|*.radio-label-box { 694 margin-inline-start: -1px; /* negative margin for the transparent border */ 695 margin-inline-end: 10px; 696 padding-inline-start: 0; 697 } 698 699 /* Category List */ 700 701 *|*#categories { 702 -moz-appearance: none; 703 position: relative; 704 z-index: 1; 705 background-color: transparent; 706 margin: 0; 707 margin-inline-start: 4px; 708 margin-inline-end: -1px; 709 margin-top: 74px; 710 margin-bottom: 7px; 711 border-width: 0; 712 } 713 714 *|*.category { 715 -moz-appearance: none; 716 box-sizing: border-box; 717 background-color: transparent; 718 color: #bfbbb6; 719 padding-inline-start: 4px; 720 padding-inline-end: 27px; 721 border: 1px solid transparent; 722 min-height: 0; 723 height: 52px; 724 -moz-box-align: center; 725 align-items: center; 726 overflow: hidden; 727 transition: background-color 150ms; 728 } 729 button.category { /* With tag "button" to override chrome://devtools/content/aboutdebugging/aboutdebugging.css in Firefox 57 */ 730 border-width: 1px; 731 margin-left: 0; 732 margin-right: 0; 733 } 734 735 *|*.category:-moz-locale-dir(ltr) { 736 border-top-left-radius: 5px; 737 border-bottom-left-radius: 5px; 738 } 739 *|*.category:-moz-locale-dir(rtl) { 740 border-top-right-radius: 5px; 741 border-bottom-right-radius: 5px; 742 } 743 744 html|*.category.selected, 745 *|*.category[selected] { 746 background-color: rgb(110,110,110); 747 border-color: var(--in-content-main-border-color); 748 border-inline-end-color: rgb(75,75,75); 749 } 750 751 *|*#categories[keyboard-navigation="true"]:-moz-focusring > xul|*.category[current] { 752 border: 1px #999 dotted; 753 border-inline-end: 1px solid rgb(75,75,75); 754 } 755 756 *|*.category-name { 757 line-height: -moz-use-system-font; 758 font-size: 1.5rem; 759 padding: 0; 760 margin: 1px 5px 2px; 761 margin-inline-start: 6px; 762 -moz-user-select: none; 763 white-space: nowrap; 764 text-overflow: ellipsis; 765 } 766 /* Allow more space to the .main-content when the window is narrow */ 767 @media (max-width: 800px) { 768 *|*.category-name { 769 display: none; 770 } 771 } 772 773 *|*.category-icon { 774 width: 32px; 775 height: 32px; 776 margin-inline-start: 6px; 777 } 778 779 /* header */ 780 781 *|*.header { 782 border-bottom: 1px solid var(--in-content-header-border-color); 783 margin-inline-end: 4px; /* add the 4px end-margin of other elements */ 784 margin-bottom: 15px; 785 padding-bottom: 15px; 786 -moz-box-align: baseline; 787 } 788 789 *|*.header-name { 790 font-size: 2.5rem; 791 font-weight: normal; 792 line-height: 40px; 793 margin: 0; 794 -moz-user-select: none; 795 } 796 797 /* No text headers in the options page, but a smaller space for the help button --johnGraciliano */ 798 script[src$="preferences.js"] ~ stack .header{ 799 border: none; 800 margin: -10px 0 -7px; 801 margin-inline-end: 4px; /* add the 4px end-margin of other elements */ 802 padding-bottom: 0; 803 } 804 script[src$="preferences.js"] ~ stack .header-name{ 805 height: 18px; 806 font-size: 0; 807 line-height: 0; 808 color: transparent; 809 } 810 811 /* File fields */ 812 813 xul|filefield { 814 -moz-appearance: none; 815 background-color: transparent; 816 border: none; 817 padding: 0; 818 } 819 820 xul|*.fileFieldContentBox { 821 background-color: transparent; 822 } 823 824 xul|*.fileFieldIcon { 825 margin-inline-start: 10px; 826 margin-inline-end: 0; 827 } 828 829 xul|*.fileFieldLabel { 830 margin-inline-start: -26px; 831 padding-inline-start: 36px; 832 } 833 834 /* List boxes */ 835 836 xul|richlistbox, 837 xul|listbox { 838 -moz-appearance: none; 839 margin-inline-start: 0; 840 background-color: var(--in-content-box-background); 841 border: 1px solid var(--in-content-box-border-color); 842 color: var(--in-content-text-color); 843 } 844 845 xul|treechildren::-moz-tree-row, 846 xul|listbox xul|listitem { 847 padding: 0.3em; 848 margin: 0; 849 border: none; 850 border-radius: 0; 851 background-image: none; 852 } 853 854 xul|treechildren::-moz-tree-row(hover), 855 xul|listbox xul|listitem:hover { 856 background-color: var(--in-content-item-hover); 857 } 858 859 xul|treechildren::-moz-tree-row(selected), 860 xul|listbox xul|listitem[selected="true"] { 861 background-color: var(--in-content-item-selected); 862 color: var(--in-content-selected-text); 863 } 864 865 /* Trees */ 866 867 xul|tree { 868 -moz-appearance: none; 869 font-size: 1em; 870 border: 1px solid var(--in-content-box-border-color); 871 margin: 0; 872 } 873 874 xul|tree:-moz-focusring, 875 xul|richlistbox:-moz-focusring { 876 border: 1px dotted var(--in-content-border-focus); 877 } 878 879 xul|listheader, 880 xul|treecols { 881 -moz-appearance: none; 882 border: none; 883 border-bottom: 1px solid var(--in-content-border-color); 884 padding: 0; 885 } 886 887 xul|treecol:not([hideheader="true"]), 888 xul|treecolpicker { 889 -moz-appearance: none; 890 border: none; 891 background-color: var(--in-content-box-background-hover); 892 color: #bfbbb6; 893 padding: 5px 10px; 894 } 895 896 xul|treecol:not([hideheader="true"]):not([sortable="false"]):hover, 897 xul|treecolpicker:hover { 898 background-color: var(--in-content-box-background-active); 899 color: var(--in-content-text-color); 900 } 901 902 xul|treecol:not([hideheader="true"]):not(:first-child), 903 xul|treecolpicker { 904 border-inline-start-width: 1px; 905 border-inline-start-style: solid; 906 border-image: linear-gradient(transparent 0%, transparent 20%, #c1c1c1 20%, #c1c1c1 80%, transparent 80%, transparent 100%) 1 1; 907 } 908 909 xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection] { 910 list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown"); 911 width: 18px; 912 height: 18px; 913 } 914 915 xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection="ascending"] { 916 transform: scaleY(-1); 917 } 918 919 /* This is the only way to increase the height of a tree row unfortunately */ 920 xul|treechildren::-moz-tree-row { 921 min-height: 2em; 922 } 923 924 /* Color needs to be set on tree cell in order to be applied */ 925 xul|treechildren::-moz-tree-cell-text { 926 color: var(--in-content-text-color); 927 } 928 929 xul|treechildren::-moz-tree-cell-text(selected) { 930 color: var(--in-content-selected-text); 931 } 932 933 934 @supports not (-moz-osx-font-smoothing: auto) { /* This matches any OS except mac OS X 10.6+, thus Windows or Linux (or not Darwin) */ 935 936 xul|caption { 937 background-color: transparent; 938 } 939 940 xul|button, 941 html|button, 942 xul|colorpicker[type="button"], 943 xul|menulist { 944 margin: 2px 4px; 945 } 946 947 /* The start margin should get clear at the beginning of a line */ 948 hbox > xul|button:first-child { 949 margin-inline-start: 0; 950 margin-inline-start: 0; 951 } 952 /* Not in this special cases */ 953 hbox > vbox > hbox > xul|button:first-child, 954 :-moz-any(row, hbox) > hbox > xul|button:first-child { 955 margin-inline-start: 4px; 956 margin-inline-start: 4px; 957 } 958 959 xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker { 960 margin-top: 1px; 961 margin-bottom: 1px; 962 } 963 964 xul|checkbox { 965 padding-inline-start: 0; 966 } 967 968 @media not all and (-moz-windows-default-theme) { 969 xul|*.checkbox-check { 970 background-image: none !important; 971 } 972 973 xul|*.checkbox-check[checked] { 974 list-style-image: url("chrome://global/skin/in-content/check.svg#check-native"); 975 background-color: -moz-dialog; 976 } 977 } 978 979 xul|radio { 980 -moz-binding: url("chrome://global/content/bindings/radio.xml#radio"); 981 padding-inline-start: 0; 982 } 983 984 @media not all and (-moz-windows-default-theme) { 985 xul|*.radio-check { 986 background-image: none; 987 } 988 989 xul|*.radio-check[selected] { 990 list-style-image: url("chrome://global/skin/in-content/radio.svg#radio-native"); 991 background-color: -moz-dialog; 992 } 993 } 994 995 xul|*.radio-icon, 996 xul|*.checkbox-icon { 997 margin-inline-end: 0; 998 } 999 1000 /* Never draw a border for the focusring, use outline instead */ 1001 xul|*.button-box, 1002 xul|*.menulist-label-box, 1003 xul|*.radio-label-box, 1004 xul|*.checkbox-label-box { 1005 border-style: none; 1006 } 1007 1008 xul|*.inline-link:-moz-focusring, 1009 xul|button:-moz-focusring > xul|*.button-box, 1010 xul|menulist:-moz-focusring > xul|*.menulist-label-box, 1011 xul|radio[focused="true"] > xul|*.radio-label-box, 1012 html|input[type="checkbox"]:-moz-focusring + html|label:before, 1013 xul|checkbox:-moz-focusring > xul|*.checkbox-label-box { 1014 outline: 1px dotted; 1015 } 1016 1017 /* Use a 2px border so that selected row highlight is still visible behind 1018 an existing high-contrast border that uses the background color */ 1019 @media not all and (-moz-windows-default-theme) { 1020 xul|treechildren::-moz-tree-row(selected), 1021 xul|listbox xul|listitem[selected="true"] { 1022 border: 2px dotted Highlight; 1023 } 1024 } 1025 1026 } 1027 1028 1029 @supports (-moz-osx-font-smoothing: auto) { /* This matches mac OS X 10.6+ (all supported Darwin) */ 1030 1031 /* Remove the gray background from the groupbox bodies in the Options page for the mac --johnGraciliano */ 1032 /* xul|page[title="Options"] > */ script[src$="preferences.js"] ~ stack .groupbox-body { 1033 -moz-appearance: none; 1034 } 1035 1036 xul|tabs { 1037 padding-right: 0; 1038 padding-left: 0; 1039 } 1040 1041 xul|tab[visuallyselected] { 1042 text-shadow: none; 1043 } 1044 1045 xul|button, 1046 html|button, 1047 xul|colorpicker[type="button"], 1048 xul|menulist { 1049 margin-top: 3px; 1050 } 1051 1052 xul|button, 1053 html|button { 1054 /* use the same margin of other elements for the alignment */ 1055 margin-left: 4px; 1056 margin-right: 4px; 1057 } 1058 1059 /* The start margin should get clear at the beginning of a line */ 1060 hbox > xul|button:first-child { 1061 margin-inline-start: 0; 1062 margin-inline-start: 0; 1063 } 1064 /* Not in this special cases */ 1065 hbox > vbox > hbox > xul|button:first-child, 1066 :-moz-any(row, hbox) > hbox > xul|button:first-child { 1067 margin-inline-start: 4px; 1068 margin-inline-start: 4px; 1069 } 1070 1071 xul|caption { 1072 padding-inline-start: 0; 1073 } 1074 1075 xul|groupbox > xul|*.groupbox-body { 1076 padding: 0; 1077 } 1078 1079 xul|menulist:not([editable="true"]) > xul|menupopup > xul|menuitem[checked="true"]::before, 1080 xul|menulist:not([editable="true"]) > xul|menupopup > xul|menuitem[selected="true"]::before { 1081 display: none; 1082 } 1083 1084 xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker { 1085 display: -moz-box; 1086 margin-top: 1px; 1087 margin-bottom: 1px; 1088 } 1089 1090 xul|menulist > xul|menupopup xul|menu, 1091 xul|menulist > xul|menupopup xul|menuitem, 1092 xul|button[type="menu"] > xul|menupopup xul|menu, 1093 xul|button[type="menu"] > xul|menupopup xul|menuitem { 1094 padding-inline-end: 34px; 1095 } 1096 1097 xul|*.help-button > xul|*.button-box > xul|*.button-icon { 1098 margin-inline-start: 0; 1099 } 1100 1101 xul|*.checkbox-icon { 1102 margin-right: 0; 1103 } 1104 1105 xul|*.radio-icon { 1106 margin-inline-end: 0; 1107 } 1108 1109 xul|*.numberbox-input-box { 1110 -moz-appearance: none; 1111 border-width: 0; 1112 } 1113 1114 xul|description { 1115 font-size: 1.25rem; 1116 line-height: 22px; 1117 } 1118 1119 html|a:-moz-focusring, 1120 xul|*.text-link:-moz-focusring, 1121 xul|*.inline-link:-moz-focusring { 1122 color: #ff9500; 1123 text-decoration: underline; 1124 box-shadow: none; 1125 } 1126 1127 xul|button:-moz-focusring, 1128 xul|menulist:-moz-focusring, 1129 xul|checkbox:-moz-focusring > .checkbox-check, 1130 xul|radio[focused="true"] > .radio-check, 1131 xul|tab:-moz-focusring > .tab-middle > .tab-text { 1132 outline: 2px solid rgba(0,149,221,0.5); 1133 outline-offset: 1px; 1134 -moz-outline-radius: 2px; 1135 } 1136 1137 xul|radio[focused="true"] > .radio-check { 1138 -moz-outline-radius: 100%; 1139 } 1140 1141 } 1142 1143 1144 /* @-moz-document url-prefix("about:privatebrowsing"){ */ 1145 div#bar.showPrivate{ 1146 background-color: #181411; 1147 } 1148 .showPrivate ul#forgotten > li{ 1149 background-image: url("chrome://global/skin/in-content/check.svg#check"); 1150 background-position: -2px ; 1151 background-size: 24px 24px; 1152 } 1153 .showPrivate ul#kept > li{ 1154 background-image: url("chrome://browser/skin/warning16.png"); 1155 background-size: 32px 16px; 1156 background-position: -16px 7px; 1157 } 1158 .showPrivate span#tpEnabled{ 1159 background-color: #424e5a; 1160 background-color: #9b9b9b; 1161 } 1162 .showPrivate span#tpDisabled{ 1163 background-color: #181411; 1164 } 1165 /* } */ 1166 1167 @-moz-document url-prefix("about:performance") { 1168 #subprocess-reports td { 1169 background-color: #181411 !important; 1170 } 1171 } 1172 1173 /* For the 'Tab Groups' extension */ 1174 page:-moz-any(#tabGroups-preferences,#theFoxOnlyBetter-preferences,#omnisidebar-preferences,#findbartweak-preferences) > stack { 1175 min-height: 214px; /* If the viewport is too small some content will be hidden! */ 1176 padding: 18px; 1177 background-color: var(--in-content-frame-background); 1178 } 1179 page:-moz-any(#tabGroups-preferences,#theFoxOnlyBetter-preferences,#omnisidebar-preferences,#findbartweak-preferences) .main-wrapper { 1180 border: 1px solid var(--in-content-main-border-color); 1181 border-radius: 5px; 1182 overflow: hidden; 1183 } 1184 /* .main-content, */ 1185 page:-moz-any(#tabGroups-preferences,#theFoxOnlyBetter-preferences,#omnisidebar-preferences,#findbartweak-preferences) .main-wrapper .main-content { 1186 border-width: 0; 1187 } 1188 page:-moz-any(#tabGroups-preferences,#theFoxOnlyBetter-preferences,#omnisidebar-preferences,#findbartweak-preferences) .category-icon { 1189 padding: 4px; 1190 } 1191 page:-moz-any(#tabGroups-preferences,#theFoxOnlyBetter-preferences,#omnisidebar-preferences,#findbartweak-preferences) #main-footer { 1192 background-color: var(--in-content-box-background); 1193 } 1194 1195 1196 1197 1198 #body{ 1199 box-sizing: border-box; 1200 height: 100%; 1201 min-height: 214px; /* If the viewport is too small some content will be hidden! */ 1202 padding: 18px; 1203 background-color: var(--in-content-frame-background); 1204 } 1205 1206 #body > .app > #categories, 1207 #body > #categories { 1208 overflow: auto; 1209 } 1210 1211 1212 /* Rules for about:debugging */ 1213 1214 #body > .app > .main-content > div[role=tabpanel] > .header, 1215 #body > .app > .main-content > #tab-addons > .header, 1216 #body > .app > .main-content > #tab-workers > .header, 1217 #body > .main-content > #tab-addons > .header, 1218 #body > .main-content > #tab-workers > .header{ 1219 display: none; 1220 } 1221 1222 #workers > .targets > .target-list > .target-container::before, 1223 #workers > .targets > .target-container::before, 1224 #workers > .targets > .target::before, 1225 #workers > div > .targets > .target::before{ 1226 content: ""; 1227 background-image: url(chrome://devtools/skin/images/debugging-workers-generic.svg); 1228 background-size: 100%; 1229 height: 24px; 1230 width: 24px; 1231 margin-inline-end: 5px; 1232 } 1233 #workers > .targets > .target-list > .target-container::before, 1234 #workers > .targets > .target-container::before{ 1235 margin-top: 6px; 1236 align-self: flex-start; 1237 } 1238 1239 #workers > .targets > .target-list > .target-container > .target-icon, 1240 #tab-workers > #workers > .targets > .target-container > .target-icon, 1241 #tab-workers > #workers > .targets > .target > .target-icon, 1242 #tab-workers > #workers > div > .targets > .target > .target-icon{ 1243 display: none; 1244 } 1245 1246 @supports (not (word-spacing:100%)) and (not (orphans:3)) { /* Firefox = 44 */ 1247 .category[value="addons"] > .category-icon, 1248 .category[value="workers"] > .category-icon{ 1249 display: none; 1250 } 1251 .category[value="addons"]::before{ 1252 content: ""; 1253 background-image: url(chrome://devtools/skin/images/debugging-addons.svg); 1254 background-size: 100%; 1255 height: 32px; 1256 min-width: 32px; 1257 margin-inline-start: 6px; 1258 } 1259 .category[value="workers"]::before{ 1260 content: ""; 1261 background-image: url(chrome://devtools/skin/images/debugging-workers.svg); 1262 background-size: 100%; 1263 height: 32px; 1264 min-width: 32px; 1265 margin-inline-start: 6px; 1266 } 1267 }