viewer.css 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691
  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. --highlight-bg-color: rgba(180, 0, 170, 1);
  17. --highlight-selected-bg-color: rgba(0, 100, 0, 1);
  18. }
  19. @media screen and (forced-colors: active) {
  20. :root {
  21. --highlight-bg-color: Highlight;
  22. --highlight-selected-bg-color: ButtonText;
  23. }
  24. }
  25. .textLayer {
  26. position: absolute;
  27. text-align: initial;
  28. inset: 0;
  29. overflow: hidden;
  30. opacity: 0.25;
  31. line-height: 1;
  32. -webkit-text-size-adjust: none;
  33. -moz-text-size-adjust: none;
  34. text-size-adjust: none;
  35. forced-color-adjust: none;
  36. transform-origin: 0 0;
  37. z-index: 2;
  38. }
  39. .textLayer span,
  40. .textLayer br {
  41. color: transparent;
  42. position: absolute;
  43. white-space: pre;
  44. cursor: text;
  45. transform-origin: 0% 0%;
  46. }
  47. /* Only necessary in Google Chrome, see issue 14205, and most unfortunately
  48. * the problem doesn't show up in "text" reference tests. */
  49. .textLayer span.markedContent {
  50. top: 0;
  51. height: 0;
  52. }
  53. .textLayer .highlight {
  54. margin: -1px;
  55. padding: 1px;
  56. background-color: var(--highlight-bg-color);
  57. border-radius: 4px;
  58. }
  59. .textLayer .highlight.appended {
  60. position: initial;
  61. }
  62. .textLayer .highlight.begin {
  63. border-radius: 4px 0 0 4px;
  64. }
  65. .textLayer .highlight.end {
  66. border-radius: 0 4px 4px 0;
  67. }
  68. .textLayer .highlight.middle {
  69. border-radius: 0;
  70. }
  71. .textLayer .highlight.selected {
  72. background-color: var(--highlight-selected-bg-color);
  73. }
  74. .textLayer ::-moz-selection {
  75. background: blue;
  76. background: AccentColor;
  77. }
  78. .textLayer ::selection {
  79. background: blue;
  80. background: AccentColor;
  81. }
  82. /* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */
  83. .textLayer br::-moz-selection {
  84. background: transparent;
  85. }
  86. .textLayer br::selection {
  87. background: transparent;
  88. }
  89. .textLayer .endOfContent {
  90. display: block;
  91. position: absolute;
  92. inset: 100% 0 0;
  93. z-index: -1;
  94. cursor: default;
  95. -webkit-user-select: none;
  96. -moz-user-select: none;
  97. user-select: none;
  98. }
  99. .textLayer .endOfContent.active {
  100. top: 0;
  101. }
  102. :root {
  103. --annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
  104. --input-focus-border-color: Highlight;
  105. --input-focus-outline: 1px solid Canvas;
  106. --input-unfocused-border-color: transparent;
  107. --input-disabled-border-color: transparent;
  108. --input-hover-border-color: black;
  109. --link-outline: none;
  110. }
  111. @media screen and (forced-colors: active) {
  112. :root {
  113. --input-focus-border-color: CanvasText;
  114. --input-unfocused-border-color: ActiveText;
  115. --input-disabled-border-color: GrayText;
  116. --input-hover-border-color: Highlight;
  117. --link-outline: 1.5px solid LinkText;
  118. }
  119. .annotationLayer .textWidgetAnnotation input:required,
  120. .annotationLayer .textWidgetAnnotation textarea:required,
  121. .annotationLayer .choiceWidgetAnnotation select:required,
  122. .annotationLayer .buttonWidgetAnnotation.checkBox input:required,
  123. .annotationLayer .buttonWidgetAnnotation.radioButton input:required {
  124. outline: 1.5px solid selectedItem;
  125. }
  126. .annotationLayer .linkAnnotation:hover {
  127. -webkit-backdrop-filter: invert(100%);
  128. backdrop-filter: invert(100%);
  129. }
  130. }
  131. .annotationLayer {
  132. position: absolute;
  133. top: 0;
  134. left: 0;
  135. pointer-events: none;
  136. transform-origin: 0 0;
  137. z-index: 3;
  138. }
  139. .annotationLayer[data-main-rotation="90"] .norotate {
  140. transform: rotate(270deg) translateX(-100%);
  141. }
  142. .annotationLayer[data-main-rotation="180"] .norotate {
  143. transform: rotate(180deg) translate(-100%, -100%);
  144. }
  145. .annotationLayer[data-main-rotation="270"] .norotate {
  146. transform: rotate(90deg) translateY(-100%);
  147. }
  148. .annotationLayer canvas {
  149. position: absolute;
  150. width: 100%;
  151. height: 100%;
  152. }
  153. .annotationLayer section {
  154. position: absolute;
  155. text-align: initial;
  156. pointer-events: auto;
  157. box-sizing: border-box;
  158. transform-origin: 0 0;
  159. }
  160. .annotationLayer .linkAnnotation {
  161. outline: var(--link-outline);
  162. }
  163. .annotationLayer .linkAnnotation > a,
  164. .annotationLayer .buttonWidgetAnnotation.pushButton > a {
  165. position: absolute;
  166. font-size: 1em;
  167. top: 0;
  168. left: 0;
  169. width: 100%;
  170. height: 100%;
  171. }
  172. .annotationLayer .linkAnnotation > a:hover,
  173. .annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
  174. opacity: 0.2;
  175. background: rgba(255, 255, 0, 1);
  176. box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
  177. }
  178. .annotationLayer .textAnnotation img {
  179. position: absolute;
  180. cursor: pointer;
  181. width: 100%;
  182. height: 100%;
  183. top: 0;
  184. left: 0;
  185. }
  186. .annotationLayer .textWidgetAnnotation input,
  187. .annotationLayer .textWidgetAnnotation textarea,
  188. .annotationLayer .choiceWidgetAnnotation select,
  189. .annotationLayer .buttonWidgetAnnotation.checkBox input,
  190. .annotationLayer .buttonWidgetAnnotation.radioButton input {
  191. background-image: var(--annotation-unfocused-field-background);
  192. border: 2px solid var(--input-unfocused-border-color);
  193. box-sizing: border-box;
  194. font: calc(9px * var(--scale-factor)) sans-serif;
  195. height: 100%;
  196. margin: 0;
  197. vertical-align: top;
  198. width: 100%;
  199. }
  200. .annotationLayer .textWidgetAnnotation input:required,
  201. .annotationLayer .textWidgetAnnotation textarea:required,
  202. .annotationLayer .choiceWidgetAnnotation select:required,
  203. .annotationLayer .buttonWidgetAnnotation.checkBox input:required,
  204. .annotationLayer .buttonWidgetAnnotation.radioButton input:required {
  205. outline: 1.5px solid red;
  206. }
  207. .annotationLayer .choiceWidgetAnnotation select option {
  208. padding: 0;
  209. }
  210. .annotationLayer .buttonWidgetAnnotation.radioButton input {
  211. border-radius: 50%;
  212. }
  213. .annotationLayer .textWidgetAnnotation textarea {
  214. resize: none;
  215. }
  216. .annotationLayer .textWidgetAnnotation input[disabled],
  217. .annotationLayer .textWidgetAnnotation textarea[disabled],
  218. .annotationLayer .choiceWidgetAnnotation select[disabled],
  219. .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
  220. .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
  221. background: none;
  222. border: 2px solid var(--input-disabled-border-color);
  223. cursor: not-allowed;
  224. }
  225. .annotationLayer .textWidgetAnnotation input:hover,
  226. .annotationLayer .textWidgetAnnotation textarea:hover,
  227. .annotationLayer .choiceWidgetAnnotation select:hover,
  228. .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
  229. .annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
  230. border: 2px solid var(--input-hover-border-color);
  231. }
  232. .annotationLayer .textWidgetAnnotation input:hover,
  233. .annotationLayer .textWidgetAnnotation textarea:hover,
  234. .annotationLayer .choiceWidgetAnnotation select:hover,
  235. .annotationLayer .buttonWidgetAnnotation.checkBox input:hover {
  236. border-radius: 2px;
  237. }
  238. .annotationLayer .textWidgetAnnotation input:focus,
  239. .annotationLayer .textWidgetAnnotation textarea:focus,
  240. .annotationLayer .choiceWidgetAnnotation select:focus {
  241. background: none;
  242. border: 2px solid var(--input-focus-border-color);
  243. border-radius: 2px;
  244. outline: var(--input-focus-outline);
  245. }
  246. .annotationLayer .buttonWidgetAnnotation.checkBox :focus,
  247. .annotationLayer .buttonWidgetAnnotation.radioButton :focus {
  248. background-image: none;
  249. background-color: transparent;
  250. }
  251. .annotationLayer .buttonWidgetAnnotation.checkBox :focus {
  252. border: 2px solid var(--input-focus-border-color);
  253. border-radius: 2px;
  254. outline: var(--input-focus-outline);
  255. }
  256. .annotationLayer .buttonWidgetAnnotation.radioButton :focus {
  257. border: 2px solid var(--input-focus-border-color);
  258. outline: var(--input-focus-outline);
  259. }
  260. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
  261. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
  262. .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
  263. background-color: CanvasText;
  264. content: "";
  265. display: block;
  266. position: absolute;
  267. }
  268. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
  269. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
  270. height: 80%;
  271. left: 45%;
  272. width: 1px;
  273. }
  274. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
  275. transform: rotate(45deg);
  276. }
  277. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
  278. transform: rotate(-45deg);
  279. }
  280. .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
  281. border-radius: 50%;
  282. height: 50%;
  283. left: 30%;
  284. top: 20%;
  285. width: 50%;
  286. }
  287. .annotationLayer .textWidgetAnnotation input.comb {
  288. font-family: monospace;
  289. padding-left: 2px;
  290. padding-right: 0;
  291. }
  292. .annotationLayer .textWidgetAnnotation input.comb:focus {
  293. /*
  294. * Letter spacing is placed on the right side of each character. Hence, the
  295. * letter spacing of the last character may be placed outside the visible
  296. * area, causing horizontal scrolling. We avoid this by extending the width
  297. * when the element has focus and revert this when it loses focus.
  298. */
  299. width: 103%;
  300. }
  301. .annotationLayer .buttonWidgetAnnotation.checkBox input,
  302. .annotationLayer .buttonWidgetAnnotation.radioButton input {
  303. -webkit-appearance: none;
  304. -moz-appearance: none;
  305. appearance: none;
  306. }
  307. .annotationLayer .popupTriggerArea {
  308. height: 100%;
  309. width: 100%;
  310. }
  311. .annotationLayer .fileAttachmentAnnotation .popupTriggerArea {
  312. position: absolute;
  313. }
  314. .annotationLayer .popupWrapper {
  315. position: absolute;
  316. font-size: calc(9px * var(--scale-factor));
  317. width: 100%;
  318. min-width: calc(180px * var(--scale-factor));
  319. pointer-events: none;
  320. }
  321. .annotationLayer .popup {
  322. position: absolute;
  323. max-width: calc(180px * var(--scale-factor));
  324. background-color: rgba(255, 255, 153, 1);
  325. box-shadow: 0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor))
  326. rgba(136, 136, 136, 1);
  327. border-radius: calc(2px * var(--scale-factor));
  328. padding: calc(6px * var(--scale-factor));
  329. margin-left: calc(5px * var(--scale-factor));
  330. cursor: pointer;
  331. font: message-box;
  332. white-space: normal;
  333. word-wrap: break-word;
  334. pointer-events: auto;
  335. }
  336. .annotationLayer .popup > * {
  337. font-size: calc(9px * var(--scale-factor));
  338. }
  339. .annotationLayer .popup h1 {
  340. display: inline-block;
  341. }
  342. .annotationLayer .popupDate {
  343. display: inline-block;
  344. margin-left: calc(5px * var(--scale-factor));
  345. }
  346. .annotationLayer .popupContent {
  347. border-top: 1px solid rgba(51, 51, 51, 1);
  348. margin-top: calc(2px * var(--scale-factor));
  349. padding-top: calc(2px * var(--scale-factor));
  350. }
  351. .annotationLayer .richText > * {
  352. white-space: pre-wrap;
  353. font-size: calc(9px * var(--scale-factor));
  354. }
  355. .annotationLayer .highlightAnnotation,
  356. .annotationLayer .underlineAnnotation,
  357. .annotationLayer .squigglyAnnotation,
  358. .annotationLayer .strikeoutAnnotation,
  359. .annotationLayer .freeTextAnnotation,
  360. .annotationLayer .lineAnnotation svg line,
  361. .annotationLayer .squareAnnotation svg rect,
  362. .annotationLayer .circleAnnotation svg ellipse,
  363. .annotationLayer .polylineAnnotation svg polyline,
  364. .annotationLayer .polygonAnnotation svg polygon,
  365. .annotationLayer .caretAnnotation,
  366. .annotationLayer .inkAnnotation svg polyline,
  367. .annotationLayer .stampAnnotation,
  368. .annotationLayer .fileAttachmentAnnotation {
  369. cursor: pointer;
  370. }
  371. .annotationLayer section svg {
  372. position: absolute;
  373. width: 100%;
  374. height: 100%;
  375. top: 0;
  376. left: 0;
  377. }
  378. .annotationLayer .annotationTextContent {
  379. position: absolute;
  380. width: 100%;
  381. height: 100%;
  382. opacity: 0;
  383. color: transparent;
  384. -webkit-user-select: none;
  385. -moz-user-select: none;
  386. user-select: none;
  387. pointer-events: none;
  388. }
  389. .annotationLayer .annotationTextContent span {
  390. width: 100%;
  391. display: inline-block;
  392. }
  393. :root {
  394. --xfa-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
  395. --xfa-focus-outline: auto;
  396. }
  397. @media screen and (forced-colors: active) {
  398. :root {
  399. --xfa-focus-outline: 2px solid CanvasText;
  400. }
  401. .xfaLayer *:required {
  402. outline: 1.5px solid selectedItem;
  403. }
  404. }
  405. .xfaLayer {
  406. background-color: transparent;
  407. }
  408. .xfaLayer .highlight {
  409. margin: -1px;
  410. padding: 1px;
  411. background-color: rgba(239, 203, 237, 1);
  412. border-radius: 4px;
  413. }
  414. .xfaLayer .highlight.appended {
  415. position: initial;
  416. }
  417. .xfaLayer .highlight.begin {
  418. border-radius: 4px 0 0 4px;
  419. }
  420. .xfaLayer .highlight.end {
  421. border-radius: 0 4px 4px 0;
  422. }
  423. .xfaLayer .highlight.middle {
  424. border-radius: 0;
  425. }
  426. .xfaLayer .highlight.selected {
  427. background-color: rgba(203, 223, 203, 1);
  428. }
  429. .xfaPage {
  430. overflow: hidden;
  431. position: relative;
  432. }
  433. .xfaContentarea {
  434. position: absolute;
  435. }
  436. .xfaPrintOnly {
  437. display: none;
  438. }
  439. .xfaLayer {
  440. position: absolute;
  441. text-align: initial;
  442. top: 0;
  443. left: 0;
  444. transform-origin: 0 0;
  445. line-height: 1.2;
  446. }
  447. .xfaLayer * {
  448. color: inherit;
  449. font: inherit;
  450. font-style: inherit;
  451. font-weight: inherit;
  452. font-kerning: inherit;
  453. letter-spacing: -0.01px;
  454. text-align: inherit;
  455. text-decoration: inherit;
  456. box-sizing: border-box;
  457. background-color: transparent;
  458. padding: 0;
  459. margin: 0;
  460. pointer-events: auto;
  461. line-height: inherit;
  462. }
  463. .xfaLayer *:required {
  464. outline: 1.5px solid red;
  465. }
  466. .xfaLayer div {
  467. pointer-events: none;
  468. }
  469. .xfaLayer svg {
  470. pointer-events: none;
  471. }
  472. .xfaLayer svg * {
  473. pointer-events: none;
  474. }
  475. .xfaLayer a {
  476. color: blue;
  477. }
  478. .xfaRich li {
  479. margin-left: 3em;
  480. }
  481. .xfaFont {
  482. color: black;
  483. font-weight: normal;
  484. font-kerning: none;
  485. font-size: 10px;
  486. font-style: normal;
  487. letter-spacing: 0;
  488. text-decoration: none;
  489. vertical-align: 0;
  490. }
  491. .xfaCaption {
  492. overflow: hidden;
  493. flex: 0 0 auto;
  494. }
  495. .xfaCaptionForCheckButton {
  496. overflow: hidden;
  497. flex: 1 1 auto;
  498. }
  499. .xfaLabel {
  500. height: 100%;
  501. width: 100%;
  502. }
  503. .xfaLeft {
  504. display: flex;
  505. flex-direction: row;
  506. align-items: center;
  507. }
  508. .xfaRight {
  509. display: flex;
  510. flex-direction: row-reverse;
  511. align-items: center;
  512. }
  513. .xfaLeft > .xfaCaption,
  514. .xfaLeft > .xfaCaptionForCheckButton,
  515. .xfaRight > .xfaCaption,
  516. .xfaRight > .xfaCaptionForCheckButton {
  517. max-height: 100%;
  518. }
  519. .xfaTop {
  520. display: flex;
  521. flex-direction: column;
  522. align-items: flex-start;
  523. }
  524. .xfaBottom {
  525. display: flex;
  526. flex-direction: column-reverse;
  527. align-items: flex-start;
  528. }
  529. .xfaTop > .xfaCaption,
  530. .xfaTop > .xfaCaptionForCheckButton,
  531. .xfaBottom > .xfaCaption,
  532. .xfaBottom > .xfaCaptionForCheckButton {
  533. width: 100%;
  534. }
  535. .xfaBorder {
  536. background-color: transparent;
  537. position: absolute;
  538. pointer-events: none;
  539. }
  540. .xfaWrapped {
  541. width: 100%;
  542. height: 100%;
  543. }
  544. .xfaTextfield:focus,
  545. .xfaSelect:focus {
  546. background-image: none;
  547. background-color: transparent;
  548. outline: var(--xfa-focus-outline);
  549. outline-offset: -1px;
  550. }
  551. .xfaCheckbox:focus,
  552. .xfaRadio:focus {
  553. outline: var(--xfa-focus-outline);
  554. }
  555. .xfaTextfield,
  556. .xfaSelect {
  557. height: 100%;
  558. width: 100%;
  559. flex: 1 1 auto;
  560. border: none;
  561. resize: none;
  562. background-image: var(--xfa-unfocused-field-background);
  563. }
  564. .xfaSelect {
  565. padding-inline: 2px;
  566. }
  567. .xfaTop > .xfaTextfield,
  568. .xfaTop > .xfaSelect,
  569. .xfaBottom > .xfaTextfield,
  570. .xfaBottom > .xfaSelect {
  571. flex: 0 1 auto;
  572. }
  573. .xfaButton {
  574. cursor: pointer;
  575. width: 100%;
  576. height: 100%;
  577. border: none;
  578. text-align: center;
  579. }
  580. .xfaLink {
  581. width: 100%;
  582. height: 100%;
  583. position: absolute;
  584. top: 0;
  585. left: 0;
  586. }
  587. .xfaCheckbox,
  588. .xfaRadio {
  589. width: 100%;
  590. height: 100%;
  591. flex: 0 0 auto;
  592. border: none;
  593. }
  594. .xfaRich {
  595. white-space: pre-wrap;
  596. width: 100%;
  597. height: 100%;
  598. }
  599. .xfaImage {
  600. -o-object-position: left top;
  601. object-position: left top;
  602. -o-object-fit: contain;
  603. object-fit: contain;
  604. width: 100%;
  605. height: 100%;
  606. }
  607. .xfaLrTb,
  608. .xfaRlTb,
  609. .xfaTb {
  610. display: flex;
  611. flex-direction: column;
  612. align-items: stretch;
  613. }
  614. .xfaLr {
  615. display: flex;
  616. flex-direction: row;
  617. align-items: stretch;
  618. }
  619. .xfaRl {
  620. display: flex;
  621. flex-direction: row-reverse;
  622. align-items: stretch;
  623. }
  624. .xfaTb > div {
  625. justify-content: left;
  626. }
  627. .xfaPosition {
  628. position: relative;
  629. }
  630. .xfaArea {
  631. position: relative;
  632. }
  633. .xfaValignMiddle {
  634. display: flex;
  635. align-items: center;
  636. }
  637. .xfaTable {
  638. display: flex;
  639. flex-direction: column;
  640. align-items: stretch;
  641. }
  642. .xfaTable .xfaRow {
  643. display: flex;
  644. flex-direction: row;
  645. align-items: stretch;
  646. }
  647. .xfaTable .xfaRlRow {
  648. display: flex;
  649. flex-direction: row-reverse;
  650. align-items: stretch;
  651. flex: 1;
  652. }
  653. .xfaTable .xfaRlRow > div {
  654. flex: 1;
  655. }
  656. .xfaNonInteractive input,
  657. .xfaNonInteractive textarea,
  658. .xfaDisabled input,
  659. .xfaDisabled textarea,
  660. .xfaReadOnly input,
  661. .xfaReadOnly textarea {
  662. background: initial;
  663. }
  664. @media print {
  665. .xfaTextfield,
  666. .xfaSelect {
  667. background: transparent;
  668. }
  669. .xfaSelect {
  670. -webkit-appearance: none;
  671. -moz-appearance: none;
  672. appearance: none;
  673. text-indent: 1px;
  674. text-overflow: "";
  675. }
  676. }
  677. :root {
  678. --focus-outline: solid 2px blue;
  679. --hover-outline: dashed 2px blue;
  680. --freetext-line-height: 1.35;
  681. --freetext-padding: 2px;
  682. --editorFreeText-editing-cursor: text;
  683. --editorInk-editing-cursor: url(images/cursor-editorInk.svg) 0 16, pointer;
  684. }
  685. @media (-webkit-min-device-pixel-ratio: 1.1), (min-resolution: 1.1dppx) {
  686. :root {
  687. --editorFreeText-editing-cursor: url(images/cursor-editorFreeText.svg) 0 16,
  688. text;
  689. }
  690. }
  691. @media screen and (forced-colors: active) {
  692. :root {
  693. --focus-outline: solid 3px ButtonText;
  694. --hover-outline: dashed 3px ButtonText;
  695. }
  696. }
  697. [data-editor-rotation="90"] {
  698. transform: rotate(90deg);
  699. }
  700. [data-editor-rotation="180"] {
  701. transform: rotate(180deg);
  702. }
  703. [data-editor-rotation="270"] {
  704. transform: rotate(270deg);
  705. }
  706. .annotationEditorLayer {
  707. background: transparent;
  708. position: absolute;
  709. top: 0;
  710. left: 0;
  711. font-size: calc(100px * var(--scale-factor));
  712. transform-origin: 0 0;
  713. cursor: auto;
  714. z-index: 4;
  715. }
  716. .annotationEditorLayer.freeTextEditing {
  717. cursor: var(--editorFreeText-editing-cursor);
  718. }
  719. .annotationEditorLayer.inkEditing {
  720. cursor: var(--editorInk-editing-cursor);
  721. }
  722. .annotationEditorLayer :is(.freeTextEditor, .inkEditor)[draggable="true"] {
  723. cursor: move;
  724. }
  725. .annotationEditorLayer .selectedEditor {
  726. outline: var(--focus-outline);
  727. resize: none;
  728. }
  729. .annotationEditorLayer .freeTextEditor {
  730. position: absolute;
  731. background: transparent;
  732. border-radius: 3px;
  733. padding: calc(var(--freetext-padding) * var(--scale-factor));
  734. resize: none;
  735. width: auto;
  736. height: auto;
  737. z-index: 1;
  738. transform-origin: 0 0;
  739. touch-action: none;
  740. cursor: auto;
  741. }
  742. .annotationEditorLayer .freeTextEditor .internal {
  743. background: transparent;
  744. border: none;
  745. top: 0;
  746. left: 0;
  747. overflow: visible;
  748. white-space: nowrap;
  749. resize: none;
  750. font: 10px sans-serif;
  751. line-height: var(--freetext-line-height);
  752. }
  753. .annotationEditorLayer .freeTextEditor .overlay {
  754. position: absolute;
  755. display: none;
  756. background: transparent;
  757. top: 0;
  758. left: 0;
  759. width: 100%;
  760. height: 100%;
  761. }
  762. .annotationEditorLayer .freeTextEditor .overlay.enabled {
  763. display: block;
  764. }
  765. .annotationEditorLayer .freeTextEditor .internal:empty::before {
  766. content: attr(default-content);
  767. color: gray;
  768. }
  769. .annotationEditorLayer .freeTextEditor .internal:focus {
  770. outline: none;
  771. }
  772. .annotationEditorLayer .inkEditor.disabled {
  773. resize: none;
  774. }
  775. .annotationEditorLayer .inkEditor.disabled.selectedEditor {
  776. resize: horizontal;
  777. }
  778. .annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),
  779. .annotationEditorLayer .inkEditor:hover:not(.selectedEditor) {
  780. outline: var(--hover-outline);
  781. }
  782. .annotationEditorLayer .inkEditor {
  783. position: absolute;
  784. background: transparent;
  785. border-radius: 3px;
  786. overflow: auto;
  787. width: 100%;
  788. height: 100%;
  789. z-index: 1;
  790. transform-origin: 0 0;
  791. cursor: auto;
  792. }
  793. .annotationEditorLayer .inkEditor.editing {
  794. resize: none;
  795. cursor: inherit;
  796. }
  797. .annotationEditorLayer .inkEditor .inkEditorCanvas {
  798. position: absolute;
  799. top: 0;
  800. left: 0;
  801. width: 100%;
  802. height: 100%;
  803. touch-action: none;
  804. }
  805. :root {
  806. --viewer-container-height: 0;
  807. --pdfViewer-padding-bottom: 0;
  808. --page-margin: 1px auto -8px;
  809. --page-border: 9px solid transparent;
  810. --spreadHorizontalWrapped-margin-LR: -3.5px;
  811. --loading-icon-delay: 400ms;
  812. }
  813. @media screen and (forced-colors: active) {
  814. :root {
  815. --pdfViewer-padding-bottom: 9px;
  816. --page-margin: 8px auto -1px;
  817. --page-border: 1px solid CanvasText;
  818. --spreadHorizontalWrapped-margin-LR: 3.5px;
  819. }
  820. }
  821. [data-main-rotation="90"] {
  822. transform: rotate(90deg) translateY(-100%);
  823. }
  824. [data-main-rotation="180"] {
  825. transform: rotate(180deg) translate(-100%, -100%);
  826. }
  827. [data-main-rotation="270"] {
  828. transform: rotate(270deg) translateX(-100%);
  829. }
  830. .pdfViewer {
  831. /* Define this variable here and not in :root to avoid to reflow all the UI
  832. when scaling (see #15929). */
  833. --scale-factor: 1;
  834. padding-bottom: var(--pdfViewer-padding-bottom);
  835. }
  836. .pdfViewer .canvasWrapper {
  837. overflow: hidden;
  838. width: 100%;
  839. height: 100%;
  840. z-index: 1;
  841. }
  842. .pdfViewer .page {
  843. direction: ltr;
  844. width: 816px;
  845. height: 1056px;
  846. margin: var(--page-margin);
  847. position: relative;
  848. overflow: visible;
  849. border: var(--page-border);
  850. background-clip: content-box;
  851. background-color: rgba(255, 255, 255, 1);
  852. }
  853. .pdfViewer .dummyPage {
  854. position: relative;
  855. width: 0;
  856. height: var(--viewer-container-height);
  857. }
  858. .pdfViewer.removePageBorders .page {
  859. margin: 0 auto 10px;
  860. border: none;
  861. }
  862. .pdfViewer.scrollHorizontal,
  863. .pdfViewer.scrollWrapped,
  864. .spread {
  865. margin-inline: 3.5px;
  866. text-align: center;
  867. }
  868. .pdfViewer.scrollHorizontal,
  869. .spread {
  870. white-space: nowrap;
  871. }
  872. .pdfViewer.removePageBorders,
  873. .pdfViewer.scrollHorizontal .spread,
  874. .pdfViewer.scrollWrapped .spread {
  875. margin-inline: 0;
  876. }
  877. .spread .page,
  878. .spread .dummyPage,
  879. .pdfViewer.scrollHorizontal .page,
  880. .pdfViewer.scrollWrapped .page,
  881. .pdfViewer.scrollHorizontal .spread,
  882. .pdfViewer.scrollWrapped .spread {
  883. display: inline-block;
  884. vertical-align: middle;
  885. }
  886. .spread .page,
  887. .pdfViewer.scrollHorizontal .page,
  888. .pdfViewer.scrollWrapped .page {
  889. margin-inline: var(--spreadHorizontalWrapped-margin-LR);
  890. }
  891. .pdfViewer.removePageBorders .spread .page,
  892. .pdfViewer.removePageBorders.scrollHorizontal .page,
  893. .pdfViewer.removePageBorders.scrollWrapped .page {
  894. margin-inline: 5px;
  895. }
  896. .pdfViewer .page canvas {
  897. margin: 0;
  898. display: block;
  899. }
  900. .pdfViewer .page canvas .structTree {
  901. contain: strict;
  902. }
  903. .pdfViewer .page canvas[hidden] {
  904. display: none;
  905. }
  906. .pdfViewer .page canvas[zooming] {
  907. width: 100%;
  908. height: 100%;
  909. }
  910. .pdfViewer .page.loadingIcon:after {
  911. position: absolute;
  912. top: 0;
  913. left: 0;
  914. content: "";
  915. width: 100%;
  916. height: 100%;
  917. background: url("images/loading-icon.gif") center no-repeat;
  918. display: none;
  919. /* Using a delay with background-image doesn't work,
  920. consequently we use the display. */
  921. transition-property: display;
  922. transition-delay: var(--loading-icon-delay);
  923. z-index: 5;
  924. contain: strict;
  925. }
  926. .pdfViewer .page.loading:after {
  927. display: block;
  928. }
  929. .pdfViewer .page:not(.loading):after {
  930. transition-property: none;
  931. display: none;
  932. }
  933. .pdfViewer.enablePermissions .textLayer span {
  934. -webkit-user-select: none !important;
  935. -moz-user-select: none !important;
  936. user-select: none !important;
  937. cursor: not-allowed;
  938. }
  939. .pdfPresentationMode .pdfViewer {
  940. padding-bottom: 0;
  941. }
  942. .pdfPresentationMode .spread {
  943. margin: 0;
  944. }
  945. .pdfPresentationMode .pdfViewer .page {
  946. margin: 0 auto;
  947. border: 2px solid transparent;
  948. }
  949. :root {
  950. --dir-factor: 1;
  951. --inline-start: left;
  952. --inline-end: right;
  953. --sidebar-width: 200px;
  954. --sidebar-transition-duration: 200ms;
  955. --sidebar-transition-timing-function: ease;
  956. --toolbar-icon-opacity: 0.7;
  957. --doorhanger-icon-opacity: 0.9;
  958. --main-color: rgba(12, 12, 13, 1);
  959. --body-bg-color: rgba(212, 212, 215, 1);
  960. --progressBar-color: rgba(10, 132, 255, 1);
  961. --progressBar-bg-color: rgba(221, 221, 222, 1);
  962. --progressBar-blend-color: rgba(116, 177, 239, 1);
  963. --scrollbar-color: auto;
  964. --scrollbar-bg-color: auto;
  965. --toolbar-icon-bg-color: rgba(0, 0, 0, 1);
  966. --toolbar-icon-hover-bg-color: rgba(0, 0, 0, 1);
  967. --sidebar-narrow-bg-color: rgba(212, 212, 215, 0.9);
  968. --sidebar-toolbar-bg-color: rgba(245, 246, 247, 1);
  969. --toolbar-bg-color: rgba(249, 249, 250, 1);
  970. --toolbar-border-color: rgba(184, 184, 184, 1);
  971. --toolbar-box-shadow: 0 1px 0 var(--toolbar-border-color);
  972. --toolbar-border-bottom: none;
  973. --toolbarSidebar-box-shadow: inset calc(-1px * var(--dir-factor)) 0 0
  974. rgba(0, 0, 0, 0.25),
  975. 0 1px 0 rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
  976. --toolbarSidebar-border-bottom: none;
  977. --button-hover-color: rgba(221, 222, 223, 1);
  978. --toggled-btn-color: rgba(0, 0, 0, 1);
  979. --toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
  980. --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
  981. --dropdown-btn-bg-color: rgba(215, 215, 219, 1);
  982. --dropdown-btn-border: none;
  983. --separator-color: rgba(0, 0, 0, 0.3);
  984. --field-color: rgba(6, 6, 6, 1);
  985. --field-bg-color: rgba(255, 255, 255, 1);
  986. --field-border-color: rgba(187, 187, 188, 1);
  987. --treeitem-color: rgba(0, 0, 0, 0.8);
  988. --treeitem-hover-color: rgba(0, 0, 0, 0.9);
  989. --treeitem-selected-color: rgba(0, 0, 0, 0.9);
  990. --treeitem-selected-bg-color: rgba(0, 0, 0, 0.25);
  991. --sidebaritem-bg-color: rgba(0, 0, 0, 0.15);
  992. --doorhanger-bg-color: rgba(255, 255, 255, 1);
  993. --doorhanger-border-color: rgba(12, 12, 13, 0.2);
  994. --doorhanger-hover-color: rgba(12, 12, 13, 1);
  995. --doorhanger-hover-bg-color: rgba(237, 237, 237, 1);
  996. --doorhanger-separator-color: rgba(222, 222, 222, 1);
  997. --dialog-button-border: none;
  998. --dialog-button-bg-color: rgba(12, 12, 13, 0.1);
  999. --dialog-button-hover-bg-color: rgba(12, 12, 13, 0.3);
  1000. --loading-icon: url(images/loading.svg);
  1001. --treeitem-expanded-icon: url(images/treeitem-expanded.svg);
  1002. --treeitem-collapsed-icon: url(images/treeitem-collapsed.svg);
  1003. --toolbarButton-editorFreeText-icon: url(images/toolbarButton-editorFreeText.svg);
  1004. --toolbarButton-editorInk-icon: url(images/toolbarButton-editorInk.svg);
  1005. --toolbarButton-menuArrow-icon: url(images/toolbarButton-menuArrow.svg);
  1006. --toolbarButton-sidebarToggle-icon: url(images/toolbarButton-sidebarToggle.svg);
  1007. --toolbarButton-secondaryToolbarToggle-icon: url(images/toolbarButton-secondaryToolbarToggle.svg);
  1008. --toolbarButton-pageUp-icon: url(images/toolbarButton-pageUp.svg);
  1009. --toolbarButton-pageDown-icon: url(images/toolbarButton-pageDown.svg);
  1010. --toolbarButton-zoomOut-icon: url(images/toolbarButton-zoomOut.svg);
  1011. --toolbarButton-zoomIn-icon: url(images/toolbarButton-zoomIn.svg);
  1012. --toolbarButton-presentationMode-icon: url(images/toolbarButton-presentationMode.svg);
  1013. --toolbarButton-print-icon: url(images/toolbarButton-print.svg);
  1014. --toolbarButton-openFile-icon: url(images/toolbarButton-openFile.svg);
  1015. --toolbarButton-download-icon: url(images/toolbarButton-download.svg);
  1016. --toolbarButton-bookmark-icon: url(images/toolbarButton-bookmark.svg);
  1017. --toolbarButton-viewThumbnail-icon: url(images/toolbarButton-viewThumbnail.svg);
  1018. --toolbarButton-viewOutline-icon: url(images/toolbarButton-viewOutline.svg);
  1019. --toolbarButton-viewAttachments-icon: url(images/toolbarButton-viewAttachments.svg);
  1020. --toolbarButton-viewLayers-icon: url(images/toolbarButton-viewLayers.svg);
  1021. --toolbarButton-currentOutlineItem-icon: url(images/toolbarButton-currentOutlineItem.svg);
  1022. --toolbarButton-search-icon: url(images/toolbarButton-search.svg);
  1023. --findbarButton-previous-icon: url(images/findbarButton-previous.svg);
  1024. --findbarButton-next-icon: url(images/findbarButton-next.svg);
  1025. --secondaryToolbarButton-firstPage-icon: url(images/secondaryToolbarButton-firstPage.svg);
  1026. --secondaryToolbarButton-lastPage-icon: url(images/secondaryToolbarButton-lastPage.svg);
  1027. --secondaryToolbarButton-rotateCcw-icon: url(images/secondaryToolbarButton-rotateCcw.svg);
  1028. --secondaryToolbarButton-rotateCw-icon: url(images/secondaryToolbarButton-rotateCw.svg);
  1029. --secondaryToolbarButton-selectTool-icon: url(images/secondaryToolbarButton-selectTool.svg);
  1030. --secondaryToolbarButton-handTool-icon: url(images/secondaryToolbarButton-handTool.svg);
  1031. --secondaryToolbarButton-scrollPage-icon: url(images/secondaryToolbarButton-scrollPage.svg);
  1032. --secondaryToolbarButton-scrollVertical-icon: url(images/secondaryToolbarButton-scrollVertical.svg);
  1033. --secondaryToolbarButton-scrollHorizontal-icon: url(images/secondaryToolbarButton-scrollHorizontal.svg);
  1034. --secondaryToolbarButton-scrollWrapped-icon: url(images/secondaryToolbarButton-scrollWrapped.svg);
  1035. --secondaryToolbarButton-spreadNone-icon: url(images/secondaryToolbarButton-spreadNone.svg);
  1036. --secondaryToolbarButton-spreadOdd-icon: url(images/secondaryToolbarButton-spreadOdd.svg);
  1037. --secondaryToolbarButton-spreadEven-icon: url(images/secondaryToolbarButton-spreadEven.svg);
  1038. --secondaryToolbarButton-documentProperties-icon: url(images/secondaryToolbarButton-documentProperties.svg);
  1039. }
  1040. [dir="rtl"]:root {
  1041. --dir-factor: -1;
  1042. --inline-start: right;
  1043. --inline-end: left;
  1044. }
  1045. @media (prefers-color-scheme: dark) {
  1046. :root {
  1047. --main-color: rgba(249, 249, 250, 1);
  1048. --body-bg-color: rgba(42, 42, 46, 1);
  1049. --progressBar-color: rgba(0, 96, 223, 1);
  1050. --progressBar-bg-color: rgba(40, 40, 43, 1);
  1051. --progressBar-blend-color: rgba(20, 68, 133, 1);
  1052. --scrollbar-color: rgba(121, 121, 123, 1);
  1053. --scrollbar-bg-color: rgba(35, 35, 39, 1);
  1054. --toolbar-icon-bg-color: rgba(255, 255, 255, 1);
  1055. --toolbar-icon-hover-bg-color: rgba(255, 255, 255, 1);
  1056. --sidebar-narrow-bg-color: rgba(42, 42, 46, 0.9);
  1057. --sidebar-toolbar-bg-color: rgba(50, 50, 52, 1);
  1058. --toolbar-bg-color: rgba(56, 56, 61, 1);
  1059. --toolbar-border-color: rgba(12, 12, 13, 1);
  1060. --button-hover-color: rgba(102, 102, 103, 1);
  1061. --toggled-btn-color: rgba(255, 255, 255, 1);
  1062. --toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
  1063. --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
  1064. --dropdown-btn-bg-color: rgba(74, 74, 79, 1);
  1065. --separator-color: rgba(0, 0, 0, 0.3);
  1066. --field-color: rgba(250, 250, 250, 1);
  1067. --field-bg-color: rgba(64, 64, 68, 1);
  1068. --field-border-color: rgba(115, 115, 115, 1);
  1069. --treeitem-color: rgba(255, 255, 255, 0.8);
  1070. --treeitem-hover-color: rgba(255, 255, 255, 0.9);
  1071. --treeitem-selected-color: rgba(255, 255, 255, 0.9);
  1072. --treeitem-selected-bg-color: rgba(255, 255, 255, 0.25);
  1073. --sidebaritem-bg-color: rgba(255, 255, 255, 0.15);
  1074. --doorhanger-bg-color: rgba(74, 74, 79, 1);
  1075. --doorhanger-border-color: rgba(39, 39, 43, 1);
  1076. --doorhanger-hover-color: rgba(249, 249, 250, 1);
  1077. --doorhanger-hover-bg-color: rgba(93, 94, 98, 1);
  1078. --doorhanger-separator-color: rgba(92, 92, 97, 1);
  1079. --dialog-button-bg-color: rgba(92, 92, 97, 1);
  1080. --dialog-button-hover-bg-color: rgba(115, 115, 115, 1);
  1081. /* This image is used in <input> elements, which unfortunately means that
  1082. * the `mask-image` approach used with all of the other images doesn't work
  1083. * here; hence why we still have two versions of this particular image. */
  1084. --loading-icon: url(images/loading-dark.svg);
  1085. }
  1086. }
  1087. @media screen and (forced-colors: active) {
  1088. :root {
  1089. --button-hover-color: Highlight;
  1090. --doorhanger-hover-bg-color: Highlight;
  1091. --toolbar-icon-opacity: 1;
  1092. --toolbar-icon-bg-color: ButtonText;
  1093. --toolbar-icon-hover-bg-color: ButtonFace;
  1094. --toolbar-border-color: CanvasText;
  1095. --toolbar-border-bottom: 1px solid var(--toolbar-border-color);
  1096. --toolbar-box-shadow: none;
  1097. --toggled-btn-color: HighlightText;
  1098. --toggled-btn-bg-color: LinkText;
  1099. --doorhanger-hover-color: ButtonFace;
  1100. --doorhanger-border-color-whcm: 1px solid ButtonText;
  1101. --doorhanger-triangle-opacity-whcm: 0;
  1102. --dialog-button-border: 1px solid Highlight;
  1103. --dialog-button-hover-bg-color: Highlight;
  1104. --dialog-button-hover-color: ButtonFace;
  1105. --dropdown-btn-border: 1px solid ButtonText;
  1106. --field-border-color: ButtonText;
  1107. --main-color: CanvasText;
  1108. --separator-color: GrayText;
  1109. --doorhanger-separator-color: GrayText;
  1110. --toolbarSidebar-box-shadow: none;
  1111. --toolbarSidebar-border-bottom: 1px solid var(--toolbar-border-color);
  1112. }
  1113. }
  1114. @media screen and (prefers-reduced-motion: reduce) {
  1115. :root {
  1116. --sidebar-transition-duration: 0;
  1117. }
  1118. }
  1119. * {
  1120. padding: 0;
  1121. margin: 0;
  1122. }
  1123. html,
  1124. body {
  1125. height: 100%;
  1126. width: 100%;
  1127. }
  1128. body {
  1129. background-color: var(--body-bg-color);
  1130. scrollbar-color: var(--scrollbar-color) var(--scrollbar-bg-color);
  1131. }
  1132. .hidden,
  1133. [hidden] {
  1134. display: none !important;
  1135. }
  1136. #viewerContainer.pdfPresentationMode:-webkit-full-screen {
  1137. top: 0;
  1138. background-color: rgba(0, 0, 0, 1);
  1139. width: 100%;
  1140. height: 100%;
  1141. overflow: hidden;
  1142. cursor: none;
  1143. -webkit-user-select: none;
  1144. user-select: none;
  1145. }
  1146. #viewerContainer.pdfPresentationMode:fullscreen {
  1147. top: 0;
  1148. background-color: rgba(0, 0, 0, 1);
  1149. width: 100%;
  1150. height: 100%;
  1151. overflow: hidden;
  1152. cursor: none;
  1153. -webkit-user-select: none;
  1154. -moz-user-select: none;
  1155. user-select: none;
  1156. }
  1157. .pdfPresentationMode:-webkit-full-screen section:not([data-internal-link]) {
  1158. pointer-events: none;
  1159. }
  1160. .pdfPresentationMode:fullscreen section:not([data-internal-link]) {
  1161. pointer-events: none;
  1162. }
  1163. .pdfPresentationMode:-webkit-full-screen .textLayer span {
  1164. cursor: none;
  1165. }
  1166. .pdfPresentationMode:fullscreen .textLayer span {
  1167. cursor: none;
  1168. }
  1169. .pdfPresentationMode.pdfPresentationModeControls > *,
  1170. .pdfPresentationMode.pdfPresentationModeControls .textLayer span {
  1171. cursor: default;
  1172. }
  1173. #outerContainer {
  1174. width: 100%;
  1175. height: 100%;
  1176. position: relative;
  1177. }
  1178. #sidebarContainer {
  1179. position: absolute;
  1180. inset-block: 32px 0;
  1181. inset-inline-start: calc(-1 * var(--sidebar-width));
  1182. width: var(--sidebar-width);
  1183. visibility: hidden;
  1184. z-index: 100;
  1185. font: message-box;
  1186. border-top: 1px solid rgba(51, 51, 51, 1);
  1187. -webkit-border-end: var(--doorhanger-border-color-whcm);
  1188. border-inline-end: var(--doorhanger-border-color-whcm);
  1189. transition-property: inset-inline-start;
  1190. transition-duration: var(--sidebar-transition-duration);
  1191. transition-timing-function: var(--sidebar-transition-timing-function);
  1192. }
  1193. #outerContainer.sidebarMoving #sidebarContainer,
  1194. #outerContainer.sidebarOpen #sidebarContainer {
  1195. visibility: visible;
  1196. }
  1197. #outerContainer.sidebarOpen #sidebarContainer {
  1198. inset-inline-start: 0;
  1199. }
  1200. #mainContainer {
  1201. position: absolute;
  1202. inset: 0;
  1203. min-width: 350px;
  1204. }
  1205. #sidebarContent {
  1206. inset-block: 32px 0;
  1207. inset-inline-start: 0;
  1208. overflow: auto;
  1209. position: absolute;
  1210. width: 100%;
  1211. box-shadow: inset calc(-1px * var(--dir-factor)) 0 0 rgba(0, 0, 0, 0.25);
  1212. }
  1213. #viewerContainer {
  1214. overflow: auto;
  1215. position: absolute;
  1216. inset: 32px 0 0;
  1217. outline: none;
  1218. }
  1219. #viewerContainer:not(.pdfPresentationMode) {
  1220. transition-duration: var(--sidebar-transition-duration);
  1221. transition-timing-function: var(--sidebar-transition-timing-function);
  1222. }
  1223. #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
  1224. inset-inline-start: var(--sidebar-width);
  1225. transition-property: inset-inline-start;
  1226. }
  1227. .toolbar {
  1228. position: relative;
  1229. inset-inline: 0;
  1230. z-index: 9999;
  1231. cursor: default;
  1232. font: message-box;
  1233. }
  1234. .toolbar input,
  1235. .toolbar button,
  1236. .toolbar select,
  1237. .secondaryToolbar input,
  1238. .secondaryToolbar button,
  1239. .secondaryToolbar a,
  1240. .secondaryToolbar select,
  1241. .editorParamsToolbar input,
  1242. .editorParamsToolbar button,
  1243. .editorParamsToolbar select,
  1244. .findbar input,
  1245. .findbar button,
  1246. .findbar select,
  1247. #sidebarContainer input,
  1248. #sidebarContainer button,
  1249. #sidebarContainer select {
  1250. outline: none;
  1251. font: message-box;
  1252. }
  1253. #toolbarContainer {
  1254. width: 100%;
  1255. }
  1256. #toolbarSidebar {
  1257. width: 100%;
  1258. height: 32px;
  1259. background-color: var(--sidebar-toolbar-bg-color);
  1260. box-shadow: var(--toolbarSidebar-box-shadow);
  1261. border-bottom: var(--toolbarSidebar-border-bottom);
  1262. }
  1263. #sidebarResizer {
  1264. position: absolute;
  1265. inset-block: 0;
  1266. inset-inline-end: -6px;
  1267. width: 6px;
  1268. z-index: 200;
  1269. cursor: ew-resize;
  1270. }
  1271. #toolbarContainer,
  1272. .findbar,
  1273. .secondaryToolbar,
  1274. .editorParamsToolbar {
  1275. position: relative;
  1276. height: 32px;
  1277. background-color: var(--toolbar-bg-color);
  1278. box-shadow: var(--toolbar-box-shadow);
  1279. border-bottom: var(--toolbar-border-bottom);
  1280. }
  1281. #toolbarViewer {
  1282. height: 32px;
  1283. }
  1284. #loadingBar {
  1285. /* Define these variables here, and not in :root, to avoid reflowing the
  1286. entire viewer when updating progress (see issue 15958). */
  1287. --progressBar-percent: 0%;
  1288. --progressBar-end-offset: 0;
  1289. position: absolute;
  1290. inset-inline: 0 var(--progressBar-end-offset);
  1291. height: 4px;
  1292. background-color: var(--progressBar-bg-color);
  1293. border-bottom: 1px solid var(--toolbar-border-color);
  1294. transition-property: inset-inline-start;
  1295. transition-duration: var(--sidebar-transition-duration);
  1296. transition-timing-function: var(--sidebar-transition-timing-function);
  1297. }
  1298. #outerContainer.sidebarOpen #loadingBar {
  1299. inset-inline-start: var(--sidebar-width);
  1300. }
  1301. #loadingBar .progress {
  1302. position: absolute;
  1303. top: 0;
  1304. left: 0;
  1305. width: 100%;
  1306. transform: scaleX(var(--progressBar-percent));
  1307. transform-origin: 0 0;
  1308. height: 100%;
  1309. background-color: var(--progressBar-color);
  1310. overflow: hidden;
  1311. transition: transform 200ms;
  1312. }
  1313. @keyframes progressIndeterminate {
  1314. 0% {
  1315. transform: translateX(-142px);
  1316. }
  1317. 100% {
  1318. transform: translateX(0);
  1319. }
  1320. }
  1321. #loadingBar.indeterminate .progress {
  1322. transform: none;
  1323. background-color: var(--progressBar-bg-color);
  1324. transition: none;
  1325. }
  1326. #loadingBar.indeterminate .progress .glimmer {
  1327. position: absolute;
  1328. top: 0;
  1329. left: 0;
  1330. height: 100%;
  1331. width: calc(100% + 150px);
  1332. background: repeating-linear-gradient(
  1333. 135deg,
  1334. var(--progressBar-blend-color) 0,
  1335. var(--progressBar-bg-color) 5px,
  1336. var(--progressBar-bg-color) 45px,
  1337. var(--progressBar-color) 55px,
  1338. var(--progressBar-color) 95px,
  1339. var(--progressBar-blend-color) 100px
  1340. );
  1341. animation: progressIndeterminate 1s linear infinite;
  1342. }
  1343. #outerContainer.sidebarResizing #sidebarContainer,
  1344. #outerContainer.sidebarResizing #viewerContainer,
  1345. #outerContainer.sidebarResizing #loadingBar {
  1346. /* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
  1347. transition-duration: 0s;
  1348. }
  1349. .findbar,
  1350. .secondaryToolbar,
  1351. .editorParamsToolbar {
  1352. top: 32px;
  1353. position: absolute;
  1354. z-index: 30000;
  1355. height: auto;
  1356. padding: 0 4px;
  1357. margin: 4px 2px;
  1358. font: message-box;
  1359. font-size: 12px;
  1360. line-height: 14px;
  1361. text-align: left;
  1362. cursor: default;
  1363. }
  1364. .findbar {
  1365. inset-inline-start: 64px;
  1366. min-width: 300px;
  1367. background-color: var(--toolbar-bg-color);
  1368. }
  1369. .findbar > div {
  1370. height: 32px;
  1371. }
  1372. .findbar > div#findbarInputContainer {
  1373. -webkit-margin-end: 4px;
  1374. margin-inline-end: 4px;
  1375. }
  1376. .findbar.wrapContainers > div,
  1377. .findbar.wrapContainers > div#findbarMessageContainer > * {
  1378. clear: both;
  1379. }
  1380. .findbar.wrapContainers > div#findbarMessageContainer {
  1381. height: auto;
  1382. }
  1383. .findbar input[type="checkbox"] {
  1384. pointer-events: none;
  1385. }
  1386. .findbar label {
  1387. -webkit-user-select: none;
  1388. -moz-user-select: none;
  1389. user-select: none;
  1390. }
  1391. .findbar label:hover,
  1392. .findbar input:focus-visible + label {
  1393. color: var(--toggled-btn-color);
  1394. background-color: var(--button-hover-color);
  1395. }
  1396. .findbar .toolbarField[type="checkbox"]:checked + .toolbarLabel {
  1397. background-color: var(--toggled-btn-bg-color) !important;
  1398. color: var(--toggled-btn-color);
  1399. }
  1400. #findInput {
  1401. width: 200px;
  1402. }
  1403. #findInput::-moz-placeholder {
  1404. font-style: normal;
  1405. }
  1406. #findInput::placeholder {
  1407. font-style: normal;
  1408. }
  1409. #findInput[data-status="pending"] {
  1410. background-image: var(--loading-icon);
  1411. background-repeat: no-repeat;
  1412. background-position: calc(50% + 48% * var(--dir-factor));
  1413. }
  1414. #findInput[data-status="notFound"] {
  1415. background-color: rgba(255, 102, 102, 1);
  1416. }
  1417. .secondaryToolbar,
  1418. .editorParamsToolbar {
  1419. padding: 6px 0 10px;
  1420. inset-inline-end: 4px;
  1421. height: auto;
  1422. background-color: var(--doorhanger-bg-color);
  1423. }
  1424. .editorParamsToolbarContainer {
  1425. width: 220px;
  1426. margin-bottom: -4px;
  1427. }
  1428. .editorParamsToolbarContainer > .editorParamsSetter {
  1429. min-height: 26px;
  1430. display: flex;
  1431. align-items: center;
  1432. justify-content: space-between;
  1433. padding-inline: 10px;
  1434. }
  1435. .editorParamsToolbarContainer .editorParamsLabel {
  1436. -webkit-padding-end: 10px;
  1437. padding-inline-end: 10px;
  1438. flex: none;
  1439. color: var(--main-color);
  1440. }
  1441. .editorParamsToolbarContainer .editorParamsColor {
  1442. width: 32px;
  1443. height: 32px;
  1444. flex: none;
  1445. }
  1446. .editorParamsToolbarContainer .editorParamsSlider {
  1447. background-color: transparent;
  1448. width: 90px;
  1449. flex: 0 1 0;
  1450. }
  1451. .editorParamsToolbarContainer .editorParamsSlider::-moz-range-progress {
  1452. background-color: black;
  1453. }
  1454. .editorParamsToolbarContainer .editorParamsSlider::-webkit-slider-runnable-track,
  1455. .editorParamsToolbarContainer .editorParamsSlider::-moz-range-track {
  1456. background-color: black;
  1457. }
  1458. .editorParamsToolbarContainer .editorParamsSlider::-webkit-slider-thumb,
  1459. .editorParamsToolbarContainer .editorParamsSlider::-moz-range-thumb {
  1460. background-color: white;
  1461. }
  1462. #secondaryToolbarButtonContainer {
  1463. max-width: 220px;
  1464. min-height: 26px;
  1465. max-height: calc(var(--viewer-container-height) - 40px);
  1466. overflow-y: auto;
  1467. margin-bottom: -4px;
  1468. }
  1469. #editorInkParamsToolbar {
  1470. inset-inline-end: 40px;
  1471. background-color: var(--toolbar-bg-color);
  1472. }
  1473. #editorFreeTextParamsToolbar {
  1474. inset-inline-end: 68px;
  1475. background-color: var(--toolbar-bg-color);
  1476. }
  1477. .doorHanger,
  1478. .doorHangerRight {
  1479. border-radius: 2px;
  1480. box-shadow: 0 1px 5px var(--doorhanger-border-color),
  1481. 0 0 0 1px var(--doorhanger-border-color);
  1482. border: var(--doorhanger-border-color-whcm);
  1483. }
  1484. .doorHanger:after,
  1485. .doorHanger:before,
  1486. .doorHangerRight:after,
  1487. .doorHangerRight:before {
  1488. bottom: 100%;
  1489. border: 8px solid rgba(0, 0, 0, 0);
  1490. content: " ";
  1491. height: 0;
  1492. width: 0;
  1493. position: absolute;
  1494. pointer-events: none;
  1495. opacity: var(--doorhanger-triangle-opacity-whcm);
  1496. }
  1497. .doorHanger:after {
  1498. inset-inline-start: 10px;
  1499. -webkit-margin-start: -8px;
  1500. margin-inline-start: -8px;
  1501. border-bottom-color: var(--toolbar-bg-color);
  1502. }
  1503. .doorHangerRight:after {
  1504. inset-inline-end: 10px;
  1505. -webkit-margin-end: -8px;
  1506. margin-inline-end: -8px;
  1507. border-bottom-color: var(--doorhanger-bg-color);
  1508. }
  1509. .doorHanger:before,
  1510. .doorHangerRight:before {
  1511. border-bottom-color: var(--doorhanger-border-color);
  1512. border-width: 9px;
  1513. }
  1514. .doorHanger:before {
  1515. inset-inline-start: 10px;
  1516. -webkit-margin-start: -9px;
  1517. margin-inline-start: -9px;
  1518. }
  1519. .doorHangerRight:before {
  1520. inset-inline-end: 10px;
  1521. -webkit-margin-end: -9px;
  1522. margin-inline-end: -9px;
  1523. }
  1524. #findResultsCount {
  1525. background-color: rgba(217, 217, 217, 1);
  1526. color: rgba(82, 82, 82, 1);
  1527. text-align: center;
  1528. padding: 4px 5px;
  1529. margin: 5px;
  1530. }
  1531. #findMsg {
  1532. color: rgba(251, 0, 0, 1);
  1533. }
  1534. #findResultsCount:empty,
  1535. #findMsg:empty {
  1536. display: none;
  1537. }
  1538. #toolbarViewerMiddle {
  1539. position: absolute;
  1540. left: 50%;
  1541. transform: translateX(-50%);
  1542. }
  1543. #toolbarViewerLeft,
  1544. #toolbarSidebarLeft {
  1545. float: var(--inline-start);
  1546. }
  1547. #toolbarViewerRight,
  1548. #toolbarSidebarRight {
  1549. float: var(--inline-end);
  1550. }
  1551. #toolbarViewerLeft > *,
  1552. #toolbarViewerMiddle > *,
  1553. #toolbarViewerRight > *,
  1554. #toolbarSidebarLeft *,
  1555. #toolbarSidebarRight *,
  1556. .findbar * {
  1557. position: relative;
  1558. float: var(--inline-start);
  1559. }
  1560. #toolbarViewerLeft {
  1561. -webkit-padding-start: 1px;
  1562. padding-inline-start: 1px;
  1563. }
  1564. #toolbarViewerRight {
  1565. -webkit-padding-end: 1px;
  1566. padding-inline-end: 1px;
  1567. }
  1568. #toolbarSidebarRight {
  1569. -webkit-padding-end: 2px;
  1570. padding-inline-end: 2px;
  1571. }
  1572. .splitToolbarButton {
  1573. margin: 2px;
  1574. display: inline-block;
  1575. }
  1576. .splitToolbarButton > .toolbarButton {
  1577. float: var(--inline-start);
  1578. }
  1579. .toolbarButton,
  1580. .secondaryToolbarButton,
  1581. .dialogButton {
  1582. border: none;
  1583. background: none;
  1584. width: 28px;
  1585. height: 28px;
  1586. outline: none;
  1587. }
  1588. .dialogButton:hover,
  1589. .dialogButton:focus-visible {
  1590. background-color: var(--dialog-button-hover-bg-color);
  1591. }
  1592. .dialogButton:hover > span,
  1593. .dialogButton:focus-visible > span {
  1594. color: var(--dialog-button-hover-color);
  1595. }
  1596. .toolbarButton > span {
  1597. display: inline-block;
  1598. width: 0;
  1599. height: 0;
  1600. overflow: hidden;
  1601. }
  1602. .toolbarButton[disabled],
  1603. .secondaryToolbarButton[disabled],
  1604. .dialogButton[disabled] {
  1605. opacity: 0.5;
  1606. }
  1607. .splitToolbarButton > .toolbarButton:hover,
  1608. .splitToolbarButton > .toolbarButton:focus-visible,
  1609. .dropdownToolbarButton:hover {
  1610. background-color: var(--button-hover-color);
  1611. }
  1612. .splitToolbarButton > .toolbarButton {
  1613. position: relative;
  1614. margin: 0;
  1615. }
  1616. #toolbarSidebar .splitToolbarButton > .toolbarButton {
  1617. -webkit-margin-end: 2px;
  1618. margin-inline-end: 2px;
  1619. }
  1620. .splitToolbarButtonSeparator {
  1621. float: var(--inline-start);
  1622. margin: 4px 0;
  1623. width: 1px;
  1624. height: 20px;
  1625. background-color: var(--separator-color);
  1626. }
  1627. .toolbarButton,
  1628. .dropdownToolbarButton,
  1629. .secondaryToolbarButton,
  1630. .dialogButton {
  1631. min-width: 16px;
  1632. margin: 2px 1px;
  1633. padding: 2px 6px 0;
  1634. border: none;
  1635. border-radius: 2px;
  1636. color: var(--main-color);
  1637. font-size: 12px;
  1638. line-height: 14px;
  1639. -webkit-user-select: none;
  1640. -moz-user-select: none;
  1641. user-select: none;
  1642. cursor: default;
  1643. box-sizing: border-box;
  1644. }
  1645. .toolbarButton:hover,
  1646. .toolbarButton:focus-visible {
  1647. background-color: var(--button-hover-color);
  1648. }
  1649. .secondaryToolbarButton:hover,
  1650. .secondaryToolbarButton:focus-visible {
  1651. background-color: var(--doorhanger-hover-bg-color);
  1652. color: var(--doorhanger-hover-color);
  1653. }
  1654. .toolbarButton.toggled,
  1655. .splitToolbarButton.toggled > .toolbarButton.toggled,
  1656. .secondaryToolbarButton.toggled {
  1657. background-color: var(--toggled-btn-bg-color);
  1658. color: var(--toggled-btn-color);
  1659. }
  1660. .toolbarButton.toggled::before,
  1661. .secondaryToolbarButton.toggled::before {
  1662. background-color: var(--toggled-btn-color);
  1663. }
  1664. .toolbarButton.toggled:hover:active,
  1665. .splitToolbarButton.toggled > .toolbarButton.toggled:hover:active,
  1666. .secondaryToolbarButton.toggled:hover:active {
  1667. background-color: var(--toggled-hover-active-btn-color);
  1668. }
  1669. .dropdownToolbarButton {
  1670. /* Define this variable here, and not in :root, to avoid reflowing the
  1671. entire viewer when updating the width. */
  1672. --scale-select-width: 140px;
  1673. width: var(--scale-select-width);
  1674. padding: 0;
  1675. background-color: var(--dropdown-btn-bg-color);
  1676. border: var(--dropdown-btn-border);
  1677. }
  1678. .dropdownToolbarButton::after {
  1679. top: 6px;
  1680. inset-inline-end: 6px;
  1681. pointer-events: none;
  1682. -webkit-mask-image: var(--toolbarButton-menuArrow-icon);
  1683. mask-image: var(--toolbarButton-menuArrow-icon);
  1684. }
  1685. .dropdownToolbarButton > select {
  1686. -webkit-appearance: none;
  1687. -moz-appearance: none;
  1688. appearance: none;
  1689. width: inherit;
  1690. height: 28px;
  1691. font-size: 12px;
  1692. color: var(--main-color);
  1693. margin: 0;
  1694. padding: 1px 0 2px;
  1695. -webkit-padding-start: 6px;
  1696. padding-inline-start: 6px;
  1697. border: none;
  1698. background-color: var(--dropdown-btn-bg-color);
  1699. }
  1700. .dropdownToolbarButton > select:hover,
  1701. .dropdownToolbarButton > select:focus-visible {
  1702. background-color: var(--button-hover-color);
  1703. color: var(--toggled-btn-color);
  1704. }
  1705. .dropdownToolbarButton > select > option {
  1706. background: var(--doorhanger-bg-color);
  1707. color: var(--main-color);
  1708. }
  1709. .toolbarButtonSpacer {
  1710. width: 30px;
  1711. display: inline-block;
  1712. height: 1px;
  1713. }
  1714. .toolbarButton::before,
  1715. .secondaryToolbarButton::before,
  1716. .dropdownToolbarButton::after,
  1717. .treeItemToggler::before {
  1718. /* All matching images have a size of 16x16
  1719. * All relevant containers have a size of 28x28 */
  1720. position: absolute;
  1721. display: inline-block;
  1722. width: 16px;
  1723. height: 16px;
  1724. content: "";
  1725. background-color: var(--toolbar-icon-bg-color);
  1726. -webkit-mask-size: cover;
  1727. mask-size: cover;
  1728. }
  1729. .dropdownToolbarButton:hover::after,
  1730. .dropdownToolbarButton:focus-visible::after,
  1731. .dropdownToolbarButton:active::after {
  1732. background-color: var(--toolbar-icon-hover-bg-color);
  1733. }
  1734. .toolbarButton::before {
  1735. opacity: var(--toolbar-icon-opacity);
  1736. top: 6px;
  1737. left: 6px;
  1738. }
  1739. .toolbarButton:hover::before,
  1740. .toolbarButton:focus-visible::before,
  1741. .secondaryToolbarButton:hover::before,
  1742. .secondaryToolbarButton:focus-visible::before {
  1743. background-color: var(--toolbar-icon-hover-bg-color);
  1744. }
  1745. .secondaryToolbarButton::before {
  1746. opacity: var(--doorhanger-icon-opacity);
  1747. top: 5px;
  1748. inset-inline-start: 12px;
  1749. }
  1750. #sidebarToggle::before {
  1751. -webkit-mask-image: var(--toolbarButton-sidebarToggle-icon);
  1752. mask-image: var(--toolbarButton-sidebarToggle-icon);
  1753. transform: scaleX(var(--dir-factor));
  1754. }
  1755. #secondaryToolbarToggle::before {
  1756. -webkit-mask-image: var(--toolbarButton-secondaryToolbarToggle-icon);
  1757. mask-image: var(--toolbarButton-secondaryToolbarToggle-icon);
  1758. transform: scaleX(var(--dir-factor));
  1759. }
  1760. #findPrevious::before {
  1761. -webkit-mask-image: var(--findbarButton-previous-icon);
  1762. mask-image: var(--findbarButton-previous-icon);
  1763. }
  1764. #findNext::before {
  1765. -webkit-mask-image: var(--findbarButton-next-icon);
  1766. mask-image: var(--findbarButton-next-icon);
  1767. }
  1768. #previous::before {
  1769. -webkit-mask-image: var(--toolbarButton-pageUp-icon);
  1770. mask-image: var(--toolbarButton-pageUp-icon);
  1771. }
  1772. #next::before {
  1773. -webkit-mask-image: var(--toolbarButton-pageDown-icon);
  1774. mask-image: var(--toolbarButton-pageDown-icon);
  1775. }
  1776. #zoomOut::before {
  1777. -webkit-mask-image: var(--toolbarButton-zoomOut-icon);
  1778. mask-image: var(--toolbarButton-zoomOut-icon);
  1779. }
  1780. #zoomIn::before {
  1781. -webkit-mask-image: var(--toolbarButton-zoomIn-icon);
  1782. mask-image: var(--toolbarButton-zoomIn-icon);
  1783. }
  1784. #presentationMode::before {
  1785. -webkit-mask-image: var(--toolbarButton-presentationMode-icon);
  1786. mask-image: var(--toolbarButton-presentationMode-icon);
  1787. }
  1788. #editorFreeText::before {
  1789. -webkit-mask-image: var(--toolbarButton-editorFreeText-icon);
  1790. mask-image: var(--toolbarButton-editorFreeText-icon);
  1791. }
  1792. #editorInk::before {
  1793. -webkit-mask-image: var(--toolbarButton-editorInk-icon);
  1794. mask-image: var(--toolbarButton-editorInk-icon);
  1795. }
  1796. #print::before,
  1797. #secondaryPrint::before {
  1798. -webkit-mask-image: var(--toolbarButton-print-icon);
  1799. mask-image: var(--toolbarButton-print-icon);
  1800. }
  1801. #openFile::before,
  1802. #secondaryOpenFile::before {
  1803. -webkit-mask-image: var(--toolbarButton-openFile-icon);
  1804. mask-image: var(--toolbarButton-openFile-icon);
  1805. }
  1806. #download::before,
  1807. #secondaryDownload::before {
  1808. -webkit-mask-image: var(--toolbarButton-download-icon);
  1809. mask-image: var(--toolbarButton-download-icon);
  1810. }
  1811. a.secondaryToolbarButton {
  1812. padding-top: 5px;
  1813. text-decoration: none;
  1814. }
  1815. a.toolbarButton[href="#"],
  1816. a.secondaryToolbarButton[href="#"] {
  1817. opacity: 0.5;
  1818. pointer-events: none;
  1819. }
  1820. #viewBookmark::before {
  1821. -webkit-mask-image: var(--toolbarButton-bookmark-icon);
  1822. mask-image: var(--toolbarButton-bookmark-icon);
  1823. }
  1824. #viewThumbnail::before {
  1825. -webkit-mask-image: var(--toolbarButton-viewThumbnail-icon);
  1826. mask-image: var(--toolbarButton-viewThumbnail-icon);
  1827. }
  1828. #viewOutline::before {
  1829. -webkit-mask-image: var(--toolbarButton-viewOutline-icon);
  1830. mask-image: var(--toolbarButton-viewOutline-icon);
  1831. transform: scaleX(var(--dir-factor));
  1832. }
  1833. #viewAttachments::before {
  1834. -webkit-mask-image: var(--toolbarButton-viewAttachments-icon);
  1835. mask-image: var(--toolbarButton-viewAttachments-icon);
  1836. }
  1837. #viewLayers::before {
  1838. -webkit-mask-image: var(--toolbarButton-viewLayers-icon);
  1839. mask-image: var(--toolbarButton-viewLayers-icon);
  1840. }
  1841. #currentOutlineItem::before {
  1842. -webkit-mask-image: var(--toolbarButton-currentOutlineItem-icon);
  1843. mask-image: var(--toolbarButton-currentOutlineItem-icon);
  1844. transform: scaleX(var(--dir-factor));
  1845. }
  1846. #viewFind::before {
  1847. -webkit-mask-image: var(--toolbarButton-search-icon);
  1848. mask-image: var(--toolbarButton-search-icon);
  1849. }
  1850. .pdfSidebarNotification::after {
  1851. position: absolute;
  1852. display: inline-block;
  1853. top: 2px;
  1854. inset-inline-end: 2px;
  1855. /* Create a filled circle, with a diameter of 9 pixels, using only CSS: */
  1856. content: "";
  1857. background-color: rgba(112, 219, 85, 1);
  1858. height: 9px;
  1859. width: 9px;
  1860. border-radius: 50%;
  1861. }
  1862. .secondaryToolbarButton {
  1863. position: relative;
  1864. margin: 0;
  1865. padding: 0 0 1px;
  1866. -webkit-padding-start: 36px;
  1867. padding-inline-start: 36px;
  1868. height: auto;
  1869. min-height: 26px;
  1870. width: auto;
  1871. min-width: 100%;
  1872. text-align: start;
  1873. white-space: normal;
  1874. border-radius: 0;
  1875. box-sizing: border-box;
  1876. display: inline-block;
  1877. }
  1878. .secondaryToolbarButton > span {
  1879. -webkit-padding-end: 4px;
  1880. padding-inline-end: 4px;
  1881. }
  1882. #firstPage::before {
  1883. -webkit-mask-image: var(--secondaryToolbarButton-firstPage-icon);
  1884. mask-image: var(--secondaryToolbarButton-firstPage-icon);
  1885. }
  1886. #lastPage::before {
  1887. -webkit-mask-image: var(--secondaryToolbarButton-lastPage-icon);
  1888. mask-image: var(--secondaryToolbarButton-lastPage-icon);
  1889. }
  1890. #pageRotateCcw::before {
  1891. -webkit-mask-image: var(--secondaryToolbarButton-rotateCcw-icon);
  1892. mask-image: var(--secondaryToolbarButton-rotateCcw-icon);
  1893. }
  1894. #pageRotateCw::before {
  1895. -webkit-mask-image: var(--secondaryToolbarButton-rotateCw-icon);
  1896. mask-image: var(--secondaryToolbarButton-rotateCw-icon);
  1897. }
  1898. #cursorSelectTool::before {
  1899. -webkit-mask-image: var(--secondaryToolbarButton-selectTool-icon);
  1900. mask-image: var(--secondaryToolbarButton-selectTool-icon);
  1901. }
  1902. #cursorHandTool::before {
  1903. -webkit-mask-image: var(--secondaryToolbarButton-handTool-icon);
  1904. mask-image: var(--secondaryToolbarButton-handTool-icon);
  1905. }
  1906. #scrollPage::before {
  1907. -webkit-mask-image: var(--secondaryToolbarButton-scrollPage-icon);
  1908. mask-image: var(--secondaryToolbarButton-scrollPage-icon);
  1909. }
  1910. #scrollVertical::before {
  1911. -webkit-mask-image: var(--secondaryToolbarButton-scrollVertical-icon);
  1912. mask-image: var(--secondaryToolbarButton-scrollVertical-icon);
  1913. }
  1914. #scrollHorizontal::before {
  1915. -webkit-mask-image: var(--secondaryToolbarButton-scrollHorizontal-icon);
  1916. mask-image: var(--secondaryToolbarButton-scrollHorizontal-icon);
  1917. }
  1918. #scrollWrapped::before {
  1919. -webkit-mask-image: var(--secondaryToolbarButton-scrollWrapped-icon);
  1920. mask-image: var(--secondaryToolbarButton-scrollWrapped-icon);
  1921. }
  1922. #spreadNone::before {
  1923. -webkit-mask-image: var(--secondaryToolbarButton-spreadNone-icon);
  1924. mask-image: var(--secondaryToolbarButton-spreadNone-icon);
  1925. }
  1926. #spreadOdd::before {
  1927. -webkit-mask-image: var(--secondaryToolbarButton-spreadOdd-icon);
  1928. mask-image: var(--secondaryToolbarButton-spreadOdd-icon);
  1929. }
  1930. #spreadEven::before {
  1931. -webkit-mask-image: var(--secondaryToolbarButton-spreadEven-icon);
  1932. mask-image: var(--secondaryToolbarButton-spreadEven-icon);
  1933. }
  1934. #documentProperties::before {
  1935. -webkit-mask-image: var(--secondaryToolbarButton-documentProperties-icon);
  1936. mask-image: var(--secondaryToolbarButton-documentProperties-icon);
  1937. }
  1938. .verticalToolbarSeparator {
  1939. display: block;
  1940. margin: 5px 2px;
  1941. width: 1px;
  1942. height: 22px;
  1943. background-color: var(--separator-color);
  1944. }
  1945. .horizontalToolbarSeparator {
  1946. display: block;
  1947. margin: 6px 0;
  1948. height: 1px;
  1949. width: 100%;
  1950. background-color: var(--doorhanger-separator-color);
  1951. }
  1952. .toolbarField {
  1953. padding: 4px 7px;
  1954. margin: 3px 0;
  1955. border-radius: 2px;
  1956. background-color: var(--field-bg-color);
  1957. background-clip: padding-box;
  1958. border: 1px solid var(--field-border-color);
  1959. box-shadow: none;
  1960. color: var(--field-color);
  1961. font-size: 12px;
  1962. line-height: 16px;
  1963. outline: none;
  1964. }
  1965. .toolbarField[type="checkbox"] {
  1966. opacity: 0;
  1967. position: absolute !important;
  1968. left: 0;
  1969. margin: 10px 0 3px;
  1970. -webkit-margin-start: 7px;
  1971. margin-inline-start: 7px;
  1972. }
  1973. #pageNumber {
  1974. -moz-appearance: textfield; /* hides the spinner in moz */
  1975. text-align: right;
  1976. width: 40px;
  1977. background-size: 0 0;
  1978. transition-property: none;
  1979. }
  1980. #pageNumber.visiblePageIsLoading {
  1981. background-image: var(--loading-icon);
  1982. background-repeat: no-repeat;
  1983. background-position: 3px;
  1984. background-size: 16px 16px;
  1985. /* Using a delay with background-image doesn't work,
  1986. consequently we use background-size. */
  1987. transition-property: background-size;
  1988. transition-delay: var(--loading-icon-delay);
  1989. }
  1990. #pageNumber::-webkit-inner-spin-button {
  1991. -webkit-appearance: none;
  1992. }
  1993. .toolbarField:focus {
  1994. border-color: #0a84ff;
  1995. }
  1996. .toolbarLabel {
  1997. min-width: 16px;
  1998. padding: 7px;
  1999. margin: 2px;
  2000. border-radius: 2px;
  2001. color: var(--main-color);
  2002. font-size: 12px;
  2003. line-height: 14px;
  2004. text-align: left;
  2005. -webkit-user-select: none;
  2006. -moz-user-select: none;
  2007. user-select: none;
  2008. cursor: default;
  2009. }
  2010. #numPages.toolbarLabel {
  2011. -webkit-padding-start: 3px;
  2012. padding-inline-start: 3px;
  2013. }
  2014. #thumbnailView,
  2015. #outlineView,
  2016. #attachmentsView,
  2017. #layersView {
  2018. position: absolute;
  2019. width: calc(100% - 8px);
  2020. inset-block: 0;
  2021. padding: 4px 4px 0;
  2022. overflow: auto;
  2023. -webkit-user-select: none;
  2024. -moz-user-select: none;
  2025. user-select: none;
  2026. }
  2027. #thumbnailView {
  2028. width: calc(100% - 60px);
  2029. padding: 10px 30px 0;
  2030. }
  2031. #thumbnailView > a:active,
  2032. #thumbnailView > a:focus {
  2033. outline: 0;
  2034. }
  2035. .thumbnail {
  2036. float: var(--inline-start);
  2037. margin: 0 10px 5px;
  2038. }
  2039. #thumbnailView > a:last-of-type > .thumbnail {
  2040. margin-bottom: 10px;
  2041. }
  2042. #thumbnailView > a:last-of-type > .thumbnail:not([data-loaded]) {
  2043. margin-bottom: 9px;
  2044. }
  2045. .thumbnail:not([data-loaded]) {
  2046. border: 1px dashed rgba(132, 132, 132, 1);
  2047. margin: -1px 9px 4px;
  2048. }
  2049. .thumbnailImage {
  2050. border: 1px solid rgba(0, 0, 0, 0);
  2051. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  2052. opacity: 0.8;
  2053. z-index: 99;
  2054. background-color: rgba(255, 255, 255, 1);
  2055. background-clip: content-box;
  2056. }
  2057. .thumbnailSelectionRing {
  2058. border-radius: 2px;
  2059. padding: 7px;
  2060. }
  2061. a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage,
  2062. .thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage {
  2063. opacity: 0.9;
  2064. }
  2065. a:focus > .thumbnail > .thumbnailSelectionRing,
  2066. .thumbnail:hover > .thumbnailSelectionRing {
  2067. background-color: var(--sidebaritem-bg-color);
  2068. background-clip: padding-box;
  2069. color: rgba(255, 255, 255, 0.9);
  2070. }
  2071. .thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
  2072. opacity: 1;
  2073. }
  2074. .thumbnail.selected > .thumbnailSelectionRing {
  2075. background-color: var(--sidebaritem-bg-color);
  2076. background-clip: padding-box;
  2077. color: rgba(255, 255, 255, 1);
  2078. }
  2079. .treeWithDeepNesting > .treeItem,
  2080. .treeItem > .treeItems {
  2081. -webkit-margin-start: 20px;
  2082. margin-inline-start: 20px;
  2083. }
  2084. .treeItem > a {
  2085. text-decoration: none;
  2086. display: inline-block;
  2087. /* Subtract the right padding (left, in RTL mode) of the container: */
  2088. min-width: calc(100% - 4px);
  2089. height: auto;
  2090. margin-bottom: 1px;
  2091. padding: 2px 0 5px;
  2092. -webkit-padding-start: 4px;
  2093. padding-inline-start: 4px;
  2094. border-radius: 2px;
  2095. color: var(--treeitem-color);
  2096. font-size: 13px;
  2097. line-height: 15px;
  2098. -webkit-user-select: none;
  2099. -moz-user-select: none;
  2100. user-select: none;
  2101. white-space: normal;
  2102. cursor: pointer;
  2103. }
  2104. #layersView .treeItem > a * {
  2105. cursor: pointer;
  2106. }
  2107. #layersView .treeItem > a > label {
  2108. -webkit-padding-start: 4px;
  2109. padding-inline-start: 4px;
  2110. }
  2111. #layersView .treeItem > a > label > input {
  2112. float: var(--inline-start);
  2113. margin-top: 1px;
  2114. }
  2115. .treeItemToggler {
  2116. position: relative;
  2117. float: var(--inline-start);
  2118. height: 0;
  2119. width: 0;
  2120. color: rgba(255, 255, 255, 0.5);
  2121. }
  2122. .treeItemToggler::before {
  2123. inset-inline-end: 4px;
  2124. -webkit-mask-image: var(--treeitem-expanded-icon);
  2125. mask-image: var(--treeitem-expanded-icon);
  2126. }
  2127. .treeItemToggler.treeItemsHidden::before {
  2128. -webkit-mask-image: var(--treeitem-collapsed-icon);
  2129. mask-image: var(--treeitem-collapsed-icon);
  2130. transform: scaleX(var(--dir-factor));
  2131. }
  2132. .treeItemToggler.treeItemsHidden ~ .treeItems {
  2133. display: none;
  2134. }
  2135. .treeItem.selected > a {
  2136. background-color: var(--treeitem-selected-bg-color);
  2137. color: var(--treeitem-selected-color);
  2138. }
  2139. .treeItemToggler:hover,
  2140. .treeItemToggler:hover + a,
  2141. .treeItemToggler:hover ~ .treeItems,
  2142. .treeItem > a:hover {
  2143. background-color: var(--sidebaritem-bg-color);
  2144. background-clip: padding-box;
  2145. border-radius: 2px;
  2146. color: var(--treeitem-hover-color);
  2147. }
  2148. .dialogButton {
  2149. width: auto;
  2150. margin: 3px 4px 2px !important;
  2151. padding: 2px 11px;
  2152. color: var(--main-color);
  2153. background-color: var(--dialog-button-bg-color);
  2154. border: var(--dialog-button-border) !important;
  2155. }
  2156. dialog {
  2157. margin: auto;
  2158. padding: 15px;
  2159. border-spacing: 4px;
  2160. color: var(--main-color);
  2161. font: message-box;
  2162. font-size: 12px;
  2163. line-height: 14px;
  2164. background-color: var(--doorhanger-bg-color);
  2165. border: 1px solid rgba(0, 0, 0, 0.5);
  2166. border-radius: 4px;
  2167. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  2168. }
  2169. dialog::-webkit-backdrop {
  2170. background-color: rgba(0, 0, 0, 0.2);
  2171. }
  2172. dialog::backdrop {
  2173. background-color: rgba(0, 0, 0, 0.2);
  2174. }
  2175. dialog > .row {
  2176. display: table-row;
  2177. }
  2178. dialog > .row > * {
  2179. display: table-cell;
  2180. }
  2181. dialog .toolbarField {
  2182. margin: 5px 0;
  2183. }
  2184. dialog .separator {
  2185. display: block;
  2186. margin: 4px 0;
  2187. height: 1px;
  2188. width: 100%;
  2189. background-color: var(--separator-color);
  2190. }
  2191. dialog .buttonRow {
  2192. text-align: center;
  2193. vertical-align: middle;
  2194. }
  2195. dialog :link {
  2196. color: rgba(255, 255, 255, 1);
  2197. }
  2198. #passwordDialog {
  2199. text-align: center;
  2200. }
  2201. #passwordDialog .toolbarField {
  2202. width: 200px;
  2203. }
  2204. #documentPropertiesDialog {
  2205. text-align: left;
  2206. }
  2207. #documentPropertiesDialog .row > * {
  2208. min-width: 100px;
  2209. text-align: start;
  2210. }
  2211. #documentPropertiesDialog .row > span {
  2212. width: 125px;
  2213. word-wrap: break-word;
  2214. }
  2215. #documentPropertiesDialog .row > p {
  2216. max-width: 225px;
  2217. word-wrap: break-word;
  2218. }
  2219. #documentPropertiesDialog .buttonRow {
  2220. margin-top: 10px;
  2221. }
  2222. .grab-to-pan-grab {
  2223. cursor: grab !important;
  2224. }
  2225. .grab-to-pan-grab
  2226. *:not(input):not(textarea):not(button):not(select):not(:link) {
  2227. cursor: inherit !important;
  2228. }
  2229. .grab-to-pan-grab:active,
  2230. .grab-to-pan-grabbing {
  2231. cursor: grabbing !important;
  2232. position: fixed;
  2233. background: rgba(0, 0, 0, 0);
  2234. display: block;
  2235. inset: 0;
  2236. overflow: hidden;
  2237. z-index: 50000; /* should be higher than anything else in PDF.js! */
  2238. }
  2239. @page {
  2240. margin: 0;
  2241. }
  2242. #printContainer {
  2243. display: none;
  2244. }
  2245. @media print {
  2246. body {
  2247. background: rgba(0, 0, 0, 0) none;
  2248. }
  2249. body[data-pdfjsprinting] #outerContainer {
  2250. display: none;
  2251. }
  2252. body[data-pdfjsprinting] #printContainer {
  2253. display: block;
  2254. }
  2255. #printContainer {
  2256. height: 100%;
  2257. }
  2258. /* wrapper around (scaled) print canvas elements */
  2259. #printContainer > .printedPage {
  2260. page-break-after: always;
  2261. page-break-inside: avoid;
  2262. /* The wrapper always cover the whole page. */
  2263. height: 100%;
  2264. width: 100%;
  2265. display: flex;
  2266. flex-direction: column;
  2267. justify-content: center;
  2268. align-items: center;
  2269. }
  2270. #printContainer > .xfaPrintedPage .xfaPage {
  2271. position: absolute;
  2272. }
  2273. #printContainer > .xfaPrintedPage {
  2274. page-break-after: always;
  2275. page-break-inside: avoid;
  2276. width: 100%;
  2277. height: 100%;
  2278. position: relative;
  2279. }
  2280. #printContainer > .printedPage canvas,
  2281. #printContainer > .printedPage img {
  2282. /* The intrinsic canvas / image size will make sure that we fit the page. */
  2283. max-width: 100%;
  2284. max-height: 100%;
  2285. direction: ltr;
  2286. display: block;
  2287. }
  2288. }
  2289. .visibleLargeView,
  2290. .visibleMediumView {
  2291. display: none;
  2292. }
  2293. @media all and (max-width: 900px) {
  2294. #toolbarViewerMiddle {
  2295. display: table;
  2296. margin: auto;
  2297. left: auto;
  2298. position: inherit;
  2299. transform: none;
  2300. }
  2301. }
  2302. @media all and (max-width: 840px) {
  2303. #sidebarContainer {
  2304. background-color: var(--sidebar-narrow-bg-color);
  2305. }
  2306. #outerContainer.sidebarOpen #viewerContainer {
  2307. inset-inline-start: 0 !important;
  2308. }
  2309. }
  2310. @media all and (max-width: 820px) {
  2311. #outerContainer .hiddenLargeView {
  2312. display: none;
  2313. }
  2314. #outerContainer .visibleLargeView {
  2315. display: inherit;
  2316. }
  2317. }
  2318. @media all and (max-width: 750px) {
  2319. #outerContainer .hiddenMediumView {
  2320. display: none;
  2321. }
  2322. #outerContainer .visibleMediumView {
  2323. display: inherit;
  2324. }
  2325. }
  2326. @media all and (max-width: 690px) {
  2327. .hiddenSmallView,
  2328. .hiddenSmallView * {
  2329. display: none;
  2330. }
  2331. .toolbarButtonSpacer {
  2332. width: 0;
  2333. }
  2334. .findbar {
  2335. inset-inline-start: 34px;
  2336. }
  2337. }
  2338. @media all and (max-width: 560px) {
  2339. #scaleSelectContainer {
  2340. display: none;
  2341. }
  2342. }