viewer.css 74 KB

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