viewer.css 65 KB

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