You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
2.4KB

  1. /* Copyright 2014 Mozilla Foundation
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. :root {
  16. --panel-width: 300px;
  17. }
  18. #PDFBug,
  19. #PDFBug :is(input, button, select) {
  20. font: message-box;
  21. }
  22. #PDFBug {
  23. background-color: rgb(255 255 255);
  24. border: 1px solid rgb(102 102 102);
  25. position: fixed;
  26. top: 32px;
  27. right: 0;
  28. bottom: 0;
  29. font-size: 10px;
  30. padding: 0;
  31. width: var(--panel-width);
  32. }
  33. #PDFBug .controls {
  34. background: rgb(238 238 238);
  35. border-bottom: 1px solid rgb(102 102 102);
  36. padding: 3px;
  37. }
  38. #PDFBug .panels {
  39. inset: 27px 0 0;
  40. overflow: auto;
  41. position: absolute;
  42. }
  43. #PDFBug .panels > div {
  44. padding: 5px;
  45. }
  46. #PDFBug button.active {
  47. font-weight: bold;
  48. }
  49. .debuggerShowText,
  50. .debuggerHideText:hover {
  51. background-color: rgb(255 255 0 / 0.25);
  52. }
  53. #PDFBug .stats {
  54. font-family: courier;
  55. font-size: 10px;
  56. white-space: pre;
  57. }
  58. #PDFBug .stats .title {
  59. font-weight: bold;
  60. }
  61. #PDFBug table {
  62. font-size: 10px;
  63. white-space: pre;
  64. }
  65. #PDFBug table.showText {
  66. border-collapse: collapse;
  67. text-align: center;
  68. }
  69. #PDFBug table.showText,
  70. #PDFBug table.showText :is(tr, td) {
  71. border: 1px solid black;
  72. padding: 1px;
  73. }
  74. #PDFBug table.showText td.advance {
  75. color: grey;
  76. }
  77. #viewer.textLayer-visible .textLayer {
  78. opacity: 1;
  79. }
  80. #viewer.textLayer-visible .canvasWrapper {
  81. background-color: rgb(128 255 128);
  82. }
  83. #viewer.textLayer-visible .canvasWrapper canvas {
  84. mix-blend-mode: screen;
  85. }
  86. #viewer.textLayer-visible .textLayer span {
  87. background-color: rgb(255 255 0 / 0.1);
  88. color: rgb(0 0 0);
  89. border: solid 1px rgb(255 0 0 / 0.5);
  90. box-sizing: border-box;
  91. }
  92. #viewer.textLayer-visible .textLayer span[aria-owns] {
  93. background-color: rgb(255 0 0 / 0.3);
  94. }
  95. #viewer.textLayer-hover .textLayer span:hover {
  96. background-color: rgb(255 255 255);
  97. color: rgb(0 0 0);
  98. }
  99. #viewer.textLayer-shadow .textLayer span {
  100. background-color: rgb(255 255 255 / 0.6);
  101. color: rgb(0 0 0);
  102. }