viewer.css 76 KB

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