viewer.css 63 KB

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