OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-present eyeo GmbH |
| 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. |
| 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. |
| 13 * |
| 14 * You should have received a copy of the GNU General Public License |
| 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| 16 */ |
| 17 |
| 18 html |
| 19 { |
| 20 font-size: 16px; |
| 21 } |
| 22 |
| 23 body |
| 24 { |
| 25 background-color: #F3F3F3; |
| 26 display: flex; |
| 27 justify-content: center; |
| 28 /* We force vertical scrollbars to keep the content centered */ |
| 29 overflow-y: scroll; |
| 30 margin: 1rem 0.3rem; |
| 31 font-family: "Source Sans Pro", sans-serif; |
| 32 font-size: 1rem; |
| 33 line-height: 1.3rem; |
| 34 color: #4A4A4A; |
| 35 } |
| 36 |
| 37 h1 |
| 38 { |
| 39 font-size: 3rem; |
| 40 font-weight: 300; |
| 41 line-height: 3rem; |
| 42 } |
| 43 |
| 44 h2 |
| 45 { |
| 46 font-size: 1.125rem; |
| 47 font-weight: 700; |
| 48 } |
| 49 |
| 50 a |
| 51 { |
| 52 color: #077CA6; |
| 53 } |
| 54 |
| 55 a:hover |
| 56 { |
| 57 color: #5CBCE1; |
| 58 } |
| 59 |
| 60 ul |
| 61 { |
| 62 margin: 0rem; |
| 63 } |
| 64 |
| 65 main h3 |
| 66 { |
| 67 margin-top: 0rem; |
| 68 margin-bottom: 0.5rem; |
| 69 } |
| 70 |
| 71 [aria-hidden="true"] |
| 72 { |
| 73 display: none !important; |
| 74 } |
| 75 |
| 76 input[type="text"], |
| 77 input[type="url"], |
| 78 textarea, |
| 79 main |
| 80 { |
| 81 -webkit-box-sizing: border-box; |
| 82 -moz-box-sizing: border-box; |
| 83 box-sizing: border-box; |
| 84 } |
| 85 |
| 86 /* |
| 87 Normalization |
| 88 */ |
| 89 |
| 90 input, |
| 91 button |
| 92 { |
| 93 font-family: inherit; |
| 94 } |
| 95 |
| 96 button |
| 97 { |
| 98 border-radius: 0rem; |
| 99 } |
| 100 |
| 101 /* |
| 102 Buttons and links |
| 103 */ |
| 104 |
| 105 button, |
| 106 .button |
| 107 { |
| 108 display: block; |
| 109 padding: 0.6rem 0.8rem; |
| 110 background-color: transparent; |
| 111 font-size: 1rem; |
| 112 font-weight: 700; |
| 113 text-decoration: none; |
| 114 text-transform: uppercase; |
| 115 cursor: pointer; |
| 116 } |
| 117 |
| 118 /* Ignore .icon to avoid overriding "specific" (primary, secondary) styles */ |
| 119 button.primary:not(.icon), |
| 120 .button.primary:not(.icon) |
| 121 { |
| 122 border: 0px; |
| 123 color: #FFF; |
| 124 background-color: #077CA6; |
| 125 } |
| 126 |
| 127 button.primary:not([disabled]):not(.icon):hover, |
| 128 .button.primary:not(.icon):hover |
| 129 { |
| 130 box-shadow: inset 0 0 0 3px #005D80; |
| 131 } |
| 132 |
| 133 button.primary[disabled]:not(.icon) |
| 134 { |
| 135 background-color: #5CBCE1; |
| 136 } |
| 137 |
| 138 button.secondary:not(.icon), |
| 139 .button.secondary:not(.icon) |
| 140 { |
| 141 border: 2px solid #077CA6; |
| 142 color: #077CA6; |
| 143 } |
| 144 |
| 145 button.secondary:not(.icon):hover, |
| 146 .button.secondary:not(.icon):hover |
| 147 { |
| 148 box-shadow: inset 0 0 0 1px #077CA6; |
| 149 } |
| 150 |
| 151 button.link, |
| 152 button.list |
| 153 { |
| 154 color: #077CA6; |
| 155 } |
| 156 |
| 157 button.link |
| 158 { |
| 159 border: 0px; |
| 160 background-color: transparent; |
| 161 font-weight: 400; |
| 162 font-family: inherit; |
| 163 text-transform: none; |
| 164 text-decoration: underline; |
| 165 padding: 0.2rem; |
| 166 } |
| 167 |
| 168 button.link:hover |
| 169 { |
| 170 color: #5CBCE1; |
| 171 } |
| 172 |
| 173 button.list |
| 174 { |
| 175 border-style: solid; |
| 176 border-color: #CDCDCD; |
| 177 border-width: 1px; |
| 178 width: 100%; |
| 179 background-color: #E1F2FA; |
| 180 text-align: initial; |
| 181 } |
| 182 |
| 183 button.list:hover |
| 184 { |
| 185 box-shadow: inset 0 0 0 3px #077CA6; |
| 186 border-color: #077CA6; |
| 187 } |
| 188 |
| 189 .side-controls:not(.wrap) |
| 190 { |
| 191 margin: 0.8rem 0rem; |
| 192 display: flex; |
| 193 justify-content: flex-end; |
| 194 } |
| 195 |
| 196 .side-controls button |
| 197 { |
| 198 margin: 0rem; |
| 199 } |
| 200 |
| 201 /* |
| 202 Due to Edge adoption as new target browser |
| 203 we cannot use -moz/webkit-margin-start |
| 204 or -moz/webkit-margin-end because |
| 205 these lack Edge support. |
| 206 Yet we need to preserve html direction |
| 207 and potential UI that might swap right to left. |
| 208 */ |
| 209 html:not([dir="rtl"]) .side-controls button |
| 210 { |
| 211 margin-left: 1rem; |
| 212 } |
| 213 |
| 214 html[dir="rtl"] .side-controls button |
| 215 { |
| 216 margin-right: 1rem; |
| 217 } |
| 218 |
| 219 .side-controls.wrap button |
| 220 { |
| 221 margin: 0.6rem 0rem; |
| 222 } |
| 223 |
| 224 html:not([dir="rtl"]) .side-controls.wrap button |
| 225 { |
| 226 margin-left: auto; |
| 227 } |
| 228 |
| 229 html[dir="rtl"] .side-controls.wrap button |
| 230 { |
| 231 margin-right: auto; |
| 232 } |
| 233 |
| 234 /* |
| 235 icons |
| 236 */ |
| 237 |
| 238 .icon |
| 239 { |
| 240 border: 0px; |
| 241 padding: 0px; |
| 242 background-color: transparent; |
| 243 } |
| 244 |
| 245 .icon:hover |
| 246 { |
| 247 box-shadow: none; |
| 248 } |
| 249 |
| 250 .icon::before |
| 251 { |
| 252 content: ""; |
| 253 display: block; |
| 254 border: 0.2rem solid transparent; |
| 255 background-repeat: no-repeat; |
| 256 } |
| 257 |
| 258 button[role="checkbox"].icon::before |
| 259 { |
| 260 width: 1.2rem; |
| 261 height: 1.2rem; |
| 262 padding: 0px; |
| 263 } |
| 264 |
| 265 button[role="checkbox"][disabled].icon:not(.toggle)::before, |
| 266 button[role="checkbox"][aria-disabled="true"].icon:not(.toggle)::before |
| 267 { |
| 268 border: 0rem; |
| 269 margin: 0.2rem; |
| 270 border-radius: 2px; |
| 271 background-color: #ccc; |
| 272 } |
| 273 |
| 274 button[role="checkbox"].icon:not(.toggle)::before |
| 275 { |
| 276 /* Using ?query as a workaround to chromium bug #643716 */ |
| 277 background-image: url(icons/checkbox.svg?off#off); |
| 278 } |
| 279 |
| 280 button[role="checkbox"][aria-checked="true"].icon:not(.toggle)::before |
| 281 { |
| 282 background-image: url(icons/checkbox.svg?on#on); |
| 283 } |
| 284 |
| 285 button[role="checkbox"].icon.toggle::before |
| 286 { |
| 287 background-image: url(icons/toggle.svg?on#on); |
| 288 } |
| 289 |
| 290 button[role="checkbox"][aria-checked="false"].icon.toggle::before |
| 291 { |
| 292 background-image: url(icons/toggle.svg?off#off); |
| 293 } |
| 294 |
| 295 button[role="checkbox"].icon.toggle::before |
| 296 { |
| 297 width: 1.9rem; |
| 298 height: 1rem; |
| 299 } |
| 300 |
| 301 button[role="checkbox"][disabled].icon.toggle::before |
| 302 { |
| 303 background: none; |
| 304 } |
| 305 |
| 306 .icon.delete::before |
| 307 { |
| 308 background-image: url(icons/trash.svg?default#default); |
| 309 } |
| 310 |
| 311 .icon.delete:hover::before |
| 312 { |
| 313 background-image: url(icons/trash.svg?hover#hover); |
| 314 } |
| 315 |
| 316 .icon.gear::before |
| 317 { |
| 318 background-image: url(icons/gear.svg?default#default); |
| 319 } |
| 320 |
| 321 .icon.gear:hover::before |
| 322 { |
| 323 background-image: url(icons/gear.svg?hover#hover); |
| 324 } |
| 325 |
| 326 .icon.gear::before, |
| 327 .icon.delete::before |
| 328 { |
| 329 height: 1rem; |
| 330 width: 1rem; |
| 331 } |
| 332 |
| 333 [data-validation] .floating-input input:focus:invalid ~ .icon.attention::before |
| 334 { |
| 335 background-image: url(icons/attention.svg); |
| 336 } |
| 337 |
| 338 [data-validation] .floating-input input:valid ~ .icon.attention::before |
| 339 { |
| 340 top: 0.5rem; |
| 341 background-image: url(icons/checkmark.svg?approved#approved); |
| 342 } |
| 343 |
| 344 .context-menu .icon.update-subscription::before |
| 345 { |
| 346 background-image: url(icons/reload.svg); |
| 347 } |
| 348 |
| 349 .context-menu .icon.website::before |
| 350 { |
| 351 background-image: url(icons/globe.svg); |
| 352 } |
| 353 |
| 354 .context-menu .icon.source::before |
| 355 { |
| 356 background-image: url(icons/code.svg); |
| 357 } |
| 358 |
| 359 .context-menu .icon.delete::before |
| 360 { |
| 361 background-image: url(icons/trash.svg?default#default); |
| 362 } |
| 363 |
| 364 .close.icon::before |
| 365 { |
| 366 height: 1rem; |
| 367 width: 1rem; |
| 368 } |
| 369 |
| 370 .icon.close.primary::before |
| 371 { |
| 372 background-image: url(icons/delete.svg?primary#primary); |
| 373 } |
| 374 |
| 375 .icon.close.primary:hover::before |
| 376 { |
| 377 background-image: url(icons/delete.svg?primary-hover#primary-hover); |
| 378 } |
| 379 |
| 380 .icon.close.secondary::before |
| 381 { |
| 382 background-image: url(icons/delete.svg?secondary#secondary); |
| 383 } |
| 384 |
| 385 .icon.close.tertiary::before |
| 386 { |
| 387 background-image: url(icons/delete.svg?tertiary#tertiary); |
| 388 } |
| 389 |
| 390 .icon.close.secondary:hover::before |
| 391 { |
| 392 background-image: url(icons/delete.svg?secondary-hover#secondary-hover); |
| 393 } |
| 394 |
| 395 .icon.close.tertiary:hover::before |
| 396 { |
| 397 background-image: url(icons/delete.svg?tertiary-hover#tertiary-hover); |
| 398 } |
| 399 |
| 400 .tooltip::before |
| 401 { |
| 402 width: 1.1rem; |
| 403 height: 1.1rem; |
| 404 } |
| 405 |
| 406 .icon.tooltip::before |
| 407 { |
| 408 background-image: url(icons/tooltip.svg); |
| 409 } |
| 410 |
| 411 #dialog .table.list li button.icon::before |
| 412 { |
| 413 width: 1.3rem; |
| 414 height: 1.3rem; |
| 415 margin: 0rem; |
| 416 border: 0rem; |
| 417 background-image: none; |
| 418 } |
| 419 |
| 420 #dialog .table.list li button[aria-checked="true"].icon::before |
| 421 { |
| 422 background-image: url(icons/checkmark.svg?default#default); |
| 423 } |
| 424 |
| 425 #social ul li .icon::before |
| 426 { |
| 427 margin: 0em auto; |
| 428 width: 2.5rem; |
| 429 height: 2.5rem; |
| 430 } |
| 431 |
| 432 .icon#twitter::before |
| 433 { |
| 434 background-image: url("social/twitter.svg"); |
| 435 } |
| 436 |
| 437 .icon#facebook::before |
| 438 { |
| 439 background-image: url("social/facebook.svg"); |
| 440 } |
| 441 |
| 442 .icon#google-plus::before |
| 443 { |
| 444 background-image: url("social/googleplus.svg"); |
| 445 } |
| 446 |
| 447 /* |
| 448 Forms |
| 449 */ |
| 450 |
| 451 .floating-input |
| 452 { |
| 453 position: relative; |
| 454 padding-top: 0.7rem; |
| 455 margin: 1.8rem 0rem 0.5rem 0rem; |
| 456 } |
| 457 |
| 458 .floating-input input |
| 459 { |
| 460 border-color: #CDCDCD; |
| 461 border-width: 0px 0px 1px 0px; |
| 462 outline: none; |
| 463 font-size: 1rem; |
| 464 padding: 5px; |
| 465 width: 100%; |
| 466 } |
| 467 |
| 468 .floating-input input:placeholder-shown ~ label, |
| 469 .floating-input input + label, |
| 470 .floating-input input:focus + label |
| 471 { |
| 472 position: absolute; |
| 473 top: 0.9rem; |
| 474 left: 0.3rem; |
| 475 font-size: 1rem; |
| 476 } |
| 477 |
| 478 .floating-input input + label, |
| 479 .floating-input input:focus + label |
| 480 { |
| 481 top: -0.5rem; |
| 482 font-size: 0.9rem; |
| 483 } |
| 484 |
| 485 html[dir="rtl"] .floating-input input:placeholder-shown ~ label, |
| 486 html[dir="rtl"] .floating-input input ~ label, |
| 487 html[dir="rtl"] .floating-input input:focus ~ label |
| 488 { |
| 489 right: 0.3rem; |
| 490 left: auto; |
| 491 } |
| 492 |
| 493 [data-validation] .floating-input input:focus:invalid |
| 494 { |
| 495 border-color: #C11D27; |
| 496 } |
| 497 |
| 498 [data-validation] .floating-input input:focus:invalid ~ .attention::before, |
| 499 [data-validation] .floating-input input:valid ~ .attention::before |
| 500 { |
| 501 position: absolute; |
| 502 margin: 0.3rem; |
| 503 height: 1.5rem; |
| 504 width: 1.5rem; |
| 505 top: 0.3rem; |
| 506 right: 0rem; |
| 507 } |
| 508 |
| 509 html[dir="rtl"] [data-validation] .floating-input input:focus:invalid ~ .attenti
on::before, |
| 510 html[dir="rtl"] [data-validation] .floating-input input:valid ~ .attention::befo
re |
| 511 { |
| 512 left: 0rem; |
| 513 right: auto; |
| 514 } |
| 515 |
| 516 [data-validation] .floating-input input ~ .error-msg |
| 517 { |
| 518 margin-top: 0.5rem; |
| 519 color: #C11D27; |
| 520 display: block; |
| 521 visibility: hidden; |
| 522 } |
| 523 |
| 524 [data-validation] .floating-input input:focus:invalid ~ .error-msg |
| 525 { |
| 526 visibility: visible; |
| 527 } |
| 528 |
| 529 /* |
| 530 Sidebar |
| 531 */ |
| 532 |
| 533 #sidebar, |
| 534 #sidebar .fixed, |
| 535 [role="tablist"] |
| 536 { |
| 537 width: 14.3rem; |
| 538 } |
| 539 |
| 540 #sidebar |
| 541 { |
| 542 flex-shrink: 0; |
| 543 } |
| 544 |
| 545 #sidebar .fixed |
| 546 { |
| 547 top: 1.2rem; |
| 548 bottom: 0rem; |
| 549 height: auto; |
| 550 } |
| 551 |
| 552 #sidebar header |
| 553 { |
| 554 text-align: right; |
| 555 margin-right: 2rem; |
| 556 } |
| 557 |
| 558 html[dir="rtl"] #sidebar header |
| 559 { |
| 560 margin-left: 2rem; |
| 561 } |
| 562 |
| 563 #sidebar header h1 |
| 564 { |
| 565 margin: 0rem; |
| 566 font-size: 1.5rem; |
| 567 line-height: 2rem; |
| 568 } |
| 569 |
| 570 #sidebar header h1 strong |
| 571 { |
| 572 font-weight: 700; |
| 573 } |
| 574 |
| 575 #sidebar header p |
| 576 { |
| 577 margin: 0rem; |
| 578 font-size: 1.8rem; |
| 579 line-height: 2.6rem; |
| 580 } |
| 581 |
| 582 html[dir="rtl"] #sidebar header |
| 583 { |
| 584 text-align: left; |
| 585 } |
| 586 |
| 587 #sidebar-logo |
| 588 { |
| 589 width: 3rem; |
| 590 margin-bottom: 0.7rem; |
| 591 } |
| 592 |
| 593 #sidebar nav, |
| 594 #sidebar footer |
| 595 { |
| 596 margin: 1.4rem 0rem; |
| 597 } |
| 598 |
| 599 [role="tablist"] |
| 600 { |
| 601 list-style: none; |
| 602 margin: 0rem; |
| 603 padding: 0rem; |
| 604 position: relative; |
| 605 font-size: 1rem; |
| 606 } |
| 607 |
| 608 [role="tablist"] li a |
| 609 { |
| 610 display: flex; |
| 611 margin-top: -1px; |
| 612 padding: 1rem 0.8rem; |
| 613 margin-left: -1px; |
| 614 margin-right: -1px; |
| 615 border-color: #CDCDCD transparent; |
| 616 border-style: solid; |
| 617 border-width: 1px; |
| 618 text-decoration: none; |
| 619 color: inherit; |
| 620 cursor: pointer; |
| 621 } |
| 622 |
| 623 li a[role="tab"][aria-selected] |
| 624 { |
| 625 font-weight: 700; |
| 626 background-color: #FFF; |
| 627 } |
| 628 |
| 629 html:not([dir="rtl"]) li a[role="tab"][aria-selected] |
| 630 { |
| 631 border-left-color: #CDCDCD; |
| 632 } |
| 633 |
| 634 html[dir="rtl"] li a[role="tab"][aria-selected] |
| 635 { |
| 636 border-right-color: #CDCDCD; |
| 637 } |
| 638 |
| 639 #sidebar footer |
| 640 { |
| 641 width: 100%; |
| 642 } |
| 643 |
| 644 #sidebar footer p |
| 645 { |
| 646 display: flex; |
| 647 justify-content: center; |
| 648 margin: 1rem 0rem; |
| 649 } |
| 650 |
| 651 /* This is a stopgap solution of footer overlapping tabs on low resolutions */ |
| 652 @media (min-height: 37rem) |
| 653 { |
| 654 #sidebar .fixed |
| 655 { |
| 656 position: fixed; |
| 657 } |
| 658 |
| 659 #sidebar footer |
| 660 { |
| 661 bottom: 0px; |
| 662 position: absolute; |
| 663 } |
| 664 } |
| 665 |
| 666 /* |
| 667 Main content |
| 668 */ |
| 669 |
| 670 body[data-tab|="general"] #content-general, |
| 671 body[data-tab|="advanced"] #content-advanced, |
| 672 body[data-tab|="whitelist"] #content-whitelist, |
| 673 body[data-tab|="help"] #content-help |
| 674 { |
| 675 display: block; |
| 676 } |
| 677 |
| 678 main |
| 679 { |
| 680 background-color: #FFFFFF; |
| 681 border: 1px solid #CDCDCD; |
| 682 width: 46.3rem; |
| 683 padding: 0px 0rem 1.4rem 0rem; |
| 684 } |
| 685 |
| 686 main > div |
| 687 { |
| 688 display: none; |
| 689 } |
| 690 |
| 691 main p |
| 692 { |
| 693 margin: 0.8rem 0rem; |
| 694 } |
| 695 |
| 696 /* |
| 697 Sections |
| 698 */ |
| 699 |
| 700 [role="tabpanel"] > section, |
| 701 [role="tabpanel"] > .section |
| 702 { |
| 703 padding: 1.4rem 2rem; |
| 704 border-top: 1px solid #CDCDCD; |
| 705 } |
| 706 |
| 707 [role="tabpanel"] > header h1, |
| 708 [role="tabpanel"] > header p |
| 709 { |
| 710 padding: 0rem 2rem; |
| 711 margin: 1.4rem 0rem; |
| 712 } |
| 713 |
| 714 section h2, |
| 715 .section h2 |
| 716 { |
| 717 margin: 0rem; |
| 718 } |
| 719 |
| 720 section h2 |
| 721 { |
| 722 text-transform: uppercase; |
| 723 } |
| 724 |
| 725 section, |
| 726 .section |
| 727 { |
| 728 clear: both; |
| 729 } |
| 730 |
| 731 section.cols |
| 732 { |
| 733 display: flex; |
| 734 } |
| 735 |
| 736 section.cols > *:first-child |
| 737 { |
| 738 flex: 1; |
| 739 } |
| 740 |
| 741 html:not([dir="rtl"]) section.cols > *:first-child |
| 742 { |
| 743 margin-right: 2rem; |
| 744 } |
| 745 |
| 746 html[dir="rtl"] section.cols > *:first-child |
| 747 { |
| 748 margin-left: 2rem; |
| 749 } |
| 750 |
| 751 section.cols > *:last-child |
| 752 { |
| 753 flex: 3; |
| 754 } |
| 755 |
| 756 /* |
| 757 Acceptable ads |
| 758 */ |
| 759 |
| 760 #tracking-warning |
| 761 { |
| 762 position: relative; |
| 763 padding: 1.5rem; |
| 764 margin-bottom: 1rem; |
| 765 border: 2px solid #ffd7a3; |
| 766 background-color: #fefbe3; |
| 767 } |
| 768 |
| 769 #acceptable-ads:not(.show-warning) #tracking-warning |
| 770 { |
| 771 display: none; |
| 772 } |
| 773 |
| 774 #hide-tracking-warning |
| 775 { |
| 776 position: absolute; |
| 777 right: 0.8rem; |
| 778 top: 0.8rem; |
| 779 } |
| 780 |
| 781 html[dir="rtl"] #hide-tracking-warning |
| 782 { |
| 783 left: 1rem; |
| 784 right: auto; |
| 785 } |
| 786 |
| 787 #tracking-warning .link |
| 788 { |
| 789 color: inherit; |
| 790 text-decoration: underline; |
| 791 font-weight: 700; |
| 792 } |
| 793 |
| 794 #acceptable-ads ul |
| 795 { |
| 796 position: relative; |
| 797 padding-left: 2.2rem; |
| 798 list-style: none; |
| 799 } |
| 800 |
| 801 html[dir="rtl"] #acceptable-ads ul |
| 802 { |
| 803 padding-left: 0rem; |
| 804 padding-right: 2.2rem; |
| 805 } |
| 806 |
| 807 #acceptable-ads ul button |
| 808 { |
| 809 position: absolute; |
| 810 left: 0rem; |
| 811 } |
| 812 |
| 813 html[dir="rtl"] button |
| 814 { |
| 815 left: auto; |
| 816 right: 0rem; |
| 817 } |
| 818 |
| 819 #acceptable-ads label |
| 820 { |
| 821 font-weight: 700; |
| 822 font-size: 1rem; |
| 823 } |
| 824 |
| 825 html:not([dir="rtl"]) #acceptable-ads label |
| 826 { |
| 827 margin-right: 0.5rem; |
| 828 } |
| 829 |
| 830 html[dir="rtl"] #acceptable-ads label |
| 831 { |
| 832 margin-left: 0.5rem; |
| 833 } |
| 834 |
| 835 #dnt |
| 836 { |
| 837 padding: 0.8rem; |
| 838 border: 1px solid #077CA6; |
| 839 } |
| 840 |
| 841 .new |
| 842 { |
| 843 display: inline-block; |
| 844 padding: 0.2rem 0.5rem; |
| 845 border-radius: 0.2rem; |
| 846 background-color: #077CA6; |
| 847 color: #FFF; |
| 848 line-height: 100%; |
| 849 font-size: 0.8rem; |
| 850 text-transform: uppercase; |
| 851 } |
| 852 |
| 853 /* |
| 854 Tables |
| 855 */ |
| 856 |
| 857 ul.table, |
| 858 ul.list |
| 859 { |
| 860 list-style: none; |
| 861 margin: 0rem; |
| 862 padding: 0rem; |
| 863 } |
| 864 |
| 865 .table li, |
| 866 .list li |
| 867 { |
| 868 display: flex; |
| 869 align-items: center; |
| 870 } |
| 871 |
| 872 .table li |
| 873 { |
| 874 margin: 0rem; |
| 875 border-style: solid; |
| 876 border-color: #CDCDCD; |
| 877 border-width: 0px 1px 1px 1px; |
| 878 } |
| 879 |
| 880 .list li |
| 881 { |
| 882 padding: 0rem; |
| 883 margin-bottom: 0.8rem; |
| 884 } |
| 885 |
| 886 .list li [role="checkbox"] |
| 887 { |
| 888 flex-shrink: 0; |
| 889 } |
| 890 |
| 891 .table li:first-of-type |
| 892 { |
| 893 border-top: 1px solid #CDCDCD; |
| 894 } |
| 895 |
| 896 .table.list li |
| 897 { |
| 898 padding: 0.5rem 1rem; |
| 899 margin: 0rem; |
| 900 } |
| 901 |
| 902 .table.list.bottom-control li:last-of-type |
| 903 { |
| 904 border-bottom: 0px; |
| 905 } |
| 906 |
| 907 .list li > span |
| 908 { |
| 909 margin: 0rem 1rem; |
| 910 } |
| 911 |
| 912 .table.list li > span |
| 913 { |
| 914 flex: 1; |
| 915 margin: 0rem; |
| 916 } |
| 917 |
| 918 .table.list li.empty-placeholder |
| 919 { |
| 920 padding: 1rem 1.4rem; |
| 921 } |
| 922 |
| 923 .table.list li.empty-placeholder:not(:last-of-type) |
| 924 { |
| 925 border-bottom: 0px; |
| 926 } |
| 927 |
| 928 .table.list button.link |
| 929 { |
| 930 font-weight: 700; |
| 931 text-transform: uppercase; |
| 932 text-decoration: none; |
| 933 } |
| 934 |
| 935 .table:not(.list):not(.cols) li |
| 936 { |
| 937 padding-top: 0px; |
| 938 padding-bottom: 6px; |
| 939 } |
| 940 |
| 941 .table li [data-single="visible"], |
| 942 .table li:first-of-type:last-of-type [data-single="hidden"] |
| 943 { |
| 944 display: none; |
| 945 } |
| 946 |
| 947 .table li:first-of-type:last-of-type [data-single="visible"] |
| 948 { |
| 949 display: block; |
| 950 } |
| 951 |
| 952 .th |
| 953 { |
| 954 display: flex; |
| 955 } |
| 956 |
| 957 .col5 > * |
| 958 { |
| 959 display: inline-block; |
| 960 vertical-align: middle; |
| 961 } |
| 962 |
| 963 .cols .col5, |
| 964 .th .col5 |
| 965 { |
| 966 margin: 0rem 1rem; |
| 967 align-self: center; |
| 968 } |
| 969 |
| 970 .th .col5:nth-of-type(1), |
| 971 .table .col5:nth-of-type(1) |
| 972 { |
| 973 flex: 5; |
| 974 } |
| 975 |
| 976 .th .col5:nth-of-type(2), |
| 977 .table .col5:nth-of-type(2) |
| 978 { |
| 979 flex: 8; |
| 980 } |
| 981 |
| 982 .th .col5:nth-of-type(3), |
| 983 .table .col5:nth-of-type(3) |
| 984 { |
| 985 flex: 4; |
| 986 } |
| 987 |
| 988 .th .col5:nth-of-type(4), |
| 989 .table .col5:nth-of-type(4) |
| 990 { |
| 991 flex: 1; |
| 992 } |
| 993 |
| 994 .th .col5:nth-of-type(5), |
| 995 .table .col5:nth-of-type(5) |
| 996 { |
| 997 flex: 1; |
| 998 } |
| 999 |
| 1000 html:not([dir="rtl"]) .th .col5:nth-of-type(5), |
| 1001 html:not([dir="rtl"]) .table .col5:nth-of-type(5) |
| 1002 { |
| 1003 margin-left: 0; |
| 1004 margin-right: 1.8rem; |
| 1005 } |
| 1006 |
| 1007 html[dir="rtl"] .th .col5:nth-of-type(5), |
| 1008 html[dir="rtl"] .table .col5:nth-of-type(5) |
| 1009 { |
| 1010 margin-right: 0; |
| 1011 margin-left: 1.8rem; |
| 1012 } |
| 1013 |
| 1014 .table.cols > span |
| 1015 { |
| 1016 margin: 0rem; |
| 1017 } |
| 1018 |
| 1019 .table.cols li |
| 1020 { |
| 1021 padding: 0.5rem 0rem; |
| 1022 } |
| 1023 |
| 1024 .table.cols .toggle |
| 1025 { |
| 1026 -moz-margin-end: 0.5rem; |
| 1027 -webkit-margin-end: 0.5rem; |
| 1028 } |
| 1029 |
| 1030 .table.cols .gear |
| 1031 { |
| 1032 margin: 0rem |
| 1033 } |
| 1034 |
| 1035 #dialog .table.list li |
| 1036 { |
| 1037 display: block; |
| 1038 border-width: 1px 0px 0px 0px; |
| 1039 padding: 0rem; |
| 1040 } |
| 1041 |
| 1042 #dialog .table.list li:first-of-type |
| 1043 { |
| 1044 border: 0px; |
| 1045 } |
| 1046 |
| 1047 #dialog .table.list li button |
| 1048 { |
| 1049 display: flex; |
| 1050 background-image: none; |
| 1051 width: 100%; |
| 1052 height: auto; |
| 1053 padding: 1.1rem 1rem; |
| 1054 } |
| 1055 |
| 1056 #dialog .table.list li button:hover, |
| 1057 #dialog .table.list li button:focus |
| 1058 { |
| 1059 background-color: #E1F2FA; |
| 1060 } |
| 1061 |
| 1062 #dialog .table.list li button[aria-checked="true"], |
| 1063 .table.list li .dimmed |
| 1064 { |
| 1065 color: #BBB; |
| 1066 } |
| 1067 |
| 1068 #dialog .table.list li button > span |
| 1069 { |
| 1070 flex: none; |
| 1071 margin: 0rem 0.8rem; |
| 1072 text-transform: none; |
| 1073 font-weight: 400; |
| 1074 } |
| 1075 |
| 1076 /* |
| 1077 Tooltips |
| 1078 */ |
| 1079 |
| 1080 .tooltip |
| 1081 { |
| 1082 position: relative; |
| 1083 margin: 0rem; |
| 1084 line-height: 1.5rem; |
| 1085 text-decoration: none; |
| 1086 cursor: help; |
| 1087 } |
| 1088 |
| 1089 html:not([dir="rtl"]) .tooltip |
| 1090 { |
| 1091 margin-right: 1rem; |
| 1092 } |
| 1093 |
| 1094 html[dir="rtl"] .tooltip |
| 1095 { |
| 1096 margin-left: 1rem; |
| 1097 } |
| 1098 |
| 1099 /* |
| 1100 Used for translatable screen reader only content. |
| 1101 e.g.: Use instead of aria-label to avoid complex attribute value translation |
| 1102 */ |
| 1103 .sr-only |
| 1104 { |
| 1105 position: absolute; |
| 1106 overflow: hidden; |
| 1107 clip: rect(0, 0, 0, 0); |
| 1108 width: 1px; |
| 1109 height: 1px; |
| 1110 margin: -1px; |
| 1111 padding: 0px; |
| 1112 border: 0px; |
| 1113 } |
| 1114 |
| 1115 /* |
| 1116 General tab content |
| 1117 */ |
| 1118 |
| 1119 #blocking-languages-dialog-table |
| 1120 { |
| 1121 border-bottom: none; |
| 1122 } |
| 1123 |
| 1124 .button-add, .cancel-button |
| 1125 { |
| 1126 background-color: transparent; |
| 1127 border: 0px; |
| 1128 color: #3A7BA6; |
| 1129 cursor: pointer; |
| 1130 } |
| 1131 |
| 1132 /* |
| 1133 Whitelist tab |
| 1134 */ |
| 1135 |
| 1136 #content-whitelist form |
| 1137 { |
| 1138 display: flex; |
| 1139 } |
| 1140 |
| 1141 #content-whitelist form input |
| 1142 { |
| 1143 flex: 1; |
| 1144 height: 100%; |
| 1145 padding: 0.5rem 1rem; |
| 1146 font-size: 1rem; |
| 1147 border: 2px solid #077CA6; |
| 1148 } |
| 1149 |
| 1150 html:not([dir="rtl"]) #content-whitelist form button |
| 1151 { |
| 1152 margin-left: 0.7rem; |
| 1153 } |
| 1154 |
| 1155 html[dir="rtl"] #content-whitelist form button |
| 1156 { |
| 1157 margin-right: 0.7rem; |
| 1158 } |
| 1159 |
| 1160 #whitelisting-table li |
| 1161 { |
| 1162 padding-left: 1.4rem; |
| 1163 padding-right: 1.4rem; |
| 1164 border-left: 0rem; |
| 1165 border-right: 0rem; |
| 1166 } |
| 1167 |
| 1168 /* |
| 1169 Advanced tab content |
| 1170 */ |
| 1171 |
| 1172 #all-filter-lists-table li.show-message .last-update, |
| 1173 #all-filter-lists-table li:not(.show-message) .message, |
| 1174 #custom-filters:not([data-mode="empty"]) #empty-custom-filters, |
| 1175 #custom-filters[data-mode="empty"] #custom-filters-raw, |
| 1176 #custom-filters:not([data-mode="write"]) #custom-filters-raw-controls, |
| 1177 #custom-filters:not([data-mode="read"]) #custom-filters-edit, |
| 1178 .state span, |
| 1179 #acceptable-ads:not(.show-dnt-notification) #dnt |
| 1180 { |
| 1181 display: none; |
| 1182 } |
| 1183 |
| 1184 #all-filter-lists-table button[role="checkbox"][aria-checked="true"] + .state #s
tate-active |
| 1185 { |
| 1186 display: inline; |
| 1187 } |
| 1188 |
| 1189 #all-filter-lists-table button[role="checkbox"][aria-checked="false"] + .state #
state-disabled |
| 1190 { |
| 1191 display: inline; |
| 1192 } |
| 1193 |
| 1194 #all-filter-lists-table |
| 1195 { |
| 1196 margin-bottom: 0.8rem; |
| 1197 } |
| 1198 |
| 1199 #custom-filters-raw |
| 1200 { |
| 1201 width: 100%; |
| 1202 height: 23.6rem; |
| 1203 padding: 0.8rem; |
| 1204 } |
| 1205 |
| 1206 #custom-filters-raw:focus |
| 1207 { |
| 1208 outline: none; |
| 1209 border: 2px solid #077CA6; |
| 1210 } |
| 1211 |
| 1212 #empty-custom-filters |
| 1213 { |
| 1214 padding: 1.5rem; |
| 1215 border: 1px solid #CDCDCD; |
| 1216 } |
| 1217 |
| 1218 /* |
| 1219 Context menu |
| 1220 */ |
| 1221 |
| 1222 li [role="menubar"] |
| 1223 { |
| 1224 position: relative; |
| 1225 } |
| 1226 |
| 1227 [role="tooltip"] |
| 1228 { |
| 1229 right: -0.8rem; |
| 1230 margin-top: 0.8rem; |
| 1231 opacity: 1; |
| 1232 padding: 0.2rem 1rem; |
| 1233 position: absolute; |
| 1234 -webkit-transition: opacity 200ms ease-in-out 400ms, |
| 1235 visibility 0ms linear 400ms; |
| 1236 transition: opacity 200ms ease-in-out 400ms, |
| 1237 visibility 0ms linear 400ms; |
| 1238 visibility: visible; |
| 1239 width: 15rem; |
| 1240 z-index: 1; |
| 1241 } |
| 1242 |
| 1243 html[dir="rtl"] [role="tooltip"] |
| 1244 { |
| 1245 right: auto; |
| 1246 left: -0.8rem; |
| 1247 } |
| 1248 |
| 1249 [role="tooltip"], |
| 1250 .context-menu .content |
| 1251 { |
| 1252 border: 1px solid #077CA6; |
| 1253 border-radius: 3px; |
| 1254 background-color: #FFFFFF; |
| 1255 } |
| 1256 |
| 1257 |
| 1258 .tooltip:not(:hover) > [role="tooltip"], |
| 1259 [role="tooltip"]:hover |
| 1260 { |
| 1261 visibility: hidden; |
| 1262 opacity: 0; |
| 1263 -webkit-transition-delay: 0ms; |
| 1264 transition-delay: 0ms; |
| 1265 } |
| 1266 |
| 1267 .context-menu |
| 1268 { |
| 1269 position: absolute; |
| 1270 right: 2.5rem; |
| 1271 top: -2rem; |
| 1272 z-index: 1; |
| 1273 visibility: hidden; |
| 1274 } |
| 1275 |
| 1276 html[dir="rtl"] .context-menu |
| 1277 { |
| 1278 right: auto; |
| 1279 left: 2.5rem; |
| 1280 } |
| 1281 |
| 1282 .context-menu .content |
| 1283 { |
| 1284 padding: 0rem; |
| 1285 position: relative; |
| 1286 cursor: default; |
| 1287 } |
| 1288 |
| 1289 li.show-context-menu .context-menu |
| 1290 { |
| 1291 visibility: visible; |
| 1292 } |
| 1293 |
| 1294 [role="tooltip"]::before, |
| 1295 .context-menu::before |
| 1296 { |
| 1297 content: ""; |
| 1298 width: 0rem; |
| 1299 height: 0rem; |
| 1300 position: absolute; |
| 1301 } |
| 1302 |
| 1303 [role="tooltip"]::before |
| 1304 { |
| 1305 border-left: 10px solid transparent; |
| 1306 border-right: 10px solid transparent; |
| 1307 border-bottom: 10px solid #077CA6; |
| 1308 top: -10px; |
| 1309 right: 15px; |
| 1310 } |
| 1311 |
| 1312 html[dir="rtl"] [role="tooltip"]::before |
| 1313 { |
| 1314 right: auto; |
| 1315 left: 15px; |
| 1316 } |
| 1317 |
| 1318 .context-menu::before |
| 1319 { |
| 1320 border-left: 10px solid #077CA6; |
| 1321 border-top: 10px solid transparent; |
| 1322 border-bottom: 10px solid transparent; |
| 1323 top: 22px; |
| 1324 right: -0.5rem; |
| 1325 } |
| 1326 |
| 1327 html[dir="rtl"] .context-menu::before |
| 1328 { |
| 1329 border-left: 0rem; |
| 1330 border-right: 10px solid #077CA6; |
| 1331 right: auto; |
| 1332 left: -0.5rem; |
| 1333 } |
| 1334 |
| 1335 .context-menu li[role="menuitem"] |
| 1336 { |
| 1337 width: 12.2rem; |
| 1338 border: 0rem; |
| 1339 padding: 0rem; |
| 1340 } |
| 1341 |
| 1342 .context-menu li[role="menuitem"] > * |
| 1343 { |
| 1344 width: 100%; |
| 1345 display: flex; |
| 1346 border: 0rem; |
| 1347 padding: 0.7rem 0rem; |
| 1348 color: #077CA6; |
| 1349 align-items: center; |
| 1350 font-size: 1rem; |
| 1351 font-weight: 400; |
| 1352 text-transform: none; |
| 1353 text-decoration: none; |
| 1354 } |
| 1355 |
| 1356 .context-menu li[role="menuitem"] > *:hover, |
| 1357 .context-menu li[role="menuitem"] > *:focus |
| 1358 { |
| 1359 background-color: #E1F2FA; |
| 1360 cursor: pointer; |
| 1361 } |
| 1362 |
| 1363 .context-menu li[role="menuitem"] .icon::before |
| 1364 { |
| 1365 height: 1rem; |
| 1366 width: 1rem; |
| 1367 margin: 0rem 1.1rem; |
| 1368 border: 0rem; |
| 1369 } |
| 1370 |
| 1371 /* |
| 1372 Help tab content |
| 1373 */ |
| 1374 |
| 1375 html:not([lang="zh"]) #social-chinese, |
| 1376 html[lang="zh"] #social-general |
| 1377 { |
| 1378 display: none; |
| 1379 } |
| 1380 |
| 1381 #social ul |
| 1382 { |
| 1383 list-style: none; |
| 1384 padding: 0px; |
| 1385 } |
| 1386 |
| 1387 #social ul li |
| 1388 { |
| 1389 display: inline-block; |
| 1390 } |
| 1391 |
| 1392 html:not([dir="rtl"]) #social ul li |
| 1393 { |
| 1394 margin-right: 1rem; |
| 1395 } |
| 1396 |
| 1397 html[dir="rtl"] #social ul li |
| 1398 { |
| 1399 margin-left: 1rem; |
| 1400 } |
| 1401 |
| 1402 #social ul li a |
| 1403 { |
| 1404 display: block; |
| 1405 text-align: center; |
| 1406 text-decoration: none; |
| 1407 } |
| 1408 |
| 1409 /* |
| 1410 Dialog |
| 1411 */ |
| 1412 |
| 1413 #dialog-background |
| 1414 { |
| 1415 display: none; |
| 1416 position: fixed; |
| 1417 top: 0px; |
| 1418 right: 0px; |
| 1419 bottom: 0px; |
| 1420 left: 0px; |
| 1421 z-index: 2; |
| 1422 background-color: #000; |
| 1423 opacity: 0.7; |
| 1424 } |
| 1425 |
| 1426 body[data-dialog] #dialog-background |
| 1427 { |
| 1428 display: block; |
| 1429 } |
| 1430 |
| 1431 #dialog |
| 1432 { |
| 1433 position: fixed; |
| 1434 top: 100px; |
| 1435 left: 0px; |
| 1436 right: 0px; |
| 1437 z-index: 2; |
| 1438 width: 50vw; |
| 1439 margin: auto; |
| 1440 border-radius: 3px; |
| 1441 background-color: #FFFFFF; |
| 1442 } |
| 1443 |
| 1444 #dialog header |
| 1445 { |
| 1446 display: flex; |
| 1447 padding: 0.7rem 1.5rem; |
| 1448 background-color: #077CA6; |
| 1449 } |
| 1450 |
| 1451 #dialog header h3 |
| 1452 { |
| 1453 margin: 0rem; |
| 1454 font-size: 1rem; |
| 1455 font-weight: 700; |
| 1456 } |
| 1457 |
| 1458 .close |
| 1459 { |
| 1460 margin: 0rem; |
| 1461 cursor: pointer; |
| 1462 } |
| 1463 |
| 1464 #dialog #dialog-body |
| 1465 { |
| 1466 max-height: 60vh; |
| 1467 overflow: auto; |
| 1468 } |
| 1469 |
| 1470 .dialog-content |
| 1471 { |
| 1472 margin: 1rem 1.8rem; |
| 1473 } |
| 1474 |
| 1475 [data-dialog="language-change"] .dialog-content, |
| 1476 [data-dialog="language-add"] .dialog-content |
| 1477 { |
| 1478 margin: 0rem; |
| 1479 } |
| 1480 |
| 1481 [data-dialog="about"] .dialog-content |
| 1482 { |
| 1483 text-align: center; |
| 1484 } |
| 1485 |
| 1486 [data-dialog="about"] .content button |
| 1487 { |
| 1488 margin: 1.5rem auto 1.8rem auto; |
| 1489 } |
| 1490 |
| 1491 [data-dialog="about"] p |
| 1492 { |
| 1493 margin: 0.5rem 0rem; |
| 1494 } |
| 1495 |
| 1496 [data-dialog="import"] .side-controls |
| 1497 { |
| 1498 margin-top: 2.45rem; |
| 1499 } |
| 1500 |
| 1501 #dialog .table |
| 1502 { |
| 1503 width: 100%; |
| 1504 } |
| 1505 |
| 1506 #dialog .section:not(:first-child) |
| 1507 { |
| 1508 margin-top: 24px; |
| 1509 } |
| 1510 |
| 1511 #dialog-title |
| 1512 { |
| 1513 flex: 1; |
| 1514 font-size: 16px; |
| 1515 color: #FFFFFF; |
| 1516 } |
| 1517 |
| 1518 #dialog-body .dialog-content-block |
| 1519 { |
| 1520 padding: 12px 0px; |
| 1521 } |
| 1522 |
| 1523 #dialog .url |
| 1524 { |
| 1525 margin-top: 10px; |
| 1526 margin-bottom: 20px; |
| 1527 word-wrap: break-word; |
| 1528 } |
| 1529 |
| 1530 body:not([data-dialog="about"]) #dialog-title-about, |
| 1531 body:not([data-dialog="about"]) #dialog-content-about, |
| 1532 body:not([data-dialog="import"]) #dialog-title-import, |
| 1533 body:not([data-dialog="import"]) #dialog-content-import, |
| 1534 body:not([data-dialog="language-add"]) #dialog-title-language-add, |
| 1535 body:not([data-dialog="language-change"]) #dialog-title-language-change, |
| 1536 body:not([data-dialog="language-add"]):not([data-dialog="language-change"]) #dia
log-content-language-add, |
| 1537 body:not([data-dialog="language-add"]) #dialog-body button.add, |
| 1538 body:not([data-dialog="language-change"]) #dialog-body button.change, |
| 1539 body:not([data-dialog="predefined"]) #dialog-title-predefined, |
| 1540 body:not([data-dialog="predefined"]) #dialog-content-predefined, |
| 1541 body:not([data-dialog]) #dialog |
| 1542 { |
| 1543 display: none; |
| 1544 } |
| 1545 |
| 1546 /* |
| 1547 Notification |
| 1548 */ |
| 1549 |
| 1550 #notification |
| 1551 { |
| 1552 position: fixed; |
| 1553 top: 0rem; |
| 1554 left: 0rem; |
| 1555 display: flex; |
| 1556 padding: 1rem 1.9rem; |
| 1557 width: 100%; |
| 1558 box-sizing: border-box; |
| 1559 opacity: 0.8; |
| 1560 font-size: 1rem; |
| 1561 color: #077CA6; |
| 1562 background-color: #E1F2FA; |
| 1563 } |
| 1564 |
| 1565 #notification strong |
| 1566 { |
| 1567 flex: 1; |
| 1568 text-align: center; |
| 1569 } |
OLD | NEW |