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. 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 span,
  40. .textLayer br {
  41. color: transparent;
  42. position: absolute;
  43. white-space: pre;
  44. cursor: text;
  45. transform-origin: 0% 0%;
  46. }
  47. /* Only necessary in Google Chrome, see issue 14205, and most unfortunately
  48. * the problem doesn't show up in "text" reference tests. */
  49. .textLayer span.markedContent {
  50. top: 0;
  51. height: 0;
  52. }
  53. .textLayer .highlight {
  54. margin: -1px;
  55. padding: 1px;
  56. background-color: var(--highlight-bg-color);
  57. border-radius: 4px;
  58. }
  59. .textLayer .highlight.appended {
  60. position: initial;
  61. }
  62. .textLayer .highlight.begin {
  63. border-radius: 4px 0 0 4px;
  64. }
  65. .textLayer .highlight.end {
  66. border-radius: 0 4px 4px 0;
  67. }
  68. .textLayer .highlight.middle {
  69. border-radius: 0;
  70. }
  71. .textLayer .highlight.selected {
  72. background-color: var(--highlight-selected-bg-color);
  73. }
  74. .textLayer ::-moz-selection {
  75. background: blue;
  76. background: AccentColor;
  77. }
  78. .textLayer ::selection {
  79. background: blue;
  80. background: AccentColor;
  81. }
  82. /* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */
  83. .textLayer br::-moz-selection {
  84. background: transparent;
  85. }
  86. .textLayer br::selection {
  87. background: transparent;
  88. }
  89. .textLayer .endOfContent {
  90. display: block;
  91. position: absolute;
  92. inset: 100% 0 0;
  93. z-index: -1;
  94. cursor: default;
  95. -webkit-user-select: none;
  96. -moz-user-select: none;
  97. user-select: none;
  98. }
  99. .textLayer .endOfContent.active {
  100. top: 0;
  101. }
  102. :root {
  103. --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>");
  104. --input-focus-border-color: Highlight;
  105. --input-focus-outline: 1px solid Canvas;
  106. --input-unfocused-border-color: transparent;
  107. --input-disabled-border-color: transparent;
  108. --input-hover-border-color: black;
  109. --link-outline: none;
  110. }
  111. @media screen and (forced-colors: active) {
  112. :root {
  113. --input-focus-border-color: CanvasText;
  114. --input-unfocused-border-color: ActiveText;
  115. --input-disabled-border-color: GrayText;
  116. --input-hover-border-color: Highlight;
  117. --link-outline: 1.5px solid LinkText;
  118. }
  119. .annotationLayer .textWidgetAnnotation input:required,
  120. .annotationLayer .textWidgetAnnotation textarea:required,
  121. .annotationLayer .choiceWidgetAnnotation select:required,
  122. .annotationLayer .buttonWidgetAnnotation.checkBox input:required,
  123. .annotationLayer .buttonWidgetAnnotation.radioButton input:required {
  124. outline: 1.5px solid selectedItem;
  125. }
  126. .annotationLayer .linkAnnotation:hover {
  127. -webkit-backdrop-filter: invert(100%);
  128. backdrop-filter: invert(100%);
  129. }
  130. }
  131. .annotationLayer {
  132. position: absolute;
  133. top: 0;
  134. left: 0;
  135. pointer-events: none;
  136. transform-origin: 0 0;
  137. z-index: 3;
  138. }
  139. .annotationLayer[data-main-rotation="90"] .norotate {
  140. transform: rotate(270deg) translateX(-100%);
  141. }
  142. .annotationLayer[data-main-rotation="180"] .norotate {
  143. transform: rotate(180deg) translate(-100%, -100%);
  144. }
  145. .annotationLayer[data-main-rotation="270"] .norotate {
  146. transform: rotate(90deg) translateY(-100%);
  147. }
  148. .annotationLayer canvas {
  149. position: absolute;
  150. width: 100%;
  151. height: 100%;
  152. }
  153. .annotationLayer section {
  154. position: absolute;
  155. text-align: initial;
  156. pointer-events: auto;
  157. box-sizing: border-box;
  158. transform-origin: 0 0;
  159. }
  160. .annotationLayer .linkAnnotation {
  161. outline: var(--link-outline);
  162. }
  163. .annotationLayer .linkAnnotation > a,
  164. .annotationLayer .buttonWidgetAnnotation.pushButton > a {
  165. position: absolute;
  166. font-size: 1em;
  167. top: 0;
  168. left: 0;
  169. width: 100%;
  170. height: 100%;
  171. }
  172. .annotationLayer .linkAnnotation > a:hover,
  173. .annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
  174. opacity: 0.2;
  175. background: rgba(255, 255, 0, 1);
  176. box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
  177. }
  178. .annotationLayer .textAnnotation img {
  179. position: absolute;
  180. cursor: pointer;
  181. width: 100%;
  182. height: 100%;
  183. top: 0;
  184. left: 0;
  185. }
  186. .annotationLayer .textWidgetAnnotation input,
  187. .annotationLayer .textWidgetAnnotation textarea,
  188. .annotationLayer .choiceWidgetAnnotation select,
  189. .annotationLayer .buttonWidgetAnnotation.checkBox input,
  190. .annotationLayer .buttonWidgetAnnotation.radioButton input {
  191. background-image: var(--annotation-unfocused-field-background);
  192. border: 2px solid var(--input-unfocused-border-color);
  193. box-sizing: border-box;
  194. font: calc(9px * var(--scale-factor)) sans-serif;
  195. height: 100%;
  196. margin: 0;
  197. vertical-align: top;
  198. width: 100%;
  199. }
  200. .annotationLayer .textWidgetAnnotation input:required,
  201. .annotationLayer .textWidgetAnnotation textarea:required,
  202. .annotationLayer .choiceWidgetAnnotation select:required,
  203. .annotationLayer .buttonWidgetAnnotation.checkBox input:required,
  204. .annotationLayer .buttonWidgetAnnotation.radioButton input:required {
  205. outline: 1.5px solid red;
  206. }
  207. .annotationLayer .choiceWidgetAnnotation select option {
  208. padding: 0;
  209. }
  210. .annotationLayer .buttonWidgetAnnotation.radioButton input {
  211. border-radius: 50%;
  212. }
  213. .annotationLayer .textWidgetAnnotation textarea {
  214. resize: none;
  215. }
  216. .annotationLayer .textWidgetAnnotation input[disabled],
  217. .annotationLayer .textWidgetAnnotation textarea[disabled],
  218. .annotationLayer .choiceWidgetAnnotation select[disabled],
  219. .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
  220. .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
  221. background: none;
  222. border: 2px solid var(--input-disabled-border-color);
  223. cursor: not-allowed;
  224. }
  225. .annotationLayer .textWidgetAnnotation input:hover,
  226. .annotationLayer .textWidgetAnnotation textarea:hover,
  227. .annotationLayer .choiceWidgetAnnotation select:hover,
  228. .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
  229. .annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
  230. border: 2px solid var(--input-hover-border-color);
  231. }
  232. .annotationLayer .textWidgetAnnotation input:hover,
  233. .annotationLayer .textWidgetAnnotation textarea:hover,
  234. .annotationLayer .choiceWidgetAnnotation select:hover,
  235. .annotationLayer .buttonWidgetAnnotation.checkBox input:hover {
  236. border-radius: 2px;
  237. }
  238. .annotationLayer .textWidgetAnnotation input:focus,
  239. .annotationLayer .textWidgetAnnotation textarea:focus,
  240. .annotationLayer .choiceWidgetAnnotation select:focus {
  241. background: none;
  242. border: 2px solid var(--input-focus-border-color);
  243. border-radius: 2px;
  244. outline: var(--input-focus-outline);
  245. }
  246. .annotationLayer .buttonWidgetAnnotation.checkBox :focus,
  247. .annotationLayer .buttonWidgetAnnotation.radioButton :focus {
  248. background-image: none;
  249. background-color: transparent;
  250. }
  251. .annotationLayer .buttonWidgetAnnotation.checkBox :focus {
  252. border: 2px solid var(--input-focus-border-color);
  253. border-radius: 2px;
  254. outline: var(--input-focus-outline);
  255. }
  256. .annotationLayer .buttonWidgetAnnotation.radioButton :focus {
  257. border: 2px solid var(--input-focus-border-color);
  258. outline: var(--input-focus-outline);
  259. }
  260. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
  261. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
  262. .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
  263. background-color: CanvasText;
  264. content: "";
  265. display: block;
  266. position: absolute;
  267. }
  268. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
  269. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
  270. height: 80%;
  271. left: 45%;
  272. width: 1px;
  273. }
  274. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
  275. transform: rotate(45deg);
  276. }
  277. .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
  278. transform: rotate(-45deg);
  279. }
  280. .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
  281. border-radius: 50%;
  282. height: 50%;
  283. left: 30%;
  284. top: 20%;
  285. width: 50%;
  286. }
  287. .annotationLayer .textWidgetAnnotation input.comb {
  288. font-family: monospace;
  289. padding-left: 2px;
  290. padding-right: 0;
  291. }
  292. .annotationLayer .textWidgetAnnotation input.comb:focus {
  293. /*
  294. * Letter spacing is placed on the right side of each character. Hence, the
  295. * letter spacing of the last character may be placed outside the visible
  296. * area, causing horizontal scrolling. We avoid this by extending the width
  297. * when the element has focus and revert this when it loses focus.
  298. */
  299. width: 103%;
  300. }
  301. .annotationLayer .buttonWidgetAnnotation.checkBox input,
  302. .annotationLayer .buttonWidgetAnnotation.radioButton input {
  303. -webkit-appearance: none;
  304. -moz-appearance: none;
  305. appearance: none;
  306. }
  307. .annotationLayer .popupTriggerArea {
  308. height: 100%;
  309. width: 100%;
  310. }
  311. .annotationLayer .fileAttachmentAnnotation .popupTriggerArea {
  312. position: absolute;
  313. }
  314. .annotationLayer .popupWrapper {
  315. position: absolute;
  316. font-size: calc(9px * var(--scale-factor));
  317. width: 100%;
  318. min-width: calc(180px * var(--scale-factor));
  319. pointer-events: none;
  320. }
  321. .annotationLayer .popup {
  322. position: absolute;
  323. max-width: calc(180px * var(--scale-factor));
  324. background-color: rgba(255, 255, 153, 1);
  325. box-shadow: 0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor))
  326. rgba(136, 136, 136, 1);
  327. border-radius: calc(2px * var(--scale-factor));
  328. padding: calc(6px * var(--scale-factor));
  329. margin-left: calc(5px * var(--scale-factor));
  330. cursor: pointer;
  331. font: message-box;
  332. white-space: normal;
  333. word-wrap: break-word;
  334. pointer-events: auto;
  335. }
  336. .annotationLayer .popup > * {
  337. font-size: calc(9px * var(--scale-factor));
  338. }
  339. .annotationLayer .popup h1 {
  340. display: inline-block;
  341. }
  342. .annotationLayer .popupDate {
  343. display: inline-block;
  344. margin-left: calc(5px * var(--scale-factor));
  345. }
  346. .annotationLayer .popupContent {
  347. border-top: 1px solid rgba(51, 51, 51, 1);
  348. margin-top: calc(2px * var(--scale-factor));
  349. padding-top: calc(2px * var(--scale-factor));
  350. }
  351. .annotationLayer .richText > * {
  352. white-space: pre-wrap;
  353. font-size: calc(9px * var(--scale-factor));
  354. }
  355. .annotationLayer .highlightAnnotation,
  356. .annotationLayer .underlineAnnotation,
  357. .annotationLayer .squigglyAnnotation,
  358. .annotationLayer .strikeoutAnnotation,
  359. .annotationLayer .freeTextAnnotation,
  360. .annotationLayer .lineAnnotation svg line,
  361. .annotationLayer .squareAnnotation svg rect,
  362. .annotationLayer .circleAnnotation svg ellipse,
  363. .annotationLayer .polylineAnnotation svg polyline,
  364. .annotationLayer .polygonAnnotation svg polygon,
  365. .annotationLayer .caretAnnotation,
  366. .annotationLayer .inkAnnotation svg polyline,
  367. .annotationLayer .stampAnnotation,
  368. .annotationLayer .fileAttachmentAnnotation {
  369. cursor: pointer;
  370. }
  371. .annotationLayer section svg {
  372. position: absolute;
  373. width: 100%;
  374. height: 100%;
  375. top: 0;
  376. left: 0;
  377. }
  378. .annotationLayer .annotationTextContent {
  379. position: absolute;
  380. width: 100%;
  381. height: 100%;
  382. opacity: 0;
  383. color: transparent;
  384. -webkit-user-select: none;
  385. -moz-user-select: none;
  386. user-select: none;
  387. pointer-events: none;
  388. }
  389. .annotationLayer .annotationTextContent span {
  390. width: 100%;
  391. display: inline-block;
  392. }
  393. :root {
  394. --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>");
  395. --xfa-focus-outline: auto;
  396. }
  397. @media screen and (forced-colors: active) {
  398. :root {
  399. --xfa-focus-outline: 2px solid CanvasText;
  400. }
  401. .xfaLayer *:required {
  402. outline: 1.5px solid selectedItem;
  403. }
  404. }
  405. .xfaLayer {
  406. background-color: transparent;
  407. }
  408. .xfaLayer .highlight {
  409. margin: -1px;
  410. padding: 1px;
  411. background-color: rgba(239, 203, 237, 1);
  412. border-radius: 4px;
  413. }
  414. .xfaLayer .highlight.appended {
  415. position: initial;
  416. }
  417. .xfaLayer .highlight.begin {
  418. border-radius: 4px 0 0 4px;
  419. }
  420. .xfaLayer .highlight.end {
  421. border-radius: 0 4px 4px 0;
  422. }
  423. .xfaLayer .highlight.middle {
  424. border-radius: 0;
  425. }
  426. .xfaLayer .highlight.selected {
  427. background-color: rgba(203, 223, 203, 1);
  428. }
  429. .xfaPage {
  430. overflow: hidden;
  431. position: relative;
  432. }
  433. .xfaContentarea {
  434. position: absolute;
  435. }
  436. .xfaPrintOnly {
  437. display: none;
  438. }
  439. .xfaLayer {
  440. position: absolute;
  441. text-align: initial;
  442. top: 0;
  443. left: 0;
  444. transform-origin: 0 0;
  445. line-height: 1.2;
  446. }
  447. .xfaLayer * {
  448. color: inherit;
  449. font: inherit;
  450. font-style: inherit;
  451. font-weight: inherit;
  452. font-kerning: inherit;
  453. letter-spacing: -0.01px;
  454. text-align: inherit;
  455. text-decoration: inherit;
  456. box-sizing: border-box;
  457. background-color: transparent;
  458. padding: 0;
  459. margin: 0;
  460. pointer-events: auto;
  461. line-height: inherit;
  462. }
  463. .xfaLayer *:required {
  464. outline: 1.5px solid red;
  465. }
  466. .xfaLayer div {
  467. pointer-events: none;
  468. }
  469. .xfaLayer svg {
  470. pointer-events: none;
  471. }
  472. .xfaLayer svg * {
  473. pointer-events: none;
  474. }
  475. .xfaLayer a {
  476. color: blue;
  477. }
  478. .xfaRich li {
  479. margin-left: 3em;
  480. }
  481. .xfaFont {
  482. color: black;
  483. font-weight: normal;
  484. font-kerning: none;
  485. font-size: 10px;
  486. font-style: normal;
  487. letter-spacing: 0;
  488. text-decoration: none;
  489. vertical-align: 0;
  490. }
  491. .xfaCaption {
  492. overflow: hidden;
  493. flex: 0 0 auto;
  494. }
  495. .xfaCaptionForCheckButton {
  496. overflow: hidden;
  497. flex: 1 1 auto;
  498. }
  499. .xfaLabel {
  500. height: 100%;
  501. width: 100%;
  502. }
  503. .xfaLeft {
  504. display: flex;
  505. flex-direction: row;
  506. align-items: center;
  507. }
  508. .xfaRight {
  509. display: flex;
  510. flex-direction: row-reverse;
  511. align-items: center;
  512. }
  513. .xfaLeft > .xfaCaption,
  514. .xfaLeft > .xfaCaptionForCheckButton,
  515. .xfaRight > .xfaCaption,
  516. .xfaRight > .xfaCaptionForCheckButton {
  517. max-height: 100%;
  518. }
  519. .xfaTop {
  520. display: flex;
  521. flex-direction: column;
  522. align-items: flex-start;
  523. }
  524. .xfaBottom {
  525. display: flex;
  526. flex-direction: column-reverse;
  527. align-items: flex-start;
  528. }
  529. .xfaTop > .xfaCaption,
  530. .xfaTop > .xfaCaptionForCheckButton,
  531. .xfaBottom > .xfaCaption,
  532. .xfaBottom > .xfaCaptionForCheckButton {
  533. width: 100%;
  534. }
  535. .xfaBorder {
  536. background-color: transparent;
  537. position: absolute;
  538. pointer-events: none;
  539. }
  540. .xfaWrapped {
  541. width: 100%;
  542. height: 100%;
  543. }
  544. .xfaTextfield:focus,
  545. .xfaSelect:focus {
  546. background-image: none;
  547. background-color: transparent;
  548. outline: var(--xfa-focus-outline);
  549. outline-offset: -1px;
  550. }
  551. .xfaCheckbox:focus,
  552. .xfaRadio:focus {
  553. outline: var(--xfa-focus-outline);
  554. }
  555. .xfaTextfield,
  556. .xfaSelect {
  557. height: 100%;
  558. width: 100%;
  559. flex: 1 1 auto;
  560. border: none;
  561. resize: none;
  562. background-image: var(--xfa-unfocused-field-background);
  563. }
  564. .xfaSelect {
  565. padding-inline: 2px;
  566. }
  567. .xfaTop > .xfaTextfield,
  568. .xfaTop > .xfaSelect,
  569. .xfaBottom > .xfaTextfield,
  570. .xfaBottom > .xfaSelect {
  571. flex: 0 1 auto;
  572. }
  573. .xfaButton {
  574. cursor: pointer;
  575. width: 100%;
  576. height: 100%;
  577. border: none;
  578. text-align: center;
  579. }
  580. .xfaLink {
  581. width: 100%;
  582. height: 100%;
  583. position: absolute;
  584. top: 0;
  585. left: 0;
  586. }
  587. .xfaCheckbox,
  588. .xfaRadio {
  589. width: 100%;
  590. height: 100%;
  591. flex: 0 0 auto;
  592. border: none;
  593. }
  594. .xfaRich {
  595. white-space: pre-wrap;
  596. width: 100%;
  597. height: 100%;
  598. }
  599. .xfaImage {
  600. -o-object-position: left top;
  601. object-position: left top;
  602. -o-object-fit: contain;
  603. object-fit: contain;
  604. width: 100%;
  605. height: 100%;
  606. }
  607. .xfaLrTb,
  608. .xfaRlTb,
  609. .xfaTb {
  610. display: flex;
  611. flex-direction: column;
  612. align-items: stretch;
  613. }
  614. .xfaLr {
  615. display: flex;
  616. flex-direction: row;
  617. align-items: stretch;
  618. }
  619. .xfaRl {
  620. display: flex;
  621. flex-direction: row-reverse;
  622. align-items: stretch;
  623. }
  624. .xfaTb > div {
  625. justify-content: left;
  626. }
  627. .xfaPosition {
  628. position: relative;
  629. }
  630. .xfaArea {
  631. position: relative;
  632. }
  633. .xfaValignMiddle {
  634. display: flex;
  635. align-items: center;
  636. }
  637. .xfaTable {
  638. display: flex;
  639. flex-direction: column;
  640. align-items: stretch;
  641. }
  642. .xfaTable .xfaRow {
  643. display: flex;
  644. flex-direction: row;
  645. align-items: stretch;
  646. }
  647. .xfaTable .xfaRlRow {
  648. display: flex;
  649. flex-direction: row-reverse;
  650. align-items: stretch;
  651. flex: 1;
  652. }
  653. .xfaTable .xfaRlRow > div {
  654. flex: 1;
  655. }
  656. .xfaNonInteractive input,
  657. .xfaNonInteractive textarea,
  658. .xfaDisabled input,
  659. .xfaDisabled textarea,
  660. .xfaReadOnly input,
  661. .xfaReadOnly textarea {
  662. background: initial;
  663. }
  664. @media print {
  665. .xfaTextfield,
  666. .xfaSelect {
  667. background: transparent;
  668. }
  669. .xfaSelect {
  670. -webkit-appearance: none;
  671. -moz-appearance: none;
  672. appearance: none;
  673. text-indent: 1px;
  674. text-overflow: "";
  675. }
  676. }
  677. :root {
  678. --focus-outline: solid 2px blue;
  679. --hover-outline: dashed 2px blue;
  680. --freetext-line-height: 1.35;
  681. --freetext-padding: 2px;
  682. --editorFreeText-editing-cursor: text;
  683. --editorInk-editing-cursor: url(images/cursor-editorInk.svg) 0 16, pointer;
  684. }
  685. @media (-webkit-min-device-pixel-ratio: 1.1), (min-resolution: 1.1dppx) {
  686. :root {
  687. --editorFreeText-editing-cursor: url(images/cursor-editorFreeText.svg) 0 16,
  688. text;
  689. }
  690. }
  691. @media screen and (forced-colors: active) {
  692. :root {
  693. --focus-outline: solid 3px ButtonText;
  694. --hover-outline: dashed 3px ButtonText;
  695. }
  696. }
  697. [data-editor-rotation="90"] {
  698. transform: rotate(90deg);
  699. }
  700. [data-editor-rotation="180"] {
  701. transform: rotate(180deg);
  702. }
  703. [data-editor-rotation="270"] {
  704. transform: rotate(270deg);
  705. }
  706. .annotationEditorLayer {
  707. background: transparent;
  708. position: absolute;
  709. top: 0;
  710. left: 0;
  711. font-size: calc(100px * var(--scale-factor));
  712. transform-origin: 0 0;
  713. cursor: auto;
  714. z-index: 4;
  715. }
  716. .annotationEditorLayer.freeTextEditing {
  717. cursor: var(--editorFreeText-editing-cursor);
  718. }
  719. .annotationEditorLayer.inkEditing {
  720. cursor: var(--editorInk-editing-cursor);
  721. }
  722. .annotationEditorLayer :is(.freeTextEditor, .inkEditor)[draggable="true"] {
  723. cursor: move;
  724. }
  725. .annotationEditorLayer .selectedEditor {
  726. outline: var(--focus-outline);
  727. resize: none;
  728. }
  729. .annotationEditorLayer .freeTextEditor {
  730. position: absolute;
  731. background: transparent;
  732. border-radius: 3px;
  733. padding: calc(var(--freetext-padding) * var(--scale-factor));
  734. resize: none;
  735. width: auto;
  736. height: auto;
  737. z-index: 1;
  738. transform-origin: 0 0;
  739. touch-action: none;
  740. cursor: auto;
  741. }
  742. .annotationEditorLayer .freeTextEditor .internal {
  743. background: transparent;
  744. border: none;
  745. top: 0;
  746. left: 0;
  747. overflow: visible;
  748. white-space: nowrap;
  749. resize: none;
  750. font: 10px sans-serif;
  751. line-height: var(--freetext-line-height);
  752. }
  753. .annotationEditorLayer .freeTextEditor .overlay {
  754. position: absolute;
  755. display: none;
  756. background: transparent;
  757. top: 0;
  758. left: 0;
  759. width: 100%;
  760. height: 100%;
  761. }
  762. .annotationEditorLayer .freeTextEditor .overlay.enabled {
  763. display: block;
  764. }
  765. .annotationEditorLayer .freeTextEditor .internal:empty::before {
  766. content: attr(default-content);
  767. color: gray;
  768. }
  769. .annotationEditorLayer .freeTextEditor .internal:focus {
  770. outline: none;
  771. }
  772. .annotationEditorLayer .inkEditor.disabled {
  773. resize: none;
  774. }
  775. .annotationEditorLayer .inkEditor.disabled.selectedEditor {
  776. resize: horizontal;
  777. }
  778. .annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),
  779. .annotationEditorLayer .inkEditor:hover:not(.selectedEditor) {
  780. outline: var(--hover-outline);
  781. }
  782. .annotationEditorLayer .inkEditor {
  783. position: absolute;
  784. background: transparent;
  785. border-radius: 3px;
  786. overflow: auto;
  787. width: 100%;
  788. height: 100%;
  789. z-index: 1;
  790. transform-origin: 0 0;
  791. cursor: auto;
  792. }
  793. .annotationEditorLayer .inkEditor.editing {
  794. resize: none;
  795. cursor: inherit;
  796. }
  797. .annotationEditorLayer .inkEditor .inkEditorCanvas {
  798. position: absolute;
  799. top: 0;
  800. left: 0;
  801. width: 100%;
  802. height: 100%;
  803. touch-action: none;
  804. }
  805. :root {
  806. --viewer-container-height: 0;
  807. --pdfViewer-padding-bottom: 0;
  808. --page-margin: 1px auto -8px;
  809. --page-border: 9px solid transparent;
  810. --spreadHorizontalWrapped-margin-LR: -3.5px;
  811. --loading-icon-delay: 400ms;
  812. }
  813. @media screen and (forced-colors: active) {
  814. :root {
  815. --pdfViewer-padding-bottom: 9px;
  816. --page-margin: 8px auto -1px;
  817. --page-border: 1px solid CanvasText;
  818. --spreadHorizontalWrapped-margin-LR: 3.5px;
  819. }
  820. }
  821. [data-main-rotation="90"] {
  822. transform: rotate(90deg) translateY(-100%);
  823. }
  824. [data-main-rotation="180"] {
  825. transform: rotate(180deg) translate(-100%, -100%);
  826. }
  827. [data-main-rotation="270"] {
  828. transform: rotate(270deg) translateX(-100%);
  829. }
  830. .pdfViewer {
  831. /* Define this variable here and not in :root to avoid to reflow all the UI
  832. when scaling (see #15929). */
  833. --scale-factor: 1;
  834. padding-bottom: var(--pdfViewer-padding-bottom);
  835. }
  836. .pdfViewer .canvasWrapper {
  837. overflow: hidden;
  838. width: 100%;
  839. height: 100%;
  840. z-index: 1;
  841. }
  842. .pdfViewer .page {
  843. direction: ltr;
  844. width: 816px;
  845. height: 1056px;
  846. margin: var(--page-margin);
  847. position: relative;
  848. overflow: visible;
  849. border: var(--page-border);
  850. background-clip: content-box;
  851. background-color: rgba(255, 255, 255, 1);
  852. }
  853. .pdfViewer .dummyPage {
  854. position: relative;
  855. width: 0;
  856. height: var(--viewer-container-height);
  857. }
  858. .pdfViewer.removePageBorders .page {
  859. margin: 0 auto 10px;
  860. border: none;
  861. }
  862. .pdfViewer.scrollHorizontal,
  863. .pdfViewer.scrollWrapped,
  864. .spread {
  865. margin-inline: 3.5px;
  866. text-align: center;
  867. }
  868. .pdfViewer.scrollHorizontal,
  869. .spread {
  870. white-space: nowrap;
  871. }
  872. .pdfViewer.removePageBorders,
  873. .pdfViewer.scrollHorizontal .spread,
  874. .pdfViewer.scrollWrapped .spread {
  875. margin-inline: 0;
  876. }
  877. .spread .page,
  878. .spread .dummyPage,
  879. .pdfViewer.scrollHorizontal .page,
  880. .pdfViewer.scrollWrapped .page,
  881. .pdfViewer.scrollHorizontal .spread,
  882. .pdfViewer.scrollWrapped .spread {
  883. display: inline-block;
  884. vertical-align: middle;
  885. }
  886. .spread .page,
  887. .pdfViewer.scrollHorizontal .page,
  888. .pdfViewer.scrollWrapped .page {
  889. margin-inline: var(--spreadHorizontalWrapped-margin-LR);
  890. }
  891. .pdfViewer.removePageBorders .spread .page,
  892. .pdfViewer.removePageBorders.scrollHorizontal .page,
  893. .pdfViewer.removePageBorders.scrollWrapped .page {
  894. margin-inline: 5px;
  895. }
  896. .pdfViewer .page canvas {
  897. margin: 0;
  898. display: block;
  899. }
  900. .pdfViewer .page canvas .structTree {
  901. contain: strict;
  902. }
  903. .pdfViewer .page canvas[hidden] {
  904. display: none;
  905. }
  906. .pdfViewer .page canvas[zooming] {
  907. width: 100%;
  908. height: 100%;
  909. }
  910. .pdfViewer .page.loadingIcon:after {
  911. position: absolute;
  912. top: 0;
  913. left: 0;
  914. content: "";
  915. width: 100%;
  916. height: 100%;
  917. background: url("images/loading-icon.gif") center no-repeat;
  918. display: none;
  919. /* Using a delay with background-image doesn't work,
  920. consequently we use the display. */
  921. transition-property: display;
  922. transition-delay: var(--loading-icon-delay);
  923. z-index: 5;
  924. contain: strict;
  925. }
  926. .pdfViewer .page.loading:after {
  927. display: block;
  928. }
  929. .pdfViewer .page:not(.loading):after {
  930. transition-property: none;
  931. display: none;
  932. }
  933. .pdfViewer.enablePermissions .textLayer span {
  934. -webkit-user-select: none !important;
  935. -moz-user-select: none !important;
  936. user-select: none !important;
  937. cursor: not-allowed;
  938. }
  939. .pdfPresentationMode .pdfViewer {
  940. padding-bottom: 0;
  941. }
  942. .pdfPresentationMode .spread {
  943. margin: 0;
  944. }
  945. .pdfPresentationMode .pdfViewer .page {
  946. margin: 0 auto;
  947. border: 2px solid transparent;
  948. }
  949. :root {
  950. --dir-factor: 1;
  951. --inline-start: left;
  952. --inline-end: right;
  953. --sidebar-width: 200px;
  954. --sidebar-transition-duration: 200ms;
  955. --sidebar-transition-timing-function: ease;
  956. --toolbar-icon-opacity: 0.7;
  957. --doorhanger-icon-opacity: 0.9;
  958. --main-color: rgba(12, 12, 13, 1);
  959. --body-bg-color: rgba(212, 212, 215, 1);
  960. --progressBar-color: rgba(10, 132, 255, 1);
  961. --progressBar-bg-color: rgba(221, 221, 222, 1);
  962. --progressBar-blend-color: rgba(116, 177, 239, 1);
  963. --scrollbar-color: auto;
  964. --scrollbar-bg-color: auto;
  965. --toolbar-icon-bg-color: rgba(0, 0, 0, 1);
  966. --toolbar-icon-hover-bg-color: rgba(0, 0, 0, 1);
  967. --sidebar-narrow-bg-color: rgba(212, 212, 215, 0.9);
  968. --sidebar-toolbar-bg-color: rgba(245, 246, 247, 1);
  969. --toolbar-bg-color: rgba(249, 249, 250, 1);
  970. --toolbar-border-color: rgba(184, 184, 184, 1);
  971. --toolbar-box-shadow: 0 1px 0 var(--toolbar-border-color);
  972. --toolbar-border-bottom: none;
  973. --toolbarSidebar-box-shadow: inset calc(-1px * var(--dir-factor)) 0 0
  974. rgba(0, 0, 0, 0.25),
  975. 0 1px 0 rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
  976. --toolbarSidebar-border-bottom: none;
  977. --button-hover-color: rgba(221, 222, 223, 1);
  978. --toggled-btn-color: rgba(0, 0, 0, 1);
  979. --toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
  980. --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
  981. --dropdown-btn-bg-color: rgba(215, 215, 219, 1);
  982. --dropdown-btn-border: none;
  983. --separator-color: rgba(0, 0, 0, 0.3);
  984. --field-color: rgba(6, 6, 6, 1);
  985. --field-bg-color: rgba(255, 255, 255, 1);
  986. --field-border-color: rgba(187, 187, 188, 1);
  987. --treeitem-color: rgba(0, 0, 0, 0.8);
  988. --treeitem-hover-color: rgba(0, 0, 0, 0.9);
  989. --treeitem-selected-color: rgba(0, 0, 0, 0.9);
  990. --treeitem-selected-bg-color: rgba(0, 0, 0, 0.25);
  991. --sidebaritem-bg-color: rgba(0, 0, 0, 0.15);
  992. --doorhanger-bg-color: rgba(255, 255, 255, 1);
  993. --doorhanger-border-color: rgba(12, 12, 13, 0.2);
  994. --doorhanger-hover-color: rgba(12, 12, 13, 1);
  995. --doorhanger-hover-bg-color: rgba(237, 237, 237, 1);
  996. --doorhanger-separator-color: rgba(222, 222, 222, 1);
  997. --dialog-button-border: none;
  998. --dialog-button-bg-color: rgba(12, 12, 13, 0.1);
  999. --dialog-button-hover-bg-color: rgba(12, 12, 13, 0.3);
  1000. --loading-icon: url(images/loading.svg);
  1001. --treeitem-expanded-icon: url(images/treeitem-expanded.svg);
  1002. --treeitem-collapsed-icon: url(images/treeitem-collapsed.svg);
  1003. --toolbarButton-editorFreeText-icon: url(images/toolbarButton-editorFreeText.svg);
  1004. --toolbarButton-editorInk-icon: url(images/toolbarButton-editorInk.svg);
  1005. --toolbarButton-menuArrow-icon: url(images/toolbarButton-menuArrow.svg);
  1006. --toolbarButton-sidebarToggle-icon: url(images/toolbarButton-sidebarToggle.svg);
  1007. --toolbarButton-secondaryToolbarToggle-icon: url(images/toolbarButton-secondaryToolbarToggle.svg);
  1008. --toolbarButton-pageUp-icon: url(images/toolbarButton-pageUp.svg);
  1009. --toolbarButton-pageDown-icon: url(images/toolbarButton-pageDown.svg);
  1010. --toolbarButton-zoomOut-icon: url(images/toolbarButton-zoomOut.svg);
  1011. --toolbarButton-zoomIn-icon: url(images/toolbarButton-zoomIn.svg);
  1012. --toolbarButton-presentationMode-icon: url(images/toolbarButton-presentationMode.svg);
  1013. --toolbarButton-print-icon: url(images/toolbarButton-print.svg);
  1014. --toolbarButton-openFile-icon: url(images/toolbarButton-openFile.svg);
  1015. --toolbarButton-download-icon: url(images/toolbarButton-download.svg);
  1016. --toolbarButton-bookmark-icon: url(images/toolbarButton-bookmark.svg);
  1017. --toolbarButton-viewThumbnail-icon: url(images/toolbarButton-viewThumbnail.svg);
  1018. --toolbarButton-viewOutline-icon: url(images/toolbarButton-viewOutline.svg);
  1019. --toolbarButton-viewAttachments-icon: url(images/toolbarButton-viewAttachments.svg);
  1020. --toolbarButton-viewLayers-icon: url(images/toolbarButton-viewLayers.svg);
  1021. --toolbarButton-currentOutlineItem-icon: url(images/toolbarButton-currentOutlineItem.svg);
  1022. --toolbarButton-search-icon: url(images/toolbarButton-search.svg);
  1023. --findbarButton-previous-icon: url(images/findbarButton-previous.svg);
  1024. --findbarButton-next-icon: url(images/findbarButton-next.svg);
  1025. --secondaryToolbarButton-firstPage-icon: url(images/secondaryToolbarButton-firstPage.svg);
  1026. --secondaryToolbarButton-lastPage-icon: url(images/secondaryToolbarButton-lastPage.svg);
  1027. --secondaryToolbarButton-rotateCcw-icon: url(images/secondaryToolbarButton-rotateCcw.svg);
  1028. --secondaryToolbarButton-rotateCw-icon: url(images/secondaryToolbarButton-rotateCw.svg);
  1029. --secondaryToolbarButton-selectTool-icon: url(images/secondaryToolbarButton-selectTool.svg);
  1030. --secondaryToolbarButton-handTool-icon: url(images/secondaryToolbarButton-handTool.svg);
  1031. --secondaryToolbarButton-scrollPage-icon: url(images/secondaryToolbarButton-scrollPage.svg);
  1032. --secondaryToolbarButton-scrollVertical-icon: url(images/secondaryToolbarButton-scrollVertical.svg);
  1033. --secondaryToolbarButton-scrollHorizontal-icon: url(images/secondaryToolbarButton-scrollHorizontal.svg);
  1034. --secondaryToolbarButton-scrollWrapped-icon: url(images/secondaryToolbarButton-scrollWrapped.svg);
  1035. --secondaryToolbarButton-spreadNone-icon: url(images/secondaryToolbarButton-spreadNone.svg);
  1036. --secondaryToolbarButton-spreadOdd-icon: url(images/secondaryToolbarButton-spreadOdd.svg);
  1037. --secondaryToolbarButton-spreadEven-icon: url(images/secondaryToolbarButton-spreadEven.svg);
  1038. --secondaryToolbarButton-documentProperties-icon: url(images/secondaryToolbarButton-documentProperties.svg);
  1039. }
  1040. [dir="rtl"]:root {
  1041. --dir-factor: -1;
  1042. --inline-start: right;
  1043. --inline-end: left;
  1044. }
  1045. @media (prefers-color-scheme: dark) {
  1046. :root {
  1047. --main-color: rgba(249, 249, 250, 1);
  1048. --body-bg-color: rgba(42, 42, 46, 1);
  1049. --progressBar-color: rgba(0, 96, 223, 1);
  1050. --progressBar-bg-color: rgba(40, 40, 43, 1);
  1051. --progressBar-blend-color: rgba(20, 68, 133, 1);
  1052. --scrollbar-color: rgba(121, 121, 123, 1);
  1053. --scrollbar-bg-color: rgba(35, 35, 39, 1);
  1054. --toolbar-icon-bg-color: rgba(255, 255, 255, 1);
  1055. --toolbar-icon-hover-bg-color: rgba(255, 255, 255, 1);
  1056. --sidebar-narrow-bg-color: rgba(42, 42, 46, 0.9);
  1057. --sidebar-toolbar-bg-color: rgba(50, 50, 52, 1);
  1058. --toolbar-bg-color: rgba(56, 56, 61, 1);
  1059. --toolbar-border-color: rgba(12, 12, 13, 1);
  1060. --button-hover-color: rgba(102, 102, 103, 1);
  1061. --toggled-btn-color: rgba(255, 255, 255, 1);
  1062. --toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
  1063. --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
  1064. --dropdown-btn-bg-color: rgba(74, 74, 79, 1);
  1065. --separator-color: rgba(0, 0, 0, 0.3);
  1066. --field-color: rgba(250, 250, 250, 1);
  1067. --field-bg-color: rgba(64, 64, 68, 1);
  1068. --field-border-color: rgba(115, 115, 115, 1);
  1069. --treeitem-color: rgba(255, 255, 255, 0.8);
  1070. --treeitem-hover-color: rgba(255, 255, 255, 0.9);
  1071. --treeitem-selected-color: rgba(255, 255, 255, 0.9);
  1072. --treeitem-selected-bg-color: rgba(255, 255, 255, 0.25);
  1073. --sidebaritem-bg-color: rgba(255, 255, 255, 0.15);
  1074. --doorhanger-bg-color: rgba(74, 74, 79, 1);
  1075. --doorhanger-border-color: rgba(39, 39, 43, 1);
  1076. --doorhanger-hover-color: rgba(249, 249, 250, 1);
  1077. --doorhanger-hover-bg-color: rgba(93, 94, 98, 1);
  1078. --doorhanger-separator-color: rgba(92, 92, 97, 1);
  1079. --dialog-button-bg-color: rgba(92, 92, 97, 1);
  1080. --dialog-button-hover-bg-color: rgba(115, 115, 115, 1);
  1081. /* This image is used in <input> elements, which unfortunately means that
  1082. * the `mask-image` approach used with all of the other images doesn't work
  1083. * here; hence why we still have two versions of this particular image. */
  1084. --loading-icon: url(images/loading-dark.svg);
  1085. }
  1086. }
  1087. @media screen and (forced-colors: active) {
  1088. :root {
  1089. --button-hover-color: Highlight;
  1090. --doorhanger-hover-bg-color: Highlight;
  1091. --toolbar-icon-opacity: 1;
  1092. --toolbar-icon-bg-color: ButtonText;
  1093. --toolbar-icon-hover-bg-color: ButtonFace;
  1094. --toolbar-border-color: CanvasText;
  1095. --toolbar-border-bottom: 1px solid var(--toolbar-border-color);
  1096. --toolbar-box-shadow: none;
  1097. --toggled-btn-color: HighlightText;
  1098. --toggled-btn-bg-color: LinkText;
  1099. --doorhanger-hover-color: ButtonFace;
  1100. --doorhanger-border-color-whcm: 1px solid ButtonText;
  1101. --doorhanger-triangle-opacity-whcm: 0;
  1102. --dialog-button-border: 1px solid Highlight;
  1103. --dialog-button-hover-bg-color: Highlight;
  1104. --dialog-button-hover-color: ButtonFace;
  1105. --dropdown-btn-border: 1px solid ButtonText;
  1106. --field-border-color: ButtonText;
  1107. --main-color: CanvasText;
  1108. --separator-color: GrayText;
  1109. --doorhanger-separator-color: GrayText;
  1110. --toolbarSidebar-box-shadow: none;
  1111. --toolbarSidebar-border-bottom: 1px solid var(--toolbar-border-color);
  1112. }
  1113. }
  1114. @media screen and (prefers-reduced-motion: reduce) {
  1115. :root {
  1116. --sidebar-transition-duration: 0;
  1117. }
  1118. }
  1119. * {
  1120. padding: 0;
  1121. margin: 0;
  1122. }
  1123. html,
  1124. body {
  1125. height: 100%;
  1126. width: 100%;
  1127. }
  1128. body {
  1129. background-color: var(--body-bg-color);
  1130. scrollbar-color: var(--scrollbar-color) var(--scrollbar-bg-color);
  1131. }
  1132. .hidden,
  1133. [hidden] {
  1134. display: none !important;
  1135. }
  1136. #viewerContainer.pdfPresentationMode:-webkit-full-screen {
  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. user-select: none;
  1145. }
  1146. #viewerContainer.pdfPresentationMode:fullscreen {
  1147. top: 0;
  1148. background-color: rgba(0, 0, 0, 1);
  1149. width: 100%;
  1150. height: 100%;
  1151. overflow: hidden;
  1152. cursor: none;
  1153. -webkit-user-select: none;
  1154. -moz-user-select: none;
  1155. user-select: none;
  1156. }
  1157. .pdfPresentationMode:-webkit-full-screen section:not([data-internal-link]) {
  1158. pointer-events: none;
  1159. }
  1160. .pdfPresentationMode:fullscreen section:not([data-internal-link]) {
  1161. pointer-events: none;
  1162. }
  1163. .pdfPresentationMode:-webkit-full-screen .textLayer span {
  1164. cursor: none;
  1165. }
  1166. .pdfPresentationMode:fullscreen .textLayer span {
  1167. cursor: none;
  1168. }
  1169. .pdfPresentationMode.pdfPresentationModeControls > *,
  1170. .pdfPresentationMode.pdfPresentationModeControls .textLayer span {
  1171. cursor: default;
  1172. }
  1173. #outerContainer {
  1174. width: 100%;
  1175. height: 100%;
  1176. position: relative;
  1177. }
  1178. #sidebarContainer {
  1179. position: absolute;
  1180. inset-block: 32px 0;
  1181. inset-inline-start: calc(-1 * var(--sidebar-width));
  1182. width: var(--sidebar-width);
  1183. visibility: hidden;
  1184. z-index: 100;
  1185. font: message-box;
  1186. border-top: 1px solid rgba(51, 51, 51, 1);
  1187. -webkit-border-end: var(--doorhanger-border-color-whcm);
  1188. border-inline-end: var(--doorhanger-border-color-whcm);
  1189. transition-property: inset-inline-start;
  1190. transition-duration: var(--sidebar-transition-duration);
  1191. transition-timing-function: var(--sidebar-transition-timing-function);
  1192. }
  1193. #outerContainer.sidebarMoving #sidebarContainer,
  1194. #outerContainer.sidebarOpen #sidebarContainer {
  1195. visibility: visible;
  1196. }
  1197. #outerContainer.sidebarOpen #sidebarContainer {
  1198. inset-inline-start: 0;
  1199. }
  1200. #mainContainer {
  1201. position: absolute;
  1202. inset: 0;
  1203. min-width: 350px;
  1204. }
  1205. #sidebarContent {
  1206. inset-block: 32px 0;
  1207. inset-inline-start: 0;
  1208. overflow: auto;
  1209. position: absolute;
  1210. width: 100%;
  1211. box-shadow: inset calc(-1px * var(--dir-factor)) 0 0 rgba(0, 0, 0, 0.25);
  1212. }
  1213. #viewerContainer {
  1214. overflow: auto;
  1215. position: absolute;
  1216. inset: 32px 0 0;
  1217. outline: none;
  1218. }
  1219. #viewerContainer:not(.pdfPresentationMode) {
  1220. transition-duration: var(--sidebar-transition-duration);
  1221. transition-timing-function: var(--sidebar-transition-timing-function);
  1222. }
  1223. #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
  1224. inset-inline-start: var(--sidebar-width);
  1225. transition-property: inset-inline-start;
  1226. }
  1227. .toolbar {
  1228. position: relative;
  1229. inset-inline: 0;
  1230. z-index: 9999;
  1231. cursor: default;
  1232. font: message-box;
  1233. }
  1234. .toolbar input,
  1235. .toolbar button,
  1236. .toolbar select,
  1237. .secondaryToolbar input,
  1238. .secondaryToolbar button,
  1239. .secondaryToolbar a,
  1240. .secondaryToolbar select,
  1241. .editorParamsToolbar input,
  1242. .editorParamsToolbar button,
  1243. .editorParamsToolbar select,
  1244. .findbar input,
  1245. .findbar button,
  1246. .findbar select,
  1247. #sidebarContainer input,
  1248. #sidebarContainer button,
  1249. #sidebarContainer select {
  1250. outline: none;
  1251. font: message-box;
  1252. }
  1253. #toolbarContainer {
  1254. width: 100%;
  1255. }
  1256. #toolbarSidebar {
  1257. width: 100%;
  1258. height: 32px;
  1259. background-color: var(--sidebar-toolbar-bg-color);
  1260. box-shadow: var(--toolbarSidebar-box-shadow);
  1261. border-bottom: var(--toolbarSidebar-border-bottom);
  1262. }
  1263. #sidebarResizer {
  1264. position: absolute;
  1265. inset-block: 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. inset-block: 0;
  2021. padding: 4px 4px 0;
  2022. overflow: auto;
  2023. -webkit-user-select: none;
  2024. -moz-user-select: none;
  2025. user-select: none;
  2026. }
  2027. #thumbnailView {
  2028. width: calc(100% - 60px);
  2029. padding: 10px 30px 0;
  2030. }
  2031. #thumbnailView > a:active,
  2032. #thumbnailView > a:focus {
  2033. outline: 0;
  2034. }
  2035. .thumbnail {
  2036. float: var(--inline-start);
  2037. margin: 0 10px 5px;
  2038. }
  2039. #thumbnailView > a:last-of-type > .thumbnail {
  2040. margin-bottom: 10px;
  2041. }
  2042. #thumbnailView > a:last-of-type > .thumbnail:not([data-loaded]) {
  2043. margin-bottom: 9px;
  2044. }
  2045. .thumbnail:not([data-loaded]) {
  2046. border: 1px dashed rgba(132, 132, 132, 1);
  2047. margin: -1px 9px 4px;
  2048. }
  2049. .thumbnailImage {
  2050. border: 1px solid rgba(0, 0, 0, 0);
  2051. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  2052. opacity: 0.8;
  2053. z-index: 99;
  2054. background-color: rgba(255, 255, 255, 1);
  2055. background-clip: content-box;
  2056. }
  2057. .thumbnailSelectionRing {
  2058. border-radius: 2px;
  2059. padding: 7px;
  2060. }
  2061. a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage,
  2062. .thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage {
  2063. opacity: 0.9;
  2064. }
  2065. a:focus > .thumbnail > .thumbnailSelectionRing,
  2066. .thumbnail:hover > .thumbnailSelectionRing {
  2067. background-color: var(--sidebaritem-bg-color);
  2068. background-clip: padding-box;
  2069. color: rgba(255, 255, 255, 0.9);
  2070. }
  2071. .thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
  2072. opacity: 1;
  2073. }
  2074. .thumbnail.selected > .thumbnailSelectionRing {
  2075. background-color: var(--sidebaritem-bg-color);
  2076. background-clip: padding-box;
  2077. color: rgba(255, 255, 255, 1);
  2078. }
  2079. .treeWithDeepNesting > .treeItem,
  2080. .treeItem > .treeItems {
  2081. -webkit-margin-start: 20px;
  2082. margin-inline-start: 20px;
  2083. }
  2084. .treeItem > a {
  2085. text-decoration: none;
  2086. display: inline-block;
  2087. /* Subtract the right padding (left, in RTL mode) of the container: */
  2088. min-width: calc(100% - 4px);
  2089. height: auto;
  2090. margin-bottom: 1px;
  2091. padding: 2px 0 5px;
  2092. -webkit-padding-start: 4px;
  2093. padding-inline-start: 4px;
  2094. border-radius: 2px;
  2095. color: var(--treeitem-color);
  2096. font-size: 13px;
  2097. line-height: 15px;
  2098. -webkit-user-select: none;
  2099. -moz-user-select: none;
  2100. user-select: none;
  2101. white-space: normal;
  2102. cursor: pointer;
  2103. }
  2104. #layersView .treeItem > a * {
  2105. cursor: pointer;
  2106. }
  2107. #layersView .treeItem > a > label {
  2108. -webkit-padding-start: 4px;
  2109. padding-inline-start: 4px;
  2110. }
  2111. #layersView .treeItem > a > label > input {
  2112. float: var(--inline-start);
  2113. margin-top: 1px;
  2114. }
  2115. .treeItemToggler {
  2116. position: relative;
  2117. float: var(--inline-start);
  2118. height: 0;
  2119. width: 0;
  2120. color: rgba(255, 255, 255, 0.5);
  2121. }
  2122. .treeItemToggler::before {
  2123. inset-inline-end: 4px;
  2124. -webkit-mask-image: var(--treeitem-expanded-icon);
  2125. mask-image: var(--treeitem-expanded-icon);
  2126. }
  2127. .treeItemToggler.treeItemsHidden::before {
  2128. -webkit-mask-image: var(--treeitem-collapsed-icon);
  2129. mask-image: var(--treeitem-collapsed-icon);
  2130. transform: scaleX(var(--dir-factor));
  2131. }
  2132. .treeItemToggler.treeItemsHidden ~ .treeItems {
  2133. display: none;
  2134. }
  2135. .treeItem.selected > a {
  2136. background-color: var(--treeitem-selected-bg-color);
  2137. color: var(--treeitem-selected-color);
  2138. }
  2139. .treeItemToggler:hover,
  2140. .treeItemToggler:hover + a,
  2141. .treeItemToggler:hover ~ .treeItems,
  2142. .treeItem > a:hover {
  2143. background-color: var(--sidebaritem-bg-color);
  2144. background-clip: padding-box;
  2145. border-radius: 2px;
  2146. color: var(--treeitem-hover-color);
  2147. }
  2148. .dialogButton {
  2149. width: auto;
  2150. margin: 3px 4px 2px !important;
  2151. padding: 2px 11px;
  2152. color: var(--main-color);
  2153. background-color: var(--dialog-button-bg-color);
  2154. border: var(--dialog-button-border) !important;
  2155. }
  2156. dialog {
  2157. margin: auto;
  2158. padding: 15px;
  2159. border-spacing: 4px;
  2160. color: var(--main-color);
  2161. font: message-box;
  2162. font-size: 12px;
  2163. line-height: 14px;
  2164. background-color: var(--doorhanger-bg-color);
  2165. border: 1px solid rgba(0, 0, 0, 0.5);
  2166. border-radius: 4px;
  2167. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  2168. }
  2169. dialog::-webkit-backdrop {
  2170. background-color: rgba(0, 0, 0, 0.2);
  2171. }
  2172. dialog::backdrop {
  2173. background-color: rgba(0, 0, 0, 0.2);
  2174. }
  2175. dialog > .row {
  2176. display: table-row;
  2177. }
  2178. dialog > .row > * {
  2179. display: table-cell;
  2180. }
  2181. dialog .toolbarField {
  2182. margin: 5px 0;
  2183. }
  2184. dialog .separator {
  2185. display: block;
  2186. margin: 4px 0;
  2187. height: 1px;
  2188. width: 100%;
  2189. background-color: var(--separator-color);
  2190. }
  2191. dialog .buttonRow {
  2192. text-align: center;
  2193. vertical-align: middle;
  2194. }
  2195. dialog :link {
  2196. color: rgba(255, 255, 255, 1);
  2197. }
  2198. #passwordDialog {
  2199. text-align: center;
  2200. }
  2201. #passwordDialog .toolbarField {
  2202. width: 200px;
  2203. }
  2204. #documentPropertiesDialog {
  2205. text-align: left;
  2206. }
  2207. #documentPropertiesDialog .row > * {
  2208. min-width: 100px;
  2209. text-align: start;
  2210. }
  2211. #documentPropertiesDialog .row > span {
  2212. width: 125px;
  2213. word-wrap: break-word;
  2214. }
  2215. #documentPropertiesDialog .row > p {
  2216. max-width: 225px;
  2217. word-wrap: break-word;
  2218. }
  2219. #documentPropertiesDialog .buttonRow {
  2220. margin-top: 10px;
  2221. }
  2222. .grab-to-pan-grab {
  2223. cursor: grab !important;
  2224. }
  2225. .grab-to-pan-grab
  2226. *:not(input):not(textarea):not(button):not(select):not(:link) {
  2227. cursor: inherit !important;
  2228. }
  2229. .grab-to-pan-grab:active,
  2230. .grab-to-pan-grabbing {
  2231. cursor: grabbing !important;
  2232. position: fixed;
  2233. background: rgba(0, 0, 0, 0);
  2234. display: block;
  2235. inset: 0;
  2236. overflow: hidden;
  2237. z-index: 50000; /* should be higher than anything else in PDF.js! */
  2238. }
  2239. @page {
  2240. margin: 0;
  2241. }
  2242. #printContainer {
  2243. display: none;
  2244. }
  2245. @media print {
  2246. body {
  2247. background: rgba(0, 0, 0, 0) none;
  2248. }
  2249. body[data-pdfjsprinting] #outerContainer {
  2250. display: none;
  2251. }
  2252. body[data-pdfjsprinting] #printContainer {
  2253. display: block;
  2254. }
  2255. #printContainer {
  2256. height: 100%;
  2257. }
  2258. /* wrapper around (scaled) print canvas elements */
  2259. #printContainer > .printedPage {
  2260. page-break-after: always;
  2261. page-break-inside: avoid;
  2262. /* The wrapper always cover the whole page. */
  2263. height: 100%;
  2264. width: 100%;
  2265. display: flex;
  2266. flex-direction: column;
  2267. justify-content: center;
  2268. align-items: center;
  2269. }
  2270. #printContainer > .xfaPrintedPage .xfaPage {
  2271. position: absolute;
  2272. }
  2273. #printContainer > .xfaPrintedPage {
  2274. page-break-after: always;
  2275. page-break-inside: avoid;
  2276. width: 100%;
  2277. height: 100%;
  2278. position: relative;
  2279. }
  2280. #printContainer > .printedPage canvas,
  2281. #printContainer > .printedPage img {
  2282. /* The intrinsic canvas / image size will make sure that we fit the page. */
  2283. max-width: 100%;
  2284. max-height: 100%;
  2285. direction: ltr;
  2286. display: block;
  2287. }
  2288. }
  2289. .visibleLargeView,
  2290. .visibleMediumView {
  2291. display: none;
  2292. }
  2293. @media all and (max-width: 900px) {
  2294. #toolbarViewerMiddle {
  2295. display: table;
  2296. margin: auto;
  2297. left: auto;
  2298. position: inherit;
  2299. transform: none;
  2300. }
  2301. }
  2302. @media all and (max-width: 840px) {
  2303. #sidebarContainer {
  2304. background-color: var(--sidebar-narrow-bg-color);
  2305. }
  2306. #outerContainer.sidebarOpen #viewerContainer {
  2307. inset-inline-start: 0 !important;
  2308. }
  2309. }
  2310. @media all and (max-width: 820px) {
  2311. #outerContainer .hiddenLargeView {
  2312. display: none;
  2313. }
  2314. #outerContainer .visibleLargeView {
  2315. display: inherit;
  2316. }
  2317. }
  2318. @media all and (max-width: 750px) {
  2319. #outerContainer .hiddenMediumView {
  2320. display: none;
  2321. }
  2322. #outerContainer .visibleMediumView {
  2323. display: inherit;
  2324. }
  2325. }
  2326. @media all and (max-width: 690px) {
  2327. .hiddenSmallView,
  2328. .hiddenSmallView * {
  2329. display: none;
  2330. }
  2331. .toolbarButtonSpacer {
  2332. width: 0;
  2333. }
  2334. .findbar {
  2335. inset-inline-start: 34px;
  2336. }
  2337. }
  2338. @media all and (max-width: 560px) {
  2339. #scaleSelectContainer {
  2340. display: none;
  2341. }
  2342. }