viewer.css 63 KB

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