viewer.css 61 KB

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