viewer.css 60 KB

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