| 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 |
|
| 16 |
:root { |
| 17 |
--panel-width: 300px; |
| 18 |
} |
| 19 |
|
| 20 |
#PDFBug, |
| 21 |
#PDFBug :is(input, button, select) { |
| 22 |
font: message-box; |
| 23 |
} |
| 24 |
#PDFBug { |
| 25 |
color-scheme: only light; |
| 26 |
|
| 27 |
background-color: white; |
| 28 |
color: black; |
| 29 |
border: 1px solid rgb(102 102 102); |
| 30 |
position: fixed; |
| 31 |
top: 32px; |
| 32 |
right: 0; |
| 33 |
bottom: 0; |
| 34 |
font-size: 10px; |
| 35 |
padding: 0; |
| 36 |
width: var(--panel-width); |
| 37 |
} |
| 38 |
#PDFBug .controls { |
| 39 |
background: rgb(238 238 238); |
| 40 |
border-bottom: 1px solid rgb(102 102 102); |
| 41 |
padding: 3px; |
| 42 |
} |
| 43 |
#PDFBug .panels { |
| 44 |
inset: 27px 0 0; |
| 45 |
overflow: auto; |
| 46 |
position: absolute; |
| 47 |
} |
| 48 |
#PDFBug .panels > div { |
| 49 |
padding: 5px; |
| 50 |
} |
| 51 |
#PDFBug button.active { |
| 52 |
font-weight: bold; |
| 53 |
} |
| 54 |
.debuggerShowText, |
| 55 |
.debuggerHideText:hover { |
| 56 |
background-color: rgb(255 255 0 / 0.25); |
| 57 |
} |
| 58 |
#PDFBug .stats { |
| 59 |
font-family: courier; |
| 60 |
font-size: 10px; |
| 61 |
white-space: pre; |
| 62 |
} |
| 63 |
#PDFBug .stats .title { |
| 64 |
font-weight: bold; |
| 65 |
} |
| 66 |
#PDFBug table { |
| 67 |
font-size: 10px; |
| 68 |
white-space: pre; |
| 69 |
} |
| 70 |
#PDFBug table.showText { |
| 71 |
border-collapse: collapse; |
| 72 |
text-align: center; |
| 73 |
} |
| 74 |
#PDFBug table.showText, |
| 75 |
#PDFBug table.showText :is(tr, td) { |
| 76 |
border: 1px solid black; |
| 77 |
padding: 1px; |
| 78 |
} |
| 79 |
#PDFBug table.showText td.advance { |
| 80 |
color: grey; |
| 81 |
} |
| 82 |
|
| 83 |
#viewer.textLayer-visible .textLayer { |
| 84 |
opacity: 1; |
| 85 |
} |
| 86 |
|
| 87 |
#viewer.textLayer-visible .canvasWrapper { |
| 88 |
background-color: rgb(128 255 128); |
| 89 |
} |
| 90 |
|
| 91 |
#viewer.textLayer-visible .canvasWrapper canvas { |
| 92 |
mix-blend-mode: screen; |
| 93 |
} |
| 94 |
|
| 95 |
#viewer.textLayer-visible .textLayer span { |
| 96 |
background-color: rgb(255 255 0 / 0.1); |
| 97 |
color: rgb(0 0 0); |
| 98 |
border: solid 1px rgb(255 0 0 / 0.5); |
| 99 |
box-sizing: border-box; |
| 100 |
} |
| 101 |
|
| 102 |
#viewer.textLayer-visible .textLayer span[aria-owns] { |
| 103 |
background-color: rgb(255 0 0 / 0.3); |
| 104 |
} |
| 105 |
|
| 106 |
#viewer.textLayer-hover .textLayer span:hover { |
| 107 |
background-color: rgb(255 255 255); |
| 108 |
color: rgb(0 0 0); |
| 109 |
} |
| 110 |
|
| 111 |
#viewer.textLayer-shadow .textLayer span { |
| 112 |
background-color: rgb(255 255 255 / 0.6); |
| 113 |
color: rgb(0 0 0); |
| 114 |
} |
| 115 |
|