viewer.css 75 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908
  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. display: flex;
  1781. align-items: center;
  1782. padding-inline-start: 1px;
  1783. }
  1784. #toolbarViewerRight {
  1785. padding-inline-end: 1px;
  1786. }
  1787. #toolbarSidebarRight {
  1788. padding-inline-end: 2px;
  1789. }
  1790. .splitToolbarButton {
  1791. margin: 2px;
  1792. display: inline-block;
  1793. }
  1794. .splitToolbarButton > .toolbarButton {
  1795. float: var(--inline-start);
  1796. }
  1797. .toolbarButton,
  1798. .secondaryToolbarButton,
  1799. .dialogButton {
  1800. border: none;
  1801. background: none;
  1802. width: 28px;
  1803. height: 28px;
  1804. outline: none;
  1805. }
  1806. .dialogButton:is(:hover, :focus-visible) {
  1807. background-color: var(--dialog-button-hover-bg-color);
  1808. }
  1809. .dialogButton:is(:hover, :focus-visible) > span {
  1810. color: var(--dialog-button-hover-color);
  1811. }
  1812. .toolbarButton > span {
  1813. display: inline-block;
  1814. width: 0;
  1815. height: 0;
  1816. overflow: hidden;
  1817. }
  1818. :is(.toolbarButton, .secondaryToolbarButton, .dialogButton)[disabled] {
  1819. opacity: 0.5;
  1820. }
  1821. .splitToolbarButton > .toolbarButton:is(:hover, :focus-visible),
  1822. .dropdownToolbarButton:hover {
  1823. background-color: var(--button-hover-color);
  1824. }
  1825. .splitToolbarButton > .toolbarButton {
  1826. position: relative;
  1827. margin: 0;
  1828. }
  1829. #toolbarSidebar .splitToolbarButton > .toolbarButton {
  1830. margin-inline-end: 2px;
  1831. }
  1832. .splitToolbarButtonSeparator {
  1833. float: var(--inline-start);
  1834. margin: 4px 0;
  1835. width: 1px;
  1836. height: 20px;
  1837. background-color: var(--separator-color);
  1838. }
  1839. .toolbarButton,
  1840. .dropdownToolbarButton,
  1841. .secondaryToolbarButton,
  1842. .dialogButton {
  1843. min-width: 16px;
  1844. margin: 2px 1px;
  1845. padding: 2px 6px 0;
  1846. border: none;
  1847. border-radius: 2px;
  1848. color: var(--main-color);
  1849. font-size: 12px;
  1850. line-height: 14px;
  1851. -webkit-user-select: none;
  1852. -moz-user-select: none;
  1853. user-select: none;
  1854. cursor: default;
  1855. box-sizing: border-box;
  1856. }
  1857. .toolbarButton:is(:hover, :focus-visible) {
  1858. background-color: var(--button-hover-color);
  1859. }
  1860. .secondaryToolbarButton:is(:hover, :focus-visible) {
  1861. background-color: var(--doorhanger-hover-bg-color);
  1862. color: var(--doorhanger-hover-color);
  1863. }
  1864. :is(.toolbarButton, .secondaryToolbarButton).toggled,
  1865. .splitToolbarButton.toggled > .toolbarButton.toggled {
  1866. background-color: var(--toggled-btn-bg-color);
  1867. color: var(--toggled-btn-color);
  1868. }
  1869. :is(.toolbarButton, .secondaryToolbarButton).toggled:hover,
  1870. .splitToolbarButton.toggled > .toolbarButton.toggled:hover {
  1871. outline: var(--toggled-hover-btn-outline) !important;
  1872. }
  1873. :is(.toolbarButton, .secondaryToolbarButton).toggled::before {
  1874. background-color: var(--toggled-btn-color);
  1875. }
  1876. :is(.toolbarButton, .secondaryToolbarButton).toggled:hover:active,
  1877. .splitToolbarButton.toggled > .toolbarButton.toggled:hover:active {
  1878. background-color: var(--toggled-hover-active-btn-color);
  1879. }
  1880. .dropdownToolbarButton {
  1881. /* Define this variable here, and not in :root, to avoid reflowing the
  1882. entire viewer when updating the width. */
  1883. --scale-select-width: 140px;
  1884. width: var(--scale-select-width);
  1885. padding: 0;
  1886. background-color: var(--dropdown-btn-bg-color);
  1887. border: var(--dropdown-btn-border);
  1888. }
  1889. .dropdownToolbarButton::after {
  1890. top: 6px;
  1891. inset-inline-end: 6px;
  1892. pointer-events: none;
  1893. -webkit-mask-image: var(--toolbarButton-menuArrow-icon);
  1894. mask-image: var(--toolbarButton-menuArrow-icon);
  1895. }
  1896. .dropdownToolbarButton > select {
  1897. -webkit-appearance: none;
  1898. -moz-appearance: none;
  1899. appearance: none;
  1900. width: inherit;
  1901. height: 28px;
  1902. font-size: 12px;
  1903. color: var(--main-color);
  1904. margin: 0;
  1905. padding: 1px 0 2px;
  1906. padding-inline-start: 6px;
  1907. border: none;
  1908. background-color: var(--dropdown-btn-bg-color);
  1909. }
  1910. .dropdownToolbarButton > select:is(:hover, :focus-visible) {
  1911. background-color: var(--button-hover-color);
  1912. color: var(--toggled-btn-color);
  1913. }
  1914. .dropdownToolbarButton > select > option {
  1915. background: var(--doorhanger-bg-color);
  1916. color: var(--main-color);
  1917. }
  1918. .toolbarButtonSpacer {
  1919. width: 30px;
  1920. display: inline-block;
  1921. height: 1px;
  1922. }
  1923. :is(.toolbarButton, .secondaryToolbarButton, .treeItemToggler)::before,
  1924. .dropdownToolbarButton::after {
  1925. /* All matching images have a size of 16x16
  1926. * All relevant containers have a size of 28x28 */
  1927. position: absolute;
  1928. display: inline-block;
  1929. width: 16px;
  1930. height: 16px;
  1931. content: "";
  1932. background-color: var(--toolbar-icon-bg-color);
  1933. -webkit-mask-size: cover;
  1934. mask-size: cover;
  1935. }
  1936. .dropdownToolbarButton:is(:hover, :focus-visible, :active)::after {
  1937. background-color: var(--toolbar-icon-hover-bg-color);
  1938. }
  1939. .toolbarButton::before {
  1940. opacity: var(--toolbar-icon-opacity);
  1941. top: 6px;
  1942. left: 6px;
  1943. }
  1944. .toolbarButton:is(:hover, :focus-visible)::before,
  1945. .secondaryToolbarButton:is(:hover, :focus-visible)::before {
  1946. background-color: var(--toolbar-icon-hover-bg-color);
  1947. }
  1948. .secondaryToolbarButton::before {
  1949. opacity: var(--doorhanger-icon-opacity);
  1950. top: 5px;
  1951. inset-inline-start: 12px;
  1952. }
  1953. #sidebarToggle::before {
  1954. -webkit-mask-image: var(--toolbarButton-sidebarToggle-icon);
  1955. mask-image: var(--toolbarButton-sidebarToggle-icon);
  1956. transform: scaleX(var(--dir-factor));
  1957. }
  1958. #secondaryToolbarToggle::before {
  1959. -webkit-mask-image: var(--toolbarButton-secondaryToolbarToggle-icon);
  1960. mask-image: var(--toolbarButton-secondaryToolbarToggle-icon);
  1961. transform: scaleX(var(--dir-factor));
  1962. }
  1963. #findPrevious::before {
  1964. -webkit-mask-image: var(--findbarButton-previous-icon);
  1965. mask-image: var(--findbarButton-previous-icon);
  1966. }
  1967. #findNext::before {
  1968. -webkit-mask-image: var(--findbarButton-next-icon);
  1969. mask-image: var(--findbarButton-next-icon);
  1970. }
  1971. #previous::before {
  1972. -webkit-mask-image: var(--toolbarButton-pageUp-icon);
  1973. mask-image: var(--toolbarButton-pageUp-icon);
  1974. }
  1975. #next::before {
  1976. -webkit-mask-image: var(--toolbarButton-pageDown-icon);
  1977. mask-image: var(--toolbarButton-pageDown-icon);
  1978. }
  1979. #zoomOut::before {
  1980. -webkit-mask-image: var(--toolbarButton-zoomOut-icon);
  1981. mask-image: var(--toolbarButton-zoomOut-icon);
  1982. }
  1983. #zoomIn::before {
  1984. -webkit-mask-image: var(--toolbarButton-zoomIn-icon);
  1985. mask-image: var(--toolbarButton-zoomIn-icon);
  1986. }
  1987. #presentationMode::before {
  1988. -webkit-mask-image: var(--toolbarButton-presentationMode-icon);
  1989. mask-image: var(--toolbarButton-presentationMode-icon);
  1990. }
  1991. #editorFreeText::before {
  1992. -webkit-mask-image: var(--toolbarButton-editorFreeText-icon);
  1993. mask-image: var(--toolbarButton-editorFreeText-icon);
  1994. }
  1995. #editorInk::before {
  1996. -webkit-mask-image: var(--toolbarButton-editorInk-icon);
  1997. mask-image: var(--toolbarButton-editorInk-icon);
  1998. }
  1999. #editorStamp::before {
  2000. -webkit-mask-image: var(--toolbarButton-editorStamp-icon);
  2001. mask-image: var(--toolbarButton-editorStamp-icon);
  2002. }
  2003. #print::before,
  2004. #secondaryPrint::before {
  2005. -webkit-mask-image: var(--toolbarButton-print-icon);
  2006. mask-image: var(--toolbarButton-print-icon);
  2007. }
  2008. :is(#openFile, #secondaryOpenFile)::before {
  2009. -webkit-mask-image: var(--toolbarButton-openFile-icon);
  2010. mask-image: var(--toolbarButton-openFile-icon);
  2011. }
  2012. :is(#download, #secondaryDownload)::before {
  2013. -webkit-mask-image: var(--toolbarButton-download-icon);
  2014. mask-image: var(--toolbarButton-download-icon);
  2015. }
  2016. a.secondaryToolbarButton {
  2017. padding-top: 5px;
  2018. text-decoration: none;
  2019. }
  2020. a:is(.toolbarButton, .secondaryToolbarButton)[href="#"] {
  2021. opacity: 0.5;
  2022. pointer-events: none;
  2023. }
  2024. #viewBookmark::before {
  2025. -webkit-mask-image: var(--toolbarButton-bookmark-icon);
  2026. mask-image: var(--toolbarButton-bookmark-icon);
  2027. }
  2028. #viewThumbnail::before {
  2029. -webkit-mask-image: var(--toolbarButton-viewThumbnail-icon);
  2030. mask-image: var(--toolbarButton-viewThumbnail-icon);
  2031. }
  2032. #viewOutline::before {
  2033. -webkit-mask-image: var(--toolbarButton-viewOutline-icon);
  2034. mask-image: var(--toolbarButton-viewOutline-icon);
  2035. transform: scaleX(var(--dir-factor));
  2036. }
  2037. #viewAttachments::before {
  2038. -webkit-mask-image: var(--toolbarButton-viewAttachments-icon);
  2039. mask-image: var(--toolbarButton-viewAttachments-icon);
  2040. }
  2041. #viewLayers::before {
  2042. -webkit-mask-image: var(--toolbarButton-viewLayers-icon);
  2043. mask-image: var(--toolbarButton-viewLayers-icon);
  2044. }
  2045. #currentOutlineItem::before {
  2046. -webkit-mask-image: var(--toolbarButton-currentOutlineItem-icon);
  2047. mask-image: var(--toolbarButton-currentOutlineItem-icon);
  2048. transform: scaleX(var(--dir-factor));
  2049. }
  2050. #viewFind::before {
  2051. -webkit-mask-image: var(--toolbarButton-search-icon);
  2052. mask-image: var(--toolbarButton-search-icon);
  2053. }
  2054. .pdfSidebarNotification::after {
  2055. position: absolute;
  2056. display: inline-block;
  2057. top: 2px;
  2058. inset-inline-end: 2px;
  2059. /* Create a filled circle, with a diameter of 9 pixels, using only CSS: */
  2060. content: "";
  2061. background-color: rgba(112, 219, 85, 1);
  2062. height: 9px;
  2063. width: 9px;
  2064. border-radius: 50%;
  2065. }
  2066. .secondaryToolbarButton {
  2067. position: relative;
  2068. margin: 0;
  2069. padding: 0 0 1px;
  2070. padding-inline-start: 36px;
  2071. height: auto;
  2072. min-height: 26px;
  2073. width: auto;
  2074. min-width: 100%;
  2075. text-align: start;
  2076. white-space: normal;
  2077. border-radius: 0;
  2078. box-sizing: border-box;
  2079. display: inline-block;
  2080. }
  2081. .secondaryToolbarButton > span {
  2082. padding-inline-end: 4px;
  2083. }
  2084. #firstPage::before {
  2085. -webkit-mask-image: var(--secondaryToolbarButton-firstPage-icon);
  2086. mask-image: var(--secondaryToolbarButton-firstPage-icon);
  2087. }
  2088. #lastPage::before {
  2089. -webkit-mask-image: var(--secondaryToolbarButton-lastPage-icon);
  2090. mask-image: var(--secondaryToolbarButton-lastPage-icon);
  2091. }
  2092. #pageRotateCcw::before {
  2093. -webkit-mask-image: var(--secondaryToolbarButton-rotateCcw-icon);
  2094. mask-image: var(--secondaryToolbarButton-rotateCcw-icon);
  2095. }
  2096. #pageRotateCw::before {
  2097. -webkit-mask-image: var(--secondaryToolbarButton-rotateCw-icon);
  2098. mask-image: var(--secondaryToolbarButton-rotateCw-icon);
  2099. }
  2100. #cursorSelectTool::before {
  2101. -webkit-mask-image: var(--secondaryToolbarButton-selectTool-icon);
  2102. mask-image: var(--secondaryToolbarButton-selectTool-icon);
  2103. }
  2104. #cursorHandTool::before {
  2105. -webkit-mask-image: var(--secondaryToolbarButton-handTool-icon);
  2106. mask-image: var(--secondaryToolbarButton-handTool-icon);
  2107. }
  2108. #scrollPage::before {
  2109. -webkit-mask-image: var(--secondaryToolbarButton-scrollPage-icon);
  2110. mask-image: var(--secondaryToolbarButton-scrollPage-icon);
  2111. }
  2112. #scrollVertical::before {
  2113. -webkit-mask-image: var(--secondaryToolbarButton-scrollVertical-icon);
  2114. mask-image: var(--secondaryToolbarButton-scrollVertical-icon);
  2115. }
  2116. #scrollHorizontal::before {
  2117. -webkit-mask-image: var(--secondaryToolbarButton-scrollHorizontal-icon);
  2118. mask-image: var(--secondaryToolbarButton-scrollHorizontal-icon);
  2119. }
  2120. #scrollWrapped::before {
  2121. -webkit-mask-image: var(--secondaryToolbarButton-scrollWrapped-icon);
  2122. mask-image: var(--secondaryToolbarButton-scrollWrapped-icon);
  2123. }
  2124. #spreadNone::before {
  2125. -webkit-mask-image: var(--secondaryToolbarButton-spreadNone-icon);
  2126. mask-image: var(--secondaryToolbarButton-spreadNone-icon);
  2127. }
  2128. #spreadOdd::before {
  2129. -webkit-mask-image: var(--secondaryToolbarButton-spreadOdd-icon);
  2130. mask-image: var(--secondaryToolbarButton-spreadOdd-icon);
  2131. }
  2132. #spreadEven::before {
  2133. -webkit-mask-image: var(--secondaryToolbarButton-spreadEven-icon);
  2134. mask-image: var(--secondaryToolbarButton-spreadEven-icon);
  2135. }
  2136. #documentProperties::before {
  2137. -webkit-mask-image: var(--secondaryToolbarButton-documentProperties-icon);
  2138. mask-image: var(--secondaryToolbarButton-documentProperties-icon);
  2139. }
  2140. .verticalToolbarSeparator {
  2141. display: block;
  2142. margin: 5px 2px;
  2143. width: 1px;
  2144. height: 22px;
  2145. background-color: var(--separator-color);
  2146. }
  2147. .horizontalToolbarSeparator {
  2148. display: block;
  2149. margin: 6px 0;
  2150. height: 1px;
  2151. width: 100%;
  2152. background-color: var(--doorhanger-separator-color);
  2153. }
  2154. .toolbarField {
  2155. padding: 2px 7px;
  2156. /* margin: 3px 0; */
  2157. border-radius: 2px;
  2158. background-color: var(--field-bg-color);
  2159. background-clip: padding-box;
  2160. border: 1px solid var(--field-border-color);
  2161. box-shadow: none;
  2162. color: var(--field-color);
  2163. font-size: 12px;
  2164. line-height: 16px;
  2165. outline: none;
  2166. }
  2167. .toolbarField[type="checkbox"] {
  2168. opacity: 0;
  2169. position: absolute !important;
  2170. left: 0;
  2171. margin: 10px 0 3px;
  2172. margin-inline-start: 7px;
  2173. }
  2174. #pageNumber {
  2175. -moz-appearance: textfield; /* hides the spinner in moz */
  2176. text-align: end;
  2177. width: 40px;
  2178. background-size: 0 0;
  2179. transition-property: none;
  2180. }
  2181. #pageNumber.visiblePageIsLoading {
  2182. background-image: var(--loading-icon);
  2183. background-repeat: no-repeat;
  2184. background-position: calc(50% - 42% * var(--dir-factor));
  2185. background-size: 16px 16px;
  2186. /* Using a delay with background-image doesn't work,
  2187. consequently we use background-size. */
  2188. transition-property: background-size;
  2189. transition-delay: var(--loading-icon-delay);
  2190. }
  2191. #pageNumber::-webkit-inner-spin-button {
  2192. -webkit-appearance: none;
  2193. }
  2194. .toolbarField:focus {
  2195. border-color: #0a84ff;
  2196. }
  2197. .toolbarLabel {
  2198. min-width: 16px;
  2199. padding: 7px;
  2200. margin: 2px;
  2201. border-radius: 2px;
  2202. color: var(--main-color);
  2203. font-size: 12px;
  2204. line-height: 14px;
  2205. text-align: left;
  2206. -webkit-user-select: none;
  2207. -moz-user-select: none;
  2208. user-select: none;
  2209. cursor: default;
  2210. }
  2211. #numPages.toolbarLabel {
  2212. padding-inline-start: 3px;
  2213. }
  2214. #thumbnailView,
  2215. #outlineView,
  2216. #attachmentsView,
  2217. #layersView {
  2218. position: absolute;
  2219. width: calc(100% - 8px);
  2220. inset-block: 0;
  2221. padding: 4px 4px 0;
  2222. overflow: auto;
  2223. -webkit-user-select: none;
  2224. -moz-user-select: none;
  2225. user-select: none;
  2226. }
  2227. #thumbnailView {
  2228. width: calc(100% - 60px);
  2229. padding: 10px 30px 0;
  2230. }
  2231. #thumbnailView > a:is(:active, :focus) {
  2232. outline: 0;
  2233. }
  2234. .thumbnail {
  2235. /* Define these variables here, and not in :root, since the individual
  2236. thumbnails may have different sizes. */
  2237. --thumbnail-width: 0;
  2238. --thumbnail-height: 0;
  2239. float: var(--inline-start);
  2240. width: var(--thumbnail-width);
  2241. height: var(--thumbnail-height);
  2242. margin: 0 10px 5px;
  2243. padding: 1px;
  2244. border: 7px solid transparent;
  2245. border-radius: 2px;
  2246. }
  2247. #thumbnailView > a:last-of-type > .thumbnail {
  2248. margin-bottom: 10px;
  2249. }
  2250. a:focus > .thumbnail,
  2251. .thumbnail:hover {
  2252. border-color: var(--thumbnail-hover-color);
  2253. }
  2254. .thumbnail.selected {
  2255. border-color: var(--thumbnail-selected-color) !important;
  2256. }
  2257. .thumbnailImage {
  2258. width: var(--thumbnail-width);
  2259. height: var(--thumbnail-height);
  2260. opacity: 0.9;
  2261. }
  2262. a:focus > .thumbnail > .thumbnailImage,
  2263. .thumbnail:hover > .thumbnailImage {
  2264. opacity: 0.95;
  2265. }
  2266. .thumbnail.selected > .thumbnailImage {
  2267. opacity: 1 !important;
  2268. }
  2269. .thumbnail:not([data-loaded]) > .thumbnailImage {
  2270. width: calc(var(--thumbnail-width) - 2px);
  2271. height: calc(var(--thumbnail-height) - 2px);
  2272. border: 1px dashed rgba(132, 132, 132, 1);
  2273. }
  2274. .treeWithDeepNesting > .treeItem,
  2275. .treeItem > .treeItems {
  2276. margin-inline-start: 20px;
  2277. }
  2278. .treeItem > a {
  2279. text-decoration: none;
  2280. display: inline-block;
  2281. /* Subtract the right padding (left, in RTL mode) of the container: */
  2282. min-width: calc(100% - 4px);
  2283. height: auto;
  2284. margin-bottom: 1px;
  2285. padding: 2px 0 5px;
  2286. padding-inline-start: 4px;
  2287. border-radius: 2px;
  2288. color: var(--treeitem-color);
  2289. font-size: 13px;
  2290. line-height: 15px;
  2291. -webkit-user-select: none;
  2292. -moz-user-select: none;
  2293. user-select: none;
  2294. white-space: normal;
  2295. cursor: pointer;
  2296. }
  2297. #layersView .treeItem > a * {
  2298. cursor: pointer;
  2299. }
  2300. #layersView .treeItem > a > label {
  2301. padding-inline-start: 4px;
  2302. }
  2303. #layersView .treeItem > a > label > input {
  2304. float: var(--inline-start);
  2305. margin-top: 1px;
  2306. }
  2307. .treeItemToggler {
  2308. position: relative;
  2309. float: var(--inline-start);
  2310. height: 0;
  2311. width: 0;
  2312. color: rgba(255, 255, 255, 0.5);
  2313. }
  2314. .treeItemToggler::before {
  2315. inset-inline-end: 4px;
  2316. -webkit-mask-image: var(--treeitem-expanded-icon);
  2317. mask-image: var(--treeitem-expanded-icon);
  2318. }
  2319. .treeItemToggler.treeItemsHidden::before {
  2320. -webkit-mask-image: var(--treeitem-collapsed-icon);
  2321. mask-image: var(--treeitem-collapsed-icon);
  2322. transform: scaleX(var(--dir-factor));
  2323. }
  2324. .treeItemToggler.treeItemsHidden ~ .treeItems {
  2325. display: none;
  2326. }
  2327. .treeItem.selected > a {
  2328. background-color: var(--treeitem-selected-bg-color);
  2329. color: var(--treeitem-selected-color);
  2330. }
  2331. .treeItemToggler:hover,
  2332. .treeItemToggler:hover + a,
  2333. .treeItemToggler:hover ~ .treeItems,
  2334. .treeItem > a:hover {
  2335. background-color: var(--treeitem-bg-color);
  2336. background-clip: padding-box;
  2337. border-radius: 2px;
  2338. color: var(--treeitem-hover-color);
  2339. }
  2340. .dialogButton {
  2341. width: auto;
  2342. margin: 3px 4px 2px !important;
  2343. padding: 2px 11px;
  2344. color: var(--main-color);
  2345. background-color: var(--dialog-button-bg-color);
  2346. border: var(--dialog-button-border) !important;
  2347. }
  2348. dialog {
  2349. margin: auto;
  2350. padding: 15px;
  2351. border-spacing: 4px;
  2352. color: var(--main-color);
  2353. font: message-box;
  2354. font-size: 12px;
  2355. line-height: 14px;
  2356. background-color: var(--doorhanger-bg-color);
  2357. border: 1px solid rgba(0, 0, 0, 0.5);
  2358. border-radius: 4px;
  2359. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  2360. }
  2361. dialog::backdrop {
  2362. background-color: rgba(0, 0, 0, 0.2);
  2363. }
  2364. dialog > .row {
  2365. display: table-row;
  2366. }
  2367. dialog > .row > * {
  2368. display: table-cell;
  2369. }
  2370. dialog .toolbarField {
  2371. margin: 5px 0;
  2372. }
  2373. dialog .separator {
  2374. display: block;
  2375. margin: 4px 0;
  2376. height: 1px;
  2377. width: 100%;
  2378. background-color: var(--separator-color);
  2379. }
  2380. dialog .buttonRow {
  2381. text-align: center;
  2382. vertical-align: middle;
  2383. }
  2384. dialog :link {
  2385. color: rgba(255, 255, 255, 1);
  2386. }
  2387. #passwordDialog {
  2388. text-align: center;
  2389. }
  2390. #passwordDialog .toolbarField {
  2391. width: 200px;
  2392. }
  2393. #documentPropertiesDialog {
  2394. text-align: left;
  2395. }
  2396. #documentPropertiesDialog .row > * {
  2397. min-width: 100px;
  2398. text-align: start;
  2399. }
  2400. #documentPropertiesDialog .row > span {
  2401. width: 125px;
  2402. word-wrap: break-word;
  2403. }
  2404. #documentPropertiesDialog .row > p {
  2405. max-width: 225px;
  2406. word-wrap: break-word;
  2407. }
  2408. #documentPropertiesDialog .buttonRow {
  2409. margin-top: 10px;
  2410. }
  2411. .grab-to-pan-grab {
  2412. cursor: grab !important;
  2413. }
  2414. .grab-to-pan-grab
  2415. *:not(input):not(textarea):not(button):not(select):not(:link) {
  2416. cursor: inherit !important;
  2417. }
  2418. .grab-to-pan-grab:active,
  2419. .grab-to-pan-grabbing {
  2420. cursor: grabbing !important;
  2421. position: fixed;
  2422. background: rgba(0, 0, 0, 0);
  2423. display: block;
  2424. inset: 0;
  2425. overflow: hidden;
  2426. z-index: 50000; /* should be higher than anything else in PDF.js! */
  2427. }
  2428. @page {
  2429. margin: 0;
  2430. }
  2431. #printContainer {
  2432. display: none;
  2433. }
  2434. @media print {
  2435. body {
  2436. background: rgba(0, 0, 0, 0) none;
  2437. }
  2438. body[data-pdfjsprinting] #outerContainer {
  2439. display: none;
  2440. }
  2441. body[data-pdfjsprinting] #printContainer {
  2442. display: block;
  2443. }
  2444. #printContainer {
  2445. height: 100%;
  2446. }
  2447. /* wrapper around (scaled) print canvas elements */
  2448. #printContainer > .printedPage {
  2449. page-break-after: always;
  2450. page-break-inside: avoid;
  2451. /* The wrapper always cover the whole page. */
  2452. height: 100%;
  2453. width: 100%;
  2454. display: flex;
  2455. flex-direction: column;
  2456. justify-content: center;
  2457. align-items: center;
  2458. }
  2459. #printContainer > .xfaPrintedPage .xfaPage {
  2460. position: absolute;
  2461. }
  2462. #printContainer > .xfaPrintedPage {
  2463. page-break-after: always;
  2464. page-break-inside: avoid;
  2465. width: 100%;
  2466. height: 100%;
  2467. position: relative;
  2468. }
  2469. #printContainer > .printedPage :is(canvas, img) {
  2470. /* The intrinsic canvas / image size will make sure that we fit the page. */
  2471. max-width: 100%;
  2472. max-height: 100%;
  2473. direction: ltr;
  2474. display: block;
  2475. }
  2476. }
  2477. .visibleLargeView,
  2478. .visibleMediumView {
  2479. display: none;
  2480. }
  2481. @media all and (max-width: 900px) {
  2482. #toolbarViewerMiddle {
  2483. display: table;
  2484. margin: auto;
  2485. left: auto;
  2486. position: inherit;
  2487. transform: none;
  2488. }
  2489. }
  2490. @media all and (max-width: 840px) {
  2491. #sidebarContainer {
  2492. background-color: var(--sidebar-narrow-bg-color);
  2493. }
  2494. #outerContainer.sidebarOpen #viewerContainer {
  2495. inset-inline-start: 0 !important;
  2496. }
  2497. }
  2498. @media all and (max-width: 820px) {
  2499. #outerContainer .hiddenLargeView {
  2500. display: none;
  2501. }
  2502. #outerContainer .visibleLargeView {
  2503. display: inherit;
  2504. }
  2505. }
  2506. @media all and (max-width: 750px) {
  2507. #outerContainer .hiddenMediumView {
  2508. display: none;
  2509. }
  2510. #outerContainer .visibleMediumView {
  2511. display: inherit;
  2512. }
  2513. }
  2514. @media all and (max-width: 690px) {
  2515. .hiddenSmallView,
  2516. .hiddenSmallView * {
  2517. display: none;
  2518. }
  2519. .toolbarButtonSpacer {
  2520. width: 0;
  2521. }
  2522. .findbar {
  2523. inset-inline-start: 34px;
  2524. }
  2525. }
  2526. @media all and (max-width: 560px) {
  2527. #scaleSelectContainer {
  2528. display: none;
  2529. }
  2530. }