viewer.css 69 KB

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