1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
:host {
display: contents;
}
.highlighter-container {
--highlighter-accessibility-bounds-color: #6a5acd;
--highlighter-accessibility-bounds-opacity: 0.6;
--highlighter-box-border-color: #444444;
--highlighter-box-content-color: hsl(197, 71%, 73%);
--highlighter-box-margin-color: #edff64;
--highlighter-box-padding-color: #6a5acd;
--highlighter-bubble-text-color: hsl(216, 33%, 97%);
--highlighter-bubble-background-color: hsl(214, 13%, 24%);
--highlighter-bubble-border-color: rgba(255, 255, 255, 0.2);
--highlighter-bubble-arrow-size: 8px;
--highlighter-font-family: message-box;
--highlighter-font-size: 11px;
--highlighter-guide-color: hsl(200, 100%, 40%);
--highlighter-infobar-color: hsl(210, 30%, 85%);
--highlighter-rulers-opacity: 0.8;
--highlighter-viewport-size-background-color: rgba(255, 255, 255, var(--highlighter-rulers-opacity));
--grey-40: #b1b1b3;
--grey-80: #2a2a2e;
--red-40: #ff3b6b;
--yellow-60: #d7b600;
--blue-60: #0060df;
}
/**
* Highlighters are absolute positioned in the page by default.
* A single highlighter can have fixed position in its css class if needed (see below the
* eye dropper or rulers highlighter, for example); but if it has to handle the
* document's scrolling (as rulers does), it would lag a bit behind due the APZ (Async
* Pan/Zoom module), that performs asynchronously panning and zooming on the compositor
* thread rather than the main thread.
*/
.highlighter-container {
position: absolute;
width: 100%;
height: 100%;
/* The container for all highlighters doesn't react to pointer-events by
default. This is because most highlighters cover the whole viewport but
don't contain UIs that need to be accessed.
If your highlighter has UI that needs to be interacted with, add
'pointer-events:auto;' on its container element. */
pointer-events: none;
/* Don't allow forced colors for now. We might revisit this once we have High Contrast Mode
support in the DevTools toolbox */
forced-color-adjust: none;
}
.highlighter-container.box-model {
/* Make the box-model container have a z-index other than auto so it always sits above
other highlighters. */
z-index: 1;
}
.highlighter-container [hidden] {
display: none !important;
}
.highlighter-container [dragging] {
cursor: grabbing;
}
/* Box Model Highlighter */
.box-model-regions {
opacity: 0.6;
}
/* Box model regions can be faded (see the onlyRegionArea option in
highlighters.js) in order to only display certain regions. */
.box-model-regions [faded] {
display: none;
}
.box-model-content {
fill: var(--highlighter-box-content-color);
}
.box-model-padding {
fill: var(--highlighter-box-padding-color);
}
.box-model-border {
fill: var(--highlighter-box-border-color);
}
.box-model-margin {
fill: var(--highlighter-box-margin-color);
}
.box-model-content,
.box-model-padding,
.box-model-border,
.box-model-margin {
stroke: none;
}
.box-model-guide-top,
.box-model-guide-right,
.box-model-guide-bottom,
.box-model-guide-left {
stroke: var(--highlighter-guide-color);
stroke-dasharray: 5 3;
shape-rendering: crispEdges;
}
@media (prefers-reduced-motion) {
.use-simple-highlighters :is(.box-model-content, .box-model-padding, .box-model-border, .box-model-margin) {
fill: none;
stroke-width: 3;
}
.use-simple-highlighters .box-model-content {
stroke: var(--highlighter-box-content-color);
}
.use-simple-highlighters .box-model-padding {
stroke: var(--highlighter-box-padding-color);
}
.use-simple-highlighters .box-model-border {
stroke: var(--highlighter-box-border-color);
}
.use-simple-highlighters .box-model-margin {
stroke: var(--highlighter-box-margin-color);
}
}
/* Highlighter - Infobar */
[class$="infobar-container"] {
position: absolute;
max-width: 95%;
font: var(--highlighter-font-family);
font-size: var(--highlighter-font-size);
}
[class$="infobar"] {
position: relative;
padding: 5px;
min-width: 75px;
border-radius: 3px;
background: var(--highlighter-bubble-background-color) no-repeat padding-box;
color: var(--highlighter-bubble-text-color);
text-shadow: none;
border: 1px solid var(--highlighter-bubble-border-color);
}
/* Arrows */
[class$="infobar-container"] > [class$="infobar"]:before {
left: calc(50% - var(--highlighter-bubble-arrow-size));
border: var(--highlighter-bubble-arrow-size) solid var(--highlighter-bubble-border-color);
}
[class$="infobar-container"] > [class$="infobar"]:after {
left: calc(50% - 7px);
border: 7px solid var(--highlighter-bubble-background-color);
}
[class$="infobar-container"] > [class$="infobar"]:before,
[class$="infobar-container"] > [class$="infobar"]:after {
content: "";
display: none;
position: absolute;
height: 0;
width: 0;
border-left-color: transparent;
border-right-color: transparent;
}
[class$="infobar-container"][position="top"]:not([hide-arrow]) > [class$="infobar"]:before,
[class$="infobar-container"][position="top"]:not([hide-arrow]) > [class$="infobar"]:after {
border-bottom: 0;
top: 100%;
display: block;
}
[class$="infobar-container"][position="bottom"]:not([hide-arrow]) > [class$="infobar"]:before,
[class$="infobar-container"][position="bottom"]:not([hide-arrow]) > [class$="infobar"]:after {
border-top: 0;
bottom: 100%;
display: block;
}
/* Text Container */
[class$="infobar-text"] {
overflow: hidden;
white-space: nowrap;
direction: ltr;
padding-bottom: 1px;
display: flex;
justify-content: center;
max-width: 768px;
}
.box-model-infobar-tagname {
color: hsl(285, 100%, 75%);
}
.box-model-infobar-id {
color: hsl(103, 46%, 54%);
overflow: hidden;
text-overflow: ellipsis;
}
.box-model-infobar-classes,
.box-model-infobar-pseudo-classes {
color: hsl(200, 74%, 57%);
overflow: hidden;
text-overflow: ellipsis;
}
[class$="infobar-dimensions"],
[class$="infobar-grid-type"],
[class$="infobar-flex-type"] {
border-inline-start: 1px solid #5a6169;
margin-inline-start: 6px;
padding-inline-start: 6px;
}
[class$="infobar-grid-type"]:empty,
[class$="infobar-flex-type"]:empty {
display: none;
}
[class$="infobar-dimensions"] {
color: var(--highlighter-infobar-color);
}
[class$="infobar-grid-type"],
[class$="infobar-flex-type"] {
color: var(--grey-40);
}
/* CSS Flexbox Highlighter */
.flexbox-root {
position: absolute;
overflow: hidden;
}
/* CSS Grid Highlighter */
.css-grid-root {
position: absolute;
overflow: hidden;
}
.css-grid-canvas {
position: absolute;
pointer-events: none;
top: 0;
left: 0;
image-rendering: -moz-crisp-edges;
}
.css-grid-regions {
opacity: 0.6;
}
.css-grid-areas,
.css-grid-cells {
opacity: 0.5;
stroke: none;
/* Set in css-grid.js */
fill: var(--grid-color);
}
.css-grid-area-infobar-name,
.css-grid-cell-infobar-position,
.css-grid-line-infobar-number {
color: hsl(285, 100%, 75%);
}
.css-grid-line-infobar-names:not(:empty) {
color: var(--highlighter-infobar-color);
border-inline-start: 1px solid #5a6169;
margin-inline-start: 6px;
padding-inline-start: 6px;
}
/* CSS Transform Highlighter */
.css-transform-transformed {
fill: var(--highlighter-box-content-color);
opacity: 0.8;
}
.css-transform-untransformed {
fill: #66cc52;
opacity: 0.8;
}
.css-transform-transformed,
.css-transform-untransformed,
.css-transform-line {
stroke: var(--highlighter-guide-color);
stroke-dasharray: 5 3;
stroke-width: 2;
}
/* Element Geometry Highlighter */
.geometry-editor-root {
/* The geometry editor can be interacted with, so it needs to react to
pointer events */
pointer-events: auto;
user-select: none;
}
.geometry-editor-offset-parent {
stroke: var(--highlighter-guide-color);
shape-rendering: crispEdges;
stroke-dasharray: 5 3;
fill: transparent;
}
.geometry-editor-current-node {
stroke: var(--highlighter-guide-color);
fill: var(--highlighter-box-content-color);
shape-rendering: crispEdges;
opacity: 0.6;
}
.geometry-editor-arrow {
stroke: var(--highlighter-guide-color);
shape-rendering: crispEdges;
}
.geometry-editor-root circle {
stroke: var(--highlighter-guide-color);
fill: var(--highlighter-box-content-color);
}
.geometry-editor-handler-top,
.geometry-editor-handler-bottom {
cursor: ns-resize;
}
.geometry-editor-handler-right,
.geometry-editor-handler-left {
cursor: ew-resize;
}
[dragging] .geometry-editor-handler-top,
[dragging] .geometry-editor-handler-right,
[dragging] .geometry-editor-handler-bottom,
[dragging] .geometry-editor-handler-left {
cursor: grabbing;
}
.geometry-editor-handler-top.dragging,
.geometry-editor-handler-right.dragging,
.geometry-editor-handler-bottom.dragging,
.geometry-editor-handler-left.dragging {
fill: var(--highlighter-guide-color);
}
.geometry-editor-label-bubble {
fill: var(--highlighter-bubble-background-color);
shape-rendering: crispEdges;
}
.geometry-editor-label-text {
fill: var(--highlighter-bubble-text-color);
font: var(--highlighter-font-family);
font-size: 10px;
text-anchor: middle;
dominant-baseline: middle;
}
/* Rulers Highlighter */
.rulers-highlighter-elements {
shape-rendering: crispEdges;
pointer-events: none;
position: fixed;
top: 0;
left: 0;
}
.rulers-highlighter-elements > g {
opacity: var(--highlighter-rulers-opacity);
}
.rulers-highlighter-elements > g > rect {
fill: #fff;
}
.rulers-highlighter-ruler-graduations {
stroke: #bebebe;
}
.rulers-highlighter-ruler-markers {
stroke: var(--grey-80);
}
.rulers-highlighter-horizontal-labels > text,
.rulers-highlighter-vertical-labels > text {
stroke: none;
fill: var(--grey-80);
font: var(--highlighter-font-family);
font-size: 9px;
dominant-baseline: hanging;
}
.rulers-highlighter-horizontal-labels > text {
text-anchor: start;
}
.rulers-highlighter-vertical-labels > text {
transform: rotate(-90deg);
text-anchor: end;
}
.viewport-size-highlighter-viewport-infobar-container {
shape-rendering: crispEdges;
background-color: var(--highlighter-viewport-size-background-color);
color: var(--grey-80);
font: var(--highlighter-font-family);
font-variant-numeric: tabular-nums;
position: fixed;
top: 30px;
right: 0;
font-size: 12px;
padding: 4px;
&.viewport-size-on-resize-highlighter {
top: 0;
}
}
/* Measuring Tool Highlighter */
.measuring-tool-tool {
pointer-events: auto;
}
.measuring-tool-root {
position: absolute;
top: 0;
left: 0;
pointer-events: auto;
cursor: crosshair;
}
.measuring-tool-elements {
position: absolute;
}
.measuring-tool-root path {
shape-rendering: geometricPrecision;
pointer-events: auto;
}
.measuring-tool-root .measuring-tool-box-path,
.measuring-tool-root .measuring-tool-diagonal-path {
fill: rgba(135, 206, 235, 0.6);
stroke: var(--highlighter-guide-color);
}
.measuring-tool-root circle {
stroke: var(--highlighter-guide-color);
stroke-width: 2px;
fill: #fff;
vector-effect: non-scaling-stroke;
}
.measuring-tool-root circle.highlight {
fill: var(--highlighter-guide-color);
}
.measuring-tool-handler-top,
.measuring-tool-handler-bottom {
cursor: ns-resize;
}
.measuring-tool-handler-right,
.measuring-tool-handler-left {
cursor: ew-resize;
}
.measuring-tool-handler-topleft,
.measuring-tool-handler-bottomright {
cursor: nwse-resize;
}
.measuring-tool-handler-topright,
.measuring-tool-handler-bottomleft {
cursor: nesw-resize;
}
.mirrored .measuring-tool-handler-topleft,
.mirrored .measuring-tool-handler-bottomright {
cursor: nesw-resize;
}
.mirrored .measuring-tool-handler-topright,
.mirrored .measuring-tool-handler-bottomleft {
cursor: nwse-resize;
}
[class^="measuring-tool-handler"].dragging {
fill: var(--highlighter-guide-color);
}
.dragging .measuring-tool-box-path,
.dragging .measuring-tool-diagonal-path {
opacity: 0.45;
}
.measuring-tool-label-size,
.measuring-tool-label-position {
position: absolute;
top: 0;
left: 0;
display: inline-block;
border-radius: 4px;
padding: 4px;
white-space: pre-line;
font: var(--highlighter-font-family);
font-size: 10px;
pointer-events: none;
user-select: none;
box-sizing: border-box;
}
.measuring-tool-label-position {
color: #fff;
background: hsla(214, 13%, 24%, 0.8);
}
.measuring-tool-label-size {
color: var(--highlighter-bubble-text-color);
background: var(--highlighter-bubble-background-color);
border: 1px solid var(--highlighter-bubble-border-color);
line-height: 1.5em;
}
[class^="measuring-tool-guide"] {
stroke: var(--highlighter-guide-color);
stroke-dasharray: 5 3;
shape-rendering: crispEdges;
}
/* Eye Dropper */
.eye-dropper-root {
--magnifier-width: 96px;
--magnifier-height: 96px;
/* Width accounts for all color formats (hsl being the longest) */
--label-width: 160px;
--label-height: 23px;
--background-color: #e0e0e0;
color: #333;
position: fixed;
/* Tool start position. This should match the X/Y defines in JS */
top: 100px;
left: 100px;
/* Prevent interacting with the page when hovering and clicking */
pointer-events: auto;
/* Offset the UI so it is centered around the pointer */
transform: translate(calc(var(--magnifier-width) / -2), calc(var(--magnifier-height) / -2));
filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.4));
/* We don't need the UI to be reversed in RTL locales, otherwise the # would appear
to the right of the hex code. Force LTR */
direction: ltr;
}
.eye-dropper-canvas {
image-rendering: -moz-crisp-edges;
cursor: none;
width: var(--magnifier-width);
height: var(--magnifier-height);
border-radius: 50%;
box-shadow: 0 0 0 3px var(--background-color);
display: block;
}
.eye-dropper-color-container {
background-color: var(--background-color);
border-radius: 2px;
width: var(--label-width);
height: var(--label-height);
position: relative;
--label-horizontal-center: translateX(calc((var(--magnifier-width) - var(--label-width)) / 2));
--label-horizontal-left: translateX(calc((-1 * var(--label-width) + var(--magnifier-width) / 2)));
--label-horizontal-right: translateX(calc(var(--magnifier-width) / 2));
--label-vertical-top: translateY(calc((-1 * var(--magnifier-height)) - var(--label-height)));
/* By default the color label container sits below the canvas.
Here we just center it horizontally */
transform: var(--label-horizontal-center);
transition: transform 0.1s ease-in-out;
}
/* If there isn't enough space below the canvas, we move the label container to the top */
.eye-dropper-root[top] .eye-dropper-color-container {
transform: var(--label-horizontal-center) var(--label-vertical-top);
}
/* If there isn't enough space right of the canvas to horizontally center the label
container, offset it to the left */
.eye-dropper-root[left] .eye-dropper-color-container {
transform: var(--label-horizontal-left);
}
.eye-dropper-root[left][top] .eye-dropper-color-container {
transform: var(--label-horizontal-left) var(--label-vertical-top);
}
/* If there isn't enough space left of the canvas to horizontally center the label
container, offset it to the right */
.eye-dropper-root[right] .eye-dropper-color-container {
transform: var(--label-horizontal-right);
}
.eye-dropper-root[right][top] .eye-dropper-color-container {
transform: var(--label-horizontal-right) var(--label-vertical-top);
}
.eye-dropper-color-preview {
width: 16px;
height: 16px;
position: absolute;
inset-inline-start: 3px;
inset-block-start: 3px;
box-shadow: 0 0 0 black;
border: solid 1px #fff;
forced-color-adjust: none;
}
.eye-dropper-color-value {
text-shadow: 1px 1px 1px #fff;
font: var(--highlighter-font-family);
font-size: var(--highlighter-font-size);
text-align: center;
padding: 4px 0;
}
/* Paused Debugger Overlay */
.paused-dbg-root {
position: fixed;
/* Don't set explicit height/width as those might cause issues when resizing the page (see Bug 1865312) */
inset: 0;
display: flex;
align-items: center;
flex-direction: column;
/* We don't have access to DevTools themes here, but some of these colors come from the
themes. Theme variable names are given in comments. */
--text-color: #585959; /* --theme-body-color-alt */
--toolbar-background: #fcfcfc; /* --theme-toolbar-background */
--toolbar-border: #dde1e4; /* --theme-splitter-color */
--toolbar-box-shadow: 0 2px 2px 0 rgba(155, 155, 155, 0.26); /* --rdm-box-shadow */
--overlay-background: #dde1e4a8;
}
.paused-dbg-root[overlay] {
background-color: var(--overlay-background);
pointer-events: auto;
}
.paused-dbg-toolbar {
/* Show the toolbar at the top, but not too high to prevent it overlaping OS toolbar on Android */
margin-top: 30px;
display: inline-flex;
user-select: none;
color: var(--text-color);
box-shadow: var(--toolbar-box-shadow);
background-color: var(--toolbar-background);
border: 1px solid var(--toolbar-border);
border-radius: 4px;
font: var(--highlighter-font-family);
font-size: var(--highlighter-font-size);
}
.paused-dbg-toolbar button {
margin: 8px 4px 6px 6px;
width: 16px;
height: 16px;
mask-repeat: no-repeat;
mask-position: center;
mask-size: 16px 16px;
background-color: var(--text-color);
border: 0;
appearance: none;
}
.paused-dbg-divider {
width: 1px;
height: 16px;
margin-top: 10px;
background-color: var(--toolbar-border);
}
.paused-dbg-reason,
.paused-dbg-step-button-wrapper,
.paused-dbg-resume-button-wrapper {
margin-top: 2px;
margin-bottom: 2px;
}
.paused-dbg-step-button-wrapper,
.paused-dbg-resume-button-wrapper {
margin-left: 2px;
margin-right: 2px;
}
button.paused-dbg-step-button {
margin-left: 6px;
margin-right: 6px;
mask-image: url(resource://devtools-shared-images/stepOver.svg);
padding: 0;
}
button.paused-dbg-resume-button {
margin-right: 6px;
mask-image: url(resource://devtools-shared-images/resume.svg);
padding: 0;
}
.paused-dbg-step-button-wrapper.hover,
.paused-dbg-resume-button-wrapper.hover {
background-color: var(--toolbar-border);
border-radius: 2px;
}
.paused-dbg-reason {
padding: 3px 16px;
margin: 8px 0;
font: var(--highlighter-font-family);
font-size: var(--highlighter-font-size);
}
/* Remote Node Picker Notice Highlighter */
#node-picker-notice-root {
position: fixed;
max-width: 100vw;
/* Position at the bottom of the screen so it doesn't get into the user's way */
bottom: 0;
left: 0;
right: 0;
z-index: 2;
display: flex;
align-items: center;
flex-direction: column;
/* We don't have access to DevTools themes here, but some of these colors come from the
themes. Theme variable names are given in comments. */
--text-color: #585959; /* --theme-body-color-alt */
--toolbar-background: #fcfcfc; /* --theme-toolbar-background */
--toolbar-border: #dde1e4; /* --theme-splitter-color */
--toolbar-button-hover-background: rgba(12, 12, 13, 0.15); /* --theme-toolbarbutton-hover-background */
--toolbar-box-shadow: 0 2px 2px 0 rgba(155, 155, 155, 0.26); /* --rdm-box-shadow */
}
#node-picker-notice-root[overlay] {
pointer-events: auto;
}
#node-picker-notice-toolbar {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
color: var(--text-color);
box-shadow: var(--toolbar-box-shadow);
background-color: var(--toolbar-background);
border: 1px solid var(--toolbar-border);
border-radius: 2px;
font: var(--highlighter-font-family);
font-size: var(--highlighter-font-size);
user-select: none;
}
#node-picker-notice-info {
font: var(--highlighter-font-family);
font-size: var(--highlighter-font-size);
text-align: center;
}
#node-picker-notice-icon {
width: 16px;
height: 16px;
background-image: url(resource://devtools-shared-images/command-pick.svg);
-moz-context-properties: fill;
fill: currentColor;
background-size: contain;
background-repeat: no-repeat;
}
#node-picker-notice-icon.touch {
background-image: url(resource://devtools-shared-images/command-pick-remote-touch.svg);
}
#node-picker-notice-hide-button {
border: 0;
border-radius: 2px;
appearance: none;
background-color: var(--toolbar-border);
color: currentColor;
font-size: 1em;
padding-inline: 4px;
}
/* We can't use :hover as it wouldn't work if the page is paused, so we add a specific class for this */
#node-picker-notice-hide-button.hover {
background-color: var(--toolbar-button-hover-background);
}
/* Shapes highlighter */
.shapes-root {
pointer-events: none;
}
.shapes-shape-container {
position: absolute;
overflow: visible;
}
.shapes-polygon,
.shapes-ellipse,
.shapes-rect,
.shapes-bounding-box,
.shapes-rotate-line,
.shapes-quad {
fill: transparent;
stroke: var(--highlighter-guide-color);
shape-rendering: geometricPrecision;
vector-effect: non-scaling-stroke;
}
.shapes-markers {
fill: #fff;
}
.shapes-markers-outline {
fill: var(--highlighter-guide-color);
}
.shapes-marker-hover {
fill: var(--highlighter-guide-color);
}
/* Accessible highlighter */
.accessible-infobar {
min-width: unset;
}
.accessible-infobar-text {
display: grid;
grid-template-areas:
"role name"
"audit audit";
grid-template-columns: min-content 1fr;
}
.accessible-infobar-role {
grid-area: role;
color: #9cdcfe;
}
.accessible-infobar-name {
grid-area: name;
}
.accessible-infobar-audit {
grid-area: audit;
padding-top: 5px;
padding-bottom: 2px;
}
.accessible-bounds {
fill: var(--highlighter-accessibility-bounds-color);
opacity: var(--highlighter-accessibility-bounds-opacity);
}
@media (prefers-reduced-motion) {
.use-simple-highlighters .accessible-bounds {
fill: none;
stroke: var(--highlighter-accessibility-bounds-color);
stroke-width: 3;
}
}
.accessible-infobar-name,
.accessible-infobar-audit {
color: var(--highlighter-infobar-color);
}
.accessible-infobar-audit .accessible-contrast-ratio:empty::before,
.accessible-infobar-audit .accessible-contrast-ratio:empty::after,
.accessible-infobar-name:empty {
display: none;
}
.accessible-infobar-audit .accessible-contrast-ratio::before {
content: "";
height: 8px;
width: 8px;
display: inline-flex;
background-color: var(--accessibility-highlighter-contrast-ratio-color);
box-shadow:
0 0 0 1px var(--grey-40),
4px 3px var(--accessibility-highlighter-contrast-ratio-bg),
4px 3px 0 1px var(--grey-40);
margin-inline-start: 3px;
margin-inline-end: 9px;
}
.accessible-infobar-audit .accessible-contrast-ratio::after {
margin-inline-start: 2px;
}
.accessible-infobar-audit .accessible-contrast-ratio.AA::after,
.accessible-infobar-audit .accessible-contrast-ratio.AAA::after {
color: #90e274;
}
.accessible-infobar-audit .accessible-audit::before,
.accessible-infobar-audit .accessible-contrast-ratio.FAIL::after {
display: inline-block;
width: 12px;
height: 12px;
content: "";
vertical-align: -2px;
background-position: center;
background-repeat: no-repeat;
-moz-context-properties: fill;
}
.accessible-infobar-audit .accessible-contrast-ratio.FAIL:after {
color: #e57180;
margin-inline-start: 3px;
background-image: url(resource://devtools-shared-images/error-small.svg);
fill: var(--red-40);
}
.accessible-infobar-audit .accessible-contrast-ratio.AA::after {
content: "AA\2713";
}
.accessible-infobar-audit .accessible-contrast-ratio.AAA::after {
content: "AAA\2713";
}
.accessible-infobar-audit .accessible-contrast-ratio-label,
.accessible-infobar-audit .accessible-contrast-ratio-separator::before {
margin-inline-end: 3px;
}
.accessible-infobar-audit .accessible-contrast-ratio-separator::before {
content: "-";
margin-inline-start: 3px;
}
.accessible-infobar-audit .accessible-audit {
display: block;
padding-block-end: 5px;
}
.accessible-infobar-audit .accessible-audit:last-child {
padding-block-end: 0;
}
.accessible-infobar-audit .accessible-audit::before {
margin-inline-end: 4px;
background-image: none;
fill: currentColor;
}
.accessible-infobar-audit .accessible-audit.FAIL::before {
background-image: url(resource://devtools-shared-images/error-small.svg);
fill: var(--red-40);
}
.accessible-infobar-audit .accessible-audit.WARNING::before {
background-image: url(resource://devtools-shared-images/alert-small.svg);
fill: var(--yellow-60);
}
.accessible-infobar-audit .accessible-audit.BEST_PRACTICES::before {
background-image: url(resource://devtools-shared-images/info-small.svg);
}
.accessible-infobar-name {
border-inline-start: 1px solid #5a6169;
margin-inline-start: 6px;
padding-inline-start: 6px;
}
/* Tabbing-order highlighter */
.tabbing-order-infobar {
min-width: unset;
}
.tabbing-order .tabbing-order-infobar-container {
font-size: calc(var(--highlighter-font-size) + 2px);
}
.tabbing-order .tabbing-order-bounds {
position: absolute;
display: block;
outline: 2px solid #000;
outline-offset: -2px;
}
.tabbing-order.focused .tabbing-order-bounds {
outline-color: var(--blue-60);
}
.tabbing-order.focused .tabbing-order-infobar {
background-color: var(--blue-60);
}
.tabbing-order.focused .tabbing-order-infobar-text {
text-decoration: underline;
}
.tabbing-order.focused .tabbing-order-infobar:after {
border-top-color: var(--blue-60);
border-bottom-color: var(--blue-60);
}
|