viewer.css 76 KB

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