viewer.css 71 KB

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